[
https://jira.jboss.org/jira/browse/JBAOP-725?page=com.atlassian.jira.plug...
]
Kabir Khan commented on JBAOP-725:
----------------------------------
This is in Jesper's jca setup.
--------
<bean name="AspectManager"
class="org.jboss.aop.deployers.AspectManagerJDK5">
<constructor>
<parameter><![CDATA[
<aop>
</aop>]]>
</parameter>
</constructor>
<property name="jbossIntegration"><inject
bean="AOPJBossIntegration"/></property>
<property name="enableLoadtimeWeaving">false</property>
<!-- only relevant when EnableLoadtimeWeaving is true.
When transformer is on, every loaded class gets
transformed. If AOP can't find the class, then it
throws an exception. Sometimes, classes may not have
all the classes they reference. So, the Suppressing
is needed. (i.e. Jboss cache in the default configuration -->
<property name="suppressTransformationErrors">true</property>
<property name="prune">true</property>
<property name="include">org.jboss.test.,
org.jboss.injbossaop.</property>
<property name="exclude">org.jboss.</property>
<!-- This avoids instrumentation of hibernate cglib enhanced proxies
<property name="ignore">*$$EnhancerByCGLIB$$*</property>
-->
<property name="optimized">true</property>
<property name="verbose">false</property>
<!--
Available choices for this attribute are:
org.jboss.aop.instrument.ClassicInstrumentor (default)
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor
<property
name="instrumentor">org.jboss.aop.instrument.ClassicInstrumentor</property>
-->
<!--
By default the deployment of the aspects contained in
../deployers/jboss-aop-jboss5.deployer/base-aspects.xml
are not deployed. To turn on deployment uncomment this property
<property name="useBaseXml">true</property>
-->
</bean>
<bean name="AOPXMLMetaDataParserDeployer"
class="org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer">
<constructor>
<parameter>org.jboss.aop.microcontainer.beans.metadata.AOPDeployment</parameter>
</constructor>
<property name="suffix">-aop.xml</property>
</bean>
<bean name="AOPAnnotationMetaDataParserDeployer"
class="org.jboss.aop.asintegration.jboss5.AOPAnnotationMetaDataParserDeployer">
<constructor>
<parameter><inject bean="AOPXMLMetaDataParserDeployer"
property="relativeOrder"/></parameter>
</constructor>
</bean>
<bean name="AOPClassLoaderDeployer"
class="org.jboss.aop.asintegration.jboss5.AOPClassLoaderDeployer">
<property name="aspectManager"><inject
bean="AspectManager" property="aspectManager"/></property>
</bean>
<bean name="AOPDeploymentAopMetaDataDeployer"
class="org.jboss.aop.asintegration.jboss5.AOPDeploymentAopMetaDataDeployer">
<property name="kernel"><inject
bean="jboss.kernel:service=Kernel"/></property>
<property name="aspectManager"><inject
bean="AspectManager" property="aspectManager"/></property>
</bean>
<bean name="BeansDeploymentAopMetaDataDeployer"
class="org.jboss.aop.asintegration.jboss5.BeansDeploymentAopMetaDataDeployer">
<property name="kernel"><inject
bean="jboss.kernel:service=Kernel"/></property>
<property name="aspectManager"><inject
bean="AspectManager" property="aspectManager"/></property>
</bean>
--------
At runtime it seems that AOPClassLoaderDeployer gets injected with a null aspectManager
from AOPClassLoaderDeployer. Internally that calls
AspectManager.getTopLevelAspectManager() which is what returns null
NPE in AOPClassLoaderInitializer
--------------------------------
Key: JBAOP-725
URL:
https://jira.jboss.org/jira/browse/JBAOP-725
Project: JBoss AOP
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.1.0.GA
Reporter: Jesper Pedersen
java.lang.NullPointerException
at
org.jboss.aop.asintegration.jboss5.AOPClassLoaderInitializer.unregisterLoaders(AOPClassLoaderInitializer.java:54)
at
org.jboss.aop.asintegration.jboss5.AOPClassLoaderDeployer.internalUndeploy(AOPClassLoaderDeployer.java:77)
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:112)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:196)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1469)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1376)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1331)
at
org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:354)
at
org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1664)
at
org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1275)
at
org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1179)
at
org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:655)
at
org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:568)
at
org.jboss.dependency.plugins.AbstractController.shutdown(AbstractController.java:216)
at org.jboss.bootstrap.microcontainer.ServerImpl.doShutdown(ServerImpl.java:213)
at
org.jboss.bootstrap.AbstractServerImpl.shutdownServer(AbstractServerImpl.java:589)
at
org.jboss.bootstrap.AbstractServerImpl$ShutdownHook.run(AbstractServerImpl.java:909)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira