[jboss-user] [JBoss jBPM] - Problem with invocation web service from JSP versus java cla
vetori
do-not-reply at jboss.com
Tue Jun 12 12:49:38 EDT 2007
I am getting an error while invoking a web service from a java class whereas the same code if I put in a test jsp and run, it seems working fine..
And once the jsp is run, the class works perfectly. It seems like with the invocation of the JSP something is getting initialized/put in the classpath or something :)
I am using Jboss jboss-4.0.5.GA with JDK 1.5 and jbossws 1.0.4
Appreciate any help or pointer..
So, the request is getting formed here.. Which works
2007-06-12 11:26:17,689 - INFO -
2007-06-12 11:26:17,689 - INFO - </env:Body></env:Envelope>
2007-06-12 11:26:17,689 - INFO - Before calling Web Service
2007-06-12 11:26:17,703 - DEBUG - Get locator for: http://server:8080/xWebService/?wsdl
2007-06-12 11:26:17,776 - DEBUG - invoke called, but our invoker is disconnected, discarding and fetching another fresh invoker for: InvokerLocator [http://server:8080/xWebService/?wsdl=]
2007-06-12 11:26:17,777 - DEBUG - connect called for: org.jboss.remoting.transport.http.HTTPClientInvoker at 1e8032c
2007-06-12 11:26:17,783 - DEBUG - Setting request header with SOAPAction : "validate"
2007-06-12 11:26:17,783 - DEBUG - Setting request header with Content-Type : text/xml; charset=UTF-8
2007-06-12 11:26:22,159 - ERROR - Servlet.service() for servlet Validation threw exception
java.lang.NullPointerException
at com.haley.haleyrules.webservice.Handler.log(Handler.java:207)
at com.haley.haleyrules.webservice.Handler.initializeKnowledgeBase(Handler.java:390)
at com.haley.haleyrules.webservice.Handler.onRequest(Handler.java:413)
at com.haley.haleyrules.webservice.HTTPservlet.doPost(HTTPservlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2007-06-12 11:26:22,171 - DEBUG - getMimeHeaders from: {Connection=[close], Content-Length=[1677], ResponseCodeMessage=Internal Server Error, Date=[Tue, 12 Jun 2007 16:26:21 GMT], null=[HTTP/1.1 500 Internal Server Error], Content-Type=[text/html;charset=utf-8], Server=[Apache-Coyote/1.1], HEADER={SOAPAction="validate", Content-Type=text/xml; charset=UTF-8}, ResponseCode=500}
2007-06-12 11:26:22,334 - DEBUG - createMessage: [contentType=text/html; charset=utf-8]
2007-06-12 11:26:22,335 - ERROR - Cannot unmarshall SOAPMessage
javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=utf-8
at org.jboss.ws.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:205)
at org.jboss.ws.binding.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:76)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.ws.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:163)
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:92)
at com.hm.eapps.haley.EAppHaleyWebClient.validate(EAppHaleyWebClient.java:83)
at com.hm.eapps.haley.BusinessRuleCheck.performActivity(Unknown Source)
at com.hm.eapps.haley.BusinessRuleCheck.performActivity(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.hm.eapps.process.ProcessDelegate.userMethod(Unknown Source)
at com.eistream.sonora.workflow.workprocessor.ActionExecute.executeExecute(ActionExecute.java:135)
at com.eistream.sonora.workflow.grammar.OpExecute.evaluate(OpExecute.java:169)
at com.eistream.utilities.expression.op.OpInt.evaluateAsObject(OpInt.java:81)
at com.eistream.utilities.expression.Expression.getValue(Expression.java:1071)
at com.eistream.utilities.expression.Expression.getValue(Expression.java:1054)
at com.eistream.sonora.workflow.rules.SimpleRule.process(SimpleRule.java:230)
at com.eistream.sonora.workflow.workprocessor.REngine.evaluateRules(REngine.java:2010)
at com.eistream.sonora.workflow.workprocessor.REngine.ruleBasedProcess(REngine.java:1859)
at com.eistream.sonora.workflow.workprocessor.REngineEJBBean.ruleBasedProcess(REngineEJBBean.java:185)
at com.eistream.sonora.workflow.workprocessor.REngineEJBBean.processEnvelope(REngineEJBBean.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy322.processEnvelope(Unknown Source)
at com.eistream.sonora.workflow.workpump.WorkerDriver.processItem(WorkerDriver.java:198)
at com.eistream.sonora.workflow.workpump.WorkerThread.run(WorkerThread.java:235)
2007-06-12 11:26:22,335 - DEBUG - Error invoking http client invoker.
java.io.IOException: javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=utf-8
at org.jboss.ws.binding.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:82)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.ws.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:163)
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:92)
at com.hm.eapps.haley.EAppHaleyWebClient.validate(EAppHaleyWebClient.java:83)
at com.hm.eapps.haley.BusinessRuleCheck.performActivity(Unknown Source)
at com.hm.eapps.haley.BusinessRuleCheck.performActivity(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.hm.eapps.process.ProcessDelegate.userMethod(Unknown Source)
at com.eistream.sonora.workflow.workprocessor.ActionExecute.executeExecute(ActionExecute.java:135)
at com.eistream.sonora.workflow.grammar.OpExecute.evaluate(OpExecute.java:169)
at com.eistream.utilities.expression.op.OpInt.evaluateAsObject(OpInt.java:81)
at com.eistream.utilities.expression.Expression.getValue(Expression.java:1071)
at com.eistream.utilities.expression.Expression.getValue(Expression.java:1054)
at com.eistream.sonora.workflow.rules.SimpleRule.process(SimpleRule.java:230)
at com.eistream.sonora.workflow.workprocessor.REngine.evaluateRules(REngine.java:2010)
at com.eistream.sonora.workflow.workprocessor.REngine.ruleBasedProcess(REngine.java:1859)
at com.eistream.sonora.workflow.workprocessor.REngineEJBBean.ruleBasedProcess(REngineEJBBean.java:185)
at com.eistream.sonora.workflow.workprocessor.REngineEJBBean.processEnvelope(REngineEJBBean.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy322.processEnvelope(Unknown Source)
at com.eistream.sonora.workflow.workpump.WorkerDriver.processItem(WorkerDriver.java:198)
at com.eistream.sonora.workflow.workpump.WorkerThread.run(WorkerThread.java:235)
2007-06-12 11:26:22,336 - ERROR - javax.xml.soap.SOAPException: Could not transmit message
2007-06-12 11:26:22,337 - ERROR - at org.jboss.ws.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:174)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053667#4053667
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053667
More information about the jboss-user
mailing list