Loading native code lua modules
I'm trying to load a C lua module into my Lightroom Plugin. Unfortunately I can't get it to work and keep getting the error:
An internal error occurred
Could not load toolkit script: PluginGUI-OSX
This is an Objective-C code lua library and the error occurs on the following line in my lua script:
require 'PluginGUI-OSX'
I've also tried preceding this with the following, but still I get no luck:
package.path = package.path..";./?/init.lua;./?.so"
Has anyone ever had luck trying this? Or does anyone on the Lightroom team know it to be impossible?
Thanks in advance
Rich
Hello,
I've got a similar problem. But I don't want to include native code. As in every example plugin I've found, I wanted to extract portions of my code to other scripts (just as FtpUploadTask.lua in FTP example)
But whenever I add the following line to my ExportServiceProvider I get an error:
require 'RhubarbHttpClient'
The error message looks as described in the post above:
Plug-in error log for plug-in at: /Users/krizleebear/Library/Application Support/Adobe/Lightroom/Modules/rhubarb-gallery.lrdevplugin
**** Error 1
An error occurred while attempting to run one of the plug-in’s scripts.
Could not load toolkit script: RhubarbHttpClient
**** Error 2
Could not load the post-processing filter from this plug-in.
Could not load toolkit script: RhubarbHttpClient
When I just put my code from RhubarbHttpClient.lua directly into my ExportServiceProvider, it's working.
The full code can be viewed on google-code:
http://code.google.com/p/rhubarb-gallery/source/browse/#svn/trunk/rhubarb_lightroom_plugin /rhubarb-gallery.lrdevplugin
Similar Messages
-
Null pointer exception in native code
Hi
We are running JRockit 1.4.2 and we are having a lot of crashes recently. All of them have this error
Error Message: Null pointer exception in native code
Signal info : si_signo=11, si_code=1
but the location of the crash differs. Our last one occured in java.util.Hashmap.get(). Another common element is that they appear to occur after deserialisation.
Has anyone else had similar problems?
Any help much appreciated.
Thanks,
Dave
Thread Stack Trace:
at java/util/HashMap.get(Optimized Method)@0x1c9b350
at java/io/ObjectStreamClass.lookup(Optimized Method)@0x7e6fbde
at java/io/ObjectStreamClass.initProxy(Unknown Source)@0x5feef04
at java/io/ObjectInputStream.readProxyDesc(Optimized Method)@0xaa7b0ec
at java/io/ObjectInputStream.readObject(Optimized Method)@0xa7bee63
at java/rmi/MarshalledObject.get(Optimized Method)@0xbfe238c
at org/jnp/interfaces/MarshalledValuePair.get(MarshalledValuePair.java:28)@0x263b571
at org/jnp/interfaces/NamingContext.lookup(Optimized Method)@0xb08cfe1
at org/jnp/interfaces/NamingContext.lookup(Optimized Method)@0xbf57275Thanks for the reply.
The version is
BEA WebLogic JRockit(TM) 1.4.2_04 JVM (build ari-29212-20040415-1332-linux-ia32, Native Threads, GC strategy: parallel)
I have opened a support case but here is the contents of the dump file. Thanks again for any help.
===== BEGIN DUMP =============================================================
JRockit dump produced after 2 days, 03:50:51 on Tue Jan 18 22:27:28 2005
Additional information is available in:
/home/ebask11/rel_15_59912-jb-3.2.3-2.19/bin/jrockit.26704.dump
/home/ebask11/rel_15_59912-jb-3.2.3-2.19/bin/core
Please send the file(s), information about your system
setup and the program you were running to [email protected]. Thank you.
Error Message: Null pointer exception in native code
Signal info : si_signo=11, si_code=1
Version : BEA WebLogic JRockit(TM) 1.4.2_04 JVM ari-29212-20040415-1332-linux-ia32
Threads / GC : Native Threads, GC strategy: parallel
: mmHeap->data = 0x20000000, mmHeap->top = 0x40000000
: mmStartCompaction = 0x20000000, mmEndCompaction = 0x22800000
Number CPUs : 2
Tot Phys Mem : 4107608064
OS version : Red Hat Linux release 7.3 (Valhalla)
Linux version 2.4.22ow1np-ht (root@devbgb0211) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #8 SMP Mon Oct 13 19:54:55 GMT 2003
State : JVM is running
Command Line : -Djava.class.path=. -Djava.security.manager=java.rmi.RMISecurityManager -Xmx512m -Xms512m -Djmx.host=prdlog2 -Duser.timezone=GMT -Dprogram.name=run.sh -Djava.class.path=/home/ebask11/live_jboss/server/default/syslib:/home/ebask11/live_jboss/server/default/syslib/jce.zip:/home/ebask11/live_jboss/bin/run.jar:/usr/java/bea/jdk/1.4.2/lib/tools.jar -Dsun.java.command=org.jboss.Main -c default
Environment : JAVA_HOME=/usr/java/bea/jdk/1.4.2, java.home=/usr/java/bea/jdk/1.4.2/jre, java.class.path=/home/ebask11/live_jboss/server/default/syslib:/home/ebask11/live_jboss/server/default/syslib/jce.zip:/home/ebask11/live_jboss/bin/run.jar:/usr/java/bea/jdk/1.4.2/lib/tools.jar, java.library.path=/usr/java/bea/jdk/1.4.2/jre/lib/i386/jrockit:/usr/java/bea/jdk/1.4.2/jre/lib/i386:/usr/java/bea/jdk/1.4.2/jre/../lib/i386
C Heap : Good; no memory allocations have failed
Registers:
EAX = 33115950 EBX = 25252a50
ECX = 00000002 EDX = 200da968
ESI = 21aba548 EDI = 21aba548
ESP = 0ac20000 EIP = 00000000
EBP = 21aba548 EFL = 00010206
CS = 0023 DS = 002b ES = 002b
SS = 002b FS = 0357 GS = 0357
Stack:
0ac20000 :01c9b350 200da968 200da970 200da930 200da920 07e6fbde
0ac20018 :2233ff08 0adc6cb8 200da936 00000000 00000000 21aba548
0ac20030 :00000000 25a3c710 24f42f30 200da920 05feef04 21aba548
0ac20048 :00000000 200f35d8 0aa7b0ec 00000000 271a5318 00000000
0ac20060 :00000010 00000000 24f19bc8 24f19590 271a5318 0adc6cb8
0ac20078 :271a5368 245b2710 271a5318 00000001 00000000 200f35d8
0ac20090 :24f42f30 00000000 21aba548 00000000 00000000 0adc6cb8
0ac200a8 :0a7bee63 24f1a3b0 00000000 0aa8003e 24f19d78 245b2710
0ac200c0 :24f1a3f0 0adc6cb8 0b0df368 00000001 24f19d10 ffffffff
0ac200d8 :24f19cc8 24f19d10 0bfe238c 00000003 205e68f8 245b2710
0ac200f0 :245b2710 245b26f8 245b1e70 00000000 0b08d69b 00000000
0ac20108 :205e1590 245b1e70 24f14a70 24f14428 24f144e0 24f14740
0ac20120 :0000000a 24f14428 0bf57275 00000003 0aa7712b 00000030
0ac20138 :258174e0 0adc6cb8 00000000 24f13fe0 00000000 258339f8
0ac20150 :87effc53 00000101 0378e84b 258174e0 0378e525 24f13fe0
0ac20168 :2585f4e8 2585f4e8 0378e21d 2a280920 24f13fe0 00000001
0ac20180 :24f128a8 00000000 00000000 2585f4e8 24ed15c8 0378db6f
0ac20198 :24ed1598 24ed16a0 05ed9299 24ed1730 20085640 24ed15c8
0ac201b0 :24eb9bc0 00000000 24ed1730 24e9c5a0 24ed15c8 00000000
0ac201c8 :24eb9b80 391182e8 24e9c5b0 00000000 391182e8 08006231
0ac201e0 :00000000 24e9c5a0 24e9c5b0 08005bea 00000000 24e9c5a0
0ac201f8 :24e9c5b0 31a26218 24ec68e8 00000027 0adc6cb8 0000001d
0ac20210 :00000000 24e9c5a0 24ec6848 27986b80 24e9c5a0 24e9c5b0
0ac20228 :27968208 24e9c5a0 24e9c5a0 31a263b0 0800fe11 24e9c5b0
0ac20240 :368dd1e0 24e9c5b0 24e9c5a0 00c448bc 04ab64f4 24e9c5b0
0ac20258 :0470ae51 24e9c5b0 24ec62e8 ffffffff 24e9c5b0 368dd1e0
0ac20270 :ffffffff 00000002 3196a2f8 24e9c5a0 24eb9440 0bd5d31a
0ac20288 :24e9c5b0 24eb9440 0bfa0e4a 24e9c5b0 24e9c5a0 24e9c5b0
0ac202a0 :03fb5c09 24e9c5b0 24ec6238 00000000 00000000 00000000
0ac202b8 :00000000 22921d98 24ec6368 25a3c710 03fbdb83 24e9c5b0
0ac202d0 :03fbdb67 24e9c5b0 0c9ff12c 0adc6cb8 27a28c98 042e5528
0ac202e8 :00000000 24ec6368 24ec6368 0c0b7c86 24e9c5b0 03fbda44
0ac20300 :24e9c5a0 24e9c5b0 24e9c5a0 24eb9440 24e9c5a0 24eb9440
0ac20318 :04ab631e 24e9c5b0 24e9c5b0 368eb0c8 254cd0b0 24e9c5a0
0ac20330 :24e9c5a0 24eb9440 0bfa0f23 24e9c5b0 24eb9440 24e9c5b0
0ac20348 :0adc6d44 24e9c5b0 368eb0c8 368eb0c8 368eb0c8 368eb0c8
0ac20360 :368eb0c8 22921d98 24eb9610 25a3c710 03fbdb83 24e9c5b0
0ac20378 :03fbdb67 24e9c5b0 0c9ff12c 0adc6cb8 254c4c70 00000000
0ac20390 :00000000 24eb9610 24eb9610 0c0b7c86 24e9c5b0 03fbda44
0ac203a8 :24e9c5a0 24e9c5b0 24e9c5a0 24eb9440 00000000 00000001
0ac203c0 :03fbcc0d 24e9c5b0 07fbaf2f 00000000 24eb9440 3196a3f8
0ac203d8 :3196a070 24e9c5a0 00000000 24e9c5b0 368dd1e0 24e9c5b0
0ac203f0 :24e44550 24798b78 00000101 87effc52 00000000 3196a268
0ac20408 :07fbc349 24e44550 24eb9430 24eb9430 24e44550 02787424
0ac20420 :24e44550 3196a070 24798b78 0bf9dde1 24e44550 03fbc71d
0ac20438 :24e44550 24e44550 24e9c698 2f5c12c0 2f5c1cd8 00000004
0ac20450 :2f5c14a8 07fbc349 24e44550 24e9cc48 00000000 2f5c1d38
0ac20468 :03fbc428 24e44550 24798b78 24e9cc48 24e44550 00000004
0ac20480 :2f5c14a8 07fbc371 24e44550 24e9cc48 00000004 09bc5570
0ac20498 :03fb98ad 24e44550 200a4008 3419b0e0 00000000 24e9c698
0ac204b0 :24798b78 24e44550 24798b78 24e44550 24e9cc48 319fd4e0
0ac204c8 :00000004 2f5c14a8 07fbc371 24e44550 24e9cc48 24798b78
0ac204e0 :24798b78 03fb8a7a 24e44550 3419f128 24e9cc48 24e44550
0ac204f8 :00000004 2f5c14a8 07fbc371 24e44550 24e9cc48 31a34d88
0ac20510 :00000101 03fb8934 24e44550 24798b78 87effc52 24e9cc48
0ac20528 :00000004 2f5c14a8 07fbc371 24e44550 24e9cc48 24e9cc48
0ac20540 :24e44550 02787424 24e44550 2f5c12c0 24e44550 0bf9dde1
0ac20558 :24e44550 03fb8875 24e44550 24798b78 00000000 2f5c12c0
0ac20570 :0bf23542 24e44550 0adc6cb8 22961f38 24798b78 24e9c5c8
0ac20588 :25a3c710 25a3c710 22921d98 24e44550 00000004 229629e0
0ac205a0 :07fbc349 24e44550 24e9c688 24798b78 24e44550 0bf2376a
0ac205b8 :24e44550 00000000 229496f0 00000004 229629e0 07fbc371
0ac205d0 :24e44550 24e9c688 24e44550 0280d39c 0278d370 24e44550
0ac205e8 :00000040 24798b78 27f4b688 00000030 229490a0 00000004
0ac20600 :229629e0 07fbc371 24e44550 24e9c688 3196a070 00000000
0ac20618 :0bfa040d 24e44550 00000000 00000000 0ad52e9c 22965b90
0ac20630 :24798b78 00000008 00000000 200c7480 00000000 000e3274
0ac20648 :00000000 00000000 24798b78 24e44550 24e9c688 00000004
0ac20660 :229629e0 07fbc371 24e44550 24e9c688 00000004 24e9c688
0ac20678 :0bf9c372 24e44550 0adc6cb8 25a3c710 00000019 228a5da0
0ac20690 :00000101 87effc52 01c9b3aa 7025a84b 229127d8 22911f18
0ac206a8 :229127d8 0bf9e5eb 0adc6cb8 22965b90 24798b78 246934c8
0ac206c0 :22962a40 24e44550 00000000 00000004 229629e0 07fbc371
0ac206d8 :24e44550 24e9c688 24e9c688 24e44550 02787424 24e44550
0ac206f0 :22961f38 0233875c 0bf9dde1 24e44550 02787686 24e44550
0ac20708 :24798b78 24e44550 22917728 00000000 22912938 07fbc349
0ac20720 :24e44550 24e9c590 24e9c590 24e44550 02787424 24e44550
0ac20738 :247963d8 24798b78 0bf9dde1 24e44550 0275384d 24e44550
0ac20750 :24791f18 24e44550 24e44550 2298ae60 24791348 24791f18
0ac20768 :0000000a 247963d8 0bf987e2 24791f18 24798b60 0adc6cb8
0ac20780 :24791348 247912c8 00000055 0adc6cb8 24791b38 24796468
0ac20798 :247919e0 24791f18 24791348 22981450 24e11ad0 2298d1e0
0ac207b0 :247912c8 247912c8 0adc6cb8 0bf993f2 24e11ad0 247912c8
0ac207c8 :24e11b10 0000000d 07cbea65 00000000 0ad52e9c 25a3c710
0ac207e0 :24e11ad0 247912c8 247912b0 22981450 41ed8d4e 00000002
0ac207f8 :22981d60 25a3c710 25a3c6e8 22981450 02751c10 24e11ad0
Code:
Loaded modules:
(* denotes the module causing the exception)
0x08048000-0x0804cd66 /usr/java/bea/jdk/1.4.2/bin/java
0x00127000-0x0013343a /lib/i686/libpthread.so.0
0x0013c000-0x0015ca02 /lib/i686/libm.so.6
0x0015e000-0x0015fbac /lib/libdl.so.2
0x42000000-0x4212b962 /lib/i686/libc.so.6
0x00161000-0x003293cf /usr/java/bea/jdk/1.4.2/jre/lib/i386/jrockit/libjvm.so
0x003c7000-0x003cff0d /lib/libnss_files.so.2
0x00c29000-0x00c29ffa /usr/lib/gconv/ISO8859-1.so
0x00c2b000-0x00c3afa5 /usr/java/bea/jdk/1.4.2/jre/lib/i386/libverify.so
0x01211000-0x012309cf /usr/java/bea/jdk/1.4.2/jre/lib/i386/libjava.so
0x01233000-0x0124485a /lib/libnsl.so.1
0x01505000-0x0150e012 /lib/libnss_nisplus.so.2
0x01625000-0x01627c71 /lib/libnss_dns.so.2
0x01b0e000-0x01b1b990 /lib/libresolv.so.2
0x00ddc000-0x00ddc6e9 /usr/java/bea/jdk/1.4.2/jre/lib/i386/librmi.so
0x0196e000-0x019715c1 /usr/java/bea/jdk/1.4.2/jre/lib/i386/libioser12.so
Java Thread ID = 0x00003500, lastJavaFrame = (nil), Name = TP-Processor32
Thread Stack Trace:
at java/util/HashMap.get(Optimized Method)@0x1c9b350
at java/io/ObjectStreamClass.lookup(Optimized Method)@0x7e6fbde
at java/io/ObjectStreamClass.initProxy(Unknown Source)@0x5feef04
at java/io/ObjectInputStream.readProxyDesc(Optimized Method)@0xaa7b0ec
at java/io/ObjectInputStream.readObject(Optimized Method)@0xa7bee63
at java/rmi/MarshalledObject.get(Optimized Method)@0xbfe238c
at org/jnp/interfaces/MarshalledValuePair.get(MarshalledValuePair.java:28)@0x263b571
at org/jnp/interfaces/NamingContext.lookup(Optimized Method)@0xb08cfe1
at org/jnp/interfaces/NamingContext.lookup(Optimized Method)@0xbf57275
at javax/naming/InitialContext.lookup(Optimized Method)@0xaa7712b
at com/lastminute/ebasket/basket/JNDIHostedEJBObjectsFactory.lookupBasketHome(JNDIHostedEJBObjectsFactory.java:352)@0x378e84b
at com/lastminute/ebasket/basket/JNDIHostedEJBObjectsFactory.findBasket(JNDIHostedEJBObjectsFactory.java:310)@0x378e21d
at com/lastminute/ebasket/basket/JNDIHostedEJBObjectsFactory.findBasket(JNDIHostedEJBObjectsFactory.java:250)@0x378db6f
at com/lastminute/ebasketx/ui/servlet/AddToBasketAction.perform(AddToBasketAction.java:101)@0x5ed9299
at org/apache/struts/action/Action.execute(Optimized Method)@0x8006231
at org/apache/struts/action/RequestProcessor.processActionPerform(RequestProcessor.java:484)@0x5ed8fe1
at org/apache/struts/action/RequestProcessor.process(Optimized Method)@0x8004b71
at org/apache/struts/action/ActionServlet.process(Optimized Method)@0x800fe11
at org/apache/struts/action/ActionServlet.doGet(ActionServlet.java:507)@0x4ab64f4
at javax/servlet/http/HttpServlet.service(HttpServlet.java:740)@0x470ae51
at javax/servlet/http/HttpServlet.service(Optimized Method)@0xbd5d31a
at org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(Optimized Method)@0xbfa0e4a
at org/apache/catalina/core/ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)@0x3fbdb83
at org/apache/catalina/core/ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)@0x3fbdb67
at jrockit/vm/AccessController.do_privileged_exc(Optimized Method)@0xc9ff12c
at jrockit/vm/AccessController.doPrivileged(Optimized Method)@0xc0b7c86
at org/apache/catalina/core/ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)@0x3fbda44
at com/lastminute/ebasketx/ui/helper/SessionFilter.doFilter(SessionFilter.java:56)@0x4ab631e
at org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(Optimized Method)@0xbfa0f23
at org/apache/catalina/core/ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)@0x3fbdb83
at org/apache/catalina/core/ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)@0x3fbdb67
at jrockit/vm/AccessController.do_privileged_exc(Optimized Method)@0xc9ff12c
at jrockit/vm/AccessController.doPrivileged(Optimized Method)@0xc0b7c86
at org/apache/catalina/core/ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)@0x3fbda44
at org/apache/catalina/core/StandardWrapperValve.invoke(StandardWrapperValve.java:256)@0x3fbcc0d
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc349
at org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:480)@0x2787424
at org/apache/catalina/core/ContainerBase.invoke(Optimized Method)@0xbf9dde1
at org/apache/catalina/core/StandardContextValve.invoke(StandardContextValve.java:191)@0x3fbc71d
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc349
at org/jboss/web/tomcat/security/JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)@0x3fbc428
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
at org/apache/catalina/authenticator/AuthenticatorBase.invoke(AuthenticatorBase.java:494)@0x3fb98ad
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
at org/apache/catalina/valves/CertificatesValve.invoke(CertificatesValve.java:246)@0x3fb8a7a
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
at org/jboss/web/tomcat/tc4/statistics/ContainerStatsValve.invoke(ContainerStatsValve.java:76)@0x3fb8934
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
at org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:480)@0x2787424
at org/apache/catalina/core/ContainerBase.invoke(Optimized Method)@0xbf9dde1
at org/apache/catalina/core/StandardContext.invoke(StandardContext.java:2417)@0x3fb8875
at org/apache/catalina/core/StandardHostValve.invoke(Optimized Method)@0xbf23542
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc349
at org/apache/catalina/valves/ErrorDispatcherValve.invoke(Optimized Method)@0xbf2376a
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
at org/apache/catalina/valves/ErrorReportValve.invoke(ErrorReportValve.java:172)@0x278d370
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
at org/jboss/web/tomcat/security/SecurityAssociationValve.invoke(Optimized Method)@0xbfa040d
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
at org/apache/catalina/valves/AccessLogValve.invoke(Optimized Method)@0xbf9c372
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc371
at org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:480)@0x2787424
at org/apache/catalina/core/ContainerBase.invoke(Optimized Method)@0xbf9dde1
at org/apache/catalina/core/StandardEngineValve.invoke(StandardEngineValve.java:174)@0x2787686
at org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Optimized Method)@0x7fbc349
at org/apache/catalina/core/StandardPipeline.invoke(StandardPipeline.java:480)@0x2787424
at org/apache/catalina/core/ContainerBase.invoke(Optimized Method)@0xbf9dde1
at org/apache/coyote/tomcat4/CoyoteAdapter.service(CoyoteAdapter.java:197)@0x275384d
at org/apache/jk/server/JkCoyoteHandler.invoke(Optimized Method)@0xbf987e2
at org/apache/jk/common/HandlerRequest.invoke(Optimized Method)@0xbf993f2
at org/apache/jk/common/ChannelSocket.invoke(ChannelSocket.java:673)@0x2751c10
at org/apache/jk/common/ChannelSocket.processConnection(Optimized Method)@0x7fb5e35
at org/apache/jk/common/SocketConnection.runIt(Optimized Method)@0xbf99f01
at org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run(ThreadPool.java:677)@0x224f434
at java/lang/Thread.run(Optimized Method)@0x7e7473a
at java/lang/Thread.startThreadFromVM(Optimized Method)@0x1c9c0da
--- End of stack trace
Additional information is available in:
/home/ebask11/rel_15_59912-jb-3.2.3-2.19/bin/jrockit.26704.dump
/home/ebask11/rel_15_59912-jb-3.2.3-2.19/bin/core
Please send the file(s), information about your system
setup and the program you were running to [email protected]. Thank you. -
Null pointer exception in native code. error 52 in Weblogic8.1
Hi all,
I'm using WLS 8.1SP5 with 1.4.2_08 and having this dump once a day, when people is working. I tryed google, but no luck. Can someone can help please?
===== BEGIN DUMP =============================================================
JRockit dump produced after 5 days, 00:39:42 on Mon Oct 01 16:59:00 2007
Additional information is available in:
D:\web\bea\user_projects\domains\APIA_Prod\jrockit.2188.dump
D:\web\bea\user_projects\domains\APIA_Prod\jrockit.2188.mdmp
If you see this dump, please open a support case with BEA and
supply as much information as you can on your system setup and
the program you were running. You can also search for solutions
to your problem at http://forums.bea.com in
the forum jrockit.developer.interest.general.
Error code: 52
Error Message: Null pointer exception in native code
Version : BEA WebLogic JRockit(TM) 1.4.2_08 JVM R24.5.0-61 ari-49095-20050826-1856-win-ia32
Threads / GC : Native Threads, GC strategy: parallel
: mmHeap->data = 0x00B60000, mmHeap->top = 0x40B60000
: mmStartCompaction = 0x1EB60000, mmEndCompaction = 0x23B60000
CPU : Intel Pentium 4 (HT)
Number CPUs : 8
Tot Phys Mem : 4025999360
OS version : Microsoft Windows Server 2003 Service Pack 1 (Build 3790)
State : JVM is shutting down
Command Line : -Djava.class.path=.;C:\Program Files\Java\j2re1.4.2_05;C:\Program Files\Java\j2re1.4.2_05\lib;C:\Program Files\Java\j2re1.4.2_05\lib\tools.jar -Djrockit.launcher.type=jrockit.shipment -Xms1024m -Xmx1024m -Xgc:parallel -Xcleartype:local -Dweblogic.management.server=http://10.128.12.23:7001 -Dbea.home=D:\web\bea -Dweblogic.RootDirectory=D:\web\bea\user_projects\domains\APIA_Prod -Djava.class.path=.;D:\web\bea\jdk142_08\lib\tools.jar;D:\web\bea\WEBLOG~1\server\lib\weblogic_sp.jar;D:\web\bea\WEBLOG~1\server\lib\weblogic.jar -Djava.security.policy==D:\web\bea\WEBLOG~1\server\lib\weblogic.policy -Dweblogic.Name=Apia_Svr1 -Dweblogic.system.BootIdentityFile=D:\web\bea\WEBLOG~1\common\nodemanager\NodeManagerLogs\NodeManagerInternal\bootFile_APIA_Prod_Apia_Svr1 -Dweblogic.system.NodeManagerBoot=true -Dweblogic.system.NodeManagerAddress=null::5555 -Dweblogic.nodemanager.ServerStartTime=1190834358456 -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Dsun.java.command=weblogic.Server
Environment : JAVA_HOME=C:\Program Files\Java\j2re1.4.2_05, java.home=d:\web\bea\jrockit81sp5_142_08\jre, java.class.path=.;D:\web\bea\jdk142_08\lib\tools.jar;D:\web\bea\WEBLOG~1\server\lib\weblogic_sp.jar;D:\web\bea\WEBLOG~1\server\lib\weblogic.jar, java.library.path=d:\web\bea\jrockit81sp5_142_08\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:\web\bea\WEBLOG~1\server\bin;D:\web\bea\jdk142_08\bin;D:\web\bea\jdk142_08\jre\bin;C:\Program Files\VERITAS\NetBackup\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\j2re1.4.2_05\bin
C Heap : Good; no memory allocations have failed
Registers (from context struct at 0x41D6F488/0x41D6F5A4):
Converted EIP: 41eafe45
EAX = 00001e90 EBX = 009db42c
ECX = 003c1e90 EDX = 00000000
ESI = 71c14280 EDI = 00000000
EIP = 41eafe45 ESP = 41d6f870
EBP = 41d6f880 EFL = 00010a03
CS = 001b DS = 0023 ES = 0023
SS = 0023 FS = 003b GS = 0000
Stack:
41d6f870 :00000000 00000000 003c95a8 003c1e90 00000000 004e91e1
41d6f888 :0000008f 00000000 41d6f8c4 009db42c 00000001 00000000
41d6f8a0 :41b802e0 4cfa3940 012b5068 4d87a5cc 012b5068 00000000
41d6f8b8 :012b5068 41b81710 4ccfcdda 009b9ba8 004e9244 012b5310
41d6f8d0 :0054deca 012b5315 4ccfc945 0000008f 50a0f1e8 009db42c
41d6f8e8 :00000000 012b5258 4ccfcb33 012b5315 0000008f 012b5258
41d6f900 :4ccfca44 012b525d 00000000 009b9ba8 41d6f918 41b823f8
41d6f918 :4ccfc980 00553ff5 ffffffff 00000010 00000000 41d6f9e4
41d6f930 :4d1126e8 009b9c34 41d6fa48 41d6f978 009b9c34 437faab0
41d6f948 :fffffffe 00000002 fffffffe 00000000 41d6f978 00570b50
41d6f960 :00000000 009b9ba8 00090000 009b9c34 00000001 7c8302e7
41d6f978 :00000000 00570b50 fffffff8 00000001 0000008f 0000008c
41d6f990 :437faaf0 00000000 00000000 00000000 00000000 41d6f918
41d6f9a8 :41b823c0 ffffffff 437f9fc0 437faab0 009b9c34 4ccfc980
41d6f9c0 :0000008f 41d6f918 00000001 00000001 00000010 00000000
41d6f9d8 :00000000 41d6f918 009b9c34 009b9ba8 00533bb1 009b9c34
41d6f9f0 :50a0f1b8 4d1126e8 00000000 41d6fa44 005539c0 41d6fa48
41d6fa08 :009b9ba8 437f9fc0 41d6fa50 009b9c34 0059065c 50a0f1b8
41d6fa20 :00535583 009b9c34 437faab0 00000000 41d6fa44 005539c0
41d6fa38 :00000001 41d6fa48 00533729 41d6fa68 00000000 00000000
41d6fa50 :0000008f 00569db2 009b9c34 437f9fd4 437faab0 0000008f
41d6fa68 :009b9ba8 009b9c34 0000000f 00000002 00569ef7 0000008f
41d6fa80 :009b9ba8 0056a38d 009b9ba8 009b9ba8 41d6ff80 009b9ba8
41d6fa98 :7ffde000 009b9c34 41d6ff98 00525ca0 00572cf0 00000000
41d6fab0 :00000000 00000000 00000000 00000000 00000000 00000000
41d6fac8 :00000000 00000000 00000000 00000000 00000000 00000000
41d6fae0 :00030178 00000269 00000000 00000000 00000000 00000000
41d6faf8 :00000000 00000000 00000000 00000000 00000000 00000000
41d6fb10 :00000000 00000000 00000000 00000000 00000000 00000000
41d6fb28 :00000000 00000000 00037c28 00000000 00000000 00000000
41d6fb40 :00000000 00000013 00000000 00037c20 00030168 00000042
41d6fb58 :00037c20 00000013 00030178 00000000 00000098 00000000
41d6fb70 :00030000 009d6850 00000210 4100fbbc 00000098 4100f980
41d6fb88 :00380000 41d6f988 00000000 41d6fbd4 7c82f680 7c82fb28
41d6fba0 :ffffffff 7c82fb23 7c3423aa 771f123c 00000000 00000002
41d6fbb8 :771f0000 41d6fc10 00095e70 00000001 00000000 41d6fca8
41d6fbd0 :771f46c9 771f1240 ffffffff 771f123c 771f11e8 771f0000
41d6fbe8 :00000002 00000000 00000000 41d6fc10 00000001 41d6fc1c
41d6fc00 :7c82257a 771f0000 00000001 00000000 00000001 00000000
41d6fc18 :00097f98 00000001 00000000 41d6fcb8 7c81a81b 7c889d94
41d6fc30 :7c81b26f 00000000 7ffdc000 00000000 00000000 00000000
41d6fc48 :00000000 00000000 00000000 00000000 00000000 00000000
41d6fc60 :00000000 00000024 00000001 00000000 00000000 00000070
41d6fc78 :ffffffff ffffffff 7c81a7dc 7c81a7a4 00000000 00000000
41d6fc90 :00097f98 771f11a0 00000418 000000f5 009dc120 41d6fecc
41d6fca8 :7c82fda6 7c82fb23 0000040c 0000040c 009b9ba8 7c822054
41d6fcc0 :7c81b23f 41d6fd28 00000000 009dbad8 00000000 00000000
41d6fcd8 :00000000 00000000 00000000 00000000 00000000 00000000
41d6fcf0 :00000000 00000000 00000000 41d6fcc4 00000000 41d6fff4
41d6fd08 :7c82f680 009dc530 ffffffff 7c81b23f 7c8211b4 0000000c
41d6fd20 :41d6fd28 00000001 00010017 00000000 00000000 00380178
41d6fd38 :00000000 00000000 00000000 00000005 f7547000 0000010d
41d6fd50 :000007ff 00000001 624e4d43 00000060 ae19faa4 009dc120
41d6fd68 :e4d11360 e24e4d43 00000005 0000000e e310e008 ffffffff
41d6fd80 :3b9aca07 e33dd7e8 3b9aca07 3b9aca07 00380178 1a30eb0a
41d6fd98 :009dc538 8093d69b 009d99e8 00000000 00380178 c0000034
41d6fdb0 :808ad480 00000000 00000038 009d99f0 00000023 00000000
41d6fdc8 :00000000 009dbad8 00000000 00000000 0056f660 00000000
41d6fde0 :77e6b5f3 0000001b 00000200 41d6fffc 00000023 00000698
41d6fdf8 :0000076a e47bbbf0 00000090 00000006 00000005 f7547000
41d6fe10 :ae19fbd4 e131ec08 ae19fbd8 d3f0fe22 d3f0fe22 000000f5
41d6fe28 :8093cb16 e131ec08 e105bf1c 00000025 ae19fbd0 009d99f0
41d6fe40 :e105bfb0 ae19fbd4 8093cb6e 3b9aca07 e131ec08 8083a8f5
41d6fe58 :00000000 00000000 80a78be3 badb0d00 80010031 00000005
41d6fe70 :009dc120 00000005 c0502000 009dccd8 77ce8221 00000083
41d6fe88 :00000000 009dc118 ae19fba8 00000418 009dc118 009dc120
41d6fea0 :00380178 00000001 00000418 0000ad58 00380000 41d6fcb0
41d6feb8 :f772fa00 41d6fefc 7c82f680 7c82fb28 ffffffff 7c82fb23
41d6fed0 :7c3416b3 00380000 00000000 7c3416b8 0000040c 00000000
41d6fee8 :009b9ba8 ffffffff 41d6ff3c 41d6fee0 41d6ff40 41d6ff98
41d6ff00 :7c34240d 7c37a2a8 ffffffff 7c3416b8 7c3416db 0000040c
41d6ff18 :7c3416f8 0000040c 00000000 00504b4d 0000040c 0107e577
41d6ff30 :41d6ff6c 0057de91 009b9ba8 009b9ba8 00003000 00000140
41d6ff48 :41d6ff64 41d6ffa0 0056f1f9 41c70000 00003000 009b9ba8
41d6ff60 :009db8b0 009b9ba8 0056e9c2 7c821dd4 009b9ba8 009b9ba8
41d6ff78 :009b9ba8 00572ce9 41d6ffa0 00572ded 77e6eccd 009dbad8
41d6ff90 :009dbad8 7ffde000 41d6ffdc 00525ca0 41d6ffec 0056f6c7
41d6ffa8 :009b9ba8 00000000 00000000 00000740 009dbaf4 77e6608b
41d6ffc0 :00000740 00000000 00000000 009dbad8 c9792963 41d6ffc4
41d6ffd8 :000d4193 ffffffff 77e6b7d0 77e66098 00000000 00000000
Code:
41eafd45 :00000000 00000000 00000000 00000000 00000000 00000000
41eafd5d :00000000 00000000 ff4e4be0 00ffffff 007ffdc0 00000000
41eafd75 :34001590 0041eafd 98000000 d041eaff 0077e6b7 0077e6bb
41eafd8d :a4000000 4241eafd 2877e6ba ff000007 00ffffff 68000000
41eafda5 :0c41d6f8 280056e6 ff000007 0fffffff 48001d1a 8000aece
41eafdbd :00006093 987ffda0 c0005710 98004fe0 38009da3 0041eafe
41eafdd5 :40000000 9841eafe f8009da3 0001c83c e0000000 0001c83c
41eafded :17000000 80004f66 38006093 3841eafe 2041eafe 00f7c4ca
41eafe05 :da7ffda0 20004f20 c0f7c4ca 00004fe0 00000000 b5000000
41eafe1d :98004f2e 98009da3 00009da3 9841eaff 58009da3 00303fe0
41eafe35 :00000000 50000000 0000570b 98000000 00009da3 00000000
41eafe4d :80000000 f5006093 388083a8 5041eafe 0000570b 98000000
41eafe65 :31009da3 00800100 60000000 00005c0e 58000000 5041eafe
41eafe7d :0000570b 98000000 00009da3 00000000 d0000000 00005c0e
41eafe95 :31000000 00800100 00000000 00000000 ff000000 00ffffff
41eafead :00000000 cc000000 0080a78b e0f7757a 78adbbab 5041eafe
41eafec5 :0000570b 98000000 b7009da3 608083e6 2888736a 90005c0e
41eafedd :7888736a 5041eafe 0000570b 98000000 3c009da3 0041eaff
41eafef5 :20000000 00005c0f 80000010 f041eaff 0000572c 84000000
41eaff0d :917c8218 ff77e41a 3cffffff 4041eaff 4041eaff 64000001
41eaff25 :f041eaff 6c009de2 2d41eaff 0600540a 98000000 f0009da3
41eaff3d :00009de2 40000030 64000001 a041eaff f941eaff 000056f1
Loaded modules:
(* denotes the module causing the exception)
0x7c800000-0x7c8bffff C:\WINDOWS\system32\ntdll.dll
0x77e40000-0x77f41fff C:\WINDOWS\system32\kernel32.dll
0x77f50000-0x77febfff C:\WINDOWS\system32\ADVAPI32.dll
0x77c50000-0x77ceefff C:\WINDOWS\system32\RPCRT4.dll
0x77ba0000-0x77bf9fff C:\WINDOWS\system32\MSVCRT.dll
0x00410000-0x0061afff d:\web\bea\jrockit81sp5_142_08\jre\bin\jrockit\jvm.dll
0x76aa0000-0x76accfff C:\WINDOWS\system32\WINMM.dll
0x77c00000-0x77c47fff C:\WINDOWS\system32\GDI32.dll
0x77380000-0x77411fff C:\WINDOWS\system32\USER32.dll
0x7c8d0000-0x7d0d3fff C:\WINDOWS\system32\SHELL32.dll
0x77da0000-0x77df1fff C:\WINDOWS\system32\SHLWAPI.dll
0x71c00000-0x71c16fff C:\WINDOWS\system32\WS2_32.dll
0x71bf0000-0x71bf7fff C:\WINDOWS\system32\WS2HELP.dll
0x7c340000-0x7c395fff C:\WINDOWS\system32\MSVCR71.dll
0x71bc0000-0x71bc7fff C:\WINDOWS\system32\rdpsnd.dll
0x771f0000-0x77200fff C:\WINDOWS\system32\WINSTA.dll
0x71c40000-0x71c97fff C:\WINDOWS\system32\NETAPI32.dll
0x76b70000-0x76b7afff C:\WINDOWS\system32\PSAPI.DLL
0x77420000-0x77522fff C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.2778_x-ww_A8F04F11\comctl32.dll
0x76f50000-0x76f62fff C:\WINDOWS\system32\Secur32.dll
0x00b30000-0x00b48fff d:\web\bea\jrockit81sp5_142_08\jre\bin\java.dll
0x00b50000-0x00b5dfff d:\web\bea\jrockit81sp5_142_08\jre\bin\verify.dll
0x71b20000-0x71b60fff C:\WINDOWS\System32\mswsock.dll
0x76ed0000-0x76efefff C:\WINDOWS\system32\DNSAPI.dll
0x76f80000-0x76f87fff C:\WINDOWS\system32\rasadhlp.dll
0x42c30000-0x42c34fff D:\web\bea\weblogic81\server\bin\wlntio.dll
0x68000000-0x6802efff C:\WINDOWS\system32\rsaenh.dll
0x00a90000-0x00a95fff D:\web\bea\jrockit81sp5_142_08\jre\bin\ioser12.dll
0x02800000-0x028c0fff d:\web\bea\jrockit81sp5_142_08\jre\bin\dbghelp.dll
0x77b90000-0x77b97fff C:\WINDOWS\system32\VERSION.dll
Java Thread ID = 0x00000100, lastJavaFrame = 0x41D6F8E0, Name = (Signal Handler)
Thread Stack Trace:
at _vmShutdown+225()@0x004E91E1
at java/lang/Shutdown.halt(Native Method)@0x4CCFC910
at java/lang/Shutdown.exit(Unknown Source)@0x4CCFCA44You would need to get BEA support, after verifying you are on a supported configuration (http://edocs.bea.com/jrockit/jrdocs/suppPlat/supp_142.html).
Otherwise you may need to try update 10, or use Sun JVM. -
Profiling the loading and unloading of modules
Modules appear to be the ideal solution for building complex rich internet applications but first hand experience has also shown me that they can leak memory like nothing else. I've read anything and everything I could find about modules and module loading/unloading including of Alex Harui's blog post "What We Know About Unloading Modules" that reveals a number of potential leak causes that should be considered.
I've now created a simple soak test that repeatedly loads and unloads a specified module to help identify memory leaks using the profiler. However, even with the most basic of modules, I find that memory usage will steadily grow. What I'd like to know is what memory stuff is unavoidable flex overhead associated with the loading of modules and what memory stuff am I guilty for, for not cleaning up object references? I'd like to be able to establish some baseline values to which I will be able to compare future modules against.
I've been following the approach suggested in the Adobe Flash Builder 4 Reference page "Identifying problem areas"
"One approach to identifying a memory leak is to first find a discrete set of steps that you can do over and over again with your application, where memory usage continues to grow. It is important to do that set of steps at least once in your application before taking the initial memory snapshot so that any cached objects or other instances are included in that snapshot."
Obviously my set of discrete steps is the loading and unloading of a module. I load and unload the module once before taking a memory snapshot. Then I run my test that loads and unloads the module a large number of times and then take another snapshot.
After running my test on a very basic module for 200 cycles I make the following observations in the profiler:
Live Objects:
Class
Package (Filtered)
Cumulative Instances
Instances
Cumulative Memory
Memory
_basicModule_mx_core_FlexModuleFactory
201 (1.77%)
201 (85.17%)
111756 (24.35%)
111756 (95.35%)
What ever that _basicModule_mx_core_FlexModuleFactory class is, it's 201 instances end up accounting for over 95% of the memory in "Live Objects".
Loitering Objects:
Class
Package
Instances
Memory
Class
600 (9.08%)
2743074 (85.23%)
_basicModule_mx_core_FlexModuleFactory
200 (3.03%)
111200 (3.45%)
However this data suggests that the _basicModule_mx_core_FlexModuleFactory class is the least of my worries, only accounting for 3.45% of the total memory in "Loitering Objects". Compare that to the Class class with it's 600 instances consuming over 85% of the memory. Exploring the Class class deeper appears to show them all to be the [newclass] internal player actions.
Allocation Trace:
Method
Package (Filtered)
Cumulative Instances
Self Instances
Cumulative Memory
Self Memory
[newclass]
1200 (1.39%)
1200 (14.82%)
2762274 (13.64%)
2762274 (62.76%)
This appears to confirm the observations from the "Loitering Objects" table, but do I have any influence over the internal player actions?
So this brings me back to my original question:
What memory stuff is unavoidable flex overhead associated with the loading of modules and what memory stuff am I guilty for, for not cleaning up object references? If these are the results for such a basic module, what can I really expect for a much more complex module? How can I make better sense of the profile data?
This is my basic module soak tester (sorry about the code dump but there's not that much code really):
basicModule.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
layout="absolute" width="400" height="300"
backgroundColor="#0096FF" backgroundAlpha="0.2">
<s:Label x="165" y="135" text="basicModule" fontSize="20" fontWeight="bold"/>
</mx:Module>
moduleSoakTester.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
width="400" height="300" backgroundColor="#D4D4D4"
initialize="application_initializeHandler(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import mx.events.ModuleEvent;
[Bindable]
public var loadCount:int = -1;
[Bindable]
public var unloadCount:int = -1;
public var maxCycles:int = 200;
public var loadTimer:Timer = new Timer(500, 1);
public var unloadTimer:Timer = new Timer(500, 1);
protected function application_initializeHandler(event:FlexEvent):void
loadTimer.addEventListener(TimerEvent.TIMER_COMPLETE, loadTimer_timerCompleteHandler);
unloadTimer.addEventListener(TimerEvent.TIMER_COMPLETE, unloadTimer_timerCompleteHandler);
protected function loadModule():void
if(loadCount < maxCycles)
moduleLoader.url = [correctPath] + "/basicModule.swf";
moduleLoader.loadModule();
loadCount++;
protected function unloadModule():void
moduleLoader.unloadModule();
unloadCount++;
protected function load_clickHandler(event:MouseEvent):void
load.enabled = false;
loadModule();
unload.enabled = true;
protected function unload_clickHandler(event:MouseEvent):void
unload.enabled = false;
unloadModule();
run.enabled = true;
protected function run_clickHandler(event:MouseEvent):void
run.enabled = false;
moduleLoader.addEventListener(ModuleEvent.READY, moduleLoader_readyHandler);
moduleLoader.addEventListener(ModuleEvent.UNLOAD, moduleLoader_unloadHandler);
loadTimer.start();
protected function moduleLoader_readyHandler(event:ModuleEvent):void
unloadTimer.start();
protected function moduleLoader_unloadHandler(event:ModuleEvent):void
loadTimer.start();
protected function loadTimer_timerCompleteHandler(event:TimerEvent):void
loadModule();
protected function unloadTimer_timerCompleteHandler(event:TimerEvent):void
unloadModule();
]]>
</fx:Script>
<mx:ModuleLoader id="moduleLoader"/>
<s:VGroup x="20" y="20">
<s:HGroup>
<s:Button id="load" label="Load" click="load_clickHandler(event)" enabled="true"/>
<s:Button id="unload" label="Unload" click="unload_clickHandler(event)" enabled="false"/>
<s:Button id="run" label="Run" click="run_clickHandler(event)" enabled="false"/>
</s:HGroup>
<s:Label text="loaded: {loadCount.toString()}" fontSize="15"/>
<s:Label text="unloaded: {unloadCount.toString()}" fontSize="15" x="484" y="472"/>
</s:VGroup>
</s:Application>
Cheers,
-DamonEasiest way I've found to get your SDK version from within Builder is to add this: <mx:Label text="{mx_internal::VERSION}" />
http://blog.flexexamples.com/2008/10/29/determining-your-flex-sdk-version-number/
Peter -
How to run 64-bit native code with Java Web Start
This question has probably been asked many times, but I couldn't find anything in my searches.
How can I get Java Web Start on a Solaris client (Solaris 10 in this case, with JRE 1.5) to run a java application that includes a 64-bit native code library? The application downloads fine, including the jar file that has the native shared object, but when the native library is loaded by the java application, I get a "wrong ELF class: ELFCLASS64" error.
I assume that is because Web Start is invoking the 32-bit java VM, which can't load a 64-bit library. I tried configuring Java Web Start to use the 64-bit VM (by setting the path to java to ".../jre/bin/sparcv9/java" in the javaws console) but then I get an error that says "Can't load library: .../jre/lib/sparcv9/libdeploy.so".
Does Java Web Start support 64-bit native code, and if so, what do I need to do differently?
Thanks.No it can't. On the Sun download page of the JRE it says that 64 Bit systems need to use the 32 Bit JRE to execute Plugins - this might be the same for Web Start apps.
-
The crash happened outside the java virtual machine in native code
Hi,
I have a biometric device with which I am given some C++ dlls. I am trying to call methods inside these using java (jna). I am loading the dll "zkemsdk.dll+" as follows:
zkemkeeper INSTANCE1 = (zkemkeeper)Native.loadLibrary("zkemsdk", zkemkeeper.class);//zkemsdk is the dll, I am loading the dll here.
Then, I am calling the function:
zkemkeeper.INSTANCE1.Z_Connect_NETEX("ip address",4370);//Z_Connect_NETEX is a function inside zkemsdk.dll
This returns me true or false based on whether am connected to the biometric device or not.Thus I am able to invoke this method without issues. But for other methods inside the dll, run time exception is thrown in console:
Can someone help me resolve this issue. ??? Following is the content of the log file generated.
# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0351fe3b, pid=1664, tid=3832
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [zkemsdk.dll+0xfe3b]
# If you would like to submit a bug report, please visit:
# http://www.java.net/external?url=http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
--------------- T H R E A D ---------------
Current thread (0x003a9000): JavaThread "main" [_thread_in_native, id=3832, stack(0x008c0000,0x00910000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000106
Registers:
EAX=0x0090f7c4, EBX=0x00000001, ECX=0x00000000, EDX=0x00000001
ESP=0x0090f7b4, EBP=0x0090f848, ESI=0x00000096, EDI=0x003a9000
EIP=0x0351fe3b, EFLAGS=0x00010216
Top of Stack: (sp=0x0090f7b4)
0x0090f7b4: 00000000 0090f930 000003fc 00000103
0x0090f7c4: 0090f800 6d9532d0 373e92a0 00912ec5
0x0090f7d4: 00000401 0090f7d8 369860d1 0090f800
0x0090f7e4: 37390050 00000000 37390f90 00000000
0x0090f7f4: 0090f800 0090f930 003a9000 0090f830
0x0090f804: 10008fd8 0090f840 0090f930 00000008
0x0090f814: 0090f88c 0090fa28 0090f8f4 0090f848
0x0090f824: eb53f637 0351ffdc 00000096 00000003
Instructions: (pc=0x0351fe3b)
0x0351fe2b: 0f 53 50 8d 44 24 18 50 e8 58 7c 00 00 83 c4 0c
0x0351fe3b: 8b 4e 70 51 8b 0e 83 c3 04 53 6a 64 8d 54 24 18
Stack: [0x008c0000,0x00910000], sp=0x0090f7b4, free space=13d0090f2e8k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [zkemsdk.dll+0xfe3b]
C [jna5972695927945545932.tmp+0x9182]
C [jna5972695927945545932.tmp+0x2161]
C [jna5972695927945545932.tmp+0x2849]
j com.sun.jna.Function.invokeInt(I[Ljava/lang/Object;)I+0
j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+90
j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194
j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344
j $Proxy0.Z_Beep(J)Z+19
j com.rfarrays.bhabs.fingerPrint.main([Ljava/lang/String;)V+84
v ~StubRoutines::call_stub
V [jvm.dll+0xf049c]
V [jvm.dll+0x17fcf1]
V [jvm.dll+0xf051d]
V [jvm.dll+0xf9bc5]
V [jvm.dll+0x10181d]
C [javaw.exe+0x2155]
C [javaw.exe+0x8614]
C [kernel32.dll+0xb729]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.jna.Function.invokeInt(I[Ljava/lang/Object;)I+0
j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+90
j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194
j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344
j $Proxy0.Z_Beep(J)Z+19
j com.rfarrays.bhabs.fingerPrint.main([Ljava/lang/String;)V+84
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x02b10c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1976, stack(0x02dc0000,0x02e10000)]
0x02b0a400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1280, stack(0x02d70000,0x02dc0000)]
0x02b08c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=1984, stack(0x02d20000,0x02d70000)]
0x02b07800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2160, stack(0x02cd0000,0x02d20000)]
0x02b02400 JavaThread "Finalizer" daemon [_thread_blocked, id=2052, stack(0x02c80000,0x02cd0000)]
0x02afd800 JavaThread "Reference Handler" daemon [_thread_blocked, id=752, stack(0x02c30000,0x02c80000)]
=>0x003a9000 JavaThread "main" [_thread_in_native, id=3832, stack(0x008c0000,0x00910000)]
Other Threads:
0x02afc400 VMThread [stack: 0x02be0000,0x02c30000] [id=1504]
0x02b1b800 WatcherThread [stack: 0x02e10000,0x02e60000] [id=1980]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4928K, used 2455K [0x22970000, 0x22ec0000, 0x27ec0000)
eden space 4416K, 55% used [0x22970000, 0x22bd5db0, 0x22dc0000)
from space 512K, 0% used [0x22dc0000, 0x22dc0000, 0x22e40000)
to space 512K, 0% used [0x22e40000, 0x22e40000, 0x22ec0000)
tenured generation total 10944K, used 0K [0x27ec0000, 0x28970000, 0x32970000)
the space 10944K, 0% used [0x27ec0000, 0x27ec0000, 0x27ec0200, 0x28970000)
compacting perm gen total 12288K, used 343K [0x32970000, 0x33570000, 0x36970000)
the space 12288K, 2% used [0x32970000, 0x329c5f20, 0x329c6000, 0x33570000)
ro space 10240K, 51% used [0x36970000, 0x36e9ae00, 0x36e9ae00, 0x37370000)
rw space 12288K, 54% used [0x37370000, 0x37a072d8, 0x37a07400, 0x37f70000)
Dynamic libraries:
0x00400000 - 0x00424000 C:\Program Files\Java\jre6\bin\javaw.exe
0x7c900000 - 0x7c9b2000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f03000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d800000 - 0x6da97000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d7b0000 - 0x6d7bc000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d330000 - 0x6d34f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d290000 - 0x6d298000 C:\Program Files\Java\jre6\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d7f0000 - 0x6d7ff000 C:\Program Files\Java\jre6\bin\zip.dll
0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
0x5b860000 - 0x5b8b5000 C:\WINDOWS\system32\netapi32.dll
0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x10000000 - 0x10052000 C:\Documents and Settings\bkonwar\Local Settings\Temp\jna5972695927945545932.tmp
0x03510000 - 0x03546000 C:\WINDOWS\system32\zkemsdk.dll
0x03560000 - 0x03574000 C:\WINDOWS\system32\commpro.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
VM Arguments:
jvm_args: -Dfile.encoding=Cp1252
java_command: com.xyz.bhabs.fingerPrint
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;;C:\Program Files\Java\jre1.6.0_07\bin;C:\Program Files\Android\android-sdk-windows\tools;C:\Program Files\TortoiseSVN\bin
USERNAME=BKonwar
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2085780k(1286036k free), swap 4024188k(3249652k free)
vm_info: Java HotSpot(TM) Client VM (16.3-b01) for windows-x86 JRE (1.6.0_20-b02), built on Apr 12 2010 13:52:23 by "java_re" with MS VC++ 7.1 (VS2003)
time: Wed May 25 10:02:24 2011
elapsed time: 21 seconds
Regards,
Bhabs
Edited by: 861222 on May 25, 2011 12:19 AM861222 wrote:
# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0351fe3b, pid=1664, tid=3832Not much to tell here. This line here looks suspiciously like a null-pointer error happening in the native code. It is impossible to say how, where and why. Go back to your code and start debugging I'd say, see where invalid data can be passed to the native code. -
My application terminates with the following error message.
Can anyone tell how to locate the Java method(s) and reason for the error?
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x807a0a7
Function name=(N/A)
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at sun.awt.motif.X11Graphics.disposeImpl(Native Method)
at sun.awt.motif.X11Graphics.dispose(X11Graphics.java:246)
at sun.awt.motif.X11Graphics.finalize(X11Graphics.java:255)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:81)
at java.lang.ref.Finalizer.access$100(Finalizer.java:12)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:158)
Dynamic libraries:
08048000-0804c000 r-xp 00000000 03:06 1667910 /home/cygnet/CygNetClient/jre/bin/i386/native_threads/java
0804c000-0804d000 rw-p 00003000 03:06 1667910 /home/cygnet/CygNetClient/jre/bin/i386/native_threads/java
40000000-40016000 r-xp 00000000 03:01 488642 /lib/ld-2.2.4.so
40016000-40017000 rw-p 00015000 03:01 488642 /lib/ld-2.2.4.so
40017000-40028000 r-xp 00000000 03:06 2093064 /home/cygnet/CygNetClient/jre/lib/i386/libverify.so
40028000-4002a000 rw-p 00010000 03:06 2093064 /home/cygnet/CygNetClient/jre/lib/i386/libverify.so
4002b000-40038000 r-xp 00000000 03:01 586374 /lib/i686/libpthread-0.9.so
40038000-40040000 rw-p 0000c000 03:01 586374 /lib/i686/libpthread-0.9.so
40040000-40049000 r-xp 00000000 03:06 2207525 /home/cygnet/CygNetClient/jre/lib/i386/native_threads/libhpi.so
40049000-4004a000 rw-p 00008000 03:06 2207525 /home/cygnet/CygNetClient/jre/lib/i386/native_threads/libhpi.so
4004a000-4023a000 r-xp 00000000 03:06 2485510 /home/cygnet/CygNetClient/jre/lib/i386/client/libjvm.so
4023a000-4033a000 rw-p 001ef000 03:06 2485510 /home/cygnet/CygNetClient/jre/lib/i386/client/libjvm.so
40351000-40354000 r-xp 00000000 03:01 488655 /lib/libdl-2.2.4.so
40354000-40355000 rw-p 00002000 03:01 488655 /lib/libdl-2.2.4.so
40355000-40487000 r-xp 00000000 03:01 586370 /lib/i686/libc-2.2.4.so
40487000-4048c000 rw-p 00131000 03:01 586370 /lib/i686/libc-2.2.4.so
40490000-404a3000 r-xp 00000000 03:01 488660 /lib/libnsl-2.2.4.so
404a3000-404a4000 rw-p 00012000 03:01 488660 /lib/libnsl-2.2.4.so
404a7000-404c9000 r-xp 00000000 03:01 586372 /lib/i686/libm-2.2.4.so
404c9000-404ca000 rw-p 00021000 03:01 586372 /lib/i686/libm-2.2.4.so
404ca000-404fe000 r-xp 00000000 03:02 65416 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
404fe000-4050a000 rw-p 00033000 03:02 65416 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
4050c000-4052d000 r-xp 00000000 03:06 2093065 /home/cygnet/CygNetClient/jre/lib/i386/libjava.so
4052d000-4052f000 rw-p 00020000 03:06 2093065 /home/cygnet/CygNetClient/jre/lib/i386/libjava.so
40530000-40544000 r-xp 00000000 03:06 2093066 /home/cygnet/CygNetClient/jre/lib/i386/libzip.so
40544000-40547000 rw-p 00013000 03:06 2093066 /home/cygnet/CygNetClient/jre/lib/i386/libzip.so
40547000-4127b000 r--s 00000000 03:06 1815090 /home/cygnet/CygNetClient/jre/lib/rt.jar
412a8000-4159f000 r--s 00000000 03:06 1815091 /home/cygnet/CygNetClient/jre/lib/i18n.jar
4159f000-415b5000 r--s 00000000 03:06 1815078 /home/cygnet/CygNetClient/jre/lib/sunrsasign.jar
4365d000-4365e000 r--p 00000000 03:02 288016 /usr/lib/locale/en_US/LC_IDENTIFICATION
4365e000-4365f000 r--p 00000000 03:02 544110 /usr/lib/locale/en_US/LC_MEASUREMENT
4365f000-43660000 r--p 00000000 03:02 48242 /usr/lib/locale/en_US/LC_TELEPHONE
49cbf000-49cea000 r--p 00000000 03:02 592103 /usr/lib/locale/en_US/LC_CTYPE
49cea000-49ceb000 r--p 00000000 03:02 48244 /usr/lib/locale/en_US/LC_ADDRESS
49ceb000-49cec000 r--p 00000000 03:02 48243 /usr/lib/locale/en_US/LC_NAME
49cec000-49ced000 r--p 00000000 03:02 112041 /usr/lib/locale/en_US/LC_PAPER
49ced000-49cee000 r--p 00000000 03:02 384072 /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
49cee000-49cef000 r--p 00000000 03:02 544109 /usr/lib/locale/en_US/LC_MONETARY
49cef000-49cf5000 r--p 00000000 03:02 464164 /usr/lib/locale/en_US/LC_COLLATE
49cf5000-49cf6000 r--p 00000000 03:02 288017 /usr/lib/locale/en_US/LC_TIME
49cf6000-49cf7000 r--p 00000000 03:02 592099 /usr/lib/locale/en_US/LC_NUMERIC
49cf7000-49cf9000 r-xp 00000000 03:02 386307 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
49cf9000-49cfa000 rw-p 00001000 03:02 386307 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
49cfa000-49d01000 r-xp 00000000 03:02 98309 /usr/X11R6/lib/libXcursor.so.1.0
49d01000-49d02000 rw-p 00007000 03:02 98309 /usr/X11R6/lib/libXcursor.so.1.0
49d02000-49d08000 r-xp 00000000 03:02 98319 /usr/X11R6/lib/libXrender.so.1.2
49d08000-49d09000 rw-p 00006000 03:02 98319 /usr/X11R6/lib/libXrender.so.1.2
49d0a000-49d14000 r-xp 00000000 03:01 488676 /lib/libnss_files-2.2.4.so
49d14000-49d15000 rw-p 00009000 03:01 488676 /lib/libnss_files-2.2.4.so
4a581000-4a82d000 r--s 00000000 03:06 2256578 /home/corview/ricEMS/corView/corView.jar
4a82d000-4abfb000 r-xp 00000000 03:06 2093073 /home/cygnet/CygNetClient/jre/lib/i386/libawt.so
4abfb000-4ac0b000 rw-p 003cd000 03:06 2093073 /home/cygnet/CygNetClient/jre/lib/i386/libawt.so
4ac20000-4ac51000 r-xp 00000000 03:06 2093072 /home/cygnet/CygNetClient/jre/lib/i386/libmlib_image.so
4ac51000-4ac53000 rw-p 00030000 03:06 2093072 /home/cygnet/CygNetClient/jre/lib/i386/libmlib_image.so
4ac53000-4ac59000 r-xp 00000000 03:02 96316 /usr/X11R6/lib/libXp.so.6.2
4ac59000-4ac5a000 rw-p 00006000 03:02 96316 /usr/X11R6/lib/libXp.so.6.2
4ac5a000-4ac9e000 r-xp 00000000 03:02 96322 /usr/X11R6/lib/libXt.so.6.0
4ac9e000-4aca1000 rw-p 00044000 03:02 96322 /usr/X11R6/lib/libXt.so.6.0
4aca2000-4acae000 r-xp 00000000 03:02 96304 /usr/X11R6/lib/libXext.so.6.4
4acae000-4acaf000 rw-p 0000b000 03:02 96304 /usr/X11R6/lib/libXext.so.6.4
4acaf000-4acb3000 r-xp 00000000 03:02 96324 /usr/X11R6/lib/libXtst.so.6.1
4acb3000-4acb4000 rw-p 00003000 03:02 96324 /usr/X11R6/lib/libXtst.so.6.1
4acb4000-4ad68000 r-xp 00000000 03:02 96296 /usr/X11R6/lib/libX11.so.6.2
4ad68000-4ad6b000 rw-p 000b4000 03:02 96296 /usr/X11R6/lib/libX11.so.6.2
4ad6b000-4ad72000 r-xp 00000000 03:02 96294 /usr/X11R6/lib/libSM.so.6.0
4ad72000-4ad73000 rw-p 00007000 03:02 96294 /usr/X11R6/lib/libSM.so.6.0
4ad73000-4ad86000 r-xp 00000000 03:02 96290 /usr/X11R6/lib/libICE.so.6.3
4ad86000-4ad87000 rw-p 00012000 03:02 96290 /usr/X11R6/lib/libICE.so.6.3
4ad89000-4ae13000 r-xp 00000000 03:06 2093074 /home/cygnet/CygNetClient/jre/lib/i386/libfontmanager.so
4ae13000-4ae23000 rw-p 00089000 03:06 2093074 /home/cygnet/CygNetClient/jre/lib/i386/libfontmanager.so
4b4a7000-4b4ac000 r--s 00000000 03:02 560239 /usr/lib/gconv/gconv-modules.cache
4b4ac000-4b4ae000 r-xp 00000000 03:02 560187 /usr/lib/gconv/ISO8859-1.so
4b4ae000-4b4af000 rw-p 00001000 03:02 560187 /usr/lib/gconv/ISO8859-1.so
4b4af000-4b4c8000 r-xp 00000000 03:02 386310 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
4b4c8000-4b4ca000 rw-p 00019000 03:02 386310 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
4b4cb000-4b4d4000 r-xp 00000000 03:06 2093069 /home/cygnet/CygNetClient/jre/lib/i386/libnet.so
4b4d4000-4b4d5000 rw-p 00008000 03:06 2093069 /home/cygnet/CygNetClient/jre/lib/i386/libnet.so
4baa7000-4bad6000 r-xp 00000000 03:06 2093075 /home/cygnet/CygNetClient/jre/lib/i386/libjpeg.so
4bad6000-4bad7000 rw-p 0002e000 03:06 2093075 /home/cygnet/CygNetClient/jre/lib/i386/libjpeg.so
Local Time = Wed Nov 10 12:18:45 2004
Elapsed Time = 11801
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.3.1_03-b03 interpreted mode)
#Try adding some debug statements in your code and read the log... that should help you locate the method.
;) -
JVM Crashes in Native Code - JDK#1.4.2_10 for solaris-sparc
Hi,
We are facing irregular but quite frequent JVM crash in our Test environment. From the stacktrace it seems that JVM is crashing inside the native code. Can anyone help me in finding the cause of this problem please?
Please find below the dump generated after JVM crash -
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGBUS (0xa) at pc=0xfea32db4, pid=4695, tid=1
# Java VM: Java HotSpot(TM) Client VM (1.4.2_10-b03 mixed mode)
# Problematic frame:
# C [libzip.so+0x2db4]
--------------- T H R E A D ---------------
Current thread (0x0003c2f0): JavaThread "main" [_thread_in_native, id=1]
siginfo:si_signo=10, si_errno=151, si_code=3, si_addr=0xfe3a11cd
Registers:
O0=0xfe390000 O1=0x000111cc O2=0xffbfa350 O3=0x0003c4a0
O4=0xff02aa10 O5=0xff008000 O6=0xffbfa1f0 O7=0xfea32d90
G1=0x506f6c6c G2=0xff362a00 G3=0x0003c2f0 G4=0x00000066
G5=0xf58d6cd8 G6=0x00000000 G7=0xff362a00 Y=0x00000000
PC=0xfea32db4 nPC=0xfea32db8
Top of Stack: (sp=0xffbfa1f0)
0xffbfa1f0: 001de478 001deda8 fe3a11cc 00000000
0xffbfa200: 00000000 fea40000 00000000 00000000
0xffbfa210: 001de478 001deda8 0000506f 4f6d734e
0xffbfa220: 80808080 01010101 ffbfa250 fea32ce0
0xffbfa230: 00000000 2f3cbdc2 2f3cbdc2 f19cdfe8
0xffbfa240: 0003c8b0 0003c8b0 ffbfa2b8 0000002b
0xffbfa250: 001de478 ffbfa314 00000000 001deda8
0xffbfa260: f206a1aa 00000043 0000ffff ff01f8a8
Instructions: (pc=0xfea32db4)
0xfea32da4: aa 02 40 0f d2 04 60 00 a4 02 00 09 a0 10 00 18
0xfea32db4: d4 0c a0 01 95 2a a0 08 d0 0a 00 09 90 12 00 0a
Stack: [0xffb7c000,0xffc00000), sp=0xffbfa1f0, free space=504k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libzip.so+0x2db4]
C [libzip.so+0x2ce8] ZIP_GetEntry+0xe0
C [libzip.so+0x3488] Java_java_util_zip_ZipFile_getEntry+0x9c
J java.util.zip.ZipFile.getEntry(JLjava/lang/String;)J
J java.util.zip.ZipFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;
J java.util.jar.JarFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;
J sun.misc.URLClassPath$JarLoader.getResource(Ljava/lang/String;Z)Lsun/misc/Resource;
J sun.misc.URLClassPath.getResource(Ljava/lang/String;Z)Lsun/misc/Resource;
J java.net.URLClassLoader$1.run()Ljava/lang/Object;
v ~StubRoutines::call_stub
V [libjvm.so+0xc9ccc]
V [libjvm.so+0xd6a34]
C [libjava.so+0xdc38] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2Ljava_secu
rity_AccessControlContext_2+0x1c
J java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)L
java/lang/Object;
J java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;
J java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;
J sun.misc.Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;
J java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;
J java.lang.ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class;
v ~StubRoutines::call_stub
V [libjvm.so+0xc9ccc]
V [libjvm.so+0xd1cec]
V [libjvm.so+0xf43a0]
V [libjvm.so+0x9ce34]
V [libjvm.so+0x9c2c4]
V [libjvm.so+0x9be3c]
V [libjvm.so+0x9bbc4]
V [libjvm.so+0xcbec8]
V [libjvm.so+0xd0b84]
j be.telenet.rts.oms.dbpoller.PollOmsNotificationTable.processDeleteOfAging(Lbe/telenet/rts/oms/dbpoller/OmsNotificationDataV
O;)V+4
J be.telenet.rts.oms.dbpoller.PollOmsNotificationTable.processOmsNotificationData(Ljava/util/Collection;)V
J be.telenet.rts.oms.dbpoller.PollOmsNotificationTable.pollTable()V
v ~RuntimeStub::osr_frame_return Runtime1 stub
j be.telenet.rts.oms.dbpoller.ILMAdapter_NotifierPoller.main([Ljava/lang/String;)V+30
v ~StubRoutines::call_stub
V [libjvm.so+0xc9ccc]
V [libjvm.so+0xdde98]
V [libjvm.so+0x16791c]
C [java+0x2f94] main+0x167c
Thanks & Regards,
AnujHere's the exception I'm getting (slightly sanitized):
Java Plug-in 1.4.2_10
Using JRE version 1.4.2_10 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\tvalesky
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to
load: class appls/DOLARS/user/Applet.class not found.
java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://hostname.com/DOLARS.testing/dolars.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class -
Problems with loading native library/missing methods: no ttJdbc1121 in java
Hi,
Can anyone help me? I keep getting this error when trying to start my jboss server. I have no problem with this when i run my standalone java application. My jboss version is 4.2 and my timesten version is 11.2.1.6.1 . My oracle version is 10G express edition. Any ideas?
Thank you very much.The TimesTen JDBC driver is not a pure Java driver. It requires to load several native code libraries. Most appservers have to be told what directories to search for those libraries (a bit like the O/S LD_LIBRARY_PATH variable). This error occures when you have not told the appserver where to look to find hte native code libraries (<tt_install_dir>/lib).
I'm not a JBOSS expert so I can't advise you on this; you need to consult the JBOSS documentation to find out what parameter/setting you need to modify to fix this.
Chris -
Any bad side-effects to lengthy blocking in native code? (Win32,Linux,Solar
1) Are there any negative side-effects to having one (or maybe a few) Java threads block for an extended period (e.g. hours) in native code? Naturally the thread would NOT be one of the "special" threads (such as the Swing event dispatcher, etc).
2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).
3) What if I scale the number of threads blocked in JNI code up to 100 threads. Does that change any of the answers? This is perhaps a silly number, I'm just trying to understand if more resources are consumed by blocking in the JNI as opposed to blocking in Java.
4) Do modern JVM's use one native thread per Java thread? If so, then I would guess there is really nothing special about blocking in native code.
Motivation for query -- In my application I need to interface with legacy C++ code that blocks (mostly on socket and i/o selects). I'm not thrilled about native code, but if there are no serious side-effects to extended blocking, it may be a viable approach.1) Are there any negative side-effects to having one
(or maybe a few) Java threads block for an extended
period (e.g. hours) in native code? Naturally the
thread would NOT be one of the "special" threads (such
as the Swing event dispatcher, etc).As far as I know the native code is loaded dynamic when a thread will use it.
So if the thread 1 needs the code written in the native.dll the thread 1 will use
the first instance of native.dll. So let's say this is blocked.
Then after 2 hours another thread called thread2 calls the native.dll code. Then
java ask the OS to create another instance of the native.dll and so on.
So now there are 2 threads and 2 instances of the dll in the memory.
All these apply to the Win32 OSs.
>
2) Does the answer vary by platform? I'm interested
in Win32, Linux and possibly Solaris (in that order).
3) What if I scale the number of threads blocked in
JNI code up to 100 threads. Does that change any of
the answers? This is perhaps a silly number, I'm just
trying to understand if more resources are consumed by
blocking in the JNI as opposed to blocking in Java.
If your machine could suffer 100 pure java threads then it is not a problem to be some of them JNI ones.
4) Do modern JVM's use one native thread per Java
thread? Yes. Exactly as far as I know and experienced.
If so, then I would guess there is really
nothing special about blocking in native code.Exactly.
>
>
Motivation for query -- In my application I need to
interface with legacy C++ code that blocks (mostly on
socket and i/o selects). I'm not thrilled about
native code, but if there are no serious side-effects
to extended blocking, it may be a viable approach.Yes it is. That is actually why Native methods are existing for. -
Calling existing C++ dll from native code causes an ACCESS_VIOLATION
Hi everyone,
I'm having issues creating a Java app to call an existing c++ DLL. I've done extensive searching for a solution and found lots of goodies, but nothing to fix my problem yet.
I've gone through the JNI tutorial and created my java class, used javah, and created my native code according to the tutorial.
I'm new to dealing with DLLs so I'm not sure if there are some steps that I'm not taking.
The issue comes when I run the program. I get an EXCEPTION_ACCESS_VIOLATION.
the DLL I'm trying to call makes a call to a device on the USB port. I also have the source code and header files for the DLL but thought it would be easier to just have to deal with the already built DLL.
After putting some print statements in the native function, the violation comes when I try to call the function in the external DLL. The DLL itself loads correctly (as far as I know).
Here my native method that will load the external dll. I got the code to call the DLL method from:
http://goff.nu/techarticles/development/cpp/calldll.html
JNIEXPORT void JNICALL
Java_OCPMControl_OCPMSetPixelCount (JNIEnv *env, jobject obj, jint pixelCount)
//load the dll
HINSTANCE ocpmSerialDLL = LoadLibrary("OCPMSerialDLL");
/* get pointer to the function in the dll*/
FARPROC myDLLFunction = GetProcAddress(HMODULE(ocpmSerialDLL), "OCPMSetPixelCount");
/* Define the Function in the DLL for reuse. This is just prototyping
* the dll's function. A mock of it. Use "stdcall" for maximum compatibility.
typedef void (__stdcall * FUNC)(enum ePixelNum);
FUNC MyFunction;
MyFunction = FUNC(myDLLFunction);
printf("Calling function\n");
/* The actual call to the function contained in the dll */
MyFunction(PIXEL256);
/* Release the Dll */
FreeLibrary(ocpmSerialDLL);
When I run the program, I get the following error:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x182
91E6B
Function=[Unknown.]
Library=C:\sun\MyJava\ocpm\src\OCPMSerialDLL.dll
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at OCPMControl.OCPMSetPixelCount(Native Method)
at OCPMControl.getData(OCPMControl.java:167)
at OCPMService.main(OCPMService.java:46)
Dynamic libraries:
0x00400000 - 0x00406000 c:\sun\j2sdk1.4.2_03\bin\java.exe
0x77F80000 - 0x77FFD000 C:\WINNT\system32\ntdll.dll
0x7C2D0000 - 0x7C332000 C:\WINNT\system32\ADVAPI32.dll
0x7C570000 - 0x7C628000 C:\WINNT\system32\KERNEL32.DLL
0x77D30000 - 0x77DA1000 C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.dll
0x08000000 - 0x08138000 c:\sun\j2sdk1.4.2_03\jre\bin\client\jvm.dll
0x77E10000 - 0x77E75000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7E000 C:\WINNT\system32\GDI32.DLL
0x77570000 - 0x775A0000 C:\WINNT\system32\WINMM.dll
0x10000000 - 0x10007000 c:\sun\j2sdk1.4.2_03\jre\bin\hpi.dll
0x007C0000 - 0x007CE000 c:\sun\j2sdk1.4.2_03\jre\bin\verify.dll
0x007D0000 - 0x007E9000 c:\sun\j2sdk1.4.2_03\jre\bin\java.dll
0x007F0000 - 0x007FD000 c:\sun\j2sdk1.4.2_03\jre\bin\zip.dll
0x18270000 - 0x1827E000 C:\sun\MyJava\ocpm\src\OCPMNative.dll
0x18290000 - 0x182AA000 C:\sun\MyJava\ocpm\src\OCPMSerialDLL.dll
0x68120000 - 0x681A1000 C:\sun\MyJava\ocpm\src\instrsup.dll
0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
0x70A70000 - 0x70AD5000 C:\WINNT\system32\SHLWAPI.DLL
0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.DLL
0x782F0000 - 0x78538000 C:\WINNT\system32\SHELL32.DLL
0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 C:\WINNT\system32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generation total 576K, used 140K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 27% used [0x10010000, 0x10033368, 0x10090000)
from space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation total 1408K, used 0K [0x104f0000, 0x10650000, 0x14010000)
the space 1408K, 0% used [0x104f0000, 0x104f0000, 0x104f0200, 0x10650000)
compacting perm gen total 4096K, used 1012K [0x14010000, 0x14410000, 0x1801000
0)
the space 4096K, 24% used [0x14010000, 0x1410d1f0, 0x1410d200, 0x14410000)
Local Time = Wed May 12 10:53:56 2004
Elapsed Time = 10
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode)
# An error report file has been saved as hs_err_pid2120.log.
# Please refer to the file for further information.
Is there something else I have to do to tell the JVM that the external DLL call isn't an Access Violation?
Would it be easier to use the source files instead?
Thanks to anyone who can help me out here!
Scott CampbellThanks,
The problem has been solved. I wasn't linking the dll properly to access the external DLL and thus, my native DLL was looking for methods that it didn't know how to find. which was easily solved by adding a few options when creating my native dll.
Here is the link I found to solve the problem incase anyone else has issues like this. It is regarding implicit v.s. explicit linking to external DLLs in using visual C++.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_link_an_executable_to_a_dll.asp
Scott. -
Exception in native code causing Tomcat to crash
I am running a java servlet on Tomcat and have noticed that it has been unexpectedly terminating quite a bit over the last month or so. Yesterday it happened twice, citing an exception in native code outside the VM. I really have no idea where to start debugging this. Below is what is in the log file that is generated when it terminates. Does anybody know why something like this would be happening? Looking at the stack trace, it looks like a strange place to be terminating? Has anybody come accross anything like this? If you need more information, let me know!
Thanks!!!
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77F4200B
Function=RtlEnterCriticalSection+0xB
Library=C:\WINDOWS\system32\ntdll.dll
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.allocConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(JdbcOdbc.java:114)
at sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(JdbcOdbcDriver.java:929)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:126)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
- locked <02F7D2F0> (a sun.jdbc.odbc.JdbcOdbcDriver)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
- locked <06A87EB0> (a java.lang.Class)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
- locked <06A87EB0> (a java.lang.Class)
at com.lmp.iomada.servlets.LMPPersistence.buildObjects(LMPPersistence.java:56)
at com.lmp.iomada.servlets.LMPServlet.transformHTML(LMPServlet.java:635)
at com.lmp.iomada.servlets.LMPServlet.doGet(LMPServlet.java:71)
at com.lmp.iomada.servlets.LMPServlet.doPost(LMPServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Dynamic libraries:
0x00400000 - 0x00406000 c:\j2sdk1.4.1_03\bin\java.exe
0x77F40000 - 0x77FFA000 C:\WINDOWS\system32\ntdll.dll
0x77E40000 - 0x77F34000 C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E30000 C:\WINDOWS\system32\ADVAPI32.dll
0x77C50000 - 0x77CF5000 C:\WINDOWS\system32\RPCRT4.dll
0x77BA0000 - 0x77BF4000 C:\WINDOWS\system32\MSVCRT.dll
0x6D340000 - 0x6D46B000 c:\j2sdk1.4.1_03\jre\bin\client\jvm.dll
0x77D00000 - 0x77D8F000 C:\WINDOWS\system32\USER32.dll
0x77C00000 - 0x77C44000 C:\WINDOWS\system32\GDI32.dll
0x76AA0000 - 0x76ACC000 C:\WINDOWS\system32\WINMM.dll
0x6D1E0000 - 0x6D1E7000 c:\j2sdk1.4.1_03\jre\bin\hpi.dll
0x6D310000 - 0x6D31E000 c:\j2sdk1.4.1_03\jre\bin\verify.dll
0x6D220000 - 0x6D239000 c:\j2sdk1.4.1_03\jre\bin\java.dll
0x6D330000 - 0x6D33D000 c:\j2sdk1.4.1_03\jre\bin\zip.dll
0x76F50000 - 0x76F63000 C:\WINDOWS\system32\Secur32.dll
0x6D2E0000 - 0x6D2EE000 C:\j2sdk1.4.1_03\jre\bin\net.dll
0x71BB0000 - 0x71BB9000 C:\WINDOWS\system32\WSOCK32.dll
0x71C00000 - 0x71C18000 C:\WINDOWS\system32\WS2_32.dll
0x71BF0000 - 0x71BF8000 C:\WINDOWS\system32\WS2HELP.dll
0x71B20000 - 0x71B63000 C:\WINDOWS\system32\mswsock.dll
0x71AE0000 - 0x71AE8000 C:\WINDOWS\System32\wshtcpip.dll
0x6D260000 - 0x6D26B000 C:\j2sdk1.4.1_03\jre\bin\JdbcOdbc.dll
0x0B3E0000 - 0x0B41A000 C:\WINDOWS\system32\ODBC32.dll
0x70BC0000 - 0x70C50000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.0.0_x-ww_8A69BA05\COMCTL32.dll
0x77380000 - 0x77B5D000 C:\WINDOWS\system32\SHELL32.dll
0x77290000 - 0x772D9000 C:\WINDOWS\system32\SHLWAPI.dll
0x762B0000 - 0x762F7000 C:\WINDOWS\system32\comdlg32.dll
0x70AD0000 - 0x70BB6000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.100.0_x-ww_8417450B\comctl32.dll
0x0B580000 - 0x0B597000 C:\WINDOWS\system32\odbcint.dll
0x0B720000 - 0x0B73A000 C:\WINDOWS\system32\odbccp32.dll
0x77160000 - 0x77285000 C:\WINDOWS\system32\ole32.dll
0x77B90000 - 0x77B98000 C:\WINDOWS\system32\VERSION.dll
0x76ED0000 - 0x76EF7000 C:\WINDOWS\system32\DNSAPI.dll
0x76F70000 - 0x76F77000 C:\WINDOWS\System32\winrnr.dll
0x76F10000 - 0x76F3F000 C:\WINDOWS\system32\WLDAP32.dll
0x76F80000 - 0x76F85000 C:\WINDOWS\system32\rasadhlp.dll
0x0FFD0000 - 0x0FFFD000 C:\WINDOWS\system32\rsaenh.dll
0x76B70000 - 0x76B7B000 C:\WINDOWS\system32\PSAPI.DLL
0x76C10000 - 0x76C38000 C:\WINDOWS\system32\imagehlp.dll
0x6D580000 - 0x6D621000 C:\WINDOWS\system32\dbghelp.dll
Local Time = Tue Jun 01 21:23:49 2004
Elapsed Time = 5644
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.1_03-b02 mixed mode)Library=C:\WINDOWS\system32\ntdll.dll
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.allocConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(JdbcOdbc.java:114)
at sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(JdbcOdbcDriver.java:929)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:126)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
The stack trace points to an error in ntdll.dll, the NT system calls library, while it being used by Sun's standard ODBC driver.
There are two unfixed bugs against 1.4 in this area. One suggests incorrect usage of the driver by client code. The other suggests that the current Java library has poor handling of exceptions in system code.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4812268
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4641011
The latter does not explort the actual cause of exceptions - they will have something to do with your Windows configuration. Applying the latest NT service packs might help. Unfortunately as the bug report indicates, this issue will not be fixed in 1.4. -
What meaNing is the error: "detected in native code outside the VM"
Hi,
I am trying to run dbca to create database(10.2.0.1 for Linux x86) in RHEL5 beta2, after I click the OK button on the parameter confirmon window, will display the Java exception:
detected in native code outside the VM
How resolve the problem?
Thanks!Hi, Avi:
The the "install forum" has reply me, but error is same. entire error message and stack trace as following, I no install JDK or JRE now, because I think the db10g already has a jre and some lib.
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4A802D35
Function=XFreeFontSet+0x15
Library=/usr/lib/libX11.so.6
Current Java thread:
at sun.awt.motif.X11InputMethod.disposeXIC(Native Method)
at sun.awt.motif.X11InputMethod.disposeImpl(X11InputMethod.java:662)
- locked <0xa88b9d58> (a sun.awt.motif.X11InputMethod)
at sun.awt.motif.X11InputMethod.dispose(X11InputMethod.java:689)
at sun.awt.im.InputContext.dispose(InputContext.java:617)
at java.awt.Window$1DisposeAction.run(Window.java:560)
- locked <0xa88a2978> (a java.lang.Object)
at java.awt.Window.dispose(Window.java:570)
at java.awt.Dialog.disposeImpl(Dialog.java:638)
at java.awt.Dialog.dispose(Dialog.java:634)
at oracle.ewt.lwAWT.BufferedDialog.dispose(Unknown Source)
at oracle.sysman.assistants.dbca.ui.SummaryDialog.actionPerformed(SummaryDialog.java:440)
at oracle.ewt.button.PushButton.processActionEvent(Unknown Source)
at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at oracle.ewt.button.PushButton.activate(Unknown Source)
at oracle.ewt.lwAWT.AbstractButton.processMouseReleased(Unknown Source)
at oracle.ewt.lwAWT.AbstractButton.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
at java.awt.Dialog$1.run(Dialog.java:540)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Dynamic libraries:
08048000-08056000 r-xp 00000000 08:06 883639 /usr/local/oracle/db10g/jdk/jre/bin/java
08056000-08059000 rwxp 0000d000 08:06 883639 /usr/local/oracle/db10g/jdk/jre/bin/java
4a61d000-4a636000 r-xp 00000000 08:01 493139 /lib/ld-2.5.so
4a636000-4a637000 r-xp 00018000 08:01 493139 /lib/ld-2.5.so
4a637000-4a638000 rwxp 00019000 08:01 493139 /lib/ld-2.5.so
4a63a000-4a63c000 r-xp 00000000 08:06 9815341 /usr/lib/libXau.so.6.0.0
4a63c000-4a63d000 rwxp 00001000 08:06 9815341 /usr/lib/libXau.so.6.0.0
4a63f000-4a777000 r-xp 00000000 08:01 493140 /lib/libc-2.5.so
4a777000-4a779000 r-xp 00137000 08:01 493140 /lib/libc-2.5.so
4a779000-4a77a000 rwxp 00139000 08:01 493140 /lib/libc-2.5.so
4a77f000-4a7a4000 r-xp 00000000 08:01 493147 /lib/libm-2.5.so
4a7a4000-4a7a5000 r-xp 00024000 08:01 493147 /lib/libm-2.5.so
4a7a5000-4a7a6000 rwxp 00025000 08:01 493147 /lib/libm-2.5.so
4a7a8000-4a7aa000 r-xp 00000000 08:01 493141 /lib/libdl-2.5.so
4a7aa000-4a7ab000 r-xp 00001000 08:01 493141 /lib/libdl-2.5.so
4a7ab000-4a7ac000 rwxp 00002000 08:01 493141 /lib/libdl-2.5.so
4a7ae000-4a7c1000 r-xp 00000000 08:01 493142 /lib/libpthread-2.5.so
4a7c1000-4a7c2000 r-xp 00012000 08:01 493142 /lib/libpthread-2.5.so
4a7c2000-4a7c3000 rwxp 00013000 08:01 493142 /lib/libpthread-2.5.so
4a7dc000-4a7e1000 r-xp 00000000 08:06 9815342 /usr/lib/libXdmcp.so.6.0.0
4a7e1000-4a7e2000 rwxp 00004000 08:06 9815342 /usr/lib/libXdmcp.so.6.0.0
4a7e4000-4a8e2000 r-xp 00000000 08:06 9815343 /usr/lib/libX11.so.6.2.0
4a8e2000-4a8e6000 rwxp 000fe000 08:06 9815343 /usr/lib/libX11.so.6.2.0
4a8e8000-4a8f7000 r-xp 00000000 08:06 9815348 /usr/lib/libXext.so.6.4.0
4a8f7000-4a8f8000 rwxp 0000e000 08:06 9815348 /usr/lib/libXext.so.6.4.0
4a91d000-4a928000 r-xp 00000000 08:01 493149 /lib/libgcc_s-4.1.1-20061011.so.1
4a928000-4a929000 rwxp 0000a000 08:01 493149 /lib/libgcc_s-4.1.1-20061011.so.1
4aaf4000-4aafc000 r-xp 00000000 08:06 9815344 /usr/lib/libXrender.so.1.3.0
4aafc000-4aafd000 rwxp 00007000 08:06 9815344 /usr/lib/libXrender.so.1.3.0
4aaff000-4ab03000 r-xp 00000000 08:06 9815352 /usr/lib/libXfixes.so.3.1.0
4ab03000-4ab04000 rwxp 00003000 08:06 9815352 /usr/lib/libXfixes.so.3.1.0
4ab2f000-4ab38000 r-xp 00000000 08:06 9815353 /usr/lib/libXcursor.so.1.0.2
4ab38000-4ab39000 rwxp 00008000 08:06 9815353 /usr/lib/libXcursor.so.1.0.2
4ab3b000-4ab52000 r-xp 00000000 08:06 9815357 /usr/lib/libICE.so.6.3.0
4ab52000-4ab53000 rwxp 00016000 08:06 9815357 /usr/lib/libICE.so.6.3.0
4ab57000-4ab5f000 r-xp 00000000 08:06 9813468 /usr/lib/libSM.so.6.0.0
4ab5f000-4ab60000 rwxp 00007000 08:06 9813468 /usr/lib/libSM.so.6.0.0
4ac2c000-4ac3e000 r-xp 00000000 08:01 493154 /lib/libnsl-2.5.so
4ac3e000-4ac3f000 r-xp 00012000 08:01 493154 /lib/libnsl-2.5.so
4ac3f000-4ac40000 rwxp 00013000 08:01 493154 /lib/libnsl-2.5.so
4ad29000-4ad7d000 r-xp 00000000 08:06 9815284 /usr/lib/libXt.so.6.0.0
4ad7d000-4ad81000 rwxp 00054000 08:06 9815284 /usr/lib/libXt.so.6.0.0
4bf57000-4bf5c000 r-xp 00000000 08:06 9813824 /usr/lib/libXtst.so.6.1.0
4bf5c000-4bf5d000 rwxp 00004000 08:06 9813824 /usr/lib/libXtst.so.6.1.0
a161b000-a1621000 r-xp 00000000 08:06 883543 /usr/local/oracle/db10g/jdk/jre/lib/i386/libnio.so
a1621000-a1622000 rwxp 00005000 08:06 883543 /usr/local/oracle/db10g/jdk/jre/lib/i386/libnio.so
a1622000-a1658000 rwxs 00000000 00:08 786446 /SYSV00000000 (deleted)
a175a000-a1814000 r-xp 00000000 08:06 883527 /usr/local/oracle/db10g/jdk/jre/lib/i386/libfontmanager.so
a1814000-a182f000 rwxp 000b9000 08:06 883527 /usr/local/oracle/db10g/jdk/jre/lib/i386/libfontmanager.so
a1830000-a1837000 r-xp 00000000 08:06 9813462 /usr/lib/libXp.so.6.2.0
a1837000-a1838000 rwxp 00006000 08:06 9813462 /usr/lib/libXp.so.6.2.0
a183e000-a1845000 r-xp 00000000 08:06 599545 /usr/local/oracle/db10g/oui/lib/linux/liboraInstaller.so
a1845000-a1846000 rwxp 00006000 08:06 599545 /usr/local/oracle/db10g/oui/lib/linux/liboraInstaller.so
a1846000-a184d000 r-xs 00000000 08:06 9876851 /usr/lib/gconv/gconv-modules.cache
a184d000-a18a0000 r-xp 00000000 08:06 883540 /usr/local/oracle/db10g/jdk/jre/lib/i386/libmlib_image.so
a18a0000-a18a1000 rwxp 00052000 08:06 883540 /usr/local/oracle/db10g/jdk/jre/lib/i386/libmlib_image.so
a18a1000-a1b72000 r-xp 00000000 08:06 883523 /usr/local/oracle/db10g/jdk/jre/lib/i386/libawt.so
a1b72000-a1b88000 rwxp 002d0000 08:06 883523 /usr/local/oracle/db10g/jdk/jre/lib/i386/libawt.so
a1d6e000-a1d7e000 r-xp 00000000 08:06 883542 /usr/local/oracle/db10g/jdk/jre/lib/i386/libnet.so
a1d7e000-a1d7f000 rwxp 0000f000 08:06 883542 /usr/local/oracle/db10g/jdk/jre/lib/i386/libnet.so
a1d7f000-a1d8c000 r-xp 00000000 08:06 596076 /usr/local/oracle/db10g/lib/libldapjclnt10.so
a1d8c000-a1d8e000 rwxp 0000c000 08:06 596076 /usr/local/oracle/db10g/lib/libldapjclnt10.so
a1d8e000-a1f6a000 r-xp 00000000 08:06 599456 /usr/local/oracle/db10g/lib/libnnz10.so
a1f6a000-a1f90000 rwxp 001dc000 08:06 599456 /usr/local/oracle/db10g/lib/libnnz10.so
a1f92000-a2cc3000 r-xp 00000000 08:06 598954 /usr/local/oracle/db10g/lib/libclntsh.so.10.1
a2cc3000-a2d24000 rwxp 00d31000 08:06 598954 /usr/local/oracle/db10g/lib/libclntsh.so.10.1
a2d38000-a2d4d000 r-xp 00000000 08:06 599256 /usr/local/oracle/db10g/lib/libnjni10.so
a2d4d000-a2d51000 rwxp 00014000 08:06 599256 /usr/local/oracle/db10g/lib/libnjni10.so
a2d51000-a2ef4000 r-xp 00000000 08:06 598619 /usr/local/oracle/db10g/lib/libimf.so
a2ef4000-a2ef6000 rwxp 001a2000 08:06 598619 /usr/local/oracle/db10g/lib/libimf.so
a2ef6000-a2f35000 r-xs 00000000 08:06 589501 /usr/local/oracle/db10g/inventory/prereqs/oui/OraPrereqChecks.jar
a2f35000-a2f6d000 r-xs 00000000 08:06 599532 /usr/local/oracle/db10g/oui/jlib/OraPrereq.jar
a2f6d000-a2f79000 r-xs 00000000 08:06 598522 /usr/local/oracle/db10g/oc4j/j2ee/home/db_oc4j_deploy.jar
a2f79000-a2fac000 r-xs 00000000 08:06 598335 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/crimson.jar
a2fac000-a338e000 r-xs 00000000 08:06 598514 /usr/local/oracle/db10g/oc4j/sqlj/lib/translator.jar
a338e000-a3403000 r-xs 00000000 08:06 598513 /usr/local/oracle/db10g/oc4j/sqlj/lib/runtime12ee.jar
a3403000-a340f000 r-xs 00000000 08:06 598503 /usr/local/oracle/db10g/oc4j/jlib/jssl-1_1.jar
a340f000-a3448000 r-xs 00000000 08:06 598356 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/http_client.jar
a3448000-a34c6000 r-xs 00000000 08:06 598498 /usr/local/oracle/db10g/oc4j/javacache/lib/cache.jar
a34c6000-a352e000 r-xs 00000000 08:06 598357 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jem.jar
a352e000-a35e3000 r-xs 00000000 08:06 598510 /usr/local/oracle/db10g/oc4j/rdbms/jlib/aqapi.jar
a35e3000-a3607000 r-xs 00000000 08:06 598517 /usr/local/oracle/db10g/oc4j/webservices/lib/wsdl.jar
a3607000-a362f000 r-xs 00000000 08:06 598516 /usr/local/oracle/db10g/oc4j/webservices/lib/wsserver.jar
a362f000-a37c0000 r-xs 00000000 08:06 598501 /usr/local/oracle/db10g/oc4j/jdbc/lib/nls_charset12.jar
a37c0000-a3947000 r-xs 00000000 08:06 598500 /usr/local/oracle/db10g/oc4j/jdbc/lib/classes12dms.jar
a3947000-a39e3000 r-xs 00000000 08:06 598317 /usr/local/oracle/db10g/oc4j/j2ee/home/jazncore.jar
a39e3000-a3a26000 r-xs 00000000 08:06 598318 /usr/local/oracle/db10g/oc4j/j2ee/home/jazn.jar
a3a26000-a3a40000 r-xs 00000000 08:06 598337 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jaas.jar
a3a40000-a3a47000 r-xs 00000000 08:06 598338 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jaxp.jar
a3a47000-a3af0000 r-xs 00000000 08:06 598505 /usr/local/oracle/db10g/oc4j/lib/xmlparserv2.jar
a3af0000-a3b35000 r-xs 00000000 08:06 598349 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/mail.jar
a3b35000-a3b41000 r-xs 00000000 08:06 598331 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/activation.jar
a3b41000-a3b44000 r-xs 00000000 08:06 598339 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jcert.jar
a3b44000-a3b46000 r-xs 00000000 08:06 598346 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jnet.jar
a3b46000-a3bc4000 r-xs 00000000 08:06 598347 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jsse.jar
a3bc4000-a3bd3000 r-xs 00000000 08:06 598334 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/cos.jar
a3bd3000-a3c51000 r-xs 00000000 08:06 598332 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/bcel.jar
a3c51000-a3c56000 r-xs 00000000 08:06 598333 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/connector.jar
a3c56000-a3cc4000 r-xs 00000000 08:06 598504 /usr/local/oracle/db10g/oc4j/lib/dms.jar
a3cc4000-a3ccc000 r-xs 00000000 08:06 598352 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/javax88.jar
a3ccc000-a3cd0000 r-xs 00000000 08:06 598351 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/javax77.jar
a3cd0000-a3d27000 r-xs 00000000 08:06 598343 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jmxri.jar
a3d27000-a3d2a000 r-xs 00000000 08:06 598348 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jta.jar
a3d2a000-a3d31000 r-xs 00000000 08:06 598341 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jms.jar
a3d31000-a3d3b000 r-xs 00000000 08:06 598324 /usr/local/oracle/db10g/oc4j/j2ee/home/iiop_gen_bin.jar
a3d3b000-a3e76000 r-xs 00000000 08:06 598325 /usr/local/oracle/db10g/oc4j/j2ee/home/iiop.jar
a3e76000-a3e78000 r-xs 00000000 08:06 598340 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jdbc.jar
a3e78000-a3e91000 r-xs 00000000 08:06 598345 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/jndi.jar
a3e91000-a3f35000 r-xs 00000000 08:06 598353 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/ojsp.jar
a3f35000-a3f43000 r-xs 00000000 08:06 598350 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/servlet.jar
a3f43000-a3f47000 r-xs 00000000 08:06 598336 /usr/local/oracle/db10g/oc4j/j2ee/home/lib/ejb.jar
a3f47000-a44c9000 r-xs 00000000 08:06 598330 /usr/local/oracle/db10g/oc4j/j2ee/home/oc4j.jar
a44c9000-a4866000 r-xs 00000000 08:06 599555 /usr/local/oracle/db10g/oui/jlib/OraInstaller.jar
a4866000-a5423000 r-xs 00000000 08:06 598681 /usr/local/oracle/db10g/sysman/jlib/emCORE.jar
a5423000-a5440000 r-xs 00000000 08:06 593960 /usr/local/oracle/db10g/jlib/ldap.jar
a5440000-a5586000 r-xs 00000000 08:06 593848 /usr/local/oracle/db10g/jlib/emConfigInstall.jar
a5586000-a55d9000 r-xs 00000000 08:06 593849 /usr/local/oracle/db10g/jlib/emca.jar
a55d9000-a5dc3000 r-xs 00000000 08:06 595944 /usr/local/oracle/db10g/jlib/oemlt-10_1_0.jar
a5dc3000-a5dd5000 r-xs 00000000 08:06 594200 /usr/local/oracle/db10g/jlib/srvmasm.jar
a5dd5000-a5de3000 r-xs 00000000 08:06 594201 /usr/local/oracle/db10g/jlib/srvmhas.jar
a5de3000-a5eaa000 r-xs 00000000 08:06 594199 /usr/local/oracle/db10g/jlib/srvm.jar
a5eaa000-a6032000 r-xs 00000000 08:06 596110 /usr/local/oracle/db10g/jdbc/lib/classes12.zip
a6032000-a607f000 r-xs 00000000 08:06 598998 /usr/local/oracle/db10g/jlib/opm.jar
a607f000-a6127000 r-xs 00000000 08:06 594289 /usr/local/oracle/db10g/owm/jlib/owm-3_0.jar
a6127000-a616c000 r-xs 00000000 08:06 593941 /usr/local/oracle/db10g/ldap/oidadmin/dasnls.jar
a616c000-a6178000 r-xs 00000000 08:06 594297 /usr/local/oracle/db10g/jlib/jssl-1_1.jar
a6178000-a6210000 r-xs 00000000 08:06 595952 /usr/local/oracle/db10g/jlib/ldapjclnt10.jar
a6210000-a6264000 r-xs 00000000 08:06 599252 /usr/local/oracle/db10g/jlib/ojpse.jar
a6264000-a627f000 r-xs 00000000 08:06 594291 /usr/local/oracle/db10g/jlib/oraclepki103.jar
a627f000-a6285000 r-xs 00000000 08:06 599248 /usr/local/oracle/db10g/jlib/ojmisc.jar
a6285000-a62ce000 r-xs 00000000 08:06 599299 /usr/local/oracle/db10g/jlib/netcfg.jar
a62ce000-a62e2000 r-xs 00000000 08:06 595312 /usr/local/oracle/db10g/jlib/orai18n-tools.jar
a62e2000-a6449000 r-xs 00000000 08:06 595305 /usr/local/oracle/db10g/jlib/orai18n-lcsd.jar
a6449000-a645f000 r-xs 00000000 08:06 595311 /usr/local/oracle/db10g/jlib/orai18n-servlet.jar
a645f000-a646b000 r-xs 00000000 08:06 595310 /usr/local/oracle/db10g/jlib/orai18n-net.jar
a646b000-a65bf000 r-xs 00000000 08:06 595309 /usr/local/oracle/db10g/jlib/orai18n-translation.jar
a65bf000-a66bf000 r-xs 00000000 08:06 595304 /usr/local/oracle/db10g/jlib/orai18n-collation.jar
a66bf000-a671f000 r-xs 00000000 08:06 595307 /usr/local/oracle/db10g/jlib/orai18n-utility.jar
a671f000-a6732000 r-xs 00000000 08:06 595306 /usr/local/oracle/db10g/jlib/orai18n-mapping.jar
a6732000-a68c3000 r-xs 00000000 08:06 595308 /usr/local/oracle/db10g/jlib/orai18n.jar
a68c3000-a69eb000 r-xs 00000000 08:06 598705 /usr/local/oracle/db10g/lib/xmlparserv2.jar
a69eb000-a69f9000 r-xs 00000000 08:06 596123 /usr/local/oracle/db10g/jlib/kodiak.jar
a69f9000-a6a80000 r-xs 00000000 08:06 593853 /usr/local/oracle/db10g/jlib/oracle_ice5.jar
a6a80000-a6c27000 r-xs 00000000 08:06 599096 /usr/local/oracle/db10g/jlib/jewt4.jar
a6c27000-a6c8c000 r-xs 00000000 08:06 598688 /usr/local/oracle/db10g/jlib/help4.jar
a6c8c000-a6c9a000 r-xs 00000000 08:06 599458 /usr/local/oracle/db10g/jlib/share.jar
a6c9a000-a6ca8000 r-xs 00000000 08:06 593852 /usr/local/oracle/db10g/jlib/ewtcompat-3_3_15.jar
a6ca8000-a6f2d000 r-xs 00000000 08:06 599099 /usr/local/oracle/db10g/jlib/ewt3.jar
a6f2d000-a7028000 r-xs 00000000 08:06 593843 /usr/local/oracle/db10g/assistants/jlib/assistantsCommon.jar
a7028000-a71b5000 r-xs 00000000 08:06 592248 /usr/local/oracle/db10g/assistants/dbca/jlib/dbca.jar
a71b5000-a7271000 r-xs 00000000 08:06 600243 /usr/local/oracle/db10g/jdk/jre/lib/ext/localedata.jar
a7271000-a7274000 r-xs 00000000 08:06 600241 /usr/local/oracle/db10g/jdk/jre/lib/ext/dnsns.jar
a7274000-a7281000 r-xs 00000000 08:06 600242 /usr/local/oracle/db10g/jdk/jre/lib/ext/ldapsec.jar
a7281000-a7284000 r-xs 00000000 08:06 600152 /usr/local/oracle/db10g/jdk/jre/lib/ext/smtp.jar
a7284000-a72c9000 r-xs 00000000 08:06 600150 /usr/local/oracle/db10g/jdk/jre/lib/ext/mail.jar
a72c9000-a72e5000 r-xs 00000000 08:06 600244 /usr/local/oracle/db10g/jdk/jre/lib/ext/sunjce_provider.jar
a72e5000-a730b000 r-xs 00000000 08:06 600151 /usr/local/oracle/db10g/jdk/jre/lib/ext/mailapi.jar
a750f000-a770f000 r-xp 00000000 08:06 9813461 /usr/lib/locale/locale-archive
b3951000-b395f000 r-xs 00000000 08:06 600153 /usr/local/oracle/db10g/jdk/jre/lib/ext/activation.jar
b5a07000-b5fa7000 r-xs 00000000 08:06 600193 /usr/local/oracle/db10g/jdk/jre/lib/charsets.jar
b5fa7000-b5fb8000 r-xs 00000000 08:06 600231 /usr/local/oracle/db10g/jdk/jre/lib/jce.jar
b5fb8000-b6095000 r-xs 00000000 08:06 600232 /usr/local/oracle/db10g/jdk/jre/lib/jsse.jar
b6095000-b60ab000 r-xs 00000000 08:06 600240 /usr/local/oracle/db10g/jdk/jre/lib/sunrsasign.jar
b60f5000-b7aa0000 r-xs 00000000 08:06 600239 /usr/local/oracle/db10g/jdk/jre/lib/rt.jar
b7aa0000-b7ab4000 r-xp 00000000 08:06 883546 /usr/local/oracle/db10g/jdk/jre/lib/i386/libzip.so
b7ab4000-b7ab7000 rwxp 00013000 08:06 883546 /usr/local/oracle/db10g/jdk/jre/lib/i386/libzip.so
b7ab7000-b7ad7000 r-xp 00000000 08:06 883531 /usr/local/oracle/db10g/jdk/jre/lib/i386/libjava.so
b7ad7000-b7ad9000 rwxp 0001f000 08:06 883531 /usr/local/oracle/db10g/jdk/jre/lib/i386/libjava.so
b7ad9000-b7ae2000 r-xp 00000000 08:01 491561 /lib/libnss_files-2.5.so
b7ae2000-b7ae3000 r-xp 00008000 08:01 491561 /lib/libnss_files-2.5.so
b7ae3000-b7ae4000 rwxp 00009000 08:01 491561 /lib/libnss_files-2.5.so
b7ae7000-b7af7000 r-xp 00000000 08:06 883545 /usr/local/oracle/db10g/jdk/jre/lib/i386/libverify.so
b7af7000-b7af9000 rwxp 0000f000 08:06 883545 /usr/local/oracle/db10g/jdk/jre/lib/i386/libverify.so
b7af9000-b7eff000 r-xp 00000000 08:06 883554 /usr/local/oracle/db10g/jdk/jre/lib/i386/client/libjvm.so
b7eff000-b7f1a000 rwxp 00405000 08:06 883554 /usr/local/oracle/db10g/jdk/jre/lib/i386/client/libjvm.so
b7f31000-b7f33000 r-xp 00000000 08:06 593842 /usr/local/oracle/db10g/lib/libOsUtils.so
b7f33000-b7f34000 rwxp 00001000 08:06 593842 /usr/local/oracle/db10g/lib/libOsUtils.so
b7f34000-b7f37000 r-xs 00000000 08:06 600149 /usr/local/oracle/db10g/jdk/jre/lib/ext/jta.jar
b7f37000-b7f3b000 rwxs 00000000 08:01 458852 /tmp/hsperfdata_ora/2961
b7f3b000-b7f43000 r-xp 00000000 08:06 883556 /usr/local/oracle/db10g/jdk/jre/lib/i386/native_threads/libhpi.so
b7f43000-b7f44000 rwxp 00007000 08:06 883556 /usr/local/oracle/db10g/jdk/jre/lib/i386/native_threads/libhpi.so
b7f45000-b7f46000 r-xp b7f45000 00:00 0 [vdso]
bfbf0000-bfc06000 rwxp bfbf0000 00:00 0 [stack]
Heap at VM Abort:
Heap
def new generation total 832K, used 640K [0xa7950000, 0xa7a30000, 0xa8320000)
eden space 768K, 75% used [0xa7950000, 0xa79e02c0, 0xa7a10000)
from space 64K, 99% used [0xa7a10000, 0xa7a1fff8, 0xa7a20000)
to space 64K, 0% used [0xa7a20000, 0xa7a20000, 0xa7a30000)
tenured generation total 10388K, used 7952K [0xa8320000, 0xa8d45000, 0xaf950000)
the space 10388K, 76% used [0xa8320000, 0xa8ae4240, 0xa8ae4400, 0xa8d45000)
compacting perm gen total 18176K, used 18137K [0xaf950000, 0xb0b10000, 0xb3950000)
the space 18176K, 99% used [0xaf950000, 0xb0b066a0, 0xb0b06800, 0xb0b10000)
Local Time = Fri Apr 6 09:24:01 2007
Elapsed Time = 326
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
# An error report file has been saved as hs_err_pid2961.log.
# Please refer to the file for further information.
bin/dbca: line 158: 2961 Aborted $JRE_DIR/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$OH -DDISPLAY=$DISPLAY -DJDBC_PROTOCOL=thin -mx128m -classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
Thanks! -
Make native code and Java VM interact
Hi all,
I am building a native components (Delphi and C++) using JNI.
Currently my components involve a Java GUI.
It loads the JVM, then request for that Java Object GUI.
When the interface is created, I need to get back information
from what the user can type in.
However, the native code doesn't wait. It runs and continues right after
the creation of the GUI, thus causing me trouble (trying to get
null objects).
Is there a way to make the native code wait for a java command from
the interface, or is there a way to make both part of the component
(java / native) to communicate and interact ?
Any help would be appreciated.
Thanks
Regards,
FlorentThere are quite a few options here, and this may not
be the best, per se, but you could make a blocking
call from the JNI to a Java method. That Java method
will only return after whatever you want done in the
interface has completed.Thanks for your reply. Is there other solution in the JNI itself,
using the JNIEnv Object ?
Else, I'll try to use that solution.
Regards,
Florent -
Does JVM variable java.library.path make sense from native code?
Hello all,
Well, everybody loads native library from the Java side by calling System.loadLibrary("myNative").
But what if, for example, myNative.dll loads another two libraries itself?
Suppose, when I call java method "initMyNative", it in turn call native function Java_initMyNative(...). That Java_initMyNative(...) wants to load two native libraries and make: HINSTANCE lib01 = LoadLibrary("auxlib01.dll"); // LoadLibrary from capital, it's Win function!
HINSTANCE lib02 = LoadLibrary("auxlib02.dll"); // LoadLibrary from capital, it's Win function!As specified, native LoadLibrary call will look for auxlib01.dll and auxlib02.dll in catalogs which are enumerated in system variable PATH, current catalog.
Does java.library.path make any sense on order of such search?
If not, is there any way of flexible configuring of the catalog in which to look auxlib01.dll and auxlib02.dll for?
I see some ways:
* changing system variable PATH - not flexible
* passing content of java.library.path into native code, parsing it and looking for auxlib01.dll and auxlib02.dll in each catalog listed in java.library.path - too heavy
I hope there is more smart way to do that.
Thanks, AlexThank you Shane for your reply. I actually didnt have to create 2 jar files, one for Java files and one for the dll file. I got an idea from your post and referenced the same jar file twice by saying:
<j2se version="1.2+" />
<jar href="HelloWorld.jar"/>
<nativelib href="HelloWorld.jar"></nativelib>
and by saying that the jnlp file started working from the browser.
Again, thanks a lot for your replies.
Thanks
Nick
Maybe you are looking for
-
How many column can I make in a table or view??
What is the maximum column that I can create in a table or a view in Oracle9i?? When I create a view of 500 columns, I encountered an error "too many sort key", can any one tell me what is the limit for Oracle9i on number of column
-
Is third-party SO/PO process possible using only one company code?
Hi friend, 1) my client wants to implement third-party PO process but also wants a way of keeping track of inventory during this process. I know that inventory should be tracked on the vendor side and not on our client side since we're doing third-pa
-
Pl/sql to run different sql based on version
Hello all, I am trying to figure out a maybe a simple problem for a lot of you guys, i want to write a small PL/SQL to get output. If i am running version 10 of the DB then run certain select, if i am running version 11 then run certain select...how
-
MS Outlook 2007 calendar categories
Hi folks, I cannot imagine that my BB 8800 with the BB desktop 5.0.1. and the device frim ware 4.5.0.174 isn't able to sync the MS outlook 2007 categories with the BB canlendar. Where is the trick? I'm sure that there is a RIM solution. Many thanks!
-
In the cost center master data the functional area in blank, yet when the client prepares a service entry sheet using the cost center without funcatiional area, the system defaults the 1000, thus making reporting inaccurate. How does the "account a