Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exceptions while testing JAXRPC Samples in SunOne

 
Craig Williams
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just deployed a simple war which comes a sample war with Sun One App 7.0.The Implementation file is going to return a String to the JAXRPC client.When run the client ,at client i got the following exception


C:\Sun\AppServer7\samples\webservices\jaxrpc\simple\src>asant run
Buildfile: build.xml
build_cpath:
init_common:
init:
run:
[echo] Running the samples.webservices.jaxrpc.simple.HelloClient program:
[java] javax.xml.soap.SOAPException: Invalid Content-Type:text/html
[java] at com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:159)
[java] at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:91)
[java] at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32)
[java] at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:156)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:73)
[java] at samples.webservices.jaxrpc.simple.HelloIF_Stub.sayHello(HelloIF_Stub.java:60)
[java] at samples.webservices.jaxrpc.simple.HelloClient.main(Unknown Source)
[java] java.rmi.RemoteException: HTTP transport error: javax.xml.soap.SOAPException: Unable to internalize message; nested exception is:
[java] HTTP transport error: javax.xml.soap.SOAPException: Unable to internalize message
[java] at samples.webservices.jaxrpc.simple.HelloIF_Stub.sayHello(HelloIF_Stub.java:77)
[java] at samples.webservices.jaxrpc.simple.HelloClient.main(Unknown Source)
[java] Caused by: HTTP transport error: javax.xml.soap.SOAPException: Unable to internalize message
[java] at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:189)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:73)
[java] at samples.webservices.jaxrpc.simple.HelloIF_Stub.sayHello(HelloIF_Stub.java:60)
[java] ... 1 more



At the server i got the following exception.


SEVERE: SAAJ0535: Unable to internalize message
SEVERE: Couldn't create SOAP message due to exception: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
Couldn't create SOAP message due to exception: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:152)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromRequest(JAXRPCServletDelegate.java:795)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:369)
at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:309)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:302)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1Impl.java:47)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:38)
at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:150)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromRequest(JAXRPCServletDelegate.java:795)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:369)
at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:309)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)


Please help me in resolving this issue.Thanks
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this help?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic