[ImageJ-bugs] [Bug 858] setting "FIJI_PREFS_DIR" without effect

bugzilla at fiji.sc bugzilla at fiji.sc
Thu Jul 17 10:04:16 CDT 2014


http://fiji.sc/bugzilla/show_bug.cgi?id=858

Curtis Rueden <ctrueden at wisc.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDSINFO                   |ASSIGNED
                 CC|                            |ctrueden at wisc.edu

--- Comment #2 from Curtis Rueden <ctrueden at wisc.edu> ---
The bug is caused by a javassist problem:

IJ_PREFS_DIR=/Users/curtis/fiji
/Applications/Science/Fiji.app/Contents/MacOS/ImageJ-macosx
Jul 17 10:03:33 sirius ImageJ-macosx[13910] <Error>: The function
`CGContextErase' is obsolete and will be removed in an upcoming update.
Unfortunately, this application, or a library it uses, is using this obsolete
function, and is thereby contributing to an overall degradation of system
performance.
java.lang.IllegalArgumentException: Cannot override field access to prefsDir in
ij.Prefs's public java.lang.String load(java.lang.Object ij, java.applet.Applet
applet)
    at net.imagej.patcher.CodeHacker.overrideFieldWrite(CodeHacker.java:630)
    at
net.imagej.patcher.LegacyExtensions.injectHooks(LegacyExtensions.java:220)
    at net.imagej.patcher.LegacyInjector.inject(LegacyInjector.java:286)
    at net.imagej.patcher.LegacyInjector.injectHooks(LegacyInjector.java:87)
    at
net.imagej.patcher.LegacyEnvironment.initialize(LegacyEnvironment.java:101)
    at
net.imagej.patcher.LegacyEnvironment.applyPatches(LegacyEnvironment.java:496)
    at net.imagej.patcher.LegacyInjector.preinit(LegacyInjector.java:365)
    at net.imagej.patcher.LegacyInjector.preinit(LegacyInjector.java:344)
    at fiji.IJ1Patcher.run(IJ1Patcher.java:37)
    at net.imagej.launcher.ClassLauncher.patchIJ1(ClassLauncher.java:195)
    at net.imagej.launcher.ClassLauncher.run(ClassLauncher.java:154)
    at net.imagej.launcher.ClassLauncher.main(ClassLauncher.java:76)
Caused by: javassist.CannotCompileException: No code replaced!
    at
net.imagej.patcher.CodeHacker$EagerExprEditor.instrument(CodeHacker.java:1280)
    at net.imagej.patcher.CodeHacker.overrideFieldWrite(CodeHacker.java:616)
    ... 11 more
[WARNING] 2 exceptions occurred during plugin discovery.
log4j:WARN No appenders could be found for logger
(org.bushe.swing.event.EventService).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more
info.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/Applications/Science/Fiji.app/jars/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/Applications/Science/Fiji.app/jars/logback-classic-1.0.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
[ERROR] Skipping unsupported option -port7

I'm investigating it now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20140717/aceeec00/attachment.html>


More information about the Imagej-bugs mailing list