Java15ReflectionBasedReferenceTypeDelegate

Help
Pragnesh
2009-06-04
2013-05-09
  • Pragnesh

    Pragnesh - 2009-06-04

    Hi Jason,

    Just wanted to know if any 1 saw this error? This class exists in aspectjweaver.jar that is present in WEB-INF/lib file. The same thing works fine when I deploy your beet-hello as a web application. However when I deploy it in a separate web app in an ear I see this error. Could you please help. I am running this as a portal web project.
    java version "1.6.0_05"
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
    BEA JRockit(R) (build R27.6.0-50_o-100423-1.6.0_05-20080626-2104-linux-ia32, compiled mode)

    java.lang.IllegalStateException: Attempted to create Java 1.5 reflection based delegate but org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDe
    legate was not found on classpath
            at org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDelegateFactory.create15Delegate(ReflectionBasedReferenceTypeDelegateFactory.java:59)
            at org.aspectj.weaver.reflect.ReflectionBasedReferenceTypeDelegateFactory.createDelegate(ReflectionBasedReferenceTypeDelegateFactory.java:42)
            at org.aspectj.weaver.reflect.ReflectionWorld.resolveDelegate(ReflectionWorld.java:110)
            at org.aspectj.weaver.World.resolveToReferenceType(World.java:379)
            at org.aspectj.weaver.World.resolve(World.java:272)
            at org.aspectj.weaver.World.resolve(World.java:192)
            at org.aspectj.weaver.World.resolve(World.java:339)
            at org.aspectj.weaver.tools.PointcutParser.buildResolutionScope(PointcutParser.java:398)
            at org.aspectj.weaver.tools.PointcutParser.resolvePointcutExpression(PointcutParser.java:329)
            at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:308)
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:206)
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:193)
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:174)
            at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:195)
            at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:250)
            at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:284)
            at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:113)
            at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:85)
            at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66
    )
            at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:362)
            at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:325)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableB
    eanFactory.java:361)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

     
    • Jason Trump

      Jason Trump - 2009-06-05

      Hi Pragnesh,

      I haven't seen this exact error, but I'll take a guess.  Probably aspectjweaver.jar has been deployed in WEB-INF/lib, but maybe spring.jar have been deployed to APP-INF/lib.  Since aspectj is a dependency of spring, it has to be included with spring.

      If this describes your situation, could you try moving aspectj jars into APP-INF lib and see if that resolves the problem?

      -jt

       
    • Pragnesh

      Pragnesh - 2009-06-05

      Hi Jason,

      I was able to resolve this issue. There was another version of AspectJ.jar that was installed at the server level. Hence the issue.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks