[jBPM] - jbpm 5.2 to jbpm 5.3
by Alberto Prieto
Alberto Prieto [https://community.jboss.org/people/albertopl19] created the discussion
"jbpm 5.2 to jbpm 5.3"
To view the discussion, visit: https://community.jboss.org/message/767007#767007
--------------------------------------------------------------
Hi,
I'm trying to migrate my app to jbpm 5.3 with spring. First my files:
Beans:
<jee:jndi-lookup id="JbpmDataSource" jndi-name="${jdbc.datasource.name}" />
JbpmTaskServiceImpl.java
@PersistenceUnit
private EntityManagerFactory emf;
@Autowired
private KnowledgeBase kbase;
@Autowired
private TaskSessionSpringFactoryImpl taskSessionFactory;
private TaskServiceSession taskServiceSession;
@PostConstruct
private void initTaskServiceSession() {
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
env.set(EnvironmentName.TRANSACTION_MANAGER,
TransactionManagerServices.getTransactionManager());
env.set(EnvironmentName.TRANSACTION_SYNCHRONIZATION_REGISTRY,
TransactionManagerServices
.getTransactionSynchronizationRegistry());
env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
env.set(EnvironmentName.OBJECT_MARSHALLING_STRATEGIES,
new ObjectMarshallingStrategy[] {
new JPAPlaceholderResolverStrategy(env),
new SerializablePlaceholderResolverStrategy(
ClassObjectMarshallingStrategyAcceptor.DEFAULT) });
this.taskServiceSession = this.taskSessionFactory
.createTaskServiceSession();
// this.taskServiceSession = taskService.createSession();
StatefulKnowledgeSession ksession = JPAKnowledgeService
.newStatefulKnowledgeSession(kbase, null, env);
CustomSyncWSHumanTaskHandler humanTaskHandler = new CustomSyncWSHumanTaskHandler(
this, ksession);
humanTaskHandler.setLocal(true);
humanTaskHandler.connect();
ksession.getWorkItemManager().registerWorkItemHandler("Web Flow Task",
humanTaskHandler);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task",
humanTaskHandler);
CustomWebServiceTaskHandler serviceHandler = new CustomWebServiceTaskHandler(
ksession);
ksession.getWorkItemManager().registerWorkItemHandler(
"Web Service Task", serviceHandler);
new JPAWorkingMemoryDbLogger(ksession);
}
When I try to start my server, I get javax.persistence.TransactionRequiredException: No local transaction to join. And when I debug, the ksession have a null WorkItemManager... don't know why.
Thanks for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/767007#767007]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[JBoss Remoting] - EOFExceptions and IOExceptions in EJB calls under load
by Christian Kölle
Christian Kölle [https://community.jboss.org/people/chrkoelle] created the discussion
"EOFExceptions and IOExceptions in EJB calls under load"
To view the discussion, visit: https://community.jboss.org/message/766986#766986
--------------------------------------------------------------
Hi
We have a web application that ist split up in a frontend and a backend application. The frontend calls EJBs in the backend. This works pretty well but in production we occasionaly we get exceptions at times that we know as high load periods.
Both applications run on JBoss 7.1.2 application servers.
In the frontend we see something like this:
00:59:10,337 ERROR [org.jboss.remoting.remote.connection] (Remoting "jboss-web-extern" read-1) JBREM000200: Remote connection failed: java.io.IOException: Input overrun
00:59:10,393 ERROR [ch.nic.reg.web.action.ds.uc02.DomainBasketHandler] (ajp-/0.0.0.0:8009-130) Cannot perform usecase ***
java.lang.reflect.UndeclaredThrowableException
$Proxy75.performUseCase(Unknown Source)
......
Cause: java.io.EOFException: Writes have been shut down
org.xnio.channels.FramedMessageChannel.send(FramedMessageChannel.java:220)
org.xnio.channels.Channels.sendBlocking(Channels.java:200)
org.jboss.remoting3.remote.OutboundMessage$1.accept(OutboundMessage.java:109)
org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:125)
org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:113)
In the backend something like this:
00:59:10,348 ERROR [org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler] (EJB default - 13) Could not write method invocation result for method public *** on bean named *** for appname *** modulename common-ejb distinctname due to : java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method) [rt.jar:1.7.0_06]
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) [rt.jar:1.7.0_06]
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) [rt.jar:1.7.0_06]
at sun.nio.ch.IOUtil.write(IOUtil.java:60) [rt.jar:1.7.0_06]
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450) [rt.jar:1.7.0_06]
at org.xnio.nio.AbstractNioStreamChannel.write(AbstractNioStreamChannel.java:303)
at org.xnio.channels.FramedMessageChannel.doFlushBuffer(FramedMessageChannel.java:297) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
at org.xnio.channels.FramedMessageChannel.doFlush(FramedMessageChannel.java:311) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
at org.xnio.channels.FramedMessageChannel.send(FramedMessageChannel.java:238) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
at org.xnio.channels.Channels.sendBlocking(Channels.java:200) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
at org.jboss.remoting3.remote.OutboundMessage$1.accept(OutboundMessage.java:109) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:125) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:113) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
at org.xnio.streams.BufferPipeOutputStream.flush(BufferPipeOutputStream.java:142) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
at org.xnio.streams.BufferPipeOutputStream.close(BufferPipeOutputStream.java:160) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
at org.jboss.remoting3.remote.OutboundMessage.close(OutboundMessage.java:193) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
at org.jboss.as.ejb3.remote.protocol.versionone.ChannelAssociation.releaseChannelMessageOutputStream(ChannelAssociation.java:85)
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.writeMethodInvocationResponse(MethodInvocationMessageHandler.java:348)
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$500(MethodInvocationMessageHandler.java:67)
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_06]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_06]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_06]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_06]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_06]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
I haven't found more information on this exceptions on the net.
For me it is not clear what this means. Does this have an effect on the users? Is there a problem with our implementation or perhaps the configuration?
Christian
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/766986#766986]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - Re: Problem displaying process instance in the ProcessTest example
by Miloslav Havrda
Miloslav Havrda [https://community.jboss.org/people/mhavrda] created the discussion
"Re: Problem displaying process instance in the ProcessTest example"
To view the discussion, visit: https://community.jboss.org/message/766980#766980
--------------------------------------------------------------
The same problem with jbpm-5.3.0.Final-bin.zip.
Message:
Problems occurred when invoking code from plug-in: "org.eclipse.jface".
Exception Stack Trace:
java.lang.IllegalArgumentException: Could not find process with id com.sample.evaluation
at org.drools.eclipse.debug.ProcessInstanceViewer$ProcessInstanceTabItem.<init>(ProcessInstanceViewer.java:96)
at org.drools.eclipse.debug.ProcessInstanceViewer.showProcessInstance(ProcessInstanceViewer.java:163)
at org.drools.eclipse.debug.ProcessInstancesView$DoubleClickAction.openProcessInstance(ProcessInstancesView.java:120)
at org.drools.eclipse.debug.ProcessInstancesView$DoubleClickAction.run(ProcessInstancesView.java:68)
at org.eclipse.debug.ui.AbstractDebugView.doubleClick(AbstractDebugView.java:731)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:824)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:822)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1421)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1225)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:238)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:235)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:296)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
Session Data:
eclipse.buildId=M20110210-1200
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=cs_CZ
Framework arguments: -product org.eclipse.epp.package.java.product -plugincustomization ./eclipse.preferences.ini -perspective org.jbpm.eclipse.JBPMPerspective
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product -data .//workspace -plugincustomization ./eclipse.preferences.ini -perspective org.jbpm.eclipse.JBPMPerspective
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/766980#766980]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[Beginner's Corner] - SSL with Windows Keystore
by Jonathon Aroutsidis
Jonathon Aroutsidis [https://community.jboss.org/people/johno2518] created the discussion
"SSL with Windows Keystore"
To view the discussion, visit: https://community.jboss.org/message/766550#766550
--------------------------------------------------------------
Hi Everyone,
Hopefully im posting in the right area. Basically i'm trying to configure the keystore and truststore to use the SunMSCAPI for SSL, however everytime JBoss is starting, it is looking for the .\Keystore file.
What do i need to do to get JBoss to not use the JKS keystore and use the Windows Keystore to find certificates for SSL.
The reason i don't want to use the Java keystore is because we have an internal certificate authority and when the CA newes certificates we want JBoss to use the renewed certificates instead of having to import the new ones every time they expire.
This is the current configuration:
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true" keyStoreProvider="SunMSCAPI" keyStoreType="Windows-MY" trustStoreProvider="SunMSCAPI" trusStoreType="Windows-ROOT"
clientAuth="false" sslProtocol="TLS" />
Any help would greatly be appreciated.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/766550#766550]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - Error with connection
by tmmaluleke
tmmaluleke [https://community.jboss.org/people/tmmaluleke] created the discussion
"Error with connection"
To view the discussion, visit: https://community.jboss.org/message/761847#761847
--------------------------------------------------------------
Hello,
Since I changed my database to mysql, when I run the my process I get this error:
| 0 | 27/09 11:03:44,406[main] ERROR service.hornetq.HornetQTaskClientConnector.connect - Unable to connect to server using configuration org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&host=127-0-0-1 |
org.jbpm.workflow.instance.WorkflowRuntimeException: [departmentOfEductaion.bpmn:1 - Dept Of Education Evaluation:3] -- Could not connect task client: on ip: 127.0.0.1 - port: 5445
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:130) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164) |
| | at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) |
| | at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) |
| | at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) |
| | at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188) |
| | at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303) |
| | at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168) |
| | at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138) |
| | at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082) |
| | at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320) |
| | at departmentOfEducation.DepartmentProcess.main(DepartmentProcess.java:29) |
Caused by: java.lang.IllegalArgumentException: Could not connect task client: on ip: 127.0.0.1 - port: 5445
| | at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.connect(GenericHTWorkItemHandler.java:119) |
| | at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:143) |
| | at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70) |
| | at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) |
| | ... 13 more |
What can be the cause of this error please help?
I can't connect to jbpm-console and guvnor. Thanx for the help in advanced.
cheers
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/761847#761847]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months