quangtin3 [
https://community.jboss.org/people/quangtin3] created the discussion
"Re: Any help with Jbpm-Console problem please."
To view the discussion, visit:
https://community.jboss.org/message/754132#754132
--------------------------------------------------------------
Luis Victor wrote:
succeeded.09:27:01,836 INFO [stdout] (http-localhost-127.0.0.1-8080-11) INFO 16-08
09:27:01,835 (DemoAuthenticator.java:authenticate:65) Demo login for user (admin)
succeeded.09:27:32,960 ERROR [stderr] (Thread-17) *java.lang.IllegalArgumentException:
org.hibernate.QueryParameterException: could not locate named parameter
[userId]*09:27:32,960 ERROR [stderr] (Thread-17) at
org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:206)09:27:32,960 ERROR [stderr]
(Thread-17) at
org.jbpm.task.service.TaskServiceSession.getTasksAssignedAsPotentialOwnerByStatusByGroup(TaskServiceSession.java:1011)09:27:32,961
ERROR [stderr] (Thread-17) at
org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:356)09:27:32,961
ERROR [stderr] (Thread-17) at
org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:44)09:27:32,961
ERROR [stderr] (Thread-17) at
org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:85)09:27:32,961
ERROR [stderr] (Thread-17) at java.lang.Thread.run(Thread.java:619)09:27:32,962 ERROR
[stderr] (Thread-17) Caused by: org.hibernate.QueryParameterException: could not locate
named parameter [userId]09:27:32,962 ERROR [stderr] (Thread-17) at
org.hibernate.engine.query.ParameterMetadata.getNamedParameterDescriptor(ParameterMetadata.java:99)09:27:32,962
ERROR [stderr] (Thread-17) at
org.hibernate.engine.query.ParameterMetadata.getNamedParameterExpectedType(ParameterMetadata.java:105)09:27:32,962
ERROR [stderr] (Thread-17) at
org.hibernate.impl.AbstractQueryImpl.determineType(AbstractQueryImpl.java:437)09:27:32,962
ERROR [stderr] (Thread-17) at
org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:407)09:27:32,963
ERROR [stderr] (Thread-17) at
org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:201)
...
09:27:32,971 ERROR [stderr] (Thread-33) ... 1 more09:27:52,957 ERROR [stderr]
(http-localhost-127.0.0.1-8080-1) *java.lang.RuntimeException: Timeout : unable to
retrieve results*09:27:52,957 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at
org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler.getResults(BlockingTaskSummaryResponseHandler.java:41)09:27:52,958
ERROR [stderr] (http-localhost-127.0.0.1-8080-1)
...
Hi Luis Victor,
* For the [userId] parameter issue, I get the changes of
1. src/main/java/org/jbpm/task/service/TaskServiceSession.java and
2. src/main/resources/META-INF/Taskorm.xml
in revision 4a47527163854b233cdb9599f54c9320e945a372 for patching to 5.3.0.Final
(d7640b9c0ba87d771862e8534cc607ca0f4d1aff). I attached these modified files and result
*jbpm-human-task-core-5.3.0.Final.jar* file too. Of course the's another way that only
need to modify Taskorm.xml, but personally I like the change in
4a47527163854b233cdb9599f54c9320e945a372 commit.
Update *jbpm-human-task-core-5.3.0.Final.jar,* in jbpm-install/lib/:
1. jbpm-5.3.0.Final-bin.zip
2. inside jbpm-5.3.0.Final-gwt-console.zip, update jbpm-gwt-console-server-5.3.0.Final.war
/WEB-INF/lib/
3. update jbpm-human-task-war-5.3.0.Final.war/WEB-INF/lib/ and 4. another file inside
jbpm-5.3.0.Final-human-task-war.zip
I think, for long run, you'd better checkout, switch branche, checkout Final revision,
apply change build it with maven so all this file will be updated with
jbpm-human-task-core-5.3.0.Final.jar and your Maven local repository too (In case you
change your database to MySQL and run ant start.demo.db, your jbpm-install/task-service
will use your maven repository).
The way we replace with
http://snapshots.jboss.org/maven2/org/jbpm/jbpm-human-task-war/5.3.0-SNAP...
jbpm-human-task-war-5.3.0-20120706.045301-549.war seem doesn't work well, I will
update that post with a notice, incase someone else looks at it.
* I have the *java.lang.RuntimeException: Timeout : unable to retrieve results,* too! But
even with this occasion issues, I still completed user-guide tutorial. Our another setup
with MySQL doesn't have this issue.
I hope this works for your side.
- Quang
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/754132#754132]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]