You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Thomas Leonard (JIRA)" <ji...@apache.org> on 2008/03/06 15:24:59 UTC

[jira] Created: (CXF-1466) NullPointerException when SOAPFault is not a Fault

NullPointerException when SOAPFault is not a Fault
--------------------------------------------------

                 Key: CXF-1466
                 URL: https://issues.apache.org/jira/browse/CXF-1466
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.0.4
            Reporter: Thomas Leonard


Exception in thread "main" java.lang.ClassCastException: java.lang.NullPointerException
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:191)
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:124)

The code is:

                        SOAPFault soapFault = SOAPFactory.newInstance().createFault();
                        Fault fault = (Fault)exp;

(after modifying the code, the full exception was
Fetching WSDL from http://virtualvista.it-innovation.soton.ac.uk:8080/BREIN/VIMEnactorTestService?wsdl...
Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:195)
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:124)
...
Caused by: java.lang.NullPointerException
        at org.apache.cxf.ws.addressing.MAPAggregator.getActionBaseUri(MAPAggregator.java:432)
        at org.apache.cxf.ws.addressing.MAPAggregator.getActionUri(MAPAggregator.java:475)
        at org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:391)
        at org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:359)
        at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:315)
        at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:137)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
        at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:179)
        ... 2 more
)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CXF-1466) NullPointerException when SOAPFault is not a Fault

Posted by "Sean O'Callaghan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean O'Callaghan reassigned CXF-1466:
-------------------------------------

    Assignee: Sean O'Callaghan

> NullPointerException when SOAPFault is not a Fault
> --------------------------------------------------
>
>                 Key: CXF-1466
>                 URL: https://issues.apache.org/jira/browse/CXF-1466
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0.4
>            Reporter: Thomas Leonard
>            Assignee: Sean O'Callaghan
>
> Exception in thread "main" java.lang.ClassCastException: java.lang.NullPointerException
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:191)
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:124)
> The code is:
>                         SOAPFault soapFault = SOAPFactory.newInstance().createFault();
>                         Fault fault = (Fault)exp;
> (after modifying the code, the full exception was
> Fetching WSDL from http://virtualvista.it-innovation.soton.ac.uk:8080/BREIN/VIMEnactorTestService?wsdl...
> Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:195)
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:124)
> ...
> Caused by: java.lang.NullPointerException
>         at org.apache.cxf.ws.addressing.MAPAggregator.getActionBaseUri(MAPAggregator.java:432)
>         at org.apache.cxf.ws.addressing.MAPAggregator.getActionUri(MAPAggregator.java:475)
>         at org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:391)
>         at org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:359)
>         at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:315)
>         at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:137)
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:179)
>         ... 2 more
> )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1466) NullPointerException when SOAPFault is not a Fault

Posted by "Sean O'Callaghan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean O'Callaghan resolved CXF-1466.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1

Fixed, added check in DispatchImpl to ensure Exception was of type Fault.

> NullPointerException when SOAPFault is not a Fault
> --------------------------------------------------
>
>                 Key: CXF-1466
>                 URL: https://issues.apache.org/jira/browse/CXF-1466
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0.4
>            Reporter: Thomas Leonard
>            Assignee: Sean O'Callaghan
>             Fix For: 2.1
>
>
> Exception in thread "main" java.lang.ClassCastException: java.lang.NullPointerException
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:191)
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:124)
> The code is:
>                         SOAPFault soapFault = SOAPFactory.newInstance().createFault();
>                         Fault fault = (Fault)exp;
> (after modifying the code, the full exception was
> Fetching WSDL from http://virtualvista.it-innovation.soton.ac.uk:8080/BREIN/VIMEnactorTestService?wsdl...
> Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:195)
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:124)
> ...
> Caused by: java.lang.NullPointerException
>         at org.apache.cxf.ws.addressing.MAPAggregator.getActionBaseUri(MAPAggregator.java:432)
>         at org.apache.cxf.ws.addressing.MAPAggregator.getActionUri(MAPAggregator.java:475)
>         at org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:391)
>         at org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:359)
>         at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:315)
>         at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:137)
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
>         at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:179)
>         ... 2 more
> )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.