[JBoss AOP] - JBoss AOP Problem
by aopdeveloper
Hello!
I'm new on JBossAOP. I try to develop a simple application using jboss-aop-2.0.0.CR4, JBoss-4.2.2.GA and Eclipse 3.3.1. I've folowed the indications from the doc (http://docs.jboss.org/aop/1.3/aspect-framework/reference/en/html_single/i...) but still I have the following error:
anonymous wrote :
| [ServiceController] Problem creating service jboss.aop:service=AspectManager
| java.lang.NullPointerException
| at org.jboss.aop.deployment.AspectManagerServiceJDK5.attachTranslator(AspectManagerServiceJDK5.java:46)
| at org.jboss.aop.deployment.AspectManagerService.createService(AspectManagerService.java:200)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.create(Unknown Source)
| at org.jboss.system.ServiceController.create(ServiceController.java:330)
| at org.jboss.system.ServiceController.create(ServiceController.java:273)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.create(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:258)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Unknown Source)
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136964#4136964
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136964
18 years, 1 month
[EJB/JBoss] - Re: local entity bean lookup from session bean goes wrong
by y0ur1
"jaikiran" wrote : If you are trying to create a local ref for a entity bean inside a session bean, then this piece of code
|
| | <ejb-local-ref>
| | <ejb-ref-name>ejb/Book</ejb-ref-name>
| | <ejb-ref-type>Entity</ejb-ref-type>
| | <local-home>BookHome</local-home>
| | <local>Book</local>
| | <ejb-link>Book</ejb-link>
| | </ejb-local-ref>
|
| should be declared as part of the session bean configuration:
|
| | <session>
| | <!-- All the session bean related configuration, goes here-->
| | .....
| | <!-- Local reference to the entity bean goes here -->
| | <ejb-local-ref>
| | <ejb-ref-name>ejb/Book</ejb-ref-name>
| | <ejb-ref-type>Entity</ejb-ref-type>
| | <local-home>BookHome</local-home>
| | <local>Book</local>
| | <ejb-link>Book</ejb-link>
| | </ejb-local-ref>
| | </session>
You made my day! thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136960#4136960
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136960
18 years, 1 month
[JBoss jBPM] - Re: JbpmException: couldn't delete timers for process instan
by kukeltje
if that is the only question, then that seems totally unrelated to the topic and thus belong in a new one.
The yes/no what not the only thing you you asked (from my understanding) and thus not just what I anwserd.
Regarding you feeling offended, that is up to you. My experience is that in a lot of cases people (users) do something wrong in either the processdefinition or their actionhandlers. That is the reason I (indirectly) asked for more information *twice*. The reason I did this was to help *you* since I suspect (again from my experience as an 'expert' in this forum) that a simple yes or no would not suffice in your situation. What I could have told you (as I do in a lot of cases) was to just make a minimal unit test with embedded processdefinition and actionhandlers (as innerclasses) which demonstrates the problem. This would have been another way of formulating it, sorry that I did not do that.
Besides all this. I did provide useful information (in my very humble opinion) by referring to the testcases (which in our (not only mine, but the devs to) can and should be seen as part of the 'documentation'). If you had
I surely can occupy myself in other ways and preferably do so, but berating is high on my list. Cool btw using such a word... thankfully there is the internet to search for words hardly known to non-native English speakers.
anonymous wrote : be-rate
| tr.v. be-rat-ed, be-rat-ing, be-rates
| To rebuke or scold angrily and at length.
Rebuke? Hmmm... maybe (but that is in the eye of the beholder) luckily I knew that word, otherwise I had to lookup an additional word
Angrily? hmm... no...a little irritated... maybe
At length? Certainly not....
Hint: http://catb.org/~esr/faqs/smart-questions.html (and please do not take it as an offence)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136947#4136947
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136947
18 years, 1 month