Announcement Announcement Module
Collapse
No announcement yet.
java.lang.IllegalArgumentException: Advice configuration failed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.IllegalArgumentException: Advice configuration failed

    Hi , I am using Spring with smart client , I am having this error in the code .
    entException: Advice configuration failed
    Caused by: java.lang.IllegalArgumentException: Advice configuration failed
    at org.springframework.aop.aspectj.annotation.Reflect iveAspectJAdvisorFactory.getAdvice(ReflectiveAspec tJAdvisorFacto
    ry.java:214)
    at org.springframework.aop.aspectj.annotation.Instant iationModelAwarePointcutAdvisorImpl.instantiateAdv ice(Instantiat
    ionModelAwarePointcutAdvisorImpl.java:145)
    at org.springframework.aop.aspectj.annotation.Instant iationModelAwarePointcutAdvisorImpl.<init>(Instant iationModelAwa
    rePointcutAdvisorImpl.java:94)
    at org.springframework.aop.aspectj.annotation.Reflect iveAspectJAdvisorFactory.getAdvisor(ReflectiveAspe ctJAdvisorFact
    ory.java:135)
    at org.springframework.aop.aspectj.annotation.Reflect iveAspectJAdvisorFactory$1.doWith(ReflectiveAspect JAdvisorFactor
    y.java:77)
    at org.springframework.util.ReflectionUtils.doWithMet hods(ReflectionUtils.java:191)
    at org.springframework.util.ReflectionUtils.doWithMet hods(ReflectionUtils.java:168)
    at org.springframework.aop.aspectj.annotation.Reflect iveAspectJAdvisorFactory.getAdvisors(ReflectiveAsp ectJAdvisorFac
    tory.java:73)
    at org.springframework.aop.aspectj.annotation.BeanFac toryAspectJAdvisorsBuilder.buildAspectJAdvisors(Be anFactoryAspec
    tJAdvisorsBuilder.java:109)
    at org.springframework.aop.aspectj.annotation.Annotat ionAwareAspectJAutoProxyCreator.findCandidateAdvis ors(Annotation
    AwareAspectJAutoProxyCreator.java:85)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueR
    esolver.java:112)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireC
    apableBeanFactory.java:1019)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableB
    eanFactory.java:809)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBea
    nFactory.java:425)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 50)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.j
    ava:141)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:247)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:161)
    at org.springframework.aop.framework.autoproxy.BeanFa ctoryAdvisorRetrievalHelper.findAdvisorBeans(BeanF actoryAdvisorR
    etrievalHelper.java:73)
    at org.springframework.aop.framework.autoproxy.Abstra ctAdvisorAutoProxyCreator.findCandidateAdvisors(Ab stractAdvisorA
    utoProxyCreator.java:98)
    at org.springframework.aop.aspectj.annotation.Annotat ionAwareAspectJAutoProxyCreator.findCandidateAdvis ors(Annotation
    AwareAspectJAutoProxyCreator.java:83)
    at org.springframework.aop.framework.autoproxy.Abstra ctAdvisorAutoProxyCreator.findEligibleAdvisors(Abs tractAdvisorAu
    toProxyCreator.java:85)
    at org.springframework.aop.framework.autoproxy.Abstra ctAdvisorAutoProxyCreator.getAdvicesAndAdvisorsFor Bean(AbstractA
    dvisorAutoProxyCreator.java:69)
    at org.springframework.aop.framework.autoproxy.Abstra ctAutoProxyCreator.postProcessAfterInitialization( AbstractAutoPr
    oxyCreator.java:265)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyBeanPostProcessors AfterInitializ
    ation(AbstractAutowireCapableBeanFactory.java:316)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapabl
    eBeanFactory.java:1094)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBea
    nFactory.java:429)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 50)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.j
    ava:141)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:247)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:161)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanF
    actory.java:270)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:346)
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApp
    licationContext.java:156)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:246)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:184)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 49)
    at weblogic.servlet.internal.EventsManager$FireContex tListenerAction.run(EventsManager.java:458)
    at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Un known Source)
    at weblogic.servlet.internal.EventsManager.notifyCont extCreatedEvent(EventsManager.java:168)
    at weblogic.servlet.internal.WebAppServletContext.pre loadResources(WebAppServletContext.java:1721)
    at weblogic.servlet.internal.WebAppServletContext.sta rt(WebAppServletContext.java:2890)
    at weblogic.servlet.internal.WebAppModule.startContex ts(WebAppModule.java:948)
    at weblogic.servlet.internal.WebAppModule.start(WebAp pModule.java:353)
    at weblogic.application.internal.flow.ModuleStateDriv er$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriv er.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDri ver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerI nvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriv er$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriv er.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlo w.activate(StartModulesFlow.java:26)
    at weblogic.application.internal.BaseDeployment$2.nex t(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.activ ate(BaseDeployment.java:212)
    at weblogic.application.internal.DeploymentStateCheck er.activate(DeploymentStateChecker.java:154)
    at weblogic.deploy.internal.targetserver.AppContainer Invoker.activate(AppContainerInvoker.java:80)
    at weblogic.deploy.internal.targetserver.operations.A bstractOperation.activate(AbstractOperation.java:5 66)
    at weblogic.deploy.internal.targetserver.operations.A ctivateOperation.activateDeployment(ActivateOperat ion.java:136)
    at weblogic.deploy.internal.targetserver.operations.A ctivateOperation.doCommit(ActivateOperation.java:1 04)
    at weblogic.deploy.internal.targetserver.operations.A bstractOperation.commit(AbstractOperation.java:320 )
    at weblogic.deploy.internal.targetserver.DeploymentMa nager.handleDeploymentCommit(DeploymentManager.jav a:816)
    at weblogic.deploy.internal.targetserver.DeploymentMa nager.activateDeploymentList(DeploymentManager.jav a:1223)
    at weblogic.deploy.internal.targetserver.DeploymentMa nager.handleCommit(DeploymentManager.java:434)
    at weblogic.deploy.internal.targetserver.DeploymentSe rviceDispatcher.commit(DeploymentServiceDispatcher .java:161)
    at weblogic.deploy.service.internal.targetserver.Depl oymentReceiverCallbackDeliverer.doCommitCallback(D eploymentRecei)


    I was using asm 3.1 .jar previously , but at that time i was getting error
    java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V

    So i replaced it with asm-all-2.2.3.jar. so now i am getting this error...
    can anyone help me out.?? its urgent.

  • #2
    It would help if you posted in the right forum: this one is for the dm Server, not for generic Spring apps running on WebLogic.
    Are you sure there's no other exception in your log? Or a "caused by" clause?

    Comment


    • #3
      yes ia m sure..

      yes i am sure..
      i am again giving u some errors i am getting ...
      MaM.jar!/config/applicationContext-DataSource.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgum
      entException: Advice configuration failed
      Caused by: java.lang.IllegalArgumentException: Advice configuration failed
      at org.springframework.aop.aspectj.annotation.Reflect iveAspectJAdvisorFactory.getAdvice(ReflectiveAspec tJAdvisorFacto
      ry.java:214)
      at org.springframework.aop.aspectj.annotation.Instant iationModelAwarePointcutAdvisorImpl.instantiateAdv ice(Instantiat
      ionModelAwarePointcutAdvisorImpl.java:145)
      at org.springframework.aop.aspectj.annotation.Instant iationModelAwarePointcutAdvisorImpl.<init>(Instant iationModelAwa
      rePointcutAdvisorImpl.java:94)
      at org.springframework.aop.aspectj.annotation.Reflect iveAspectJAdvisorFactory.getAdvisor(ReflectiveAspe ctJAdvisorFact
      ory.java:135)
      at org.springframework.aop.aspectj.annotation.Reflect iveAspectJAdvisorFactory$1.doWith(ReflectiveAspect JAdvisorFactor
      y.java:77)
      at org.springframework.util.ReflectionUtils.doWithMet hods(ReflectionUtils.java:191)
      at org.springframework.util.ReflectionUtils.doWithMet hods(ReflectionUtils.java:168)
      at org.springframework.aop.aspectj.annotation.Reflect iveAspectJAdvisorFactory.getAdvisors(ReflectiveAsp ectJAdvisorFac
      tory.java:73)
      at org.springframework.aop.aspectj.annotation.BeanFac toryAspectJAdvisorsBuilder.buildAspectJAdvisors(Be anFactoryAspec
      tJAdvisorsBuilder.java:109)
      at org.springframework.aop.aspectj.annotation.Annotat ionAwareAspectJAutoProxyCreator.findCandidateAdvis ors(Annotation
      AwareAspectJAutoProxyCreator.java:85)
      at org.springframework.aop.framework.autoproxy.Abstra ctAdvisorAutoProxyCreator.findEligibleAdvisors(Abs tractAdvisorAu
      toProxyCreator.java:85)
      at org.springframework.aop.framework.autoproxy.Abstra ctAdvisorAutoProxyCreator.getAdvicesAndAdvisorsFor Bean(AbstractA
      dvisorAutoProxyCreator.java:69)
      at org.springframework.aop.framework.autoproxy.Abstra ctAutoProxyCreator.postProcessAfterInitialization( AbstractAutoPr
      oxyCreator.java:265)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyBeanPostProcessors AfterInitializ
      ation(AbstractAutowireCapableBeanFactory.java:316)


      weblogic.application.ModuleException:
      at weblogic.servlet.internal.WebAppModule.startContex ts(WebAppModule.java:950)
      at weblogic.servlet.internal.WebAppModule.start(WebAp pModule.java:353)
      at weblogic.application.internal.flow.ModuleStateDriv er$3.next(ModuleStateDriver.java:204)
      at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
      at weblogic.application.internal.flow.ModuleStateDriv er.start(ModuleStateDriver.java:60)
      Truncated. see log file for complete stacktrace
      java.lang.IllegalStateException: Throwing argument name 'authExcp' was not bound in advice arguments
      at org.springframework.aop.aspectj.AbstractAspectJAdv ice.bindExplicitArguments(AbstractAspectJAdvice.ja va:407)
      at org.springframework.aop.aspectj.AbstractAspectJAdv ice.bindArgumentsByName(AbstractAspectJAdvice.java :349)
      at org.springframework.aop.aspectj.AbstractAspectJAdv ice.calculateArgumentBindings(AbstractAspectJAdvic e.java:318)
      at org.springframework.aop.aspectj.AbstractAspectJAdv ice.afterPropertiesSet(AbstractAspectJAdvice.java: 284)
      at org.springframework.aop.aspectj.annotation.Reflect iveAspectJAdvisorFactory.getAdvice(ReflectiveAspec tJAdvisorFacto
      ry.java:211)

      Comment


      • #4
        Looks like an error in an aspect:
        "Throwing argument name 'authExcp' was not bound in advice arguments"
        Maybe some AfterThrowing advice with a wrong pointcut to bind the thrown Exception?

        Also notice the line "Truncated. see log file for complete stacktrace": there might be more info in the log.

        Comment


        • #5
          i got the soultion .. it was because 2 jar files were conflicting.. thanks..

          Comment


          • #6
            Just in case anyone else gets this issue, try to find out spring jars in your class path. I had spring 3.0 and spring 2.0.2 being transtively imported via spring-json.jar.

            I excluded the spring 2.0.2 and it worked.

            Comment

            Working...
            X