SEVERE: SAAJ0532: Absent Content-Type
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 7
- Joined: Tue Oct 26, 2004 12:03 am
- Contact:
SEVERE: SAAJ0532: Absent Content-Type
I've tried to use Oxygen's WSDL tool to invoke a very simple web service. My web service is running on JBoss 3.2.3 with the jboss-net component which provides integration support for Axis. I tried a very simple web service -- the "GetVersion" that comes with Axis. It can be enabled with the following WSDD entry:
So I go ahead and invoke this web service with Oxygen and I get the following output to Oxygen's System.err:
When I use the Axis-generated code from the WSDL, I get the proper result, no error. Has anyone seen this before?
Code: Select all
<service name="Version" provider="java:RPC">
<parameter name="allowedMethods" value="getVersion"/>
<parameter name="className" value="org.apache.axis.Version"/>
</service>
Code: Select all
Jan 4, 2005 8:11:54 AM com.sun.xml.messaging.saaj.soap.MessageImpl <init>
SEVERE: SAAJ0532: Absent Content-Type
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Absent Content-Type
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:121)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1Impl.java:43)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:357)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:151)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
at ro.sync.exml.view.byte.a.byte.a(Unknown Source)
at ro.sync.exml.view.byte.a.if.a(Unknown Source)
at ro.sync.exml.view.byte.a.new$10.actionPerformed(Unknown Source)
at ro.sync.ui.do.try$1.run(Unknown Source)
java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Absent Content-Type
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
at ro.sync.exml.view.byte.a.byte.a(Unknown Source)
at ro.sync.exml.view.byte.a.if.a(Unknown Source)
at ro.sync.exml.view.byte.a.new$10.actionPerformed(Unknown Source)
at ro.sync.ui.do.try$1.run(Unknown Source)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Absent Content-Type
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:121)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1Impl.java:43)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:357)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:151)
... 6 more
~ David Smiley
Registered Oxygen User
Registered Oxygen User
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Known problem
Hello, we fixed a bug some months ago which adressed the imposibility of communication between our SOAP client and a Tomcat server. The exception you received is most probably due to the fact our http client did not parse correctly the response header sent back by the server.
You can get the new 5.0 updates from:
"http://www.oxygenxml.com/update/eclipse/oxygen.jar" and "http://www.oxygenxml.com/update/standalone/oxygen.jar"
For the standalone version, the downloaded oxygen.jar file should be copied to the "lib" folder of the Oxygen installation folder (replacing the old file).
For the eclipse version, the downloaded oxygen.jar file should be copied to the "com.oxygenxml.editor_5.0.0/lib" folder from the eclipse "plugins" folder (replacing the old file).
Important: Although both jar files (from the links above) are called "oxygen.jar", they are not identical in content and should be copied each to the specific installation folder.
Please tell us if you have any more problems after updating.
Regards, Radu.
You can get the new 5.0 updates from:
"http://www.oxygenxml.com/update/eclipse/oxygen.jar" and "http://www.oxygenxml.com/update/standalone/oxygen.jar"
For the standalone version, the downloaded oxygen.jar file should be copied to the "lib" folder of the Oxygen installation folder (replacing the old file).
For the eclipse version, the downloaded oxygen.jar file should be copied to the "com.oxygenxml.editor_5.0.0/lib" folder from the eclipse "plugins" folder (replacing the old file).
Important: Although both jar files (from the links above) are called "oxygen.jar", they are not identical in content and should be copied each to the specific installation folder.
Please tell us if you have any more problems after updating.
Regards, Radu.
-
- Posts: 7
- Joined: Tue Oct 26, 2004 12:03 am
- Contact:
Great, thank you.
I have a curiosity of how this error came to be. If you don't mind, could you indulge a bit more on the root of what the problem was? Did you actually write your own HTTP client or did you leverage existing ones; and if you did write your own they why? It's confusing from the stack trace thanks to the multiple "caused by" and the "... 6 more" what component was responsible.
I have a curiosity of how this error came to be. If you don't mind, could you indulge a bit more on the root of what the problem was? Did you actually write your own HTTP client or did you leverage existing ones; and if you did write your own they why? It's confusing from the stack trace thanks to the multiple "caused by" and the "... 6 more" what component was responsible.
~ David Smiley
Registered Oxygen User
Registered Oxygen User
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Bug
Hello, we use the free available apache http client. The problem was that the SOAP client was expecting a content-type parameter from the http server's response, parameter which we were not passing correctly.
So the received exception wasn't very clear as to the cause of the error.
Regards, Radu.
So the received exception wasn't very clear as to the cause of the error.
Regards, Radu.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service