java.lang.ArrayIndexOutOfBoundsException: 2

Spring JIRA | Matthias Rühl | 4 months ago
  1. 0

    {noformat} java.lang.ArrayIndexOutOfBoundsException: 2 at org.springframework.context.expression.MethodBasedEvaluationContext.lazyLoadArguments(MethodBasedEvaluationContext.java:94) at org.springframework.context.expression.MethodBasedEvaluationContext.lookupVariable(MethodBasedEvaluationContext.java:68) at org.springframework.cache.interceptor.CacheEvaluationContext.lookupVariable(CacheEvaluationContext.java:74) at org.springframework.expression.spel.ExpressionState.lookupVariable(ExpressionState.java:144) at org.springframework.expression.spel.ast.VariableReference.getValueInternal(VariableReference.java:75) at org.springframework.expression.spel.ast.MethodReference.getArguments(MethodReference.java:154) at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:84) at org.springframework.expression.spel.ast.CompoundExpression.getValueRef(CompoundExpression.java:57) at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:87) at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120) at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:242) at org.springframework.cache.interceptor.CacheOperationExpressionEvaluator.key(CacheOperationExpressionEvaluator.java:117) at org.springframework.cache.interceptor.CacheAspectSupport$CacheOperationContext.generateKey(CacheAspectSupport.java:738) at org.springframework.cache.interceptor.CacheAspectSupport.generateKey(CacheAspectSupport.java:554) at org.springframework.cache.interceptor.CacheAspectSupport.findCachedItem(CacheAspectSupport.java:498) at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:389) at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:327) at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) {noformat} This is my cacheable annotation: {code:java} @Cacheable(value = "dummyCache", key = "'getSomethingList_'.concat(#var1).concat(T(java.util.Arrays).deepHashCode(#var2))") List<Something> getSomethingList(String var1, Integer... var2); {code}

    Spring JIRA | 4 months ago | Matthias Rühl
    java.lang.ArrayIndexOutOfBoundsException: 2
  2. 0

    Error handling when reading from txt file

    Stack Overflow | 3 weeks ago | Buupu
    java.lang.ArrayIndexOutOfBoundsException: 2
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    migrating jsf1.1 to jsf1.1_02

    Oracle Community | 8 years ago | 843844
    java.lang.ArrayIndexOutOfBoundsException: 2

    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

      2

      at org.springframework.context.expression.MethodBasedEvaluationContext.lazyLoadArguments()
    2. Spring Context
      CacheEvaluationContext.lookupVariable
      1. org.springframework.context.expression.MethodBasedEvaluationContext.lazyLoadArguments(MethodBasedEvaluationContext.java:94)
      2. org.springframework.context.expression.MethodBasedEvaluationContext.lookupVariable(MethodBasedEvaluationContext.java:68)
      3. org.springframework.cache.interceptor.CacheEvaluationContext.lookupVariable(CacheEvaluationContext.java:74)
      3 frames
    3. Spring Expression Language (SpEL)
      SpelExpression.getValue
      1. org.springframework.expression.spel.ExpressionState.lookupVariable(ExpressionState.java:144)
      2. org.springframework.expression.spel.ast.VariableReference.getValueInternal(VariableReference.java:75)
      3. org.springframework.expression.spel.ast.MethodReference.getArguments(MethodReference.java:154)
      4. org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:84)
      5. org.springframework.expression.spel.ast.CompoundExpression.getValueRef(CompoundExpression.java:57)
      6. org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:87)
      7. org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120)
      8. org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:242)
      8 frames
    4. Spring Context
      CacheInterceptor.invoke
      1. org.springframework.cache.interceptor.CacheOperationExpressionEvaluator.key(CacheOperationExpressionEvaluator.java:117)
      2. org.springframework.cache.interceptor.CacheAspectSupport$CacheOperationContext.generateKey(CacheAspectSupport.java:738)
      3. org.springframework.cache.interceptor.CacheAspectSupport.generateKey(CacheAspectSupport.java:554)
      4. org.springframework.cache.interceptor.CacheAspectSupport.findCachedItem(CacheAspectSupport.java:498)
      5. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:389)
      6. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:327)
      7. org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
      7 frames
    5. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      2 frames