java.lang.reflect.UndeclaredThrowableException

MuleSoft JIRA | Andrew Perepelytsya | 8 years 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

    {noformat} java.lang.reflect.UndeclaredThrowableException at $Proxy7.describeInstances(Unknown Source) at com.my.AwsTestCase.testAws(AwsTestCase.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:287) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:266) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: org.mule.api.MessagingException: Failed to invoke inboundEndpoint.request(). Message payload is of type: NullPayload at org.mule.ibeans.internal.client.DynamicRequestInterfaceBinding.route(DynamicRequestInterfaceBinding.java:47) at org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.invoke(IntegrationBeanInvocationHandler.java:359) ... 27 more Caused by: org.mule.api.transport.ReceiveException: HTTP request failed with return code: HTTP/1.1 401 Unauthorized at org.mule.transport.http.HttpClientMessageRequester.doRequest(HttpClientMessageRequester.java:92) at org.mule.transport.AbstractMessageRequester.request(AbstractMessageRequester.java:74) at org.mule.transport.AbstractConnector.request(AbstractConnector.java:2032) at org.mule.ibeans.internal.ext.DynamicRequestEndpoint.request(DynamicRequestEndpoint.java:158) at org.mule.ibeans.internal.client.DynamicRequestInterfaceBinding.route(DynamicRequestInterfaceBinding.java:38) ... 28 more Process finished with exit code 255 {noformat}

    MuleSoft JIRA | 8 years ago | Andrew Perepelytsya
    java.lang.reflect.UndeclaredThrowableException
  2. 0

    {noformat} java.lang.reflect.UndeclaredThrowableException at $Proxy7.describeInstances(Unknown Source) at com.my.AwsTestCase.testAws(AwsTestCase.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:287) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:266) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: org.mule.api.MessagingException: Failed to invoke inboundEndpoint.request(). Message payload is of type: NullPayload at org.mule.ibeans.internal.client.DynamicRequestInterfaceBinding.route(DynamicRequestInterfaceBinding.java:47) at org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.invoke(IntegrationBeanInvocationHandler.java:359) ... 27 more Caused by: org.mule.api.transport.ReceiveException: HTTP request failed with return code: HTTP/1.1 401 Unauthorized at org.mule.transport.http.HttpClientMessageRequester.doRequest(HttpClientMessageRequester.java:92) at org.mule.transport.AbstractMessageRequester.request(AbstractMessageRequester.java:74) at org.mule.transport.AbstractConnector.request(AbstractConnector.java:2032) at org.mule.ibeans.internal.ext.DynamicRequestEndpoint.request(DynamicRequestEndpoint.java:158) at org.mule.ibeans.internal.client.DynamicRequestInterfaceBinding.route(DynamicRequestInterfaceBinding.java:38) ... 28 more Process finished with exit code 255 {noformat}

    MuleSoft JIRA | 8 years ago | Andrew Perepelytsya
    java.lang.reflect.UndeclaredThrowableException

    Root Cause Analysis

    1. org.mule.api.transport.ReceiveException

      HTTP request failed with return code: HTTP/1.1 401 Unauthorized

      at org.mule.transport.http.HttpClientMessageRequester.doRequest()
    2. HTTP Transport
      HttpClientMessageRequester.doRequest
      1. org.mule.transport.http.HttpClientMessageRequester.doRequest(HttpClientMessageRequester.java:92)
      1 frame
    3. Mule Core
      AbstractConnector.request
      1. org.mule.transport.AbstractMessageRequester.request(AbstractMessageRequester.java:74)
      2. org.mule.transport.AbstractConnector.request(AbstractConnector.java:2032)
      2 frames
    4. org.mule.ibeans
      IntegrationBeanInvocationHandler.invoke
      1. org.mule.ibeans.internal.ext.DynamicRequestEndpoint.request(DynamicRequestEndpoint.java:158)
      2. org.mule.ibeans.internal.client.DynamicRequestInterfaceBinding.route(DynamicRequestInterfaceBinding.java:38)
      3. org.mule.ibeans.internal.client.DynamicRequestInterfaceBinding.route(DynamicRequestInterfaceBinding.java:47)
      4. org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.invoke(IntegrationBeanInvocationHandler.java:359)
      4 frames
    5. Unknown
      $Proxy7.describeInstances
      1. $Proxy7.describeInstances(Unknown Source)
      1 frame
    6. com.my
      AwsTestCase.testAws
      1. com.my.AwsTestCase.testAws(AwsTestCase.java:22)
      1 frame
    7. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    8. Mule Functional Test Framework (TCK)
      AbstractMuleTestCase.run
      1. org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:287)
      2. org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:266)
      2 frames
    9. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
      1 frame
    10. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    11. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
      1 frame