java.lang.reflect.InvocationTargetException

codegur.com | 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.
  1. 0

    Apache axis2/axiom NoSuchMethodError

    Stack Overflow | 2 years ago | martieva
    java.lang.NoSuchMethodError: org/apache/axiom/om/OMAbstractFactory.getMetaFactory()Lorg/apache/axiom/om/OMMetaFactory; Other answers (here and here) have indicated that this is due to conflicting jars. I have installed the latest RAD/WS fixpack, made sure I'm using only one version of axis2 (v1.6.2) & axiom-api (v1.2.13), cleaned & built my workspace multiple times and made sure the correct jars are being deployed. I have also tried setting the WAS class loader policy to "parent last". My question: Is there any reason other than conflicting jar versions that would cause this problem? Longer error: WebApp E [Servlet Error]-[EOEServlet]: java.lang.NoSuchMethodError: org/apache/axiom/om/OMAbstractFactory.getMetaFactory()Lorg/apache/axiom/om/OMMetaFactory;
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.axiom.om.OMAbstractFactory.getMetaFactory()Lorg/apache/axiom/om/OMMetaFactory;

      at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder()
    2. Axiom API
      OMXMLBuilderFactory.createOMBuilder
      1. org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:87)
      2. org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:73)
      2 frames
    3. org.apache.axis2
      ServiceClient.<init>
      1. org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:590)
      2. org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575)
      3. org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
      4. org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:91)
      5. org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:887)
      6. org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
      7. org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
      8. org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
      9. org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
      10. org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:143)
      10 frames
    4. org.wso2.carbon
      OAuth2TokenValidationServiceStub.<init>
      1. org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceStub.<init>(OAuth2TokenValidationServiceStub.java:103)
      2. org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceStub.<init>(OAuth2TokenValidationServiceStub.java:89)
      2 frames
    5. com.wipro.oauth
      IdentityServerRest.getOAuthToken
      1. com.wipro.oauth.manager.IDManagementClient.validateToken(IDManagementClient.java:220)
      2. com.wipro.oauth.manager.IdentityServerRest.getOAuthToken(IdentityServerRest.java:126)
      2 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    7. org.wso2.msf4j
      HttpDispatcher.channelRead0
      1. org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMethodInfo.java:95)
      2. org.wso2.msf4j.internal.router.HttpDispatcher.channelRead0(HttpDispatcher.java:53)
      3. org.wso2.msf4j.internal.router.HttpDispatcher.channelRead0(HttpDispatcher.java:31)
      3 frames
    8. Netty
      AbstractChannelHandlerContext.fireChannelRead
      1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
      4. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
      6. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
      6 frames
    9. org.wso2.msf4j
      RequestRouter.channelRead0
      1. org.wso2.msf4j.internal.router.RequestRouter.channelRead0(RequestRouter.java:83)
      2. org.wso2.msf4j.internal.router.RequestRouter.channelRead0(RequestRouter.java:44)
      2 frames
    10. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
      4. io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
      6. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
      7. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
      8. io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
      9. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
      10. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
      11. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
      12. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
      13. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
      14. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
      15. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
      16. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
      17. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
      18. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
      19. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
      20. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
      21. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
      21 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame