Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ij insight fixed develop #2122

Merged
merged 20 commits into from
Mar 4, 2014
Merged

Conversation

jburel
Copy link
Member

@jburel jburel commented Feb 25, 2014

To test:

  • Add insigh-ij plugins to plugins folder
  • Add either loci_tools.jar or bioformats_package.jar to the plugins directory.
  • A warning should be displayed if none present.

Check that

  • No B-F associated jar and logback under insight-ij/libs directory.

--rebased-from #2074
--rebased-from #2060
--rebased-from #2119

joshmoore and others added 15 commits February 25, 2014 21:17
The `/usr/bin/imagej` launcher under Ubuntu starts
ImageJ and points it at the directory `~/.imagej`
to look for plugins. The location `./plugins` doesn't
exist, and so the insight code receives a null array
of locations. This is just a workaround; perhaps later
versions can look for the `~/.imagej/plugin` directory
itself. (There may be a System property that points to
the location set via -ij_user_path)
Less disruptive change. This will probably have to be reviewed.
This was referenced Feb 25, 2014
@jburel jburel added the develop label Feb 25, 2014
@joshmoore
Copy link
Member

@jburel: would you be up for also cherry-picking gh-2075 to this PR?

@joshmoore
Copy link
Member

(re-launched travis build)

@jburel
Copy link
Member Author

jburel commented Feb 26, 2014

@joshmoore: will do

Since all methods in LoggerImpl were checking
`if (runAsPlugin < 0) {...}` separating out the logic
into a separate class is straight-forward. The reason
for doing this, however, is that in the case that the
IJ plugin is used with the `loci_tools.jar` jar, which
contains log4j, then the client hangs at

    "Loading Logger Service"

Conflicts:
	components/insight/SRC/org/openmicroscopy/shoola/env/log/LoggerFactory.java
	components/insight/SRC/org/openmicroscopy/shoola/env/log/LoggerImpl.java
@jburel
Copy link
Member Author

jburel commented Feb 26, 2014

@joshmoore:done

@snoopycrimecop
Copy link
Member

Conflicting PR.Removed from build OMERO-5.1-merge-push#63. See the console output for more details.

@snoopycrimecop
Copy link
Member

Conflicting PR.Removed from build OMERO-5.1-merge-push#64. See the console output for more details.

Conflicts:
	components/insight/SRC/org/openmicroscopy/shoola/env/log/LoggerFactory.java
	components/insight/SRC/org/openmicroscopy/shoola/env/log/LoggerImpl.java
Conflicts:
	components/insight/SRC/org/openmicroscopy/shoola/env/log/LoggerFactory.java
@joshmoore
Copy link
Member

Note: this can't be automatically merged.

@snoopycrimecop
Copy link
Member

Conflicting PR.Removed from build OMERO-5.1-merge-push#65. See the console output for more details.

…evelop

Conflicts:
	components/insight/SRC/org/openmicroscopy/shoola/env/data/DataServicesFactory.java
@snoopycrimecop
Copy link
Member

Conflicting PR.Removed from build OMERO-5.1-merge-push#66. See the console output for more details.

@pwalczysko
Copy link
Member

Workflow:

  • put insight-ij plugin from today's merge built on Trout to Plugins of IJ
  • start IJ
  • go OMERO > Connect to OMERO
  • popup appears as expected
  • follow the link in popup -> goes to 5.0.0 release page
  • download bioformats_package.jar and put it to Plugins, restart IJ
  • go OMERO > Connect to OMERO
  • Insight opens, connect to Trout, user-4
  • try to open a dv file in IJ
  • warning appears, see screeenshot
  • error appears, see below
  • image does not open

screen shot 2014-03-03 at 15 07 54

