[Beginner's Corner] - JBOSS running into IO exception
by Lakshmi Narayana Garoju
Lakshmi Narayana Garoju [https://community.jboss.org/people/lakshminarayana.garoju] created the discussion
"JBOSS running into IO exception"
To view the discussion, visit: https://community.jboss.org/message/772450#772450
--------------------------------------------------------------
Hi, could somebody help me with this problem? JBOSS that I am running sometimes crashes.
It seems it is losing connection to MySQL. When I observed the thread dump I found below exception.
INFO | jvm 2 | 2012/10/24 10:49:51 | 10:49:51,383 WARN [JBossManagedConnectionPool] Unable to fill pool
INFO | jvm 2 | 2012/10/24 10:49:51 | org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | ** BEGIN NESTED EXCEPTION **
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | com.mysql.jdbc.CommunicationsException
INFO | jvm 2 | 2012/10/24 10:49:51 | MESSAGE: Communications link failure due to underlying exception:
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | ** BEGIN NESTED EXCEPTION **
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | java.io.EOFException
INFO | jvm 2 | 2012/10/24 10:49:51 | MESSAGE: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | STACKTRACE:
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2411)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.Connection.createNewIO(Connection.java:2748)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
INFO | jvm 2 | 2012/10/24 10:49:51 | at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:172)
INFO | jvm 2 | 2012/10/24 10:49:51 | at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:584)
INFO | jvm 2 | 2012/10/24 10:49:51 | at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:531)
INFO | jvm 2 | 2012/10/24 10:49:51 | at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
INFO | jvm 2 | 2012/10/24 10:49:51 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | ** END NESTED EXCEPTION **
Thanks
Lakshmi Narayana
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772450#772450]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[JBoss Remoting] - Failed to initialize java.io.EOFException
by Ravi Samavedula
Ravi Samavedula [https://community.jboss.org/people/samavedulark] created the discussion
"Failed to initialize java.io.EOFException"
To view the discussion, visit: https://community.jboss.org/message/772440#772440
--------------------------------------------------------------
Hi,
I am using Jboss 5.1 AS. Remoting is 2.5.2SP2. I am getting below error consistantly.
2012-10-16 10:26:48,156 ERROR [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#2[10.15.17.16:57038]) WorkerThread#2[10.15.17.16:57038] exception occurred during first invocation
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.remoting.transport.socket.ServerThread.createServerSocketWrapper(ServerThread.java:937)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:515)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2266)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:100)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:54)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:75)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:58)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:199)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:182)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:67)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:46)
... 7 more
2012-10-16 10:27:14,875 ERROR [org.jboss.invocation.pooled.server.ServerThread] (PooledInvokerThread-10.15.17.16-2) Failed to initialize
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
at org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.<init>(OptimizedObjectInputStream.java:147)
at org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265)
at org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156)
2012-10-16 10:27:18,609 ERROR [org.jboss.invocation.pooled.server.ServerThread] (PooledInvokerThread-3.151.17.162-4) Failed to initialize
java.io.EOFException
Any help is appreciable.
Thanks
RavZ
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772440#772440]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[jBPM] - Using TaskService directly
by tlucz
tlucz [https://community.jboss.org/people/tlucz] created the discussion
"Using TaskService directly"
To view the discussion, visit: https://community.jboss.org/message/772297#772297
--------------------------------------------------------------
Hi,
I've started using jBPM 5.3.0.Final. I want to use HumanTasks embedded in my application. So basing on thread:
https://community.jboss.org/thread/162963?start=15&tstart=1 https://community.jboss.org/thread/162963?start=15&tstart=1
I created my own LocalHumanTaskHandler where in constructor TaskServiceSession is created:
TaskService taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
taskSession = taskService.createSession();
this.session=session;
ExecuteWorkItem method is taken from GenericCommandBasedWSHumanTaskHandler. The only change is to invoke:
taskSession.addTask(task, content);
instead of:
client.addTask(task, content, new TaskAddedHandler(workItem.getId()));
I can work with HT in a way e.g.:
List<TaskSummary> taskList = wrapper.taskServiceSession.getTasksAssignedAsPotentialOwner("john", "en-UK");
wrapper.taskServiceSession.taskOperation(Operation.Complete, lastTask.getId(), "john", null, null, null);
It almost works correctly, task data is stored in DB but process instance is not updated after complete task. The problem is how can I register TaskEventHandlers. In GenericCommandBasedWSHumanTaskHandler there is a method:
private void registerTaskEventHandlers() {
TaskEventKey key = new TaskEventKey(TaskCompletedEvent.class, -1);
TaskCompletedHandler eventResponseHandler = new TaskCompletedHandler();
client.registerForEvent(key, false, eventResponseHandler);
key = new TaskEventKey(TaskFailedEvent.class, -1);
client.registerForEvent(key, false, eventResponseHandler);
key = new TaskEventKey(TaskSkippedEvent.class, -1);
client.registerForEvent(key, false, eventResponseHandler);
}
but I have no client so I have no possibility to register these events. Also TaskServiceSession object has no method to register ResponseHandlers. How can I resolve it?
I also read thread
https://community.jboss.org/thread/204619?tstart=270 https://community.jboss.org/thread/204619?tstart=270
but in this case I have no idea how to create TaskService which I need to pass to LocalHTWorkItemHandler.
Thanks in advance for any help.
kr,
Tadeusz
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772297#772297]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[jBPM] - BPMN2-Modeler Script task doesn't show java/mvel dropdowns
by rikmorgan
rikmorgan [https://community.jboss.org/people/rikmorgan] created the discussion
"BPMN2-Modeler Script task doesn't show java/mvel dropdowns"
To view the discussion, visit: https://community.jboss.org/message/772412#772412
--------------------------------------------------------------
Updated both an Eclipse Indigo and Eclipse Juno install using the BPMN site http://download.eclipse.org/bpmn2-modeler/site/ http://download.eclipse.org/bpmn2-modeler/site/ and all appeared to work correctly.
However, when I insert a Script task into a bpmn process diagram, then open the properties dialog, the script format dropdown doesn't exist, instead I see a label that says "Script Format" followed by "text/xml". My coworker gets a dropdown menu there that offers Java and MVEL. So how come I don't get those choices?
Also, the place where there should be a drop down isn't even outlined to make it appear like a data entry text box, it just looks like the words are part of the label, but I can click there and change the value. Same goes for the script box beneath it. I just see a label that says "Script" and I have to know that if I click to the right of it somewhere, I can start typing. There's no visual clue.
Anyone else run into this and know what's causing it? I assume there's an incompatibility with other Indigo/Juno components like EMF or GEF, but no amount of updating those things fixes the problem.
thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772412#772412]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months
[jBPM] - How to get variable from WorkItemHandler class ??
by rickylkl
rickylkl [https://community.jboss.org/people/rickylkl] created the discussion
"How to get variable from WorkItemHandler class ??"
To view the discussion, visit: https://community.jboss.org/message/772279#772279
--------------------------------------------------------------
Hi forum,
Anyone who can help or point me how can i *GET THE VARIABLE THAT I INSERT IN SESSION* or *STARTPROCESS(processId, VARIABLE) ?*
*
*
I got c controller with this method :
private void testDrlJbpm(Channel channel){
Map<String,Object> map = new HashMap<String,Object>();
map.put("channel", channel);
map.put("x",channel.getName());
ksession.insert(channel); // if there is a rule flow in workflow, need to insert obj to run rule
ksession.getWorkItemManager().registerWorkItemHandler("ShowRegPage", new RegistrationHandler());
ksession.getWorkItemManager().registerWorkItemHandler("ShowSubPage", new SubscribeHandler());
ksession.getWorkItemManager().registerWorkItemHandler("ShowPrintPage", new PrintPageHandler());
ProcessInstance processInstance = (ProcessInstance) ksession.startProcess("testflow-web", map); // passing map inside the process, and use kcontext.getvariable() to get obj on if else case
System.out.println(processInstance.getEventTypes());
System.out.println(processInstance.getId());
System.out.println(processInstance.getProcessId());
ksession.fireAllRules(); // fire all rules if there is a rule flow
}
AND i did this method in workItemHandler
@Override
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
System.out.println(workItem.getProcessInstanceId());
System.out.println(workItem.getState());
System.out.println(workItem.getId());
System.out.println(workItem.getName());
System.out.println("========= Executing registration =============" + workItem);
setRegistration();
Map<String,Object> resultMap = new HashMap<String,Object>();
resultMap.put("reg", registration);
manager.completeWorkItem(workItem.getId(), resultMap);
}
At last,
i have attache the jpg of flow.
I always get nothing ...
I would like to get the varaible and do variable passing between the workItemHandler and from rules, is there any way i can follow ?? Please Thanks
Thanks a lot to all.
Please Help :( !!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772279#772279]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 4 months