java.lang.ArrayIndexOutOfBoundsException: 1

MuleSoft JIRA | Victor Romero | 6 years ago
  1. 0

    A simple mule app like this will fail if statisticts -> printHtmlSummary is call using jconsole for instance. ERROR 2011-06-06 23:36:53,761 [RMI TCP Connection(5)-192.168.1.134] org.mule.module.management.agent.ClassloaderSwitchingMBeanWrapper: MBean operation 'printHtmlSummary' failed java.lang.ArrayIndexOutOfBoundsException: 1 at org.mule.management.stats.printers.HtmlTablePrinter.print(HtmlTablePrinter.java:55) at org.mule.management.stats.printers.AbstractTablePrinter.print(AbstractTablePrinter.java:226) at org.mule.management.stats.AllStatistics.logSummary(AllStatistics.java:49) at org.mule.module.management.mbean.StatisticsService.printHtmlSummary(StatisticsService.java:106) 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:597) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27) at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262) at javax.management.StandardMBean.invoke(StandardMBean.java:391) at org.mule.module.management.agent.ClassloaderSwitchingMBeanWrapper.invoke(ClassloaderSwitchingMBeanWrapper.java:51) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) The problem is very rare, but it´s a bug anyway. Other printers, like CsvPrinter and XmlPrinter, will work fine. None of the printers are test covered at all. With my knowledge of mule, a try to add a brand new suite of tests, will probably lower the probability of test admission.

    MuleSoft JIRA | 6 years ago | Victor Romero
    java.lang.ArrayIndexOutOfBoundsException: 1
  2. 0

    A simple mule app like this will fail if statisticts -> printHtmlSummary is call using jconsole for instance. ERROR 2011-06-06 23:36:53,761 [RMI TCP Connection(5)-192.168.1.134] org.mule.module.management.agent.ClassloaderSwitchingMBeanWrapper: MBean operation 'printHtmlSummary' failed java.lang.ArrayIndexOutOfBoundsException: 1 at org.mule.management.stats.printers.HtmlTablePrinter.print(HtmlTablePrinter.java:55) at org.mule.management.stats.printers.AbstractTablePrinter.print(AbstractTablePrinter.java:226) at org.mule.management.stats.AllStatistics.logSummary(AllStatistics.java:49) at org.mule.module.management.mbean.StatisticsService.printHtmlSummary(StatisticsService.java:106) 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:597) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27) at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262) at javax.management.StandardMBean.invoke(StandardMBean.java:391) at org.mule.module.management.agent.ClassloaderSwitchingMBeanWrapper.invoke(ClassloaderSwitchingMBeanWrapper.java:51) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) The problem is very rare, but it´s a bug anyway. Other printers, like CsvPrinter and XmlPrinter, will work fine. None of the printers are test covered at all. With my knowledge of mule, a try to add a brand new suite of tests, will probably lower the probability of test admission.

    MuleSoft JIRA | 6 years ago | Victor Romero
    java.lang.ArrayIndexOutOfBoundsException: 1
  3. 0

    ArrayIndexOutOfBounds When Splitting String

    Stack Overflow | 4 years ago | n0shadow
    java.lang.ArrayIndexOutOfBoundsException: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ArrayIndexOutOfBoundsException occurring when program running

    Stack Overflow | 4 years ago | dharma
    java.lang.ArrayIndexOutOfBoundsException: 1
  6. 0

    Parsing Data from CSV to Array in Java

    Stack Overflow | 5 years ago
    java.lang.ArrayIndexOutOfBoundsException: 1

    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.ArrayIndexOutOfBoundsException

      1

      at org.mule.management.stats.printers.HtmlTablePrinter.print()
    2. Mule Core
      AllStatistics.logSummary
      1. org.mule.management.stats.printers.HtmlTablePrinter.print(HtmlTablePrinter.java:55)
      2. org.mule.management.stats.printers.AbstractTablePrinter.print(AbstractTablePrinter.java:226)
      3. org.mule.management.stats.AllStatistics.logSummary(AllStatistics.java:49)
      3 frames
    3. Management Extensions
      StatisticsService.printHtmlSummary
      1. org.mule.module.management.mbean.StatisticsService.printHtmlSummary(StatisticsService.java:106)
      1 frame
    4. Java RT
      StandardMBean.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:597)
      5. com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
      6. com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
      7. com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
      8. com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
      9. com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
      10. javax.management.StandardMBean.invoke(StandardMBean.java:391)
      10 frames
    5. Management Extensions
      ClassloaderSwitchingMBeanWrapper.invoke
      1. org.mule.module.management.agent.ClassloaderSwitchingMBeanWrapper.invoke(ClassloaderSwitchingMBeanWrapper.java:51)
      1 frame
    6. Java RT
      Thread.run
      1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
      2. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
      3. javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
      4. javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
      5. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
      6. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
      7. javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
      8. sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
      9. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      10. java.lang.reflect.Method.invoke(Method.java:597)
      11. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
      12. sun.rmi.transport.Transport$1.run(Transport.java:159)
      13. java.security.AccessController.doPrivileged(Native Method)
      14. sun.rmi.transport.Transport.serviceCall(Transport.java:155)
      15. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
      16. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
      17. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
      18. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      19. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      20. java.lang.Thread.run(Thread.java:680)
      20 frames