javax.xml.ws.soap.SOAPFaultException: org.apache.neethi.builders.PrimitiveAssertion cannot be cast to org.apache.cxf.ws.security.policy.model.Token

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via nabble.com by Unknown author, 1 year ago
org.apache.neethi.builders.PrimitiveAssertion cannot be cast to org.apache.cxf.ws.security.policy.model.Token
via GitHub by lakiluk
, 2 years ago
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
via Stack Overflow by Peg Leg 3941
, 1 year ago
Cannot create Crypto class null
via Coderanch by Carlos Oliva, 11 months ago
None of the policy alternatives can be satisfied.
via Stack Overflow by rukiman
, 1 year ago
These policy alternatives can not be satisfied: {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}RequiredElements
via Stack Overflow by kiransayshi kumar
, 8 months ago
Error writing to XMLStreamWriter. - Oops! javax.xml.ws.soap.SOAPFaultException: Error writing to XMLStreamWriter.
javax.xml.ws.soap.SOAPFaultException: org.apache.neethi.builders.PrimitiveAssertion cannot be cast to org.apache.cxf.ws.security.policy.model.Token
at org.apache.cxf.ws.security.policy.builders.TransportTokenBuilder.build(TransportTokenBuilder.java:61)
at org.apache.cxf.ws.security.policy.builders.TransportBindingBuilder.processAlternative(TransportBindingBuilder.java:85)
at org.apache.cxf.ws.security.policy.builders.TransportBindingBuilder.build(TransportBindingBuilder.java:57)
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)
at org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.resolveLocal(Wsdl11AttachmentPolicyProvider.java:292)
at org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.resolveReference(Wsdl11AttachmentPolicyProvider.java:272)
at org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getElementPolicy(Wsdl11AttachmentPolicyProvider.java:220)
at org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getElementPolicy(Wsdl11AttachmentPolicyProvider.java:168)
at org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getElementPolicy(Wsdl11AttachmentPolicyProvider.java:161)
at org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getEffectivePolicy(Wsdl11AttachmentPolicyProvider.java:98)
at org.apache.cxf.ws.policy.PolicyEngineImpl.getAggregatedEndpointPolicy(PolicyEngineImpl.java:418)
at org.apache.cxf.ws.policy.EndpointPolicyImpl.initializePolicy(EndpointPolicyImpl.java:151)
at org.apache.cxf.ws.policy.EndpointPolicyImpl.initialize(EndpointPolicyImpl.java:139)
at org.apache.cxf.ws.policy.PolicyEngineImpl.createEndpointPolicyInfo(PolicyEngineImpl.java:550)
at org.apache.cxf.ws.policy.PolicyEngineImpl.getEndpointPolicy(PolicyEngineImpl.java:296)
at org.apache.cxf.ws.policy.PolicyEngineImpl.getClientEndpointPolicy(PolicyEngineImpl.java:279)
at org.apache.cxf.transport.http.HTTPConduit.updateClientPolicy(HTTPConduit.java:310)
at org.apache.cxf.transport.http.HTTPConduit.(HTTPConduit.java:296)
at org.apache.cxf.transport.http.URLConnectionHTTPConduit.(URLConnectionHTTPConduit.java:68)
at org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit.(AsyncHTTPConduit.java:110)
at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:238)
at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:103)
at org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)
at org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:886)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:560)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
at com.sun.proxy.$Proxy50.smsGetMessages(Unknown Source)
at undefined.CapClient.main(CapClient.java:154)

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.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.