aspose file tools*
The moose likes Web Services and the fly likes Exceptions while testing JAXRPC Samples in SunOne Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exceptions while testing JAXRPC Samples in SunOne" Watch "Exceptions while testing JAXRPC Samples in SunOne" New topic
Author

Exceptions while testing JAXRPC Samples in SunOne

Craig Williams
Greenhorn

Joined: Apr 14, 2004
Posts: 8
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
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Does this help?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exceptions while testing JAXRPC Samples in SunOne
 
Similar Threads
Exception using JSTL c:set
Hibernate: NoClassDefFoundError
Hibernate SunOne configuration NoClassDefFoundError
javax.xml.soap.SOAPException: Unable to internalize message
org.xml.sax.SAXException: Invalid element in