You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Madhav Inamti <mi...@gmail.com> on 2006/05/01 07:10:02 UTC

Communicating with a REST service.

I am trying to communicate with a REST service using secure http and sending
raw data. I just downloaded Axis and tried the MyService example. I am
getting this error. Any clues..

Thanks in advance.




INFO: Deploying module : addressing-0.95
Apr 30, 2006 10:07:39 PM org.apache.axis2.transport.http.RESTSendersendViaPost
SEVERE: Error in processing POST request
org.apache.axis2.AxisFault: Transport error 500 . Error Message is
<html><head><
title>Apache Tomcat/5.5 - 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:16
px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;backgro
und-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:bl
ack;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="nosh
ade"><p><b>type</b> Exception report</p><p><b>message</b>
<u></u></p><p><b>descr
iption</b> <u>The server encountered an internal error () that prevented it
from
 fulfilling this request.</u></p><p><b>exception</b> <pre>
java.lang.NullPointerE
xception
        org.apache.axis2.engine.AxisEngine.createFaultMessageContext
(AxisEngine.
java:191)
        org.apache.axis2.transport.http.AxisServlet.handleFault(
AxisServlet.java
:191)
        org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java
:176)

        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
(ReplyHeaderFilte
r.java:81)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is
available
in the Apache Tomcat/5.5 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache
Tomcat/5.5</h3></body></html>
        at org.apache.axis2.transport.http.RESTSender.sendViaPost(
RESTSender.jav
a:301)
        at org.apache.axis2.transport.http.RESTSender.send(RESTSender.java
:122)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
geWithCommons(CommonsHTTPTransportSender.java:304)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke
(Com
monsHTTPTransportSender.java:205)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:544)
        at org.apache.axis2.description.OutInAxisOperationClient.send
(OutInAxisO
peration.java:331)
        at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAx
isOperation.java:267)
        at org.apache.axis2.client.ServiceClient.sendReceive(
ServiceClient.java:
445)
        at org.apache.axis2.client.ServiceClient.sendReceive(
ServiceClient.java:
400)
        at Test.main(Test.java:24)
Exception in thread "main" org.apache.axis2.AxisFault: Incoming message
input st
ream is null
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage
(Transport
Utils.java:62)
        at org.apache.axis2.description.OutInAxisOperationClient.send
(OutInAxisO
peration.java:352)
        at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAx
isOperation.java:267)
        at org.apache.axis2.client.ServiceClient.sendReceive(
ServiceClient.java:
445)
        at org.apache.axis2.client.ServiceClient.sendReceive(
ServiceClient.java:
400)
        at Test.main(Test.java:24)