You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is similar to #98 but the process and the error are different so I created another issue.
When using a session ID to connect to an OMERO server, a NoSuchElementException exception occurs when getting the ImageData of an image after getting the ImageData of another image that is owned by a different group.
However, when a username/password combination is used instead of the session ID, everything works correctly.
To Reproduce
Steps to reproduce the behavior:
Create an OMERO server with a user belonging to two groups, and upload one image in each group.
Login to the server and get the session ID. I use this request to OMERO.web.
This code gets the ImageData of an image, then gets the ImageData of another image, then gets the ImageData of the first image. This is where the error happens.
You will get the following exception:
Exception in thread "main" java.util.NoSuchElementException
at java.base/java.util.ArrayList$Itr.next(ArrayList.java:1052)
at omero.gateway.facility.BrowseFacility.getImage(BrowseFacility.java:1157)
at qupath.ext.Main.yo(Main.java:61)
at qupath.ext.Main.main(Main.java:27)
The text was updated successfully, but these errors were encountered:
Rylern
changed the title
NoSuchElementException when readin images of different groups with session ID
NoSuchElementException when reading images of different groups with session ID
Feb 19, 2025
Bug report
Describe the bug
This is similar to #98 but the process and the error are different so I created another issue.
When using a session ID to connect to an OMERO server, a
NoSuchElementException
exception occurs when getting theImageData
of an image after getting theImageData
of another image that is owned by a different group.However, when a username/password combination is used instead of the session ID, everything works correctly.
To Reproduce
Steps to reproduce the behavior:
This code gets the
ImageData
of an image, then gets theImageData
of another image, then gets theImageData
of the first image. This is where the error happens.You will get the following exception:
No exception is thrown here. The only difference is that a username/password were used to connect instead of a session ID.
Expected behavior
No exception thrown.
Version:
The text was updated successfully, but these errors were encountered: