You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2010/12/22 11:58:01 UTC
[jira] Assigned: (RAMPART-202) RampartEngine throws
ClassCastException retrieving SOAPHeaderBlocks
[ https://issues.apache.org/jira/browse/RAMPART-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samisa Abeysinghe reassigned RAMPART-202:
-----------------------------------------
Assignee: Samisa Abeysinghe (was: Nandana Mihindukulasooriya)
> RampartEngine throws ClassCastException retrieving SOAPHeaderBlocks
> -------------------------------------------------------------------
>
> Key: RAMPART-202
> URL: https://issues.apache.org/jira/browse/RAMPART-202
> Project: Rampart
> Issue Type: Bug
> Components: rampart-core
> Affects Versions: 1.4
> Reporter: Bob Jacoby
> Assignee: Samisa Abeysinghe
> Fix For: NextVersion
>
> Attachments: RampartEngineTest.patch, RampartEngineTest2.patch
>
>
> I would like to be able to run the RampartReceiver via a test case in order to build some tests against a custom Axis2 handler. I need RampartReceiver to run in order to set the WSHandlerConstants.RECV_RESULTS. However, this encounters an error in RampartEngine.
> java.lang.ClassCastException: org.apache.axiom.om.impl.dom.ElementImpl incompatible with org.apache.axiom.soap.SOAPHeaderBlock
> at org.apache.rampart.RampartEngine.process(RampartEngine.java:109)
> at org.apache.rampart.RampartEngineTest.testValidSOAPMessage(RampartEngineTest.java:60)
> The steps to reproduce are:
> 1. Load a message context using MessageBuilderTestBase
> 2. Build it using MessageBuilder
> 3. Process the resultant messageContext via the RampartEngine.
> Will provide a patch which adds a test case to the RampartEngineTest class. I'm not exactly sure of the expected output of the test method so I don't have any assertions verifying the output. However, the test fails with the above error. Once the test runs without error I can add new assertions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org