production jvm crash seems related to jmapper

57 views
Skip to first unread message

Patrizio De Michele

unread,
Nov 11, 2015, 5:35:17 AM11/11/15
to JMapper Framework
Hi Guys,
i'm a new user of jmapper (so maybe the problem is my ignorance).
I'm experiencing a very big problem that seems related to jmapper.
I'm mapping a jaxws response (from an external web service) to another class, 
that after it's sent back with jaxws to my calling client.
So the problem is that jvm crashes with an error on zip.dll, killing all the application server and 
all the installed app obviously.
This is the last part of the stacktrace:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 89  java.util.zip.ZipFile.getEntry(J[BZ)J (0 bytes) @ 0x00000000025038fa [0x00000000025038a0+0x5a]
J 82 C2 sun.misc.URLClassPath$JarLoader.getResource(Ljava/lang/String;Z)Lsun/misc/Resource; (91 bytes) @ 0x000000000250f800 [0x000000000250f380+0x480]
J 111 C2 sun.misc.URLClassPath.findResource(Ljava/lang/String;Z)Ljava/net/URL; (38 bytes) @ 0x000000000252623c [0x00000000025261c0+0x7c]
j  java.net.URLClassLoader$2.run()Ljava/net/URL;+12
j  java.net.URLClassLoader$2.run()Ljava/lang/Object;+1
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.net.URLClassLoader.findResource(Ljava/lang/String;)Ljava/net/URL;+13
j  java.lang.ClassLoader.getResource(Ljava/lang/String;)Ljava/net/URL;+30
j  java.lang.ClassLoader.getResource(Ljava/lang/String;)Ljava/net/URL;+12
j  java.net.URLClassLoader.getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;+2
j  org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;+326
j  javax.xml.datatype.SecuritySupport$4.run()Ljava/lang/Object;+29
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0
j  javax.xml.datatype.SecuritySupport.getResourceAsStream(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/io/InputStream;+10
j  javax.xml.datatype.FactoryFinder.findJarServiceProvider(Ljava/lang/String;)Ljava/lang/Object;+41
j  javax.xml.datatype.FactoryFinder.find(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;+273
j  javax.xml.datatype.DatatypeFactory.newInstance()Ljavax/xml/datatype/DatatypeFactory;+5
j  itxxxxxxmessageRequestitxxxxxxxxxxdataDetailRequest.nullVSouAllAll(Ljava/lang/Object;)Ljava/lang/Object;+40

The bolded line is the one that is jmapping between classes.
I'm using annotation to map with jmapper.
The environment is tomcat7 64bit tested with both java6 and java7.
Happens both with jmapper 1.3.3.1 and with the last 1.4.2.

The problem arises only with a stress test, so seems that multiple parallel calls are not thread safe (maybe 
the error is due to my coding, any suggest?).

How can i be sure my mappings are thread safe? 

Please help, i really need it.

Bye, Patrizio


Patrizio De Michele

unread,
Nov 12, 2015, 6:53:33 AM11/12/15
to JMapper Framework
Jmapper was involved by a side effect of another problem (deep cloning log4J loggers or other singleton
intances that indirectly contains references to file handles is not a good idea :( ).
So i'm sorry that i have posted here this error that fortunately has been solved.
So JMapper WAS NOT the problem.

Ciao, Patrizio
Reply all
Reply to author
Forward
0 new messages