aspose file tools
The moose likes Web Services and the fly likes com.sun.xml.ws.server.UnsupportedMediaException: Request doesnt have a Content-Type in JAXWS client Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "com.sun.xml.ws.server.UnsupportedMediaException: Request doesnt have a Content-Type in JAXWS client " Watch "com.sun.xml.ws.server.UnsupportedMediaException: Request doesnt have a Content-Type in JAXWS client " New topic
Author

com.sun.xml.ws.server.UnsupportedMediaException: Request doesnt have a Content-Type in JAXWS client

praveen kanakarajan
Ranch Hand

Joined: Apr 27, 2005
Posts: 54
When i access the webservice via client code below exception is came in the hosted side.
Other details are
1.Webservice client was created using JAXWS.
2.Webservice is access via the ESB layer.
3.Glassfish is used in webservice hosting

[#|2009-05-13T18:24:25.654+0530|SEVERE|sun-appserver9.1|com.sun.xml.ws.transport.http.HttpAdapter|_ThreadID=31;_ThreadName=httpWorkerThread-8085-1;_RequestID=2a76f011-614d-45a7-adde-1267f1463a8a;|Request doesnt have a Content-Type
com.sun.xml.ws.server.UnsupportedMediaException: Request doesnt have a Content-Type
at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:267)
at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:276)
at com.sun.xml.ws.transport.http.HttpAdapter.invokeAsync(HttpAdapter.java:341)
at com.sun.jbi.httpsoapbc.embedded.JAXWSGrizzlyRequestProcessor.processAsynchRequest(JAXWSGrizzlyRequestProcessor.java:373)
at com.sun.jbi.httpsoapbc.embedded.JAXWSGrizzlyRequestProcessor.service(JAXWSGrizzlyRequestProcessor.java:228)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.jbi.httpsoapbc.embedded.JBIGrizzlyAsyncFilter.doFilter(JBIGrizzlyAsyncFilter.java:95)
at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:175)
at com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:153)
at com.sun.enterprise.web.connector.grizzly.async.AsyncProcessorTask.doTask(AsyncProcessorTask.java:92)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)

Can you anybody tell how to overcome this issue?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: com.sun.xml.ws.server.UnsupportedMediaException: Request doesnt have a Content-Type in JAXWS client
 
Similar Threads
Webservice Metro
Is JAX-WS method ArrayList
Jax-WS client constructor with parameters
Request doesnt have a Content-Type in JAXWS client code
Metro Jboss