loci.common.ReflectException: No such class: loci.ome.io.OmeroReader
    at loci.common.ReflectedUniverse.exec(ReflectedUniverse.java:169)
    at loci.plugins.in.ImportProcess.createBaseReader(ImportProcess.java:610)
    at loci.plugins.in.ImportProcess.initializeReader(ImportProcess.java:469)
    at loci.plugins.in.ImportProcess.execute(ImportProcess.java:139)
    at loci.plugins.in.Importer.showDialogs(Importer.java:141)
    at loci.plugins.in.Importer.run(Importer.java:79)
    at loci.plugins.LociImporter.run(LociImporter.java:81)
    at ij.IJ.runUserPlugIn(IJ.java:195)
    at ij.IJ.runPlugIn(IJ.java:160)
    at ij.IJ.runPlugIn(IJ.java:149)
    at org.openmicroscopy.shoola.env.ui.TaskBarManager.runAsImageJ(TaskBarManager.java:346)
    at org.openmicroscopy.shoola.env.ui.TaskBarManager.handleViewInPluginEvent(TaskBarManager.java:366)
    at org.openmicroscopy.shoola.env.ui.TaskBarManager.eventFired(TaskBarManager.java:1031)
    at org.openmicroscopy.shoola.env.event.EventBusImpl.dispatch(EventBusImpl.java:91)
    at org.openmicroscopy.shoola.env.event.EventBusImpl.post(EventBusImpl.java:222)
    at org.openmicroscopy.shoola.agents.treeviewer.cmd.ViewInPluginCmd.execute(ViewInPluginCmd.java:85)
    at org.openmicroscopy.shoola.agents.treeviewer.view.TreeViewerComponent.browse(TreeViewerComponent.java:3363)
    at org.openmicroscopy.shoola.agents.treeviewer.view.TreeViewerControl.propertyChange(TreeViewerControl.java:1278)
    at org.openmicroscopy.shoola.util.ui.component.AbstractComponent.firePropertyChange(AbstractComponent.java:147)
    at org.openmicroscopy.shoola.agents.dataBrowser.view.DataBrowserComponent.viewDisplay(DataBrowserComponent.java:1722)
    at org.openmicroscopy.shoola.agents.dataBrowser.view.DataBrowserControl.viewDisplay(DataBrowserControl.java:465)
    at org.openmicroscopy.shoola.agents.dataBrowser.view.DataBrowserControl.propertyChange(DataBrowserControl.java:570)
    at org.openmicroscopy.shoola.util.ui.component.AbstractComponent.firePropertyChange(AbstractComponent.java:147)
    at org.openmicroscopy.shoola.agents.dataBrowser.browser.BrowserModel.viewDisplay(BrowserModel.java:724)
    at org.openmicroscopy.shoola.agents.dataBrowser.browser.BrowserControl.onClick(BrowserControl.java:207)
    at org.openmicroscopy.shoola.agents.dataBrowser.browser.BrowserControl.mousePressed(BrowserControl.java:544)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
    at java.awt.Component.processMouseEvent(Component.java:6411)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
    at java.awt.Component.processEvent(Component.java:6179)
    at java.awt.Container.processEvent(Container.java:2084)
    at java.awt.Component.dispatchEventImpl(Component.java:4776)
    at java.awt.Container.dispatchEventImpl(Container.java:2142)
    at java.awt.Component.dispatchEvent(Component.java:4604)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4276)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)
    at java.awt.Container.dispatchEventImpl(Container.java:2128)
    at java.awt.Window.dispatchEventImpl(Window.java:2492)
    at java.awt.Component.dispatchEvent(Component.java:4604)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:676)
    at java.awt.EventQueue$2.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:690)
    at java.awt.EventQueue$3.run(EventQueue.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: loci.ome.io.OmeroReader
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:249)
    at loci.common.ReflectedUniverse.exec(ReflectedUniverse.java:161)

@pwalczysko
Copy link
Member

No B-F associated jar and logback under insight-ij/libs directory.
This was as expected, both with bioformats_package.jar as well as loci_tools.jar.

In summary, the warnings were fine, but see above for the failure to open image.

@pwalczysko
Copy link
Member

Re-tried the workflow using bioformats_package.jar from
http://ci.openmicroscopy.org/view/5.1/job/BIOFORMATS-5.1-merge-daily/lastSuccessfulBuild/artifact/artifacts/

The results were identical with the above.

@sbesson
Copy link
Member

sbesson commented Mar 3, 2014

To be retested with #2136 included in the merge build.

@ximenesuk ximenesuk mentioned this pull request Mar 4, 2014
@ximenesuk
Copy link
Contributor

Also partially,

--rebased-from #2060

see comments in gh-2097

@pwalczysko
Copy link
Member

Retested using bioformats_package.jar and loci_tools.jar from http://ci.openmicroscopy.org/view/5.1/job/BIOFORMATS-5.1-merge-daily/lastSuccessfulBuild/artifact/artifacts/.

  • still no logs or B-F associated jars in libs subfolder -> as expected
  • works with bioformats_package.jar and loci_tools.jar (both singly and also together) -> as expected
  • warning shown as expected, pointing to 5.0.0 bio-formats release
  • opening of images in all cases as expected, no errors

All fine here.

@jburel
Copy link
Member Author

jburel commented Mar 4, 2014

@pwalczysko: thanks for testing

jburel added a commit that referenced this pull request Mar 4, 2014
@jburel jburel merged commit 6c3ef7f into ome:develop Mar 4, 2014
@jburel jburel deleted the ij-insight-fixed-develop branch May 2, 2014 12:38
@sbesson sbesson added this to the 5.1.0-m1 milestone Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants