[jboss-user] [jBPM Users] - Re: Connection time out during Configuration.setResource

hidman78 do-not-reply at jboss.com
Fri Sep 4 20:15:26 EDT 2009


Thx. I was behind a proxy and it was'nt able to connect to http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd.
I don't understand why it has to, but it is working by removing it or with direct internet connexion.
 
Now I have different problems

1)
jobexecutor import in my hibernate config seems to create the following error 


org.jbpm.api.JbpmException: no command executor available in job executor
  | 	at org.jbpm.pvm.internal.jobexecutor.JobExecutor.start(JobExecutor.java:78)
  | 	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.jbpm.pvm.internal.util.ReflectUtil.invoke(ReflectUtil.java:267)
  | 	at org.jbpm.pvm.internal.wire.operation.InvokeOperation.apply(InvokeOperation.java:39)
  | 	at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:229)
  | 	at org.jbpm.pvm.internal.wire.WireContext.performInitialization(WireContext.java:537)
  | 	at org.jbpm.pvm.internal.wire.WireContext.processPendingInitializations(WireContext.java:568)
  | 	at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:454)
  | 	at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:441)
  | 	at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:421)
  | 	at org.jbpm.pvm.internal.wire.WireContext.initializeEagerObjects(WireContext.java:287)
  | 	at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:272)
  | 	at org.jbpm.pvm.internal.cfg.JbpmConfiguration.buildProcessEngine(JbpmConfiguration.java:132)
  | 	at javaclass.DAO.BillDAO.findByExample(BillDAO.java:41)
  | 	at javaclass.action.ListBillAction.execute(ListBillAction.java:29)
  | 	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
  | 	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
  | 	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
  | 	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
  | 	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
  | 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
  | 	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  | 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  | 	at java.lang.Thread.run(Unknown Source)

But as I don't use it I deleted the line (I think there is a problem behind it but I could't find it)

2) Now i'm getting a new error on : 
ProcessInstance processinstance = executionService.startProcessInstanceByKey("taskformExample"); 



  | java.lang.NullPointerException
  | 	at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:66)
  | 	at javaclass.DAO.BillDAO.findByExample(BillDAO.java:45)
  | 	at javaclass.action.ListBillAction.execute(ListBillAction.java:29)
  | 	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
  | 	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
  | 	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
  | 	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
  | 	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
  | 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
  | 	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  | 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  | 	at java.lang.Thread.run(Unknown Source)

taskformExample appear in the console and seems to be good.
stack variables :

processEngine	JbpmConfiguration  (id=77)	
  | 	authenticatedUserIdThreadLocal	ThreadLocal<T>  (id=481)	
  | 	impl	null	
  | 	isConfigured	true	
  | 	processEngineWireContext	WireContext  (id=484)	
  | 	transactionWireDefinition	WireDefinition  (id=489)	
  | 	userCommandService	null	
  | 	userProvidedEnvironmentObjectsThreadLocal	ThreadLocal<T>  (id=492)	

executionService	ExecutionServiceImpl  (id=80)	
  | 	commandService	null	

I think the problem come from commandService that is null, but I don't know why.

I didn't change the other files.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253691#4253691

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253691



More information about the jboss-user mailing list