[jBPM] - jBPM 5.4 Error reported by task server: Task operation request timed out when running evaluation project
by Pedro Zuppelli
Pedro Zuppelli [https://community.jboss.org/people/uniocos] created the discussion
"jBPM 5.4 Error reported by task server: Task operation request timed out when running evaluation project"
To view the discussion, visit: https://community.jboss.org/message/809406#809406
--------------------------------------------------------------
Hi! I'm running the wvaluation project that comes with the jBPM 5.4.0 Final installer. I've ran ant install.demo, and ant start.demo. But whenever I try to ran the ProcessTest I'm getting the following exception
[code]
1 20/04 18:46:11,029[main] ERROR workitem.wsht.GenericHTWorkItemHandler.executeWorkItem - Sat Apr 20 18:46:11 ART 2013: Error when creating task on task server for work item id 1. Error reported by task server: Task operation request timed out
java.lang.RuntimeException: Task operation request timed out
at org.jbpm.task.service.SyncTaskServiceWrapper.addTask(SyncTaskServiceWrapper.java:118)
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:182)
at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238)
[/code]
I've shut down the jboss server and started it manually with the same result, no exception on war deployment, yet I cannot start the evaluation process. I can connect with the console properly in the following url http://localhost:8080/jbpm-console/ http://localhost:8080/jbpm-console/ yet I cannot add tasks.
Any idea why is this happening? I'm running the test with the eclipse instance that gets installed and called with the ant goal.
Thanks!
Pedro Zuppelli
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/809406#809406]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
[Beginner's Corner] - Unable to access JBoss Console
by colshine
colshine [https://community.jboss.org/people/colshine] created the discussion
"Unable to access JBoss Console"
To view the discussion, visit: https://community.jboss.org/message/808445#808445
--------------------------------------------------------------
I've installed JBoss on Fedora 18, it starts and I can access the default welcome page. I setup a standalong config using:
jboss-as-cp -l $HOME/s
However, when I attempt to access the console I get a blank page. I'm running a standalone server and there are no errors in the log:
jboss/bin/standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/share/jboss-as
JAVA: java
JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
=========================================================================
20:56:19,237 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
20:56:19,362 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
20:56:19,407 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
20:56:20,025 INFO [org.xnio] XNIO Version 3.0.3.GA
20:56:20,036 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
20:56:20,040 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
20:56:20,055 INFO [org.jboss.remoting] JBoss Remoting version 3.2.4.GA
20:56:20,084 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
20:56:20,129 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 22) JBAS010280: Activating Infinispan subsystem.
20:56:20,133 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 18) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
20:56:20,154 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 26) JBAS011800: Activating Naming Subsystem
20:56:20,178 INFO [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
20:56:20,186 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
20:56:20,195 INFO [org.jboss.as.security] (ServerService Thread Pool -- 29) JBAS013101: Activating Security Subsystem
20:56:20,200 INFO [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.6.final
20:56:20,278 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on fedora-vm/10.0.1.3:9447
20:56:20,447 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http-fedora-vm-10.0.1.3-9480
20:56:20,622 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on fedora-vm/10.0.1.3:9999
20:56:20,642 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory /home/s/jboss/deployments
20:56:20,752 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
20:56:20,835 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://10.0.1.3:9990 http://10.0.1.3:9990
20:56:20,836 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 1774ms - Started 126 of 159 services (32 services are passive or on-demand)
Does anyone know what I've missed?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/808445#808445]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
[JBoss Web Services] - Updating JBossWS-CXF in AS 6.1?
by Andrew Hart
Andrew Hart [https://community.jboss.org/people/naql] created the discussion
"Updating JBossWS-CXF in AS 6.1?"
To view the discussion, visit: https://community.jboss.org/message/809853#809853
--------------------------------------------------------------
I am having many issues with WS-Security configuration using JBoss AS 6.1 with JBossWS-CXF 3.4.1 which comes with CXF 2.3.1 and WSS4J 1.5.8. I am being told on the CXF mailing lists that these versions are ancient and that I should upgrade, but I am in an environment where I am constrained to stick with this version of JBoss AS.
So, my questions are:
Has anyone successfully updated JBossWS-CXF in AS 6?
In the compatibility matrix, nothing is marked as tested later than the version that I have. Am I inviting alot of new issues with JBoss/CXF integration if I do this?
Or, should I just try to disable all the web service stuff in Jboss AS 6 and then completely embed CXF? If I were to take this approach, what would be an efficient way of going about this, considering that I will have several web service modules that will need it? Should I bundle them all into an EAR project and then just let the web service modules use them there? Should I then avoid the JBossWS-Tools in eclipse, which I suppose rely on JBossWS-CXF integration features?
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/809853#809853]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
[JNDI and Naming] - Cannot map java:/JmsXA to web app resource as java:comp/env/jms/JmsXA
by chris.wolf
chris.wolf [https://community.jboss.org/people/chris.wolf] created the discussion
"Cannot map java:/JmsXA to web app resource as java:comp/env/jms/JmsXA"
To view the discussion, visit: https://community.jboss.org/message/809836#809836
--------------------------------------------------------------
Hello,
This is my first post. I want to use a JMS ConectionFactory via a Resource Adapter, therefore I want the CF boud to "java:JmsXA". I want to access this from a web application, but it cannot "see" this (returns null upon attempt to lookup). I don't understand why this is an issue since the web app is in the same VM as the JBoss server. I wonder if there are other isolation mechanisms to consider for web apps accessing the "java:" namespace?
I know that "JmsXA" can be reconfigured to be in the global namespace, but that will impact other applications on the server that expect it in the "java:" namespace, so that's not an option.
Then I read how these resources can be mapped into a web app's private ENC namespace:
http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/ENC_... http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/ENC_...
So in my WEB-INF/web.xml, I put:
<resource-ref>
<res-ref-name>jms/JmsXA</res-ref-name>
<res-type>javax.jms.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
...and in WEB-INF/jboss-web.xml, I put:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web xmlns:xs=" http://www.jboss.org/j2ee/schema http://www.jboss.org/j2ee/schema" version="5.1"
xs:schemaLocation=" http://www.jboss.org/j2ee/schema http://www.jboss.org/j2ee/schema
http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd">
<resource-ref>
<res-ref-name>jms/JmsXA</res-ref-name>
<jndi-name>java:/JmsXA</jndi-name>
</resource-ref>
</jboss-web>
Then in the web app code I tried to do a lookup for "java:comp/env/jms/JmsXA" but it returned null.
+*How can web app code access java:JmsXA??*+
I already searched this forum and FAQs, e.g.
https://community.jboss.org/message/440879#440879#440879 https://community.jboss.org/message/440879#440879
https://community.jboss.org/thread/47131?tstart=0 https://community.jboss.org/thread/47131?tstart=0
but there's no info on web app code accessing java:JmsXA.
If I re-package my code as a Spring deployment and deploy using "Snowdrop", then the +same+ code works and can access "java:JmsXA", but I'd rather
depoy as a web app.
http://www.jboss.org/snowdrop http://www.jboss.org/snowdrop
Oh and it's JBoss-6.1.0 due to legacy apps, we have to stick with this old realease for now.
Thanks,
Chris
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/809836#809836]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
[JBoss Web Services] - Transacted webservices
by Simon Del Fabbro
Simon Del Fabbro [https://community.jboss.org/people/simondelfab] created the discussion
"Transacted webservices"
To view the discussion, visit: https://community.jboss.org/message/809500#809500
--------------------------------------------------------------
Hi,
I have a couple questions which crosses over a couple of JBoss groups, but it is mainly related to web services.
I have a web service method which reads off a JMS message off from websphere MQ and the client writes the response to a database. I want the reading of the message from the queue and the writing of the data to database to be performed as a single transaction. So I set about achieving this with WS-Atomic (and I also tried WS-BusinessActivity). I followed the samples [1] and got something working (minus the integration with Websphere) in my dev environment. When I tested in an environment which simulates the live environment, it failed to work because the server on which web service was being invoked couldn't communciate to the JBoss instance ("the client") calling the web service because the client was behind a firewall. On debugging and a bit research, I realise that (obviously) sychronous communication is necessary [2] for participant registration and coordination.
So my first question is, is it possible to enable the communication back to the client to be performed over the connection established by the client to the server i.e. duplex communication like Web sockets? I doubt whether this would be possible given that HttpURLConnection that is probably being used by the client to make the call would not support Web sockets. I have considered creating a SSL tunnel from the "client" machine to the server, but this is not feasible at all deployments.
Another question I wanted to ask is whether the client calling a transacted web service needs to be performed from within JBoss? I assume it has to because of the participant registration and coordination stuff.
As an alternative solution to using WS-*, I implemented 2 web service methods (commit, rollback) which the client calls after writing the response to the database. On the server side, the read message web service method created a (transacted) session, read the message, spawned a thread (which had a reference to the JMS session), created a UUID as a transaction id and returned both the tx id and message back to the client. The spawned thread blocked (with timeout) and on receipt of either the commit and rollback web service methods, the thread was woken up and the JMS session was either committed or rolled back. Not exactly atomic, but it meant messages from the queue weren't lost and the possibility of duplicates was acceptable. I tested this with Hornet as the JMS implementation and it worked fine. But once I tried it with Websphere it didn't work because 1. the connection obtained from the factory was not transacted (despite using QueueConnection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE)) and 2. if I created a LocalTransaction, it is bound to the current thread.
I then looked into a solution where the transactional context is contained in a separate thread and I thought I came across the solution with javax.resource.spi.work.WorkManager, but this not available for general use in JBoss 7.1.1 [3].
I have looked at using an EJB (3.1) asynchronous method [4] in conjunction with the above solution I have outlined, but I don't think that will work either.
The situation I have encountered doesn't sound like a unique problem and I am certain there is solution or a practical work around this problem. I don't particularly want to reinvent something that is most likely solved. I would appreciate some advice/feedback. Thanks.
Regards,
Simon
[1] https://github.com/jboss-jdf/jboss-as-quickstart/tree/jdf-2.0.0.Final/wsa... https://github.com/jboss-jdf/jboss-as-quickstart/tree/jdf-2.0.0.Final/wsa...
[2] http://docs.jboss.org/jbosstm/5.0.0.M1/guides/xts-administration_and_deve... http://docs.jboss.org/jbosstm/5.0.0.M1/guides/xts-administration_and_deve...
[3] https://community.jboss.org/message/798227#798227 https://community.jboss.org/message/798227
[4] http://satishgopal.wordpress.com/2011/04/24/ejb-3-1-asynchronous-methods/ http://satishgopal.wordpress.com/2011/04/24/ejb-3-1-asynchronous-methods/
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/809500#809500]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
[jBPM] - Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2
by Dev S
Dev S [https://community.jboss.org/people/devinderpal] created the discussion
"Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2"
To view the discussion, visit: https://community.jboss.org/message/752342#752342
--------------------------------------------------------------
Env: Jboss 7.1.0, mysql DB, Redhat 5.5, jBPM 5.2
When I thought I'm getting pretty good with jBPM and our application is about to be released, i came across this tough bug during extensive testing.
Intermittently we're facing that pending human task has missing parent process instance and it results in nullpointerexception while completing that human task.
I ran below SQL query to confirm this:
select t.id, t.processInstanceId from Task t where t.processInstanceId not in (select distinct(InstanceId) from ProcessInstanceInfo);
+----+-------------------+
| id | processInstanceId |
+----+-------------------+
| 33 | 20 |
| 43 | 20 |
| 47 | 20 |
| 53 | 20 |
| 57 | 20 |
+----+-------------------+
Same code works fine most of the time. So I think it's not problem with our code but some bug in jBPM. MinaTaskServer is being used for our implementation.
Also we use JTA persistence for jBPM core engine and RESOURCE_LOCAL for human task. We have to use RESOURCE_LOCAL for human task because JTA can't be used due to another jBPM bug.
If I reinitialize the database, then everything works fine for a while but again I run into this problem.
Please let us know how we can fix it, if anyone knows solution. I was about to create a blocker JIRA issue but thought let's first get community opinion on this.
Exception stack trace is attached.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/752342#752342]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months
[jBPM] - IOException while storing process instance?
by Jim B
Jim B [https://community.jboss.org/people/jamesbeam] created the discussion
"IOException while storing process instance?"
To view the discussion, visit: https://community.jboss.org/message/809700#809700
--------------------------------------------------------------
Using jBPM 5.4, Hibernate 4, JPA2 I have a rule in which I want to create an object and then start a process with a facthandle to this object as one of the variables. (FYI, I'm passing the facthandle because I want the process to retract the object I created before it ends.
The issue is that right after my rule fires (right after the output, "started process: 123" - see below) I get the following error:
* java.lang.IllegalArgumentException: IOException while storing process instance 123: org.drools.common.NamedEntryPoint*
* org.jbpm.persistence.processinstance.ProcessInstanceInfo.update(ProcessInstanceInfo.java:207)*
If I insert null or a string instead of the fact handle, everything works fine.
MY GOAL: I am inserting objects into working memory and based upon the object, if a related process already exists, I will send a signal to it, if a related process does not already exist I want to create/start one. I use a "MarkerBean" to determine whether or not a related process already exists. When a process ends, it needs to remove the related MarkerBean.
The following rule is giving me the exception. Here, an object (MyEventBean) has been inserted and I am looking to see if there is a corresponding MarkerBean. Then, I create the process and new markerbean if necessary:
rule "TestRule4"
no-loop true
dialect "java"
when
$meb: MyEventBean(style matches ".*western.*")
not ($mb : MarkerBean(title matches $meb.getTitle()))
then
// first get the fact handle and pass it to the process
MarkerBean $mb = new MarkerBean();
Object factHandle = kcontext.getKnowledgeRuntime().insert($mb);
System.out.println("got object:"+factHandle.getClass().getName()); <=== prints org.drools.common.DefaultFactHandle
java.util.Map<String,Object> variables = new java.util.HashMap<String,Object>();
variable.put("markerHandle",factHandle)
WorkflowProcessInstance pi = (WorkflowProcessInstance)kcontext.getKnowledgeRuntime().createProcessInstance("test.SimpleProcess", variables);
//store the new processinstance in the new MarkerBean (so I can later signal it)
$mb.setTitle($meb.getTitle());
$mb.setProcessInstanceId(pi.getId());
update($mb)
kcontext.getKnowledgeRuntime().startprocessInstance(pi.getId());
System.out.println("started process "+pi.getId());
end
For grins I added DefaultFactHandle ( to my persistence.xml, didn't help. As I mentioned, if I add a plain string rather than the factHandle, everything works.
Does anyone see anything here that could be causing a problem?
Thanks vm!
-J
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/809700#809700]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 2 months