I'm having an odd problem in that when I test the plugin using Eclipse, everything runs fine, image is uploaded and I can see it using the webclient. However, when I load the plugin in FIJI it fails out with the error posted below showing up in the console and the exception posted below that popping up.
I've managed to fix the console error by adding the Apache Commons Collections 3.2.2 jar to the FIJI jars folder, however the exception remains. I've tried adding the ini4j jar to FIJI jars and to the dependencies of the plugin itself, but it still remains.
Does anyone have any experience with this or suggestions for a fix?
omero.gateway.exception.DSOutOfServiceException: Cannot log in. User credentials not valid
at omero.gateway.Gateway.login(Gateway.java:1145)
at omero.gateway.Gateway.connect(Gateway.java:246)
at landon.IJ.IJ_Omero.run(IJ_Omero.java:56)
at ij.IJ.runUserPlugIn(IJ.java:217)
at ij.IJ.runPlugIn(IJ.java:181)
at ij.Executer.runCommand(Executer.java:137)
at ij.Executer.run(Executer.java:66)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/collections/CollectionUtils
at omero.gateway.model.ExperimenterData.getDefaultGroup(ExperimenterData.java:261)
at omero.gateway.Gateway.login(Gateway.java:1134)
... 7 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.CollectionUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 9 more
Could not load projectsomero.gateway.exception.DSOutOfServiceException: Null SecurityContext
at omero.gateway.Gateway.getConnector(Gateway.java:1439)
at omero.gateway.Gateway.getPojosService(Gateway.java:632)
at omero.gateway.facility.BrowseFacility.getProjects(BrowseFacility.java:497)
at omero.gateway.facility.BrowseFacility.getProjects(BrowseFacility.java:453)
at landon.IJ.IJ_Omero.run(IJ_Omero.java:72)
at ij.IJ.runUserPlugIn(IJ.java:217)
at ij.IJ.runPlugIn(IJ.java:181)
at ij.Executer.runCommand(Executer.java:137)
at ij.Executer.run(Executer.java:66)
at java.lang.Thread.run(Thread.java:745)
Could not load projectsomero.gateway.exception.DSOutOfServiceException: Null SecurityContext
at omero.gateway.Gateway.getConnector(Gateway.java:1439)
at omero.gateway.Gateway.getPojosService(Gateway.java:632)
at omero.gateway.facility.BrowseFacility.getProjects(BrowseFacility.java:497)
at omero.gateway.facility.BrowseFacility.getProjects(BrowseFacility.java:453)
at landon.IJ.IJ_Omero.run(IJ_Omero.java:72)
at ij.IJ.runUserPlugIn(IJ.java:217)
at ij.IJ.runPlugIn(IJ.java:181)
at ij.Executer.runCommand(Executer.java:137)
at ij.Executer.run(Executer.java:66)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "Omero Import"
==========================================================================================
java.lang.NoClassDefFoundError: org/ini4j/IniFile
at ome.formats.importer.ImportConfig.<init>(ImportConfig.java:213)
at ome.formats.importer.ImportConfig.<init>(ImportConfig.java:199)
at landon.IJ.IJ_Omero.run(IJ_Omero.java:101)
at ij.IJ.runUserPlugIn(IJ.java:217)
at ij.IJ.runPlugIn(IJ.java:181)
at ij.Executer.runCommand(Executer.java:137)
at ij.Executer.run(Executer.java:66)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.ini4j.IniFile
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 8 more