org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1007E:(pos 0): Property or field 'artifact' cannot be found on null

Stack Overflow | gdav | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Spring expression not working after upgrading from spring 4.1.1 to 4.3.3

    Stack Overflow | 7 months ago | gdav
    org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1007E:(pos 0): Property or field 'artifact' cannot be found on null

    Root Cause Analysis

    1. org.springframework.beans.factory.BeanExpressionException

      Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1007E:(pos 0): Property or field 'artifact' cannot be found on null

      at uk.org.ppa.dispatcherapplications.event.ReportCompletedAdaptor.onApplicationEvent()
    2. uk.org.ppa
      ReportCompletedAdaptor.onApplicationEvent
      1. uk.org.ppa.dispatcherapplications.event.ReportCompletedAdaptor.onApplicationEvent(ReportCompletedAdaptor.java:34)
      2. uk.org.ppa.dispatcherapplications.event.ReportCompletedAdaptor.onApplicationEvent(ReportCompletedAdaptor.java:1)
      2 frames
    3. Spring Context
      AbstractApplicationContext.publishEvent
      1. org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
      2. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
      3. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382)
      4. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336)
      4 frames
    4. uk.org.ppa
      MultiReportRunner.run
      1. uk.org.ppa.dispatcherapplications.ReportRunner.fireReportCompletedEvent(ReportRunner.java:364)
      2. uk.org.ppa.dispatcherapplications.ReportRunner.doEvent(ReportRunner.java:347)
      3. uk.org.ppa.dispatcherapplications.ReportRunner.generateReport(ReportRunner.java:252)
      4. uk.org.ppa.dispatcherapplications.ReportRunner.generateReport(ReportRunner.java:211)
      5. uk.org.ppa.dispatcherapplications.ReportRunner.createReport(ReportRunner.java:195)
      6. uk.org.ppa.dispatcherapplications.MultiReportRunner.processReport(MultiReportRunner.java:88)
      7. uk.org.ppa.dispatcherapplications.MultiReportRunner.run(MultiReportRunner.java:60)
      7 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3 frames
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      3 frames
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:62)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      4. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      5. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      6. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      6 frames
    9. com.sun.proxy
      $Proxy17.run
      1. com.sun.proxy.$Proxy17.run(Unknown Source)
      1 frame
    10. uk.org.ppa
      AbstractRunnerWithPeriodTypeParameter.main
      1. uk.org.ppa.dispatcherapplications.AbstractRunnerWithPeriodTypeParameter.main(AbstractRunnerWithPeriodTypeParameter.java:119)
      1 frame