[jboss-user] [jBPM] - Re: jBPM5.1 : History Information and Reporting using API
Sandip Bhoi
do-not-reply at jboss.com
Thu Nov 24 11:59:12 EST 2011
Sandip Bhoi [http://community.jboss.org/people/sandip.bhoi] created the discussion
"Re: jBPM5.1 : History Information and Reporting using API"
To view the discussion, visit: http://community.jboss.org/message/638221#638221
--------------------------------------------------------------
Hi Demian,
Sorry for being so dump :(
What could be the wrong with following code. I am getting NPE.
public void init() throws ServletException {
super.init();
try {
UserTransaction ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction");
ut.begin();
StatefulKnowledgeSession ksession = JbpmAPIUtil.getSession();
/* Create the knowledge base */
JPAWorkingMemoryDbLogger logger = new JPAWorkingMemoryDbLogger (ksession);
JPAProcessInstanceDbLog processInstaceLogger = new JPAProcessInstanceDbLog (ksession.getEnvironment());
CommandBasedWSHumanTaskHandler taskHandler = new CommandBasedWSHumanTaskHandler(ksession);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", taskHandler);
taskHandler.connect();
ut.commit();
logger.dispose();
processInstaceLogger.dispose();
} catch (Throwable t) {
// log.error(t.getMessage(), t.getCause());
throw new RuntimeException("error while creating session", t);
}
}
Nov 24, 2011 10:26:14 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: error while creating session
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:43)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1190)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1103)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1010)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.jbpm.process.audit.JPAProcessInstanceDbLog.dispose(JPAProcessInstanceDbLog.java:165)
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:40)
... 12 more
Nov 24, 2011 10:26:14 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /OrderFactoryWeb threw load() exception
java.lang.NullPointerException
at org.jbpm.process.audit.JPAProcessInstanceDbLog.dispose(JPAProcessInstanceDbLog.java:165)
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:40)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1190)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1103)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1010)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Nov 24, 2011 10:26:14 PM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init()
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/638221#638221]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111124/92b5d315/attachment-0001.html
More information about the jboss-user
mailing list