java.lang.reflect.InvocationTargetException

GitHub | vpablos | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Root Cause Analysis

  1. org.hotswap.agent.javassist.CannotCompileException

    [source error] _buildSessionFactory() not found in org.hibernate.cfg.Configuration

    at org.hotswap.agent.javassist.CtNewMethod.make()
  2. org.hotswap.agent
    Hibernate3Transformers.proxySessionFactory
    1. org.hotswap.agent.javassist.CtNewMethod.make(CtNewMethod.java:75)
    2. org.hotswap.agent.javassist.CtNewMethod.make(CtNewMethod.java:43)
    3. org.hotswap.agent.plugin.hibernate3.session.Hibernate3Transformers.proxySessionFactory(Hibernate3Transformers.java:62)
    3 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  4. org.hotswap.agent
    HotswapTransformer.transform
    1. org.hotswap.agent.annotation.handler.OnClassLoadedHandler.transform(OnClassLoadedHandler.java:157)
    2. org.hotswap.agent.annotation.handler.OnClassLoadedHandler$1.transform(OnClassLoadedHandler.java:76)
    3. org.hotswap.agent.util.HotswapTransformer.transform(HotswapTransformer.java:140)
    3 frames
  5. Java RT
    SecureClassLoader.defineClass
    1. sun.instrument.TransformerManager.transform(TransformerManager.java:188)
    2. sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:424)
    3. java.lang.ClassLoader.defineClass1(Native Method)
    4. java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    5. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    5 frames
  6. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2959)
    2. org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1212)
    3. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1692)
    4. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1573)
    4 frames
  7. Java RT
    Class.getDeclaredMethods
    1. java.lang.Class.getDeclaredMethods0(Native Method)
    2. java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
    3. java.lang.Class.getDeclaredMethods(Class.java:1860)
    3 frames
  8. Spring Core
    ReflectionUtils.doWithMethods
    1. org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)
    2. org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)
    3. org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)
    3 frames
  9. Spring Beans
    DefaultListableBeanFactory.getBeansOfType
    1. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:865)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:796)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:544)
    7. org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:447)
    8. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:423)
    9. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:530)
    10. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:523)
    10 frames
  10. Spring Context
    EventListenerMethodProcessor.afterSingletonsInstantiated
    1. org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1162)
    2. org.springframework.context.event.EventListenerMethodProcessor.getEventListenerFactories(EventListenerMethodProcessor.java:119)
    3. org.springframework.context.event.EventListenerMethodProcessor.afterSingletonsInstantiated(EventListenerMethodProcessor.java:74)
    3 frames
  11. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:792)
    1 frame
  12. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
    2 frames
  13. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
    3 frames
  14. Glassfish Core
    ContainerBase$StartChild.call
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5017)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
    5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
    5 frames
  15. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames