java.lang.reflect.InvocationTargetException

AppFuse JIRA | Tony Ugando | 1 decade ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola , poroszd and rafael . Or join the community to write better ones.
  1. 0

    I get the following exception after upgrading to Struts Menu 2.4. Apparently, it is caused by java.lang.NoClassDefFoundError: org/apache/velocity/context/Context 12:23:38,630_PM | ERROR [Digester] End event threw exception 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 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208) at org.apache.commons.digester.Rule.end(Rule.java:228) at org.apache.commons.digester.Digester.endElement(Digester.java:1067) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.commons.digester.Digester.parse(Digester.java:1591) at net.sf.navigator.menu.MenuRepository.load(MenuRepository.java:202) at net.sf.navigator.menu.MenuContextListener.contextInitialized(MenuContextListener.java:62) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NoClassDefFoundError: org/apache/velocity/context/Context at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at net.sf.navigator.menu.MenuRepository.class$(MenuRepository.java:31) at net.sf.navigator.menu.MenuRepository.addMenuDisplayerMapping(MenuRepository.java:164) ... 35 more 12:23:38,646_PM | FATAL [MenuContextListener] Failure initializing struts-menu: Error parsing resource file: /WEB-INF/menu-config.xml nested exception is: Error at (8, 62: null

    AppFuse JIRA | 1 decade ago | Tony Ugando
    java.lang.reflect.InvocationTargetException
  2. 0

    I get the following exception after upgrading to Struts Menu 2.4. Apparently, it is caused by java.lang.NoClassDefFoundError: org/apache/velocity/context/Context 12:23:38,630_PM | ERROR [Digester] End event threw exception 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 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208) at org.apache.commons.digester.Rule.end(Rule.java:228) at org.apache.commons.digester.Digester.endElement(Digester.java:1067) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.commons.digester.Digester.parse(Digester.java:1591) at net.sf.navigator.menu.MenuRepository.load(MenuRepository.java:202) at net.sf.navigator.menu.MenuContextListener.contextInitialized(MenuContextListener.java:62) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NoClassDefFoundError: org/apache/velocity/context/Context at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at net.sf.navigator.menu.MenuRepository.class$(MenuRepository.java:31) at net.sf.navigator.menu.MenuRepository.addMenuDisplayerMapping(MenuRepository.java:164) ... 35 more 12:23:38,646_PM | FATAL [MenuContextListener] Failure initializing struts-menu: Error parsing resource file: /WEB-INF/menu-config.xml nested exception is: Error at (8, 62: null

    AppFuse JIRA | 1 decade ago | Tony Ugando
    java.lang.reflect.InvocationTargetException
  3. 0
    samebug tip
    org.apache.http.config.Lookup class is in httpcore-4.3.jar not in httpclient-4.3.1.jar
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Upgrade play-plugins-redis to play-modules-redis. You may have to delete com.typesafe.plugin.RedisPlugin from play.plugins
  6. 0
    samebug tip
    You might have to readd your libraries if you just upgraded intelliJ. Try readding the netty library to the SDK.
    via GitHub by EBatTiVo
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    org/apache/velocity/context/Context

    at java.lang.Class.forName0()
  2. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:164)
    2 frames
  3. net.sf.navigator
    MenuRepository.addMenuDisplayerMapping
    1. net.sf.navigator.menu.MenuRepository.class$(MenuRepository.java:31)
    2. net.sf.navigator.menu.MenuRepository.addMenuDisplayerMapping(MenuRepository.java:164)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  5. Apache Commons BeanUtils
    MethodUtils.invokeMethod
    1. org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
    1 frame
  6. Commons Digester
    Digester.endElement
    1. org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208)
    2. org.apache.commons.digester.Rule.end(Rule.java:228)
    3. org.apache.commons.digester.Digester.endElement(Digester.java:1067)
    3 frames
  7. Java RT
    AbstractSAXParser.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
    2. com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
    3. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872)
    4. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
    5. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    6. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    7. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    8. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    9. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
    9 frames
  8. Commons Digester
    Digester.parse
    1. org.apache.commons.digester.Digester.parse(Digester.java:1591)
    1 frame
  9. net.sf.navigator
    MenuContextListener.contextInitialized
    1. net.sf.navigator.menu.MenuRepository.load(MenuRepository.java:202)
    2. net.sf.navigator.menu.MenuContextListener.contextInitialized(MenuContextListener.java:62)
    2 frames
  10. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
    3. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    4. org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    6. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    7. org.apache.catalina.core.StandardService.start(StandardService.java:450)
    8. org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    9. org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    9 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  12. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    2 frames