java.lang.ArrayIndexOutOfBoundsException: -1

Spring JIRA | Robert Newson | 1 decade 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

    I use AOP for logging. On occasion I can get the following exception. If I remove the autoproxy bean, the problem no longer happens. I've appended my aop logging bean setup up after the exception trace. java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source) at org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source) at org.apache.oro.text.regex.Perl5Matcher.__tryExpression(Unknown Source) at org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source) at org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source) at org.springframework.aop.support.RegexpMethodPointcut.matches(RegexpMethodPointcut.java:110) at org.springframework.aop.framework.AdvisorChainFactoryUtils.calculateInterceptorsAndDynamicInterceptionAdvice(AdvisorChainFacto ryUtils.java:60) at org.springframework.aop.framework.HashMapCachingAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(HashMapCaching AdvisorChainFactory.java:57) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:129) <!-- AOP Logging --> <bean id="autoproxy" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" dependency-check="none"/> <bean id="errorAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor" dependency-check="none"> <property name="advice"><ref local="logThrowsAdvice"/></property> <property name="patterns"> <list> <value>com.connected.*</value> </list> </property> </bean> <bean id="beforeAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor" dependency-check="none"> <property name="advice"><ref local="logBeforeAdvice"/></property> <property name="patterns"> <list> <value>.*.Store.*storeAsset</value> </list> </property> </bean> <bean id="afterAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor" dependency-check="none"> <property name="advice"><ref local="logAfterAdvice"/></property> <property name="patterns"> <list> <value>.*.Source.*hasNextAsset</value> </list> </property> </bean> <bean id="logBeforeAdvice" class="com.connected.aop.LogBeforeAdvice"> <property name="logFormatter"><ref local="logFormatter"/></property> </bean> <bean id="logAfterAdvice" class="com.connected.aop.LogAfterAdvice"> <property name="logFormatter"><ref local="logFormatter"/></property> </bean> <bean id="logThrowsAdvice" class="com.connected.aop.LogThrowsAdvice"> <property name="logFormatter"><ref local="logFormatter"/></property> </bean> <bean id="logFormatter" class="com.connected.aop.LogFormatter"/> <!-- End of AOP -->

    Spring JIRA | 1 decade ago | Robert Newson
    java.lang.ArrayIndexOutOfBoundsException: -1
  2. 0

    I use AOP for logging. On occasion I can get the following exception. If I remove the autoproxy bean, the problem no longer happens. I've appended my aop logging bean setup up after the exception trace. java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source) at org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source) at org.apache.oro.text.regex.Perl5Matcher.__tryExpression(Unknown Source) at org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source) at org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source) at org.springframework.aop.support.RegexpMethodPointcut.matches(RegexpMethodPointcut.java:110) at org.springframework.aop.framework.AdvisorChainFactoryUtils.calculateInterceptorsAndDynamicInterceptionAdvice(AdvisorChainFacto ryUtils.java:60) at org.springframework.aop.framework.HashMapCachingAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(HashMapCaching AdvisorChainFactory.java:57) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:129) <!-- AOP Logging --> <bean id="autoproxy" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" dependency-check="none"/> <bean id="errorAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor" dependency-check="none"> <property name="advice"><ref local="logThrowsAdvice"/></property> <property name="patterns"> <list> <value>com.connected.*</value> </list> </property> </bean> <bean id="beforeAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor" dependency-check="none"> <property name="advice"><ref local="logBeforeAdvice"/></property> <property name="patterns"> <list> <value>.*.Store.*storeAsset</value> </list> </property> </bean> <bean id="afterAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor" dependency-check="none"> <property name="advice"><ref local="logAfterAdvice"/></property> <property name="patterns"> <list> <value>.*.Source.*hasNextAsset</value> </list> </property> </bean> <bean id="logBeforeAdvice" class="com.connected.aop.LogBeforeAdvice"> <property name="logFormatter"><ref local="logFormatter"/></property> </bean> <bean id="logAfterAdvice" class="com.connected.aop.LogAfterAdvice"> <property name="logFormatter"><ref local="logFormatter"/></property> </bean> <bean id="logThrowsAdvice" class="com.connected.aop.LogThrowsAdvice"> <property name="logFormatter"><ref local="logFormatter"/></property> </bean> <bean id="logFormatter" class="com.connected.aop.LogFormatter"/> <!-- End of AOP -->

    Spring JIRA | 1 decade ago | Robert Newson
    java.lang.ArrayIndexOutOfBoundsException: -1
  3. 0

    Go to action thrown an exception

    YouTrack | 5 years ago
    java.lang.ArrayIndexOutOfBoundsException: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception in OpCode._getNextOffset

    Apache Bugzilla | 1 decade ago | znerd
    java.lang.ArrayIndexOutOfBoundsException: 74

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1

      at org.apache.oro.text.regex.Perl5Matcher.__match()
    2. org.apache.oro
      Perl5Matcher.matches
      1. org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
      2. org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
      3. org.apache.oro.text.regex.Perl5Matcher.__tryExpression(Unknown Source)
      4. org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source)
      5. org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source)
      5 frames
    3. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.RegexpMethodPointcut.matches(RegexpMethodPointcut.java:110)
      2. org.springframework.aop.framework.AdvisorChainFactoryUtils.calculateInterceptorsAndDynamicInterceptionAdvice(AdvisorChainFactoryUtils.java:60)
      3. org.springframework.aop.framework.HashMapCachingAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(HashMapCachingAdvisorChainFactory.java:57)
      4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:129)
      4 frames