• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Cannot Reproduce
  • drb
  • Reporter: kbhasin
  • January 06, 2008
  • 0
  • Watchers: 1
  • April 18, 2008
  • February 05, 2008

Description

The boot-jar creation tool seems to complain about contents of the boot-jar when certain classes are added to it:

In this case, it is java.lang.String$CaseInsensitiveComparator

java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.createGlobalContext(ClassProcessorHelper.java:505) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.init(ClassProcessorHelper.java:375) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.systemLoaderInitialized(ClassProcessorHelper.java:670) at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1327) at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1286) Caused by: java.lang.RuntimeException: BootJarException occurred while attempting to verify the contents of the boot jar. Unable to verify the contents of the boot jar; Please check the client logs for more information. at com.tc.object.bytecode.hook.impl.DSOContextImpl.validateBootJar(DSOContextImpl.java:99) at com.tc.object.bytecode.hook.impl.DSOContextImpl.(DSOContextImpl.java:88) at com.tc.object.bytecode.hook.impl.DSOContextImpl.createGlobalContext(DSOContextImpl.java:63) ... 9 more Disconnected from server

The same thing happens when trying to add java.util.logging.LogManager. Regardless of the logic behind adding this class to the boot-jar, the exception is not very intuitive and becomes a hard roadblock for users.

Comments

Fiona OShea 2008-01-23

Related Forum Posts

http://forums.terracotta.org/forums/posts/list/710.page

http://forums.terracotta.org/forums/posts/list/747.page

Fiona OShea 2008-01-23

Hung can you check to see if this is a regression from 2.4? Reviewing the thread on forums will hopefully help you get the info you need. thanks

Hung Huynh 2008-02-04

Verfied that adding java.lang.String$CaseInsensitiveComparator doesn’t fail at bootjar creation both in 2.4.9 and 2.5.1

Hung Huynh 2008-02-05

Dude from forum took my advice and recreated the bootjar and it worked fine.

http://forums.terracotta.org/forums/posts/list/710.page