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

nabble.com | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    cxf-user - org.apache.neethi.builders.PrimitiveAssertion cannot be cast to org.apache.cxf.ws.security.policy.model.Token

    nabble.com | 9 months ago
    javax.xml.ws.soap.SOAPFaultException: org.apache.neethi.builders.PrimitiveAssertion cannot be cast to org.apache.cxf.ws.security.policy.model.Token

    Root Cause Analysis

    1. java.lang.ClassCastException

      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()
    2. CXF
      TransportBindingBuilder.build
      1. org.apache.cxf.ws.security.policy.builders.TransportTokenBuilder.build(TransportTokenBuilder.java:61)
      2. org.apache.cxf.ws.security.policy.builders.TransportBindingBuilder.processAlternative(TransportBindingBuilder.java:85)
      3. org.apache.cxf.ws.security.policy.builders.TransportBindingBuilder.build(TransportBindingBuilder.java:57)
      4. org.apache.cxf.ws.security.policy.builders.TransportBindingBuilder.build(TransportBindingBuilder.java:41)
      4 frames
    3. Apache Neethi
      PolicyBuilder.getPolicy
      1. org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:138)
      2. org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:117)
      3. org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:224)
      4. org.apache.neethi.PolicyBuilder.getAllOperator(PolicyBuilder.java:184)
      5. org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:217)
      6. org.apache.neethi.PolicyBuilder.getExactlyOneOperator(PolicyBuilder.java:180)
      7. org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:215)
      8. org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:174)
      9. org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:124)
      9 frames
    4. Apache CXF Runtime WS Policy
      PolicyDataEngineImpl.getClientEndpointPolicy
      1. org.apache.cxf.ws.policy.attachment.reference.LocalServiceModelReferenceResolver.resolveReference(LocalServiceModelReferenceResolver.java:53)
      2. org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.resolveLocal(Wsdl11AttachmentPolicyProvider.java:292)
      3. org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.resolveReference(Wsdl11AttachmentPolicyProvider.java:272)
      4. org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getElementPolicy(Wsdl11AttachmentPolicyProvider.java:220)
      5. org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getElementPolicy(Wsdl11AttachmentPolicyProvider.java:168)
      6. org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getElementPolicy(Wsdl11AttachmentPolicyProvider.java:161)
      7. org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getEffectivePolicy(Wsdl11AttachmentPolicyProvider.java:98)
      8. org.apache.cxf.ws.policy.PolicyEngineImpl.getAggregatedEndpointPolicy(PolicyEngineImpl.java:418)
      9. org.apache.cxf.ws.policy.EndpointPolicyImpl.initializePolicy(EndpointPolicyImpl.java:151)
      10. org.apache.cxf.ws.policy.EndpointPolicyImpl.initialize(EndpointPolicyImpl.java:139)
      11. org.apache.cxf.ws.policy.PolicyEngineImpl.createEndpointPolicyInfo(PolicyEngineImpl.java:550)
      12. org.apache.cxf.ws.policy.PolicyEngineImpl.getEndpointPolicy(PolicyEngineImpl.java:296)
      13. org.apache.cxf.ws.policy.PolicyEngineImpl.getClientEndpointPolicy(PolicyEngineImpl.java:279)
      14. org.apache.cxf.ws.policy.PolicyDataEngineImpl.getClientEndpointPolicy(PolicyDataEngineImpl.java:61)
      14 frames
    5. Apache CXF Runtime HTTP Transport
      URLConnectionHTTPConduit.<init>
      1. org.apache.cxf.transport.http.HTTPConduit.updateClientPolicy(HTTPConduit.java:310)
      2. org.apache.cxf.transport.http.HTTPConduit.<init>(HTTPConduit.java:296)
      3. org.apache.cxf.transport.http.URLConnectionHTTPConduit.<init>(URLConnectionHTTPConduit.java:68)
      3 frames
    6. Apache CXF Runtime HTTP Async Transport
      AsyncHTTPConduitFactory.createConduit
      1. org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit.<init>(AsyncHTTPConduit.java:110)
      2. org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduitFactory.createConduit(AsyncHTTPConduitFactory.java:280)
      2 frames
    7. Apache CXF Runtime HTTP Transport
      HTTPTransportFactory.getConduit
      1. org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(HTTPTransportFactory.java:255)
      1 frame
    8. Apache CXF Runtime SOAP Binding
      SoapTransportFactory.getConduit
      1. org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:238)
      2. org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:245)
      2 frames
    9. Apache CXF Core
      ClientImpl.invoke
      1. org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:103)
      2. org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)
      3. org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:886)
      4. org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:560)
      5. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474)
      6. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377)
      7. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330)
      7 frames
    10. Apache CXF Runtime Simple Frontend
      ClientProxy.invokeSync
      1. org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
      1 frame
    11. Apache CXF Runtime JAX-WS Frontend
      JaxWsClientProxy.invoke
      1. org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
      1 frame
    12. com.sun.proxy
      $Proxy43.smsGetMessages
      1. com.sun.proxy.$Proxy43.smsGetMessages(Unknown Source)
      1 frame
    13. Unknown
      CapClient.main
      1. CapClient.main(CapClient.java:172)
      1 frame