Element return web service jboss4
tomerbd2 Apr 1, 2005 6:52 AMHi
I have a stateless session bean exposed with jboss as a web service using axis the return value is org.w3c.dom.Element . I have upgraded from jboss3.2.5 to jboss4 In jboss3.2.5 everything was fine and i could call this webservice. In jboss4 i have this exception when accessing the web service
org.apache.axis.AxisFault.makeFault(AxisFault.java:146)
Exception in thread "main" AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (500)Internal Server Error
faultActor:
faultNode:
faultDetail:
{}string: return code: 500
<html><head><title>Apache Tomcat/5.0.28 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> [b]<pre>org.apache.axis.AxisFault: prefix cannot be "null" when creating a QName
org.apache.axis.MessagePart.writeTo(MessagePart.java:280)
org.apache.axis.MessagePart.getAsString(MessagePart.java:568)
org.apache.axis.MessagePart.getAsBytes(MessagePart.java:424)
org.apache.axis.Message.getContentType(Message.java:473)
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:1041)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.<h3>Apache Tomcat/5.0.28</h3>
org.apache.axis.AxisFault: (500)Internal Server Error
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:722)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:190)
at org.apache.axis.client.Call.invokeEngine(Call.java:3029)
at org.apache.axis.client.Call.invoke(Call.java:3014)
at org.apache.axis.client.Call.invoke(Call.java:2608)
at org.apache.axis.client.Call.invoke(Call.java:2513)
at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
at org.apache.axis.client.Call.invoke(Call.java:1914)
at messaging_as.client.MASWSClientTest.testWS(MASWSClientTest.java:18)
at messaging_as.client.MASWSClientTest.main(MASWSClientTest.java:24)
the code of my web service looks like this (the method of the stateless session bean)
Anybody knows what is the problem and how can i make it work under jboss4?
public Element getUserAsXML(Integer uid) throws InternalException { Document document = XMLUtils.createDocument(); Element element = document.createElement("hi"); return element; }