javax.xml.ws.soap.SOAPFaultException: org.apache.neethi.builders.PolicyContainingPrimitiveAssertion cannot be cast to org.apache.wss4j.policy.model.AlgorithmSuite


Solutions on the web99

Solution icon of stackoverflow
org.apache.neethi.builders.PolicyContainingPrimitiveAssertion cannot be cast to org.apache.wss4j.policy.model.AlgorithmSuite

Solution icon of kuali
via Kuali JIRA by Kyle Campos, 1 year ago
java.lang.ClassCastException: org.springframework.aop.framework.JdkDynamicAopProxy cannot be cast to org.apache.cxf.frontend.ClientProxy

Solution icon of stackoverflow
java.net.URL cannot be cast to java.lang.String

Solution icon of web
java.net.URL cannot be cast to java.lang.String

Solution icon of kuali
via Kuali JIRA by Kyle Campos, 1 year ago
java.lang.ClassCastException: org.springframework.aop.framework.JdkDynamicAopProxy cannot be cast to org.apache.cxf.frontend.ClientProxy

Solution icon of web
org.apache.neethi.builders.PrimitiveAssertion cannot be cast to org.apache.cxf.ws.security.policy.model.Token

Solution icon of coderanch
via Coderanch by Raghu Nandakumar, 9 months ago
java.lang.String cannot be cast to java.lang.Boolean

Solution icon of github
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

Solution icon of stackoverflow
via Stack Overflow by sparkr
, 1 year ago
scala.collection.immutable.$colon$colon cannot be cast to java.util.List

Solution icon of web
via blogspot.com by Unknown author, 1 year ago
Reference to policy #Claimant_PortBindingPolicy could not be resolved.

Stack trace

javax.xml.ws.soap.SOAPFaultException: org.apache.neethi.builders.PolicyContainingPrimitiveAssertion cannot be cast to org.apache.wss4j.policy.model.AlgorithmSuite
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:161)
	at com.sun.proxy.$Proxy68.creditSearch(Unknown Source)
	at uk.co.example.service.TestServiceClient.directSearch(TestServiceClient.java:139)
	at uk.co.example.service.TestServiceClient.main(TestServiceClient.java:71)
Caused by: java.lang.ClassCastException: org.apache.neethi.builders.PolicyContainingPrimitiveAssertion cannot be cast to org.apache.wss4j.policy.model.AlgorithmSuite
	at org.apache.wss4j.policy.model.AbstractBinding.parseNestedBindingPolicy(AbstractBinding.java:78)
	at org.apache.wss4j.policy.model.AbstractBinding.<init>(AbstractBinding.java:43)
	at org.apache.wss4j.policy.model.TransportBinding.<init>(TransportBinding.java:36)
	at org.apache.wss4j.policy.builders.TransportBindingBuilder.build(TransportBindingBuilder.java:45)
	at org.apache.wss4j.policy.builders.TransportBindingBuilder.build(TransportBindingBuilder.java:34)
	at org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:138)
	at org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:117)
	at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:224)
	at org.apache.neethi.PolicyBuilder.getAllOperator(PolicyBuilder.java:184)
	at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:217)
	at org.apache.neethi.PolicyBuilder.getExactlyOneOperator(PolicyBuilder.java:180)
	at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:215)
	at org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:174)
	at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:124)
	at org.apache.cxf.ws.policy.attachment.reference.LocalServiceModelReferenceResolver.resolveReference(LocalServiceModelReferenceResolver.java:53)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.