• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

AOP AspectManager not working on Jboss 5

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

first time here I am trying AOP on Jboss5.

I'm upgraded jboss5 with the jboss-aop-2.1.GA, this means I've used the readMeAs5.txt file and copied the following

------------------------------
To upgrade your jboss instance:
1) Copy the contents of the lib folder into the JBoss-5.x/lib/ folder
2) Copy the jboss-aop-jdk50.deployer over the JBoss-5.x/server/xxx/deployers/jboss-aop-jboss5.deployer/ folder
3) Copy the jboss-aop-client.jar (located at ../lib) into the JBoss-5.x/client/ folder.
Note that this will not replace the jboss-aspect-library.jar, which is tied to application server version
------------------------------

Then in the jboss batch file I've added the two properties, javaagent and aop.xml

------------------------------
rem path per AOP, libreria
set JAVA_OPTS=%JAVA_OPTS% -javaagent:D:\SVILUPPO\JBOSS5\server\default\deployers\jboss-aop-jboss5.deployer\pluggable-instrumentor.jar

rem path per AOP, file xml
set JAVA_OPTS=%JAVA_OPTS% -Djboss.aop.path=D:/SVILUPPO/JBOSS5/bin/Sviluppo/jboss-aop.xml
------------------------------


When I try to start Jboss I get the following

----------------------------------------------------------------
D:\SVILUPPO\JBOSS5\bin>runSysOut.bat
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: D:\SVILUPPO\JBOSS5

JAVA: c:\Programmi\Java\jdk1.6.0_11\bin\java

JAVA_OPTS: -Dprogram.name=runSysOut.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=tr
ue -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dit.tasgroup.dse.env=Sviluppo/ -Djbo
ss.bind.address=localhost -Dorg.jboss.logging.Log4jService.catchSystemOut=false -javaagent:D:\SVILUPPO\JBOSS5\server\def
ault\deployers\jboss-aop-jboss5.deployer\pluggable-instrumentor.jar -Djboss.aop.path=D:/SVILUPPO/JBOSS5/bin/Sviluppo/jbo
ss-aop.xml

CLASSPATH: D:\SVILUPPO\JBOSS5\bin\run.jar;D:\SVILUPPO\JBOSS5\bin\Sviluppo;
===============================================================================

12:37:39,081 INFO [ServerImpl] Starting JBoss (Microcontainer)...
12:37:39,081 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)
12:37:39,081 INFO [ServerImpl] Bootstrap URL: null
12:37:39,081 INFO [ServerImpl] Home Dir: D:\SVILUPPO\JBOSS5
12:37:39,081 INFO [ServerImpl] Home URL: file:/D:/SVILUPPO/JBOSS5/
12:37:39,081 INFO [ServerImpl] Library URL: file:/D:/SVILUPPO/JBOSS5/lib/
12:37:39,081 INFO [ServerImpl] Patch URL: null
12:37:39,081 INFO [ServerImpl] Common Base URL: file:/D:/SVILUPPO/JBOSS5/common/
12:37:39,081 INFO [ServerImpl] Common Library URL: file:/D:/SVILUPPO/JBOSS5/common/lib/
12:37:39,097 INFO [ServerImpl] Server Name: default
12:37:39,097 INFO [ServerImpl] Server Base Dir: D:\SVILUPPO\JBOSS5\server
12:37:39,097 INFO [ServerImpl] Server Base URL: file:/D:/SVILUPPO/JBOSS5/server/
12:37:39,097 INFO [ServerImpl] Server Config URL: file:/D:/SVILUPPO/JBOSS5/server/default/conf/
12:37:39,097 INFO [ServerImpl] Server Home Dir: D:\SVILUPPO\JBOSS5\server\default
12:37:39,097 INFO [ServerImpl] Server Home URL: file:/D:/SVILUPPO/JBOSS5/server/default/
12:37:39,097 INFO [ServerImpl] Server Data Dir: D:\SVILUPPO\JBOSS5\server\default\data
12:37:39,097 INFO [ServerImpl] Server Library URL: file:/D:/SVILUPPO/JBOSS5/server/default/lib/
12:37:39,097 INFO [ServerImpl] Server Log Dir: D:\SVILUPPO\JBOSS5\server\default\log
12:37:39,097 INFO [ServerImpl] Server Native Dir: D:\SVILUPPO\JBOSS5\server\default\tmp\native
12:37:39,097 INFO [ServerImpl] Server Temp Dir: D:\SVILUPPO\JBOSS5\server\default\tmp
12:37:39,097 INFO [ServerImpl] Server Temp Deploy Dir: D:\SVILUPPO\JBOSS5\server\default\tmp\deploy
12:37:39,800 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/D:/SVILUPPO/JBOSS5/server/default/conf/boots
trap.xml
12:37:40,222 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
12:37:40,222 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
12:37:40,503 INFO [CopyMechanism] VFS temp dir: D:\SVILUPPO\JBOSS5\server\default\tmp
12:37:40,503 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
12:37:40,690 ERROR [AbstractKernelController] Error installing to Create: name=AspectManager state=Configured
java.lang.NullPointerException
at org.jboss.aop.asintegration.jboss5.JBoss5Integration.getDomainRegistry(JBoss5Integration.java:125)
at org.jboss.aop.asintegration.jboss5.JBoss5Integration.createScopedClassPoolFactory(JBoss5Integration.java:137)

at org.jboss.aop.asintegration.core.AspectManagerServiceDelegate.createFactory(AspectManagerServiceDelegate.java
:194)
at org.jboss.aop.asintegration.core.AspectManagerServiceDelegate.create(AspectManagerServiceDelegate.java:238)
at org.jboss.aop.deployers.AbstractAspectManager.create(AbstractAspectManager.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelCont
rollerContextAction.java:241)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerCo
ntextAction.java:109)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAc
tion.java:70)
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
Action.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
1)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:331)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:309)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:144)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
12:37:41,394 INFO [ServerInfo] Java version: 1.6.0_11,Sun Microsystems Inc.
12:37:41,394 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.0-b16,Sun Microsystems Inc.
12:37:41,409 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
12:37:41,425 INFO [JMXKernel] Legacy JMX core initialized
12:37:43,566 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository
.SerializableDeploymentRepository@1de152f(root=D:\SVILUPPO\JBOSS5\server, key=org.jboss.profileservice.spi.ProfileKey@14
3b82c3[domain=default,server=default,name=default])
12:37:43,566 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeployme
ntRepository@1de152f(root=D:\SVILUPPO\JBOSS5\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default
,server=default,name=default])
12:37:43,581 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@106def2{key=org.jboss.profileservice.spi.ProfileKey@
143b82c3[domain=default,server=default,name=default]}
Failed to boot JBoss:
java.lang.IllegalStateException: Incompletely deployed:

*** DEPLOYMENTS IN ERROR: Name -> Error
AspectManager -> java.lang.NullPointerException

*** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
JMXRegistrationAdvice$AspectBinding -> AspectManager{Installed:**ERROR**}
AOPClassLoaderDeployer -> AspectManager{Installed:**ERROR**}
JMXCreateDestroyAdvice$AspectBinding -> AspectManager{Installed:**ERROR**}
JMXStartStopAdvice$AspectBinding -> AspectManager{Installed:**ERROR**}
AspectManagerJMXRegistrar -> AspectManager{Installed:**ERROR**}
BeansDeploymentAopMetaDataDeployer -> AspectManager{Installed:**ERROR**}, jboss.kernel:service=Kernel{Installed:**ERROR*
*}
AOPDeploymentAopMetaDataDeployer -> jboss.kernel:service=Kernel{Installed:**ERROR**}, AspectManager{Installed:**ERROR**}


at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:148)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
12:37:44,144 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
12:37:44,144 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
Premere un tasto per continuare . . .
-----------------------------------------------------------------------------
 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic