[JBoss jBPM] - Failure instantiating custom ActionHandler
by chip_schoch
JBossAs 4.2.2.GA, jpdl 3.2.2
Each time try to run my process it cannot load my action class. Looking at it in the debugger and it is trying to load it from the db. I included the action classes in a jar in the service archiveI deployed, not in the process definition. (Although when I added it to the process definition deployer it did not instantiate it either).
I am not how to proceed. It used to work and now it doesn't and I don't know why.
2008-04-18 15:12:40,097 ERROR [org.jbpm.instantiation.Delegation] couldn't load delegation class 'com.eLynx.jbpm.handler.MdbNodeHandler'
| java.lang.ClassNotFoundException: class 'com.eLynx.jbpm.handler.MdbNodeHandler' could not be found by the process classloader
| at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:118)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140)
| at org.jbpm.instantiation.Delegation.getInstance(Delegation.java:125)
| at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.instantiation.Delegation_$$_javassist_12.getInstance(Delegation_$$_javassist_12.java)
| at org.jbpm.graph.def.Action.execute(Action.java:121)
| at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Action_$$_javassist_69.execute(Action_$$_javassist_69.java)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
| at org.jbpm.graph.def.Node.execute(Node.java:339)
| at org.jbpm.graph.def.Node.enter(Node.java:319)
| at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Node_$$_javassist_55.enter(Node_$$_javassist_55.java)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:394)
| at org.jbpm.graph.node.StartState.leave(StartState.java:70)
| at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Node_$$_javassist_55.leave(Node_$$_javassist_55.java)
| at org.jbpm.graph.exe.Token.signal(Token.java:195)
| at org.jbpm.graph.exe.Token.signal(Token.java:140)
| at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:271)
| at com.eLynx.jbpm.mdb.JbpmProcessBean.beginProcess(JbpmProcessBean.java:111)
| at com.eLynx.jbpm.mdb.JbpmProcessBean.onMessage(JbpmProcessBean.java:269)
| 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:585)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
| at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:47)
| at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
| at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
| at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
| at org.jboss.ejb.Container.invoke(Container.java:960)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
| at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
| at org.jboss.jms.client.container.ClientConsumer.callOnMessage(ClientConsumer.java:159)
| at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:802)
| at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect14.invoke(SessionAspect14.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541955702.invokeNext(ClientSessionDelegate$run_N8003352271541955702.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541955702.invokeNext(ClientSessionDelegate$run_N8003352271541955702.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)
| at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)
| at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
| at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145250#4145250
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145250
18 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Getting Log4j configured for an EAR: DLQHandler NullPointerE
by mmichalek
I am interested in deploying an EAR which contains its own log4j.xml configuration. I've seen a lot of references which recommend class loader scoping to get this done.
I followed the advice from http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125552 which apparently has worked for some people. It worked in part for me.
I was able to get log4j configured for my EAR by adding a jboss-app.xml to my ear:
<jboss-app>
| <loader-repository>
| com.micros_retail:loader=XcenterLoader
| <loader-repository-config>
| java2ParentDelegation=false
| </loader-repository-config>
| </loader-repository>
| </jboss-app>
However, once I define the loader-repository, my EJB 2.0 MDB fails to deploy:
| 2008-04-18 13:18:16,592 TRACE [org.jboss.ejb.plugins.jms.DLQHandler] Constructing
| 2008-04-18 13:18:16,592 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
| 2008-04-18 13:18:16,592 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Using factory: null
| 2008-04-18 13:18:16,592 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler
| java.lang.NullPointerException
| at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:187)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
| at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:188)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:510)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl$ExceptionListenerRunnable.run(JMSContainerInvoker.java:1428)
| at java.lang.Thread.run(Thread.java:595)
|
Apparently the QueryConnectionFactory lookup is failing. I don't know where to go from here. Any help or ideas would be appreciated. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145235#4145235
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145235
18 years, 3 months