Mailing List
Home
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Cocoon - MVC web framework based on XML/XSL
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
Log4J - A log library
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Subject: Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Proposal: Adding jar manifest classpath in jar and war plugins
Servlet File Download dialog problem (IE6,Adobe 6 0)
java security AccessControlException: access denied (java io FilePermission
Unsupported major minor version 48 0 problem while running the an
   telope task
Subject: axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
Classpath problem
jsp data into Excel
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
Subject: InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Subject: AXIS: tomcat timeout ?
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
XDoclet, Struts and Maven: Where to start? SOLUTION
Subject: Running junit tests fails
 
Rampart throws NPE

Rampart throws NPE

2007-10-03       - By Murali Krishnan

 Back
The services.xml file contents I had included appear wrong in the earlier
message. I have attached it in this mail.

-- -- Original Message ----
From: Murali Krishnan <cme_mk@(protected)>
To: rampart-dev@(protected)
Cc: axis-user@(protected)
Sent: Wednesday, October 3, 2007 2:19:56 PM
Subject: Rampart throws NPE

I'm trying to call a simple service deployed in Axis2. I'm trying to enforce
that this service requires a SamlToken whenever it is called... If I invoke
this service with a soap request that doesn't have any security headers, I get
the below exception at the server. If I disenagage 'rampart' for the service,
there is no problem. Am I doing anything wrong in this scenario?

Thanks,
Murali

java.lang.NullPointerException
       at org.apache.rampart.RampartEngine.process(RampartEngine.java:90)
       at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver
.java:85)
       at
org.apache.axis2.engine.Phase.invoke(Phase.java:292)
       at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
       at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
       at org.apache.axis2.transport.http.HTTPTransportUtils
.processHTTPPostRequest(HTTPTransportUtils.java:275)
       at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java
:120)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

The soap request is like this:

POST /axis2/services/SimpleService HTTP/1.1
Content-Type: text/xml;
charset=UTF-8 (See http://UTF-8.ora-code.com)
SOAPAction: "urn:echo"
User-Agent: Axis2
Host: 127.0.0.1:8888
Content-Length: 244

<?xml version='1.0' encoding='UTF-8 (See http://UTF-8.ora-code.com)'?>
 
     <soapenv:Body>
       
           <name>Hello world</name>
        </ns1:echo>
     </soapenv:Body>
  </soapenv:Envelope>


The services.xml is like this below:

<service name="SimpleService">
   <parameter name="ServiceClass" locked="false">com.softwareag.ws
.SimpleService</parameter>
   <operation name="echo">
       <messageReceiver class="org.apache.axis2.rpc.receivers
.RPCMessageReceiver"/>
   </operation>
   <operation name="add"/>
   
   <module ref="rampart"/>
   <!--  <module ref="addressing"/>-->
   
 

       <wsp:ExactlyOne>
         <wsp:All>
             
                           xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07
/securitypolicy" />
 
      </wsp:All>
       </wsp:ExactlyOne>
   </wsp:Policy>
</service>




     Yahoo! oneSearch: Finally,  mobile search
that gives answers, not web links.







     
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ______
__ __
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head>
<body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:8pt"
><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 8pt;"
>The services.xml file contents I had included appear wrong in the earlier
message. I have attached it in this mail.<br><br><div style="font-family: times
new roman,new york,times,serif; font-size: 12pt;">-- -- Original Message ----
<br>From: Murali Krishnan &lt;cme_mk@(protected)&gt;<br>To: rampart-dev@(protected)
.org<br>Cc: axis-user@(protected)<br>Sent: Wednesday, October 3, 2007 2:19:56
PM<br>Subject: Rampart throws NPE<br><br><div style="font-family: times new
roman,new york,times,serif; font-size: 12pt;"><div>I'm trying to call a simple
service deployed in Axis2. I'm trying to enforce that this service requires a
SamlToken whenever it is called... If I invoke this service with a soap request
that doesn't have any
security headers, I get the below exception at the server. If I disenagage
'rampart' for the service, there is no problem. Am I doing anything wrong in
this scenario?<br><br>Thanks,<br>Murali<br><br><font style="font-family: arial
,helvetica,sans-serif;" size="2">java.lang.NullPointerException<br>&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.rampart.RampartEngine.process
(RampartEngine.java:90)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org
.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:85)<br>&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.engine.Phase.invoke(Phase.java:292)<br>&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine
.java:212)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.axis2
.engine.AxisEngine.receive(AxisEngine.java:132)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp; at org.apache.axis2.transport.http.HTTPTransportUtils
.processHTTPPostRequest(HTTPTransportUtils.java:275)<br>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; at org.apache.axis2.transport.http.AxisServlet.doPost
(AxisServlet.java:120)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at javax
.servlet.http.HttpServlet.service(HttpServlet.java:710)<br>&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet
.java:803)</font><br><br>The soap request is like this:<br><br><font style="font
-family: courier,monaco,monospace,sans-serif;" size="1">POST /axis2/services
/SimpleService HTTP/1.1<br>Content-Type: text/xml;
charset=UTF-8 (See http://UTF-8.ora-code.com)<br>SOAPAction: "urn:echo"<br>User-Agent: Axis2<br>Host: 127.0.0
.1:8888<br>Content-Length: 244<br><br>&lt;?xml version='1.0' encoding='UTF-8 (See http://UTF-8.ora-code.com)'?
&gt;<br><span>&nbsp;&nbsp; </span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soapenv
:Body&gt;<br><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;name&gt
;Hello world&lt;/name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/ns1:echo&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/soapenv:Body&gt;<br>
&nbsp;&nbsp; &lt;/soapenv:Envelope&gt;</font><br><br><br>The services.xml is
like this below:<br><br><font style="font-family: courier,monaco,monospace,sans
-serif;" size="1">&lt;service name="SimpleService"&gt;<br>&nbsp;&nbsp;&nbsp; &lt
;parameter name="ServiceClass" locked="false"&gt;com.softwareag.ws.SimpleService
&lt;/parameter&gt;<br>&nbsp;&nbsp;&nbsp; &lt;operation name="echo"&gt;<br>&nbsp;
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;messageReceiver class="org.apache.axis2.rpc.receivers
.RPCMessageReceiver"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/operation&gt;<br>&nbsp;
&nbsp;&nbsp; &lt;operation name="add"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp
;&nbsp;&nbsp; &lt;module ref="rampart"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;!--&nbsp;
&lt;module ref="addressing"/&gt;--&gt;<br>&nbsp;&nbsp;&nbsp; <br><span>&nbsp;
&nbsp;&nbsp;
</span><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;wsp:ExactlyOne&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;wsp:All&gt;<br><span>&nbsp;
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; </span><br><span>&nbsp
;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; xmlns:sp="<a rel="nofollow" target=
"_blank" href="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">http:/
/schemas.xmlsoap.org/ws/2005/07/securitypolicy</a>" /&gt;</span><br>&nbsp;&nbsp;
&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp; &lt;/wsp:All&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
&nbsp; &lt;/wsp:ExactlyOne&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/wsp:Policy&gt;<br>&lt;
/service&gt;</font><br></div></div><br>
     <hr size="1">Yahoo! oneSearch: Finally, <a rel="nofollow" target="_blank"
href="http://us.rd.yahoo.com/evt=48252/*http://mobile.yahoo.com/mobileweb
/onesearch?refer=1ONXIC"> mobile search
that gives answers</a>, not web links.

</div><br></div></div><br>
     <hr size=1>Yahoo! oneSearch: Finally, <a href="http://us.rd.yahoo.com/evt
=48252/*http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC"> mobile search

that gives answers</a>, not web links.

</body></html>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: axis-user-unsubscribe@(protected)
For additional commands, e-mail: axis-user-help@(protected)