[kepler-dev] [Bug 3242] - dlls should not go in c:/Windows/System32
bugzilla-daemon at ecoinformatics.org
bugzilla-daemon at ecoinformatics.org
Fri May 1 14:00:52 PDT 2009
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3242
------- Comment #6 from berkley at nceas.ucsb.edu 2009-05-01 14:00 -------
On windows XP, if the dlls are not in the System32 directory, I get the
following error:
ptolemy.kernel.util.IllegalActionException: in
.GARP_MultipleSpecies-V.manager
Because:
C:\project\kepler\common\lib\garp.dll: Can't find dependent libraries
at ptolemy.actor.Manager.execute(Manager.java:465)
at ptolemy.actor.Manager.run(Manager.java:1109)
at ptolemy.actor.Manager$3.run(Manager.java:1150)
Caused by: java.lang.UnsatisfiedLinkError:
C:\project\kepler\common\lib\garp.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at
org.ecoinformatics.seek.garp.GarpJniGlue.<clinit>(GarpJniGlue.java:72)
at
org.ecoinformatics.seek.garp.GarpPresampleLayers.fire(GarpPresampleLayers.java:210)
at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:434)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:188)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:426)
at ptolemy.actor.CompositeActor.iterate(CompositeActor.java:851)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:188)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:426)
at ptolemy.actor.CompositeActor.iterate(CompositeActor.java:851)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:188)
at
ptolemy.actor.lib.hoc.LifeCycleManager._fireInsideModel(LifeCycleManager.java:334)
at
ptolemy.actor.lib.hoc.LifeCycleManager._executeInsideModel(LifeCycleManager.java:289)
at
ptolemy.actor.lib.hoc.RunCompositeActor.fire(RunCompositeActor.java:204)
at ptolemy.actor.CompositeActor.iterate(CompositeActor.java:851)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:188)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:426)
at ptolemy.actor.Manager.iterate(Manager.java:707)
at ptolemy.actor.Manager.execute(Manager.java:349)
... 2 more
Caused by: java.lang.UnsatisfiedLinkError:
C:\project\kepler\common\lib\garp.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at
org.ecoinformatics.seek.garp.GarpJniGlue.<clinit>(GarpJniGlue.java:72)
at
org.ecoinformatics.seek.garp.GarpPresampleLayers.fire(GarpPresampleLayers.java:210)
at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:434)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:188)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:426)
at ptolemy.actor.CompositeActor.iterate(CompositeActor.java:851)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:188)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:426)
at ptolemy.actor.CompositeActor.iterate(CompositeActor.java:851)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:188)
at
ptolemy.actor.lib.hoc.LifeCycleManager._fireInsideModel(LifeCycleManager.java:334)
at
ptolemy.actor.lib.hoc.LifeCycleManager._executeInsideModel(LifeCycleManager.java:289)
at
ptolemy.actor.lib.hoc.RunCompositeActor.fire(RunCompositeActor.java:204)
at ptolemy.actor.CompositeActor.iterate(CompositeActor.java:851)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:188)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:426)
at ptolemy.actor.Manager.iterate(Manager.java:707)
at ptolemy.actor.Manager.execute(Manager.java:349)
at ptolemy.actor.Manager.run(Manager.java:1109)
at ptolemy.actor.Manager$3.run(Manager.java:1150)
Currently testing on Vista to see if I get the same error. If I don't, I'll
change the installer to copy the dlls to system32 for XP, but not for vista.
The error appears to be coming from a secondary resolution of dependent dlls.
The original dll (garp.dll) is found on the java.library.path, but when it
references other dlls, they are not found, even though they are in the same
location.
More information about the Kepler-dev
mailing list