cancel
Showing results for 
Search instead for 
Did you mean: 

webservice exception

pmarreddy
Champ in-the-making
Champ in-the-making
i am trying to access administration webservice i am getting this error can sombody help me out.

Fault
{
   faultcode = ns1Smiley Frustratederver,
   faultstring = Server Error,
   detail
   {
      stackTrace = Server Error
   at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:473)
   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
   at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
,
      hostname = prasanth
   }
}


adv thanks prasanth.
10 REPLIES 10

pmarreddy
Champ in-the-making
Champ in-the-making
hi,

this is a peculiar situation i got here with webservices, if i send some value in the security header it is giving some general security exception wich it should give, but if i dont send any value i am getting server error as mentioned above, now the intresting thing is when i send the correct information, then also it is giving server error.

thanks prasanth

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Could you explain how you are building the security header?

What language are you accessing the web services from?

Thanks,
Roy

pmarreddy
Champ in-the-making
Champ in-the-making
hi,

i am using java, and my header structure is

?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsseSmiley Frustratedecurity soapenv:actor="" soapenv:mustUnderstand="0" xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'><wsse:UsernameToken><wsse:Username>aaaaa</wsse:Username> <wsseSmiley Tongueassword Type="PasswordText">aaaaaa</wsseSmiley Tongueassword></wsse:UsernameToken></wsseSmiley Frustratedecurity>
</soapenv:Header>

i think it is crashing after it got authenticated. and my cleint is sending two more things soapenv:actor="" soapenv:mustUnderstand="0" i dont have a mechanism to prevent it from sending thore 2 req.

thanks prasanth

pmarreddy
Champ in-the-making
Champ in-the-making
i have conformed this if we are sending soapenv:actor="" i am getting this server error, unfortunately from my client side i dont have a solution.

can u guys solve this i.e can we need to handle the actor attribute while processing the saop header.

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

I'll have a look into this and let you know if there is anything we can do.

Thanks,
Roy

pmarreddy
Champ in-the-making
Champ in-the-making
hi roy,

thanks u very much. it means a lot to me becasue i have no idea how to approach also.

prasanth

pmarreddy
Champ in-the-making
Champ in-the-making
hi,

can any one help me in setting up the actor attribute for the security header,

so that i can specify an actor when i am invoking teh webservice. my client  needs to set the actor column other wise i am getting an exception.

thanks prasanth

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

If you are using Java, have you tried using the helper utils in the web-service-client project found in the source bundle?

In there you will find the pre-built stubs, an authentication helper class, a web service factory (that automatically adds the security header for you), samples and some other useful classes.

Cheers,
Roy

pmarreddy
Champ in-the-making
Champ in-the-making
hi,

i understand that u are using ws security for setting up the security header, i am looking for an example using saaj or axis to set up the header.

thank u prasanth