ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Goldhammer <Goldhammer.J...@gmx.net>
Subject Errors in InstanceManagement and ProcessManagement-API
Date Tue, 02 Oct 2007 14:34:49 GMT

I get various errors by using the management-api of ode.
For example, the listInstances-operation works fine for me:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:pmap="http://www.apache.org/ode/pmapi">
   <soapenv:Header/>
   <soapenv:Body>
      <pmap:listAllInstances/>
   </soapenv:Body>
</soapenv:Envelope>

The request delivers a correct answer.

If I want to terminate or resume a process with a request, e.g.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:pmap="http://www.apache.org/ode/pmapi">
   <soapenv:Header/>
   <soapenv:Body>
      <pmap:resume>
         <iid>3394</iid>
      </pmap:resume>
   </soapenv:Body>
</soapenv:Envelope>

following response occurs:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault xmlns:java="java:package java.lang.reflect, Java
Platform API Specification, version 1.5">
        
<faultcode>java:java.lang.reflect.InvocationTargetException</faultcode>
         <faultstring>Invocation of method resume in management interface
failed!</faultstring>
         <detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

Additionally, If I want to use the ProcessManagement-API , I get following
error by requesting the processInfo-operation:

Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:pmap="http://www.apache.org/ode/pmapi">
   <soapenv:Header/>
   <soapenv:Body>
      <pmap:getProcessInfo>
         <pid>{http://com.ibm.de.cis/archive}cisArchive-27</pid>
      </pmap:getProcessInfo>
   </soapenv:Body>
</soapenv:Envelope>

Response:

<html><head><title>Apache Tomcat/5.5.25 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 500 - </h1><HR size="1"
noshade="noshade"><p>type Exception report</p><p>message
<u></u></p><p>description <u>The server encountered an internal
error ()
that prevented it from fulfilling this request.</u></p><p>exception
<pre>java.lang.NullPointerException
	org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:171)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
</pre></p><p>note <u>The full stack trace of the root cause is available
in
the Apache Tomcat/5.5.25 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/5.5.25</h3></body></html>

Stacktrace of tomcat:
G - GeronimoLog.debug(66) | Received mgmt message for
ProcessManagement.{http://www.apache.org/ode/pmapi}getProcessInfo
16:28:04,424 DEBUG [ManagementService] Received mgmt message for
ProcessManagement.{http://www.apache.org/ode/pmapi}getProcessInfo
DEBUG - GeronimoLog.debug(66) | Extracting param class
javax.xml.namespace.QName from
<pid>{http://com.ibm.de.cis/archive}cisArchive-27</pid>
16:28:04,434 DEBUG [ManagementService] Extracting param class
javax.xml.namespace.QName from
<pid>{http://com.ibm.de.cis/archive}cisArchive-27</pid>
ERROR - GeronimoLog.error(108) | 
java.lang.NullPointerException
	at org.apache.ode.axis2.util.OMUtils.getTextAsQName(OMUtils.java:206)
	at
org.apache.ode.axis2.service.ManagementService.convertFromOM(ManagementService.java:164)
	at
org.apache.ode.axis2.service.ManagementService.extractParams(ManagementService.java:149)
	at
org.apache.ode.axis2.service.ManagementService.invokeBusinessLogic(ManagementService.java:113)
	at
org.apache.ode.axis2.service.ManagementService.access$100(ManagementService.java:69)
	at
org.apache.ode.axis2.service.ManagementService$ProcessMessageReceiver.invokeBusinessLogic(ManagementService.java:229)
	at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
	at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)
16:28:04,434 ERROR [AxisServlet] 
java.lang.NullPointerException
	at org.apache.ode.axis2.util.OMUtils.getTextAsQName(OMUtils.java:206)
	at
org.apache.ode.axis2.service.ManagementService.convertFromOM(ManagementService.java:164)
	at
org.apache.ode.axis2.service.ManagementService.extractParams(ManagementService.java:149)
	at
org.apache.ode.axis2.service.ManagementService.invokeBusinessLogic(ManagementService.java:113)
	at
org.apache.ode.axis2.service.ManagementService.access$100(ManagementService.java:69)
	at
org.apache.ode.axis2.service.ManagementService$ProcessMessageReceiver.invokeBusinessLogic(ManagementService.java:229)
	at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
	at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)
ERROR - GeronimoLog.error(108) | Servlet.service() for servlet AxisServlet
threw exception
java.lang.NullPointerException
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:171)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)
16:28:04,434 ERROR [[AxisServlet]] Servlet.service() for servlet AxisServlet
threw exception
java.lang.NullPointerException
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:171)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)
ERROR - GeronimoLog.error(108) | Servlet.service() for servlet jsp threw
exception
java.lang.IllegalStateException: getOutputStream() has already been called
for this response
	at org.apache.catalina.connector.Response.getWriter(Response.java:607)
	at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:196)
	at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
	at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
	at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:179)
	at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:116)
	at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:76)
	at
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.java:98)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364)
	at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:285)
	at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:229)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)
16:28:04,434 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called
for this response
	at org.apache.catalina.connector.Response.getWriter(Response.java:607)
	at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:196)
	at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
	at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
	at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:179)
	at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:116)
	at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:76)
	at
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.java:98)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364)
	at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:285)
	at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:229)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)
02.10.2007 16:28:04 org.apache.catalina.core.StandardHostValve custom
SCHWERWIEGEND: Exception Processing ErrorPage[errorCode=500,
location=/axis2-web/Error/error500.jsp]
org.apache.jasper.JasperException: getOutputStream() has already been called
for this response
	at
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:367)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364)
	at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:285)
	at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:229)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)


development enviroment: 
apache tomcat 5.5.23
apache ode 1.1
soap-ui 1.7.5

Are these errors known or did I make a fault? I have only seen in the jira
that the processmanagement does not work correctly...

Regards,
Jens

 


-- 
View this message in context: http://www.nabble.com/Errors-in-InstanceManagement-and-ProcessManagement-API-tf4555210.html#a13000070
Sent from the Apache Ode User mailing list archive at Nabble.com.


Mime
View raw message