JDEV: Uncaught exception: Exception in thread "JDI Internal Event Handler"

ISSUE: when web app starting, there is the exception:

Uncaught exception: Exception in thread "JDI Internal Event Handler" 

java.lang.IllegalArgumentException: Invalid JNI signature character ';'

  com.sun.tools.jdi.JNITypeParser.nextTypeName(JNITypeParser.java:218)

  com.sun.tools.jdi.JNITypeParser.typeNameList(JNITypeParser.java:122)

  com.sun.tools.jdi.JNITypeParser.typeName(JNITypeParser.java:67)

  com.sun.tools.jdi.TypeImpl.name(TypeImpl.java:26)

  com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:132)

  com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:15)

  j.util.TreeMap.put(TreeMap.java:545)

  j.util.TreeSet.add(TreeSet.java:238)

  com.sun.tools.jdi.VirtualMachineImpl.addReferenceType(VirtualMachineImpl.java:764)

  com.sun.tools.jdi.VirtualMachineImpl.referenceType(VirtualMachineImpl.java:880)

  com.sun.tools.jdi.EventSetImpl$ClassPrepareEventImpl.<init>(EventSetImpl.java:351)

  com.sun.tools.jdi.EventSetImpl.createEvent(EventSetImpl.java:720)

  com.sun.tools.jdi.EventSetImpl.build(EventSetImpl.java:611)

  com.sun.tools.jdi.EventQueueImpl.removeUnfiltered(EventQueueImpl.java:193)

  com.sun.tools.jdi.EventQueueImpl.removeInternal(EventQueueImpl.java:106)

  com.sun.tools.jdi.InternalEventHandler.run(InternalEventHandler.java:36)

  j.lang.Thread.run(Thread.java:619)

 

 

SOLUTION: 

if you are using JAX-WS put the following into the JVM params: 

 

-Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true

 

and the problem is fixed ;-)

你可能感兴趣的:(java,jvm,thread,jni,sun)