1 Reply Latest reply on Apr 4, 2005 5:02 PM by Bill Burke

    EAR hotdeploy

    Charles Abreu Newbie

      Hi,

      I'm getting java.lang.ExceptionInInitializerError's every time I redeploy a J2EE application that is using jboss-aop. If I simply restart Jboss it all works perfectly.

      I'm using Jboss 4.0.1sp1 with jdk5 and jboss-aop-1.1

      Are there any known issues about AOP and EAR hotdeploy? I haven't see it posted anywhere...

      thank's


      java.lang.ExceptionInInitializerError
      at br.com.tsi.aion.rh.web.CadastroEmpregado.salvar(CadastroEmpregado.jav
      a:103)
      at br.com.tsi.aion.rh.web.CadastroEmpregado.doPost(CadastroEmpregado.jav
      a:57)
      at br.com.tsi.aion.rh.web.CadastroEmpregado.doGet(CadastroEmpregado.java
      :41)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
      ContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:150)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:102)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:54)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
      eContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
      0)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
      :577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
      ool.java:683)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.RuntimeException: java.lang.NullPointerException
      at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:54)
      at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:494)
      at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:535)
      at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:
      454)
      at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:237)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:209)
      at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:321)
      at br.com.tsi.aion.rh.Empregado.(Empregado.java)
      ... 38 more
      Caused by: java.lang.NullPointerException
      at org.jboss.mx.loading.RepositoryClassLoader.addURL(RepositoryClassLoad
      er.java:647)
      at org.jboss.aop.deployment.JBossClassPoolFactory.createTempDir(JBossCla
      ssPoolFactory.java:66)
      at org.jboss.aop.deployment.JBossClassPoolFactory.create(JBossClassPoolF
      actory.java:41)
      at org.jboss.aop.AOPClassPool.createAOPClassPool(AOPClassPool.java:118)
      at org.jboss.aop.AspectManager.registerClassLoader(AspectManager.java:41
      3)
      at org.jboss.aop.AspectManager.findClassPool(AspectManager.java:398)
      at org.jboss.aop.advice.PerVmAdvice.generateInterceptor(PerVmAdvice.java
      :63)
      at org.jboss.aop.advice.PerVmAdvice.generateOptimized(PerVmAdvice.java:3
      7)
      at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:50)
      ... 46 more