cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Tsang (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-2555) JaxWsDynamicClientFactory unable to handle custom exceptions
Date Wed, 15 Feb 2012 18:21:04 GMT

    [ https://issues.apache.org/jira/browse/CXF-2555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208633#comment-13208633
] 

Ryan Tsang commented on CXF-2555:
---------------------------------

Did you figure out what that issue was about Sergey? I am getting something similar:

[12:05:28.895] org.apache.cxf.binding.soap.SoapFault: Internal Error
[12:05:28.895]  at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
[12:05:28.895]  at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
[12:05:28.895]  at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
[12:05:28.895]  at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
[12:05:28.895]  at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:99)
[12:05:28.895]  at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
[12:05:28.895]  at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
[12:05:28.895]  at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
[12:05:28.895]  at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:700)
[12:05:28.895]  at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2261)
[12:05:28.895]  at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)
[12:05:28.895]  at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)
[12:05:28.895]  at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
[12:05:28.895]  at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:639)
[12:05:28.895]  at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
[12:05:28.895]  at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
[12:05:28.895]  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)
[12:05:28.895]  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
[12:05:28.895]  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
[12:05:28.895]  at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
[12:05:28.895]  at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
[12:05:28.895]  at $Proxy163.submitApplication(Unknown Source)

with source generated by cxf 2.2.8.
                
> JaxWsDynamicClientFactory unable to handle custom exceptions
> ------------------------------------------------------------
>
>                 Key: CXF-2555
>                 URL: https://issues.apache.org/jira/browse/CXF-2555
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.2.3
>         Environment: Windows OS with tomcat server
>            Reporter: pavan kumar
>            Assignee: Daniel Kulp
>             Fix For: 2.2.6
>
>         Attachments: test.war
>
>
> When server throws a custom exception client is showing a NULLPointerException and returning
a SoapFault with the error message thrown by the server. But the expected output should be
the custom exception.
> Below is the full stack trace.
> Nov 21, 2009 11:25:01 AM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
> INFO: No cxf.xml configuration file detected, relying on defaults.
> Nov 21, 2009 11:25:03 AM org.apache.cxf.endpoint.dynamic.DynamicClientFactory outputDebug
> INFO: Created classes: contactus.CxCSWebserviceExcpetion123, contactus.ObjectFactory,
contactus.PostMessage, contactus.PostMessageResponse
> Nov 21, 2009 11:25:05 AM org.apache.cxf.interceptor.ClientFaultConverter processFaultDetail
> INFO: Exception occurred while creating exception: null
> java.lang.NullPointerException
> 	at org.apache.cxf.interceptor.ClientFaultConverter.getConstructor(ClientFaultConverter.java:182)
> 	at org.apache.cxf.interceptor.ClientFaultConverter.processFaultDetail(ClientFaultConverter.java:154)
> 	at org.apache.cxf.interceptor.ClientFaultConverter.handleMessage(ClientFaultConverter.java:74)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
> 	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)
> 	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
> 	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
> 	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:658)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2139)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2022)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1947)
> 	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
> 	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:472)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:302)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:274)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
> 	at com.chordiant.cs.scheduler.client.CXFDynamicContactClient.main(CXFDynamicContactClient.java:23)
> org.apache.cxf.binding.soap.SoapFault: Exception from postMessages
> Here is the client Code.
> 		try
> 		{
> 			JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
> 			Client client = dcf.createClient("http://localhost:8080/contactUs/contactus?wsdl",
Thread.currentThread().getContextClassLoader());
> 			client.invoke("postMessage", "test");
> 		}
> 		catch(Exception e){
> 			System.out.println(e);
> 		}
> 			

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message