[jBPM] - java.lang.NullPointerException on Notification sent
by Gonzalo Lazaro
Gonzalo Lazaro [http://community.jboss.org/people/gonlafer] created the discussion
"java.lang.NullPointerException on Notification sent"
To view the discussion, visit: http://community.jboss.org/message/562363#562363
--------------------------------------------------------------
Hello,
I've got the following problem using JBPM 4.4:
I have a flow started and the first task assignee is set as a process variable in the following way:
<task g="196,322,132,52" name="Submit adjustment for approval" candidate-groups="AdjustmentsInitiator" assignee="#{initiator}">
<notification/>
<reminder duedate="1 hour" repeat="1 hour"/>
<transition g="-64,-12" name="submit" to="change_status_to_submitted"/>
<transition g="-155,-18" name="cancel" to="change_status_to_cancelled"/>
</task>
This is working perfectly and the assignee get a mail advising on the task assignment.
However, if the assignee releases the task (ts.assignTask(taskId, null);) I get the following error:
java.lang.NullPointerException
at org.jbpm.pvm.internal.email.impl.MailProducerImpl.tokenizeActors(MailProducerImpl.java:148)
at org.jbpm.pvm.internal.email.impl.MailProducerImpl.fillRecipients(MailProducerImpl.java:194)
at org.jbpm.pvm.internal.email.impl.MailProducerImpl.fillRecipients(MailProducerImpl.java:166)
at org.jbpm.pvm.internal.email.impl.MailProducerImpl.produce(MailProducerImpl.java:82)
at org.jbpm.jpdl.internal.activity.MailListener.notify(MailListener.java:58)
at org.jbpm.pvm.internal.model.op.ExecuteEventListener.perform(ExecuteEventListener.java:81)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:672)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:632)
at org.jbpm.pvm.internal.model.ExecutionImpl.fire(ExecutionImpl.java:579)
at org.jbpm.pvm.internal.model.ExecutionImpl.fire(ExecutionImpl.java:568)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
....
Is there any way to remove the task assignment without the notifications being sent?
The test I've done is quite simple:
@Test
public void testReAssignTask() {
TaskService ts = processEngine.getTaskService();
String taskId = "490009";
Task task = ts.getTask(taskId);
logger.debug(task.getAssignee());
ts.assignTask(taskId, null);
}
Thanks,
Gonzalo
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/562363#562363]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[JBoss Portal] - Re: Jboss Portal Installation 2.7.2 - Newbie Issues
by Andre van Zyl
Andre van Zyl [http://community.jboss.org/people/andrevanzyl] created the discussion
"Re: Jboss Portal Installation 2.7.2 - Newbie Issues"
To view the discussion, visit: http://community.jboss.org/message/562352#562352
--------------------------------------------------------------
Hi Namrata
I also had some trouble installing and configuring JBoss Portal at the start. Follow these steps and should be fine.
1. Create your database schema called jbossportal
2. Create you portal-mysql5-ds.xml file as follows:
<datasources>
<local-tx-datasource>
<jndi-name>PortalDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/jbossportal?jbossportal?useServerPrepStmts=false&jdbcCompliantTruncation=false</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<metadata>
<type-mapping>MySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
3. Make sure to copy your mysql-connector-java-5.1.8-bin.jar (or applicable the applicable version) file into you lib directory
4. Start your portal server
5. Deploy your jboss-portal.sar file into the /server/<portal>/deploy directory
6. You will notice some exception messages and "table not found" errors during the deployment but do not worry about that
7. After the server started successfully, stop and start it again and the portal server should start up without any errors
You should now be able to access the portal http://localhost:8080/portal http://localhost:8080/portal. I am running portal 2.7.2 with jboss 4.2.3 and mysql 5.1
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/562352#562352]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[JBoss Messaging] - Issues while posting large number for messages to the Queue
by Rajasekhar Devi Reddy
Rajasekhar Devi Reddy [http://community.jboss.org/people/devireddy] created the discussion
"Issues while posting large number for messages to the Queue"
To view the discussion, visit: http://community.jboss.org/message/562263#562263
--------------------------------------------------------------
+**I am sorry if this had to be posted to Remoting forum. I was not sure so I posted it here. I have also read other posts that talk abut similar issues but all of the posts there tell me that these issues should be resolved in the JBM & Remoting versions I am using (or in some earlier versions). But I still see them.+
Environment/setup
* Solaris SunOS 5.10
* java 1.6.0_20 *64* bit
* JBoss AS 4.2.3
* JBoss Messaging 1.4.5 GA
* Remoting 2.2.3 sp2
* Cluster of two nodes
* Two queues (clustered)
* Two MDBs one for each queue, MDB pool size is set to 30 for each.
* Databsae Oracle 10g
* Number of DefaultDS connections (form JMS persistence) is set to a maximum of 100.
We have an application that uses JMS queues and MDB to achieve asynchronous processing. We have two queues and two MDBs that receive and processes messages from these queues. Work flow starts by posting messages on to queue 1, MDB 1 picks up, processes the messages and write a message on to queue2. MDB 2 picks up the message and continues with its processing.
We are seeing intermittent issues when processing large load of messages for example one scenario is:
When I post a large number (20,000) of messages to queue 1 I see errors talking about a failure while posting the message to queue 2. After this 20,000 message run is complete (with some failures) if I post another 1000 messages non of them appear in the queue (I was checking the JBM tables to verify this). At this point logs on both the nodes are filled with debug and warn messages shown below, and messages wont get posted/processed.
If I kill node 2 (shutdown wont work) then all the 1000 messages get posted to Queue and they all get processed on node1.
We had similar problems before and we changed the remoting component to version 2.2.3 SP2. But we still have these problems. Any advice on what should we look in to will be greatly helpful.
Thanks for your time.
Debug/Warn message on posting the second load of 1000 messages
2010-09-16 15:21:55,983 DEBUG org.jboss.remoting.transport.bisocket.BisocketServerInvoker org.jboss.remoting.transport.bisocket.BisocketServerInvoker received new control socket for unrecognized listenerId: c3l2mo-kgijx1-ge5qqvbw-1-ge5t0s2s-uq22010-09-16 15:21:56,000 DEBUG org.jboss.remoting.transport.bisocket.BisocketServerInvoker org.jboss.remoting.transport.bisocket.BisocketServerInvoker received new control socket for unrecognized listenerId: c3l2mo-kgijx1-ge5qqvbw-1-ge5s845p-7sx
2010-09-16 15:22:20,605 WARN org.jboss.remoting.transport.bisocket.BisocketServerInvoker org.jboss.remoting.transport.bisocket.BisocketServerInvoker org.jboss.remoting.transport.bisocket.BisocketServerInvoker$ControlMonitorTimerTask@4f2ea142: detected failure on control connection Thread[control: Socket[addr=/12.129.94.24,port=43136,localport=55901],5,jboss] (c3l2mp-ougfh2-ge5qshw2-1-ge5saop5-ct1: requesting new control connection
ERROR form the log while processing the initial large load (20,000)
org.jboss.jms.exception.MessagingJMSException: Failed to invoke at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271) at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:205) at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160) at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(ClientSessionDelegate.java:499) at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java) at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:661) at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect28.invoke(SessionAspect28.java) at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java) at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:114) at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105) at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.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$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java) at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java) at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:276) at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect39.invoke(ProducerAspect39.java) at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.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.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java) at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java) at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:165) at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:208) at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:146) at com.liaison.merckContivoPilot.MDBClients.DeltaThreadMDBClient.writeToQueue(DeltaThreadMDBClient.java:120) at com.liaison.merckContivoPilot.bo.SDTMTransformer.performTransformation(SDTMTransformer.java:317) at com.liaison.merckContivoPilot.ejb.TransformThreadMDB.onMessage(TransformThreadMDB.java:80) at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:249)
at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
at $Proxy84.onMessage(Unknown Source)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:160)
at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:831)
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.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:237)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: Cannot find object in dispatcher with id 8i8-3sy8s5eg-1-wbvqq5eg-1xjigk-om2l3c
at org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:101)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:157)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:862)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:634)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:434)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:176)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:182)
at org.jboss.remoting.Client.invoke(Client.java:1935)
at org.jboss.remoting.Client.invoke(Client.java:788)
at org.jboss.remoting.Client.invoke(Client.java:776)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/562263#562263]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[jBPM] - Error using " install.examples.into.tomcat"
by gaston rodriguez
gaston rodriguez [http://community.jboss.org/people/gastonrh] created the discussion
"Error using "install.examples.into.tomcat""
To view the discussion, visit: http://community.jboss.org/message/562262#562262
--------------------------------------------------------------
Hi there
I'm getting the following exception using *install.examples.into.tomcat*, I'm using jBPM 4.4, apache-tomcat-6.0.29 and mysql as the DB.
BUILD FAILED
org.hibernate.HibernateException: Errors in named queries: findTasks, findMessages, findTimers, findGroupsByUserAndGroup
Type, findProcessInstanceIds, findJobsWithException, findProcessInstanceById, findExecutionById, findProcessInstanceById
IgnoreSuspended, findGroupsByUser, findFirstDueJob, findExclusiveJobs, findFirstAcquirableJob
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:397)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor.construct(HibernateSessionFactoryDesc
riptor.java:62)
I've also tryied the *demo.setup.tomcat* and got an exception.
Any ideas??
Thanks in advance.*
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/562262#562262]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[JNDI and Naming] - Problem with a web application in jboss and weblogic.
by Javier Godoy
cm_suter [http://community.jboss.org/people/cm_suter] created the discussion
"Problem with a web application in jboss and weblogic."
To view the discussion, visit: http://community.jboss.org/message/562236#562236
--------------------------------------------------------------
Hello everyone. I have a big problem and I hope that together we can help solve.
Start by explaining how I have deployed my web application. My web application I have it deployed in jboss. This application uses a library that contains EJB3. The libraries, or rather the EJB3 project with a machine is in Weblogic 10.3.
JSP sample I made to see their operation and this is correct. That is, I send my request through Jboss and get the EJB3 remote JNDI in Weblogic and you run the code I've written.
So far so good. The problem appears when I launch my web application, which clearly has a much more complex code to the examples mentioned above.
Total the error I get is:
18:10:06,832 ERROR [STDERR] java.lang.IllegalStateException: No puedo crear una sesi?n despu?s de llevar a cabo la respueta
18:10:06,832 ERROR [STDERR] at org.apache.catalina.connector.Request.doGetSession(Request.java:2282)
18:10:06,832 ERROR [STDERR] at org.apache.catalina.connector.Request.getSession(Request.java:2064)
18:10:06,832 ERROR [STDERR] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
18:10:06,832 ERROR [STDERR] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:844)
18:10:06,832 ERROR [STDERR] at es.fujitsu.mdcs2.server.servlets.OperationServletCajamar.sessionSave(OperationServletCajamar.java:673)
18:10:06,832 ERROR [STDERR] at es.fujitsu.mdcs2.server.servlets.OperationServletCajamar.end(OperationServletCajamar.java:481)
18:10:06,832 ERROR [STDERR] at es.fujitsu.mdcs2.server.servlets.OperationServletCajamar.doPost(OperationServletCajamar.java:183)
18:10:06,832 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
18:10:06,833 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
18:10:06,833 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
18:10:06,833 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
18:10:06,833 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
18:10:06,833 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:543)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:543)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
18:10:06,833 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
18:10:06,833 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
18:10:06,833 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
18:10:06,833 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
18:10:06,833 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
Any idea will be welcome.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/562236#562236]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months