Odelya Holiday [
http://community.jboss.org/people/odelyaholiday] created the discussion
"NullPointerException - on taskclient.complete"
To view the discussion, visit:
http://community.jboss.org/message/582570#582570
--------------------------------------------------------------
Hi!
I am working on tomcat 6
When the application starts - I start the taskserver:
server = new MinaTaskServer(taskService);
Thread thread = new Thread(server);
When the user logs in to my application, I start a taskclient like this:
TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1", new
MinaTaskClientHandler(
SystemEventListenerFactory.getSystemEventListener())));
boolean connected = client.connect("127.0.0.1", 9123);
I am using this taskclient in the code to start and complete it:
BlockingTaskOperationResponseHandler responseHandler = new
BlockingTaskOperationResponseHandler();
taskClient.start(taskId, userName, responseHandler);
BlockingTaskOperationResponseHandler blockingTaskOperationResponseHandler = new
BlockingTaskOperationResponseHandler();
taskClient.complete(taskId, userName, result, blockingTaskOperationResponseHandler);
However, once it passes the taskClient.complete I get the exception:
org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException
at
org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:313)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:506)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:46)
What could be the problem?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/582570#582570]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]