java.lang.reflect.InvocationTargetException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When testing compatibility with 3.6.0: I have roots defined in tc-config.xml just like this (of course with my annotation class instead of the one below taken from config reference file): Code: <roots> <root> <field-expression>@com.example.MyRootAnnotation * *</field-expression> </root> </roots> Running the terracotta client fails with exception: Code: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.createGlobalContext(ClassProcessorHelper.java:473) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.initialize(ClassProcessorHelper.java:347) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:512) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.__tc_loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Caused by: java.lang.NullPointerException: string is null at com.tc.util.Assert.assertNotNull(Assert.java:149) at com.tc.util.Assert.assertNotEmpty(Assert.java:195) at com.tc.util.Assert.assertNotBlank(Assert.java:216) at com.tc.util.Assert.assertNotBlank(Assert.java:227) at com.tc.object.config.schema.Root.<init>(Root.java:18) at com.tc.object.config.schema.DSOApplicationConfigObject.translateRoots(DSOApplicationConfigObject.java:108) at com.tc.object.config.schema.DSOApplicationConfigObject.<init>(DSOApplicationConfigObject.java:50) at com.tc.config.schema.setup.BaseConfigurationSetupManager.createNewDSOApplicationConfig(BaseConfigurationSetupManager.java:155) at com.tc.config.schema.setup.BaseConfigurationSetupManager.dsoApplicationConfigFor(BaseConfigurationSetupManager.java:147) at com.tc.object.config.StandardDSOClientConfigHelperImpl.<init>(StandardDSOClientConfigHelperImpl.java:224) at com.tc.object.config.StandardDSOClientConfigHelperImpl.<init>(StandardDSOClientConfigHelperImpl.java:182) at com.tc.object.bytecode.hook.impl.DSOContextImpl.getGlobalConfigHelper(DSOContextImpl.java:322) at com.tc.object.bytecode.hook.impl.DSOContextImpl.createGlobalContext(DSOContextImpl.java:98) ... 20 more From what I can find in the docs/schema this should still work as expected. Last time I tested with 3.4.0 it worked... I need this as some roots can be obfuscated... so listing them 1 by 1 using <field-name> is not an option right now. From what I can tell from looking into terracotta code, <field-name> MUST be used which is wrong if you look at docs/schema. Please make <field-expression> work again.
    via by Andrei Costescu,
  • When testing compatibility with 3.6.0: I have roots defined in tc-config.xml just like this (of course with my annotation class instead of the one below taken from config reference file): Code: <roots> <root> <field-expression>@com.example.MyRootAnnotation * *</field-expression> </root> </roots> Running the terracotta client fails with exception: Code: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.createGlobalContext(ClassProcessorHelper.java:473) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.initialize(ClassProcessorHelper.java:347) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:512) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.__tc_loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Caused by: java.lang.NullPointerException: string is null at com.tc.util.Assert.assertNotNull(Assert.java:149) at com.tc.util.Assert.assertNotEmpty(Assert.java:195) at com.tc.util.Assert.assertNotBlank(Assert.java:216) at com.tc.util.Assert.assertNotBlank(Assert.java:227) at com.tc.object.config.schema.Root.<init>(Root.java:18) at com.tc.object.config.schema.DSOApplicationConfigObject.translateRoots(DSOApplicationConfigObject.java:108) at com.tc.object.config.schema.DSOApplicationConfigObject.<init>(DSOApplicationConfigObject.java:50) at com.tc.config.schema.setup.BaseConfigurationSetupManager.createNewDSOApplicationConfig(BaseConfigurationSetupManager.java:155) at com.tc.config.schema.setup.BaseConfigurationSetupManager.dsoApplicationConfigFor(BaseConfigurationSetupManager.java:147) at com.tc.object.config.StandardDSOClientConfigHelperImpl.<init>(StandardDSOClientConfigHelperImpl.java:224) at com.tc.object.config.StandardDSOClientConfigHelperImpl.<init>(StandardDSOClientConfigHelperImpl.java:182) at com.tc.object.bytecode.hook.impl.DSOContextImpl.getGlobalConfigHelper(DSOContextImpl.java:322) at com.tc.object.bytecode.hook.impl.DSOContextImpl.createGlobalContext(DSOContextImpl.java:98) ... 20 more From what I can find in the docs/schema this should still work as expected. Last time I tested with 3.4.0 it worked... I need this as some roots can be obfuscated... so listing them 1 by 1 using <field-name> is not an option right now. From what I can tell from looking into terracotta code, <field-name> MUST be used which is wrong if you look at docs/schema. Please make <field-expression> work again.
    via by Andrei Costescu,
  • New exception after TC & Ehcache upgrade
    via by mbrightw,
    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.createGlobalContext(ClassProcessorHelper.java:473) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.initialize(ClassProcessorHelper.java:347) at com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:512) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.__tc_loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Caused by: java.lang.NullPointerException: string is null at com.tc.util.Assert.assertNotNull(Assert.java:149) at com.tc.util.Assert.assertNotEmpty(Assert.java:195) at com.tc.util.Assert.assertNotBlank(Assert.java:216) at com.tc.util.Assert.assertNotBlank(Assert.java:227) at com.tc.object.config.schema.Root.<init>(Root.java:18) at com.tc.object.config.schema.DSOApplicationConfigObject.translateRoots(DSOApplicationConfigObject.java:108) at com.tc.object.config.schema.DSOApplicationConfigObject.<init>(DSOApplicationConfigObject.java:50) at com.tc.config.schema.setup.BaseConfigurationSetupManager.createNewDSOApplicationConfig(BaseConfigurationSetupManager.java:155) at com.tc.config.schema.setup.BaseConfigurationSetupManager.dsoApplicationConfigFor(BaseConfigurationSetupManager.java:147) at com.tc.object.config.StandardDSOClientConfigHelperImpl.<init>(StandardDSOClientConfigHelperImpl.java:224) at com.tc.object.config.StandardDSOClientConfigHelperImpl.<init>(StandardDSOClientConfigHelperImpl.java:182) at com.tc.object.bytecode.hook.impl.DSOContextImpl.getGlobalConfigHelper(DSOContextImpl.java:322) at com.tc.object.bytecode.hook.impl.DSOContextImpl.createGlobalContext(DSOContextImpl.java:98) ... 20 more
    No Bugmate found.