java.lang.NoClassDefFoundError

org/openhealthtools/ihe/utils/thread/ConfigurableInheritableThreadLocal

Samebug tips9

Check if you didn't forget to instantiate your topic in the kafka broker.

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web19083

  • via Google Groups by Francisco Aguilar Montada, 9 months ago
    org/openhealthtools/ihe/utils/thread/ConfigurableInheritableThreadLocal
  • org/openhealthtools/mdht/uml/cda/util/CDAUtil
  • via GitHub by slyubomirsky
    , 7 months ago
    org/jmlspecs/utils/Utils
  • Stack trace

    • java.lang.NoClassDefFoundError: org/openhealthtools/ihe/utils/thread/ConfigurableInheritableThreadLocal at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:591) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:700) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at org.openehealth.ipf.iheclient.Main.main(Main.java:29) Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static org.openhealthtools.ihe.atna.auditor.context.AuditorModuleContext org.openhealthtools.ihe.atna.auditor.context.AuditorModuleContext.getContext()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/openhealthtools/ihe/utils/thread/ConfigurableInheritableThreadLocal at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:188) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:580) ... 14 more Caused by: java.lang.NoClassDefFoundError: org/openhealthtools/ihe/utils/thread/ConfigurableInheritableThreadLocal at org.openhealthtools.ihe.atna.auditor.context.AuditorModuleContext.getContext(AuditorModuleContext.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:166) ... 15 more Caused by: java.lang.ClassNotFoundException: org.openhealthtools.ihe.utils.thread.ConfigurableInheritableThreadLocal at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 21 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 5 days ago
    4 times, 1 month ago
    Unknown user
    2 times, 3 months ago
    Unknown user
    Once, 5 months ago
    Unknown user
    Once, 5 months ago
    2363 more bugmates