java.lang.ArrayIndexOutOfBoundsException: 0

MuleSoft JIRA | Daniel Feist | 7 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

    {code} @Call(uri = "http://s3.amazonaws.com/", properties = HTTP.METHOD_GET) public Document listBuckets(String in) throws CallException; {code} This isn't very nice, and if a user saw it they wouldn't have a clue what they did wrong: java.lang.ArrayIndexOutOfBoundsException: 0 at org.mule.ibeans.internal.client.IBeanParamsHelper.createInvocationContext(IBeanParamsHelper.java:299) at org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.invoke(IntegrationBeanInvocationHandler.java:115) at $Proxy14.listBuckets(Unknown Source) at org.mule.ibeans.aws.s3.AmazonS3IBeanTestCase.testListBuckets(AmazonS3IBeanTestCase.java:57) 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 junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:287) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:266) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    MuleSoft JIRA | 7 years ago | Daniel Feist
    java.lang.ArrayIndexOutOfBoundsException: 0
  2. 0

    {code} @Call(uri = "http://s3.amazonaws.com/", properties = HTTP.METHOD_GET) public Document listBuckets(String in) throws CallException; {code} This isn't very nice, and if a user saw it they wouldn't have a clue what they did wrong: java.lang.ArrayIndexOutOfBoundsException: 0 at org.mule.ibeans.internal.client.IBeanParamsHelper.createInvocationContext(IBeanParamsHelper.java:299) at org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.invoke(IntegrationBeanInvocationHandler.java:115) at $Proxy14.listBuckets(Unknown Source) at org.mule.ibeans.aws.s3.AmazonS3IBeanTestCase.testListBuckets(AmazonS3IBeanTestCase.java:57) 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 junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:287) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:266) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    MuleSoft JIRA | 7 years ago | Daniel Feist
    java.lang.ArrayIndexOutOfBoundsException: 0

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      0

      at org.mule.ibeans.internal.client.IBeanParamsHelper.createInvocationContext()
    2. org.mule.ibeans
      IntegrationBeanInvocationHandler.invoke
      1. org.mule.ibeans.internal.client.IBeanParamsHelper.createInvocationContext(IBeanParamsHelper.java:299)
      2. org.mule.ibeans.internal.client.IntegrationBeanInvocationHandler.invoke(IntegrationBeanInvocationHandler.java:115)
      2 frames
    3. Unknown
      $Proxy14.listBuckets
      1. $Proxy14.listBuckets(Unknown Source)
      1 frame
    4. org.mule.ibeans
      AmazonS3IBeanTestCase.testListBuckets
      1. org.mule.ibeans.aws.s3.AmazonS3IBeanTestCase.testListBuckets(AmazonS3IBeanTestCase.java:57)
      1 frame
    5. 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
    6. JUnit
      TestCase.runBare
      1. junit.framework.TestCase.runTest(TestCase.java:168)
      2. junit.framework.TestCase.runBare(TestCase.java:134)
      2 frames
    7. Mule Functional Test Framework (TCK)
      AbstractMuleTestCase.runBare
      1. org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:287)
      1 frame
    8. JUnit
      TestCase.run
      1. junit.framework.TestResult$1.protect(TestResult.java:110)
      2. junit.framework.TestResult.runProtected(TestResult.java:128)
      3. junit.framework.TestResult.run(TestResult.java:113)
      4. junit.framework.TestCase.run(TestCase.java:124)
      4 frames
    9. Mule Functional Test Framework (TCK)
      AbstractMuleTestCase.run
      1. org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:266)
      1 frame
    10. JUnit
      JUnit38ClassRunner.run
      1. junit.framework.TestSuite.runTest(TestSuite.java:232)
      2. junit.framework.TestSuite.run(TestSuite.java:227)
      3. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
      3 frames
    11. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
      1 frame
    12. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames