NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1930 (closed defect: fixed)

Opened 2013-06-26T13:28:00-05:00

Last modified 2013-06-26T16:10:33-05:00

Exception error during startup

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b8-analysis
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1457

Description

During startup IJ2 barfs an exception related to legacy initialization:

[WARNING] Failed to instantiate IJ1.
java.lang.IllegalStateException: Cannot add com.apple.eawt.ApplicationListener after installing an app event handler

at com.apple.eawt._AppEventLegacyHandler.checkIfLegacyAPIBlocked(_AppEventLegacyHandler.java:35)
at com.apple.eawt._AppEventLegacyHandler.addLegacyAppListener(_AppEventLegacyHandler.java:39)
at com.apple.eawt.Application.addApplicationListener(Application.java:391)
at MacAdapter.run(MacAdapter.java:15)
at ij.IJ.runUserPlugIn(IJ.java:194)
at ij.IJ.runPlugIn(IJ.java:160)
at ij.IJ.runPlugIn(IJ.java:149)
at ij.ImageJ.<init>(ImageJ.java:199)
at ij.ImageJ.<init>(ImageJ.java:125)
at imagej.legacy.IJ1Helper.initialize(IJ1Helper.java:71)
at imagej.legacy.DefaultLegacyService.initialize(DefaultLegacyService.java:373)
at org.scijava.service.ServiceHelper.createService(ServiceHelper.java:224)
at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:176)
at org.scijava.service.ServiceHelper.loadService(ServiceHelper.java:155)
at org.scijava.service.ServiceHelper.loadServices(ServiceHelper.java:126)
at org.scijava.Context.<init>(Context.java:162)
at org.scijava.Context.<init>(Context.java:120)
at org.scijava.Context.<init>(Context.java:81)
at org.scijava.Context.<init>(Context.java:71)
at imagej.ImageJ.<init>(ImageJ.java:97)
at imagej.Main.launch(Main.java:56)
at imagej.Main.main(Main.java:68)

Change History

comment:1 Changed 2013-06-26T15:44:32-05:00 by bdezonia

  • Owner changed from dscho to bdezonia
  • Status changed from new to assigned

comment:2 Changed 2013-06-26T16:10:33-05:00 by curtis

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in 4265aaad.

Last edited 2013-06-26T16:10:43-05:00 by curtis