You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Jorge Fernández (JIRA)" <ji...@apache.org> on 2007/07/05 13:52:04 UTC
[jira] Created: (RAMPART-53) rampart causes problems with
hierarchies
rampart causes problems with hierarchies
----------------------------------------
Key: RAMPART-53
URL: https://issues.apache.org/jira/browse/RAMPART-53
Project: Rampart
Issue Type: Bug
Affects Versions: 1.2
Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
Reporter: Jorge Fernández
Priority: Blocker
I created a sample for this. I have a getVehicle Method that returns a vehicle.
A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
at sample.Client.main(Client.java:15)
Caused by: java.lang.RuntimeException: Unexpected subelement maxload
at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
... 2 more
And these are the responses with rampart:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 05 Jul 2007 11:45:14 GMT
1ee
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
<vehicle xmlns="http://messages.sample/xsd">
<vehicleID xmlns="http://sample/xsd">1</vehicleID>
<weight xmlns="http://sample/xsd">0</weight>
<passengers xmlns="http://sample/xsd">0</passengers>
<maxload xmlns="http://sample/xsd">0</maxload>
</vehicle>
</ns2:getVehicleResponse>
</soapenv:Body>
</soapenv:Envelope>0
and without rampart:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 05 Jul 2007 11:46:52 GMT
1e8
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
<ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
<s1:vehicleID>1</s1:vehicleID>
<s1:weight>0</s1:weight>
<s1:passengers>0</s1:passengers>
<s1:maxload>0</s1:maxload>
</ns2:vehicle>
</ns2:getVehicleResponse>
</soapenv:Body>
</soapenv:Envelope>
0
As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
This issue is maybe the cause of these two other issues I opened some time ago:
https://issues.apache.org/jira/browse/XMLBEANS-329 and
https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518704 ]
Ruchith Udayanga Fernando commented on RAMPART-53:
--------------------------------------------------
hehe Cool !! :-)
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work stopped: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Dimuthu Leelarathne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on RAMPART-53 stopped by Dimuthu Leelarathne.
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Jorge Fernández (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jorge Fernández updated RAMPART-53:
-----------------------------------
Attachment: sample.rar
Source code with a client and the skeleton implemented, services.xml and sample.wsdl.
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Priority: Blocker
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Dimuthu Leelarathne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511022 ]
Dimuthu Leelarathne commented on RAMPART-53:
--------------------------------------------
Yes I put a blocker to the ADB codegen team. AXIS2-2922
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Dimuthu Leelarathne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510851 ]
Dimuthu Leelarathne commented on RAMPART-53:
--------------------------------------------
The problem occurs when build() method of SOAPEnvelope is called just before DOOM conversion happens. Put a System.out.println(env) in org.apache.rampart.util.Axis2Util.java's 94th line. The wrong SOAPEnvelope is fed into DOOM convertor, so the wrong SOAPEnvelope comes out of DOOM.
Therefore issue is in ADB-Codegen, because ADB-codegen is responsible for building the SOAPEnvelope. The bug is similar to Rampart-29. ADB codegen team will comment on this issue. Since there are couple of issues, I think both will be fixed at once.
Here is why execution chain never entered serialize method of getVehicleRepsonse method. When rampart is deployed, serializing methods of generated code are not being called after applying security. Actually serializing happens before the DOOM convertion using build() method of the SOAPEnvelope. That is where the problem is.
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work started: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Dimuthu Leelarathne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on RAMPART-53 started by Dimuthu Leelarathne.
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Dimuthu Leelarathne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517810 ]
Dimuthu Leelarathne commented on RAMPART-53:
--------------------------------------------
No you can't. You have to use Rampart 1.3. I was told this fix is not included in the RC2. So you might have to use Axis2 nightly SNAPSHOTs. However ADB team said it will come out with 1.3 release.
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Jorge Fernández (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515282 ]
Jorge Fernández commented on RAMPART-53:
----------------------------------------
So I have to use the command line tool since with with the eclipse plugin I can't modify the arguments, can I?
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Jorge Fernández (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517776 ]
Jorge Fernández commented on RAMPART-53:
----------------------------------------
Dimuthu,
Can I use Axis2 1.3 with Rampart 1.2?
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Jorge Fernández (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518701 ]
Jorge Fernández commented on RAMPART-53:
----------------------------------------
Finally!!!
I could test it with yesterday's RC and it worked!!!!
Hope it's not a mirage ;)
Thanks a lot!
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (RAMPART-53) rampart causes problems
with hierarchies
Posted by "Jorge Fernández (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518302 ]
informaticu007-pfc edited comment on RAMPART-53 at 8/8/07 6:35 AM:
----------------------------------------------------------------
Thanks Ruchith,
At this moment, I can't test if this JIRA is resolved.
I'm getting several problems described in Rampart SNAPSHOT problems in the mailing list
was (Author: informaticu007-pfc):
Thanks Ruchith,
At this moment, I can't test if this JIRA is resolved because of https://issues.apache.org/jira/browse/AXIS2-3099
When I don't use security in the client and I have a policy in the service, I get a NullPointerException but I don't know where does it come from because of the mentioned JIRA. The NullPointerException dissapears when I disengage rampart for the service.
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Jorge Fernández (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510997 ]
Jorge Fernández commented on RAMPART-53:
----------------------------------------
Then, maybe there is the problem with XMLBeans integration in Axis2 as said in https://issues.apache.org/jira/browse/XMLBEANS-329 because it is a similar problem but I don't know if the execution chain is correct.
Should I do something more or is ADB codegen team up to date with this?
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Dimuthu Leelarathne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dimuthu Leelarathne reassigned RAMPART-53:
------------------------------------------
Assignee: Dimuthu Leelarathne
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518285 ]
Ruchith Udayanga Fernando commented on RAMPART-53:
--------------------------------------------------
Please try Rampart nightlies from here :
http://people.apache.org/dist/rampart/nightly/
You can download Axis2 RC3 from :
http://people.apache.org/~deepal/axis2/1.3-RC3/
Thanks,
Ruchith
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Dimuthu Leelarathne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dimuthu Leelarathne resolved RAMPART-53.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.3
This issue is fixed in the trunk. It will come out with Axis2 1.3
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Jorge Fernández (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518302 ]
Jorge Fernández commented on RAMPART-53:
----------------------------------------
Thanks Ruchith,
At this moment, I can't test if this JIRA is resolved because of https://issues.apache.org/jira/browse/AXIS2-3099
When I don't use security in the client and I have a policy in the service, I get a NullPointerException but I don't know where does it come from because of the mentioned JIRA. The NullPointerException dissapears when I disengage rampart for the service.
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Dimuthu Leelarathne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515244 ]
Dimuthu Leelarathne commented on RAMPART-53:
--------------------------------------------
P.S.
Please generate code using -u and -g options.
In this situation there are type hierarchies. Therefore we have generate all classes. So please use -g option.
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (RAMPART-53) rampart causes problems with
hierarchies
Posted by "Jorge Fernández (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/RAMPART-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517848 ]
Jorge Fernández commented on RAMPART-53:
----------------------------------------
I was going to try with RC3. Do you know if it is included here? If it's not, where can I download SNAPSHOT? And where can I download Rampart 1.3?
> rampart causes problems with hierarchies
> ----------------------------------------
>
> Key: RAMPART-53
> URL: https://issues.apache.org/jira/browse/RAMPART-53
> Project: Rampart
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Windows XP SP2 Tomcat 6.0, JDK 1.6.0, Axis2 1.2, Rampart 1.2
> Reporter: Jorge Fernández
> Assignee: Dimuthu Leelarathne
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: sample.rar
>
>
> I created a sample for this. I have a getVehicle Method that returns a vehicle.
> A Vehicle can be either a Car or a Van. If I return a Van without rampart, everything works fine but when I engage rampart in the services.xml, at the client, I get the exception:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:392)
> at sample.SampleSOAP12PortStub.getVehicle(SampleSOAP12PortStub.java:162)
> at sample.Client.main(Client.java:15)
> Caused by: java.lang.RuntimeException: Unexpected subelement maxload
> at sample.xsd.Vehicle$Factory.parse(Vehicle.java:580)
> at sample.messages.xsd.GetVehicleResponse$Factory.parse(GetVehicleResponse.java:374)
> at sample.SampleSOAP12PortStub.fromOM(SampleSOAP12PortStub.java:386)
> ... 2 more
> And these are the responses with rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:45:14 GMT
> 1ee
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <vehicle xmlns="http://messages.sample/xsd">
> <vehicleID xmlns="http://sample/xsd">1</vehicleID>
> <weight xmlns="http://sample/xsd">0</weight>
> <passengers xmlns="http://sample/xsd">0</passengers>
> <maxload xmlns="http://sample/xsd">0</maxload>
> </vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>0
> and without rampart:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml; action="urn:getVehicle";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 05 Jul 2007 11:46:52 GMT
> 1e8
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <ns2:getVehicleResponse xmlns:ns2="http://messages.sample/xsd">
> <ns2:vehicle xmlns:s1="http://sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:van">
> <s1:vehicleID>1</s1:vehicleID>
> <s1:weight>0</s1:weight>
> <s1:passengers>0</s1:passengers>
> <s1:maxload>0</s1:maxload>
> </ns2:vehicle>
> </ns2:getVehicleResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> As you can see, in the first one, which is wrong, there is not the xsi:type="s1:van" attribute that tells which is the correct instance.
> Also I could observe one thing. I was trying to debug the server to know what was wrong before realising it was rampart's fault and the execution chain never entered the serialized method of the class getVehicleResponse. Is this the way it's supposed to work???
> This issue is maybe the cause of these two other issues I opened some time ago:
> https://issues.apache.org/jira/browse/XMLBEANS-329 and
> https://issues.apache.org/jira/browse/AXIS2-2578.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.