You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Christian Schneider <ch...@die-schneider.net> on 2008/11/06 00:49:17 UTC

CharconversionException when receiving a german character ü

Hi,

I am getting a CharconverionException when trying to receive a german 
character ü in a soap message.
The error happens with cxf 2.1.3 with jms as transport. I have not 
tested on http yet. I am quite sure I did not see this exception when we 
worked on the snapshot.

Any idea what is going wrong here? I have attached the log on the server 
and client side side. If it helps I can post the complete project.

Greetings

Christian

-- 

Christian Schneider
---
http://www.liquid-reality.de


Server:
---

06.11.2008 00:43:05 org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@93d6bc: display name [org.springframework.context.support.ClassPathXmlApplicationContext@93d6bc]; startup date [Thu Nov 06 00:43:05 CET 2008]; root of context hierarchy
06.11.2008 00:43:05 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [server-applicationContext.xml]
06.11.2008 00:43:07 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
06.11.2008 00:43:07 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
06.11.2008 00:43:07 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]
06.11.2008 00:43:07 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
06.11.2008 00:43:07 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder': replacing [Root bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
06.11.2008 00:43:07 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder': replacing [Root bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
06.11.2008 00:43:07 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider': replacing [Root bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
06.11.2008 00:43:07 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
06.11.2008 00:43:07 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
06.11.2008 00:43:07 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jms.xml]
06.11.2008 00:43:07 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@93d6bc]: org.springframework.beans.factory.support.DefaultListableBeanFactory@10e687b
06.11.2008 00:43:07 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06.11.2008 00:43:07 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06.11.2008 00:43:07 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@10e687b: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.jms.JMSTransportFactory,jmsConnectionFactory,jmsConfig,CustomerServiceHTTP,CustomerService]; root of factory hierarchy
06.11.2008 00:43:10 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be http://localhost:9090/CustomerServicePort
06.11.2008 00:43:10 sun.reflect.NativeMethodAccessorImpl invoke0
INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
06.11.2008 00:43:10 sun.reflect.NativeMethodAccessorImpl invoke0
INFO: jetty-6.1.9
06.11.2008 00:43:10 sun.reflect.NativeMethodAccessorImpl invoke0
INFO: Started SelectChannelConnector@0.0.0.0:9090
06.11.2008 00:43:10 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be jms://
06.11.2008 00:43:10 org.apache.cxf.transport.jms.JMSDestination activate
INFO: JMSDestination activate().... 
06.11.2008 00:43:11 org.springframework.jms.connection.SingleConnectionFactory initConnection
INFO: Established shared JMS Connection: ActiveMQConnection {id=ID:notebookchris-55647-1225928590965-0:0,clientId=null,started=false}
06.11.2008 00:43:20 org.apache.cxf.interceptor.LoggingInInterceptor logging
INFO: Inbound Message
----------------------------
Encoding: 
Headers: {SOAPJMS_contentType=[text/xml], SOAPAction=[""]}
Messages: 
Message:

Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
--------------------------------------
06.11.2008 00:43:20 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:183)
	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:56)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
	at org.apache.cxf.transport.jms.JMSDestination.onMessage(JMSDestination.java:176)
	at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:510)
	at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:445)
	at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:414)
	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:309)
	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:254)
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:870)
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:810)
	at java.lang.Thread.run(Unknown Source)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xfc (at char #161, byte #-1)
	at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:708)
	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
	at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1095)
	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:85)
	... 12 more
Caused by: java.io.CharConversionException: Invalid UTF-8 start byte 0xfc (at char #161, byte #-1)
	at com.ctc.wstx.io.UTF8Reader.reportInvalidInitial(UTF8Reader.java:302)
	at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:188)
	at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
	at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
	at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:992)
	at com.ctc.wstx.sr.StreamScanner.getNext(StreamScanner.java:763)
	at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1995)
	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
	... 14 more
06.11.2008 00:43:20 org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
INFO: Outbound Message
---------------------------
Encoding: UTF-8
Headers: 
Messages: 
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Error reading XMLStreamReader.</faultstring></soap:Fault></soap:Body></soap:Envelope>
--------------------------------------






Client:


06.11.2008 00:43:15 org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@5973ea: display name [org.springframework.context.support.ClassPathXmlApplicationContext@5973ea]; startup date [Thu Nov 06 00:43:15 CET 2008]; root of context hierarchy
06.11.2008 00:43:15 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [client-applicationContext.xml]
06.11.2008 00:43:16 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
06.11.2008 00:43:16 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
06.11.2008 00:43:16 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jms.xml]
06.11.2008 00:43:16 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@5973ea]: org.springframework.beans.factory.support.DefaultListableBeanFactory@8f2ca6
06.11.2008 00:43:17 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [config.properties]
06.11.2008 00:43:17 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06.11.2008 00:43:17 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
06.11.2008 00:43:17 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@8f2ca6: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.jms.JMSTransportFactory,propertyConfigurer,jmsConnectionFactory,jmsConfig,CustomerService.proxyFactory,CustomerService]; root of factory hierarchy
06.11.2008 00:43:19 org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
INFO: Outbound Message
---------------------------
Encoding: UTF-8
Headers: {SOAPAction=[""]}
Messages: 
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName xmlns:ns2="http://customerservice.example.com/"><name>Müller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
--------------------------------------
06.11.2008 00:43:20 org.springframework.jms.connection.SingleConnectionFactory initConnection
INFO: Established shared JMS Connection: ActiveMQConnection {id=ID:notebookchris-55658-1225928600125-0:0,clientId=null,started=false}
06.11.2008 00:43:20 org.apache.cxf.interceptor.LoggingInInterceptor logging
INFO: Inbound Message
----------------------------
Encoding: 
Headers: {SOAPJMS_contentType=[text/xml]}
Messages: 
Message:

Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Error reading XMLStreamReader.</faultstring></soap:Fault></soap:Body></soap:Envelope>
--------------------------------------
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Error reading XMLStreamReader.
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
	at $Proxy53.getCustomersByName(Unknown Source)
	at com.example.customerservice.impl.CustomerServiceClient.main(CustomerServiceClient.java:45)
Caused by: org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70)
	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
	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:220)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:633)
	at org.apache.cxf.transport.jms.JMSConduit.onMessage(JMSConduit.java:191)
	at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:510)
	at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:445)
	at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:414)
	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:309)
	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:254)
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:870)
	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:810)
	at java.lang.Thread.run(Unknown Source)




Re: CharconversionException when receiving a german character ü

Posted by Willem Jiang <wi...@gmail.com>.
Hi Christian

Yes, they should.
The encoding issue is caused by we use String(byte[]) to handler the
String message. My fix will take out the content-type's charset to make
sure the JMS client and server are using the same encoding.
In this way we could avoid the issue of different default encoding
machine's talking.
BTW cxf 2.1.2 JMS transport does't send the content-type, and cxf 2.2
will take use the default encoding UTF-8, if there is no content-type
header in the JMS message.

Willem

Christian Schneider wrote:
> Btw. Have you tested if cxf 2.1.2 and 2.2-SNAPSHOT are still compatible
> regarding enconding?
> As far as I know the encoding problem was for 2.1.2 only if the client
> and server had different default locales. We should
> avoid creating headaches for businesses that do a step by step update of
> their servers from older cxf versions to the version that includes the
> encoding fix.
> 
> Greetings
> 
> Christian
> 
> Willem Jiang schrieb:
>> Hi
>>
>> There is no {en|de}coding error when you talk in Germen :)
>> Can you try the CXF 2.1.4SNAPSHOT , which should include my patch of JMS
>> encoding[1] ?
>>
>> [1]https://issues.apache.org/jira/browse/CXF-1749
>>
>> Willem
>>
>> Christian Schneider wrote:
>>  
>>> Hi Glen,
>>>
>>> I am putting a ü into the call :
>>> customers = customerService.getCustomersByName("Müller");
>>>
>>> Quite interesting is also that what the client sends is not the same as
>>> what the server receives:
>>> INFO: Outbound Message
>>> ---------------------------
>>> Encoding: UTF-8
>>> Headers: {SOAPAction=[""]}
>>> Messages: Payload: <soap:Envelope
>>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>>>
>>> xmlns:ns2="http://customerservice.example.com/"><name>Müller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>>
>>>
>>> --------------------------------------
>>>
>>> INFO: Inbound Message
>>> ----------------------------
>>> Encoding:
>>> Headers: {SOAPJMS_contentType=[text/xml], SOAPAction=[""]}
>>> Messages: Message:
>>>
>>> Payload: <soap:Envelope
>>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>>>
>>> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>>
>>>
>>> --------------------------------------
>>>
>>> The encoding is missing on the server side and the "ü" is diplayed as
>>> "?"
>>>
>>> btw. Drahthaifish is funny ;-)
>>> Greetings
>>>
>>> Christian
>>>
>>>
>>> Glen Mazza schrieb:
>>>    
>>>> Christian Schneider wrote:
>>>>  
>>>>      
>>>>> Hi,
>>>>>
>>>>> I am getting a CharconverionException when trying to receive a german
>>>>> character ü in a soap message.
>>>>> The error happens with cxf 2.1.3 with jms as transport. I have not
>>>>> tested on http yet. I am quite sure I did not see this exception when
>>>>> we worked on the snapshot.
>>>>>
>>>>> Any idea what is going wrong here? I have attached the log on the
>>>>> server and client side side. If it helps I can post the complete
>>>>> project.
>>>>>
>>>>> Greetings
>>>>>
>>>>> Christian
>>>>>
>>>>>             
>>>> Hmmm.  Vielleicht sollen Sie Drahthaifisch benützen, um zu versichern,
>>>> dass
>>>> Sie wirklich zu dem Dienst ein ü senden. Von Ihr SOAP-Anfrage unten
>>>> scheint
>>>> es, das Ihr sogenannte ü nicht wirklich ein ü ist.
>>>>
>>>> Hmmm.  I would try Wireshark--you might not actually be sending a
>>>> u-umlaut
>>>> after all but another strange character instead.  But you said
>>>> "receive"--i.e., from server to client--the problem seems to be with
>>>> your
>>>> *request* below, not response, correct?  Could it be that a bad
>>>> request is
>>>> messing up your response?
>>>>
>>>>
>>>>
>>>>  
>>>>      
>>>>> Payload: <soap:Envelope
>>>>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>>>>>
>>>>>
>>>>> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>>>>
>>>>>
>>>>>
>>>>>             
>>>>         
>>>     
>>
>>
>>   
> 
> 


Re: CharconversionException when receiving a german character ü

Posted by Christian Schneider <ch...@die-schneider.net>.
Btw. Have you tested if cxf 2.1.2 and 2.2-SNAPSHOT are still compatible 
regarding enconding?
As far as I know the encoding problem was for 2.1.2 only if the client 
and server had different default locales. We should
avoid creating headaches for businesses that do a step by step update of 
their servers from older cxf versions to the version that includes the 
encoding fix.

Greetings

Christian

Willem Jiang schrieb:
> Hi
>
> There is no {en|de}coding error when you talk in Germen :)
> Can you try the CXF 2.1.4SNAPSHOT , which should include my patch of JMS
> encoding[1] ?
>
> [1]https://issues.apache.org/jira/browse/CXF-1749
>
> Willem
>
> Christian Schneider wrote:
>   
>> Hi Glen,
>>
>> I am putting a ü into the call :
>> customers = customerService.getCustomersByName("Müller");
>>
>> Quite interesting is also that what the client sends is not the same as
>> what the server receives:
>> INFO: Outbound Message
>> ---------------------------
>> Encoding: UTF-8
>> Headers: {SOAPAction=[""]}
>> Messages: Payload: <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>> xmlns:ns2="http://customerservice.example.com/"><name>Müller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>
>> --------------------------------------
>>
>> INFO: Inbound Message
>> ----------------------------
>> Encoding:
>> Headers: {SOAPJMS_contentType=[text/xml], SOAPAction=[""]}
>> Messages: Message:
>>
>> Payload: <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>
>> --------------------------------------
>>
>> The encoding is missing on the server side and the "ü" is diplayed as "?"
>>
>> btw. Drahthaifish is funny ;-)
>> Greetings
>>
>> Christian
>>
>>
>> Glen Mazza schrieb:
>>     
>>> Christian Schneider wrote:
>>>  
>>>       
>>>> Hi,
>>>>
>>>> I am getting a CharconverionException when trying to receive a german
>>>> character ü in a soap message.
>>>> The error happens with cxf 2.1.3 with jms as transport. I have not
>>>> tested on http yet. I am quite sure I did not see this exception when
>>>> we worked on the snapshot.
>>>>
>>>> Any idea what is going wrong here? I have attached the log on the
>>>> server and client side side. If it helps I can post the complete
>>>> project.
>>>>
>>>> Greetings
>>>>
>>>> Christian
>>>>
>>>>     
>>>>         
>>> Hmmm.  Vielleicht sollen Sie Drahthaifisch benützen, um zu versichern,
>>> dass
>>> Sie wirklich zu dem Dienst ein ü senden. Von Ihr SOAP-Anfrage unten
>>> scheint
>>> es, das Ihr sogenannte ü nicht wirklich ein ü ist.
>>>
>>> Hmmm.  I would try Wireshark--you might not actually be sending a
>>> u-umlaut
>>> after all but another strange character instead.  But you said
>>> "receive"--i.e., from server to client--the problem seems to be with your
>>> *request* below, not response, correct?  Could it be that a bad
>>> request is
>>> messing up your response?
>>>
>>>
>>>
>>>  
>>>       
>>>> Payload: <soap:Envelope
>>>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>>>>
>>>> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>>     
>
>
>   


-- 

Christian Schneider
---
http://www.liquid-reality.de


Re: CharconversionException when receiving a german character ü

Posted by Christian Schneider <ch...@die-schneider.net>.
Hi Willem,

I just tested with 2.2-SNAPSHOT and it works. I will also test with 
2.1.4-SNAPSHOT.

Greetings

Christian

Willem Jiang schrieb:
> Hi
>
> There is no {en|de}coding error when you talk in Germen :)
> Can you try the CXF 2.1.4SNAPSHOT , which should include my patch of JMS
> encoding[1] ?
>
> [1]https://issues.apache.org/jira/browse/CXF-1749
>
> Willem
>
> Christian Schneider wrote:
>   
>> Hi Glen,
>>
>> I am putting a ü into the call :
>> customers = customerService.getCustomersByName("Müller");
>>
>> Quite interesting is also that what the client sends is not the same as
>> what the server receives:
>> INFO: Outbound Message
>> ---------------------------
>> Encoding: UTF-8
>> Headers: {SOAPAction=[""]}
>> Messages: Payload: <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>> xmlns:ns2="http://customerservice.example.com/"><name>Müller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>
>> --------------------------------------
>>
>> INFO: Inbound Message
>> ----------------------------
>> Encoding:
>> Headers: {SOAPJMS_contentType=[text/xml], SOAPAction=[""]}
>> Messages: Message:
>>
>> Payload: <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>
>> --------------------------------------
>>
>> The encoding is missing on the server side and the "ü" is diplayed as "?"
>>
>> btw. Drahthaifish is funny ;-)
>> Greetings
>>
>> Christian
>>
>>
>> Glen Mazza schrieb:
>>     
>>> Christian Schneider wrote:
>>>  
>>>       
>>>> Hi,
>>>>
>>>> I am getting a CharconverionException when trying to receive a german
>>>> character ü in a soap message.
>>>> The error happens with cxf 2.1.3 with jms as transport. I have not
>>>> tested on http yet. I am quite sure I did not see this exception when
>>>> we worked on the snapshot.
>>>>
>>>> Any idea what is going wrong here? I have attached the log on the
>>>> server and client side side. If it helps I can post the complete
>>>> project.
>>>>
>>>> Greetings
>>>>
>>>> Christian
>>>>
>>>>     
>>>>         
>>> Hmmm.  Vielleicht sollen Sie Drahthaifisch benützen, um zu versichern,
>>> dass
>>> Sie wirklich zu dem Dienst ein ü senden. Von Ihr SOAP-Anfrage unten
>>> scheint
>>> es, das Ihr sogenannte ü nicht wirklich ein ü ist.
>>>
>>> Hmmm.  I would try Wireshark--you might not actually be sending a
>>> u-umlaut
>>> after all but another strange character instead.  But you said
>>> "receive"--i.e., from server to client--the problem seems to be with your
>>> *request* below, not response, correct?  Could it be that a bad
>>> request is
>>> messing up your response?
>>>
>>>
>>>
>>>  
>>>       
>>>> Payload: <soap:Envelope
>>>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>>>>
>>>> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>>     
>
>
>   


-- 

Christian Schneider
---
http://www.liquid-reality.de


Re: CharconversionException when receiving a german character ü

Posted by Willem Jiang <wi...@gmail.com>.
Hi

There is no {en|de}coding error when you talk in Germen :)
Can you try the CXF 2.1.4SNAPSHOT , which should include my patch of JMS
encoding[1] ?

[1]https://issues.apache.org/jira/browse/CXF-1749

Willem

Christian Schneider wrote:
> Hi Glen,
> 
> I am putting a ü into the call :
> customers = customerService.getCustomersByName("Müller");
> 
> Quite interesting is also that what the client sends is not the same as
> what the server receives:
> INFO: Outbound Message
> ---------------------------
> Encoding: UTF-8
> Headers: {SOAPAction=[""]}
> Messages: Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
> xmlns:ns2="http://customerservice.example.com/"><name>Müller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
> 
> --------------------------------------
> 
> INFO: Inbound Message
> ----------------------------
> Encoding:
> Headers: {SOAPJMS_contentType=[text/xml], SOAPAction=[""]}
> Messages: Message:
> 
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
> 
> --------------------------------------
> 
> The encoding is missing on the server side and the "ü" is diplayed as "?"
> 
> btw. Drahthaifish is funny ;-)
> Greetings
> 
> Christian
> 
> 
> Glen Mazza schrieb:
>> Christian Schneider wrote:
>>  
>>> Hi,
>>>
>>> I am getting a CharconverionException when trying to receive a german
>>> character ü in a soap message.
>>> The error happens with cxf 2.1.3 with jms as transport. I have not
>>> tested on http yet. I am quite sure I did not see this exception when
>>> we worked on the snapshot.
>>>
>>> Any idea what is going wrong here? I have attached the log on the
>>> server and client side side. If it helps I can post the complete
>>> project.
>>>
>>> Greetings
>>>
>>> Christian
>>>
>>>     
>>
>> Hmmm.  Vielleicht sollen Sie Drahthaifisch benützen, um zu versichern,
>> dass
>> Sie wirklich zu dem Dienst ein ü senden. Von Ihr SOAP-Anfrage unten
>> scheint
>> es, das Ihr sogenannte ü nicht wirklich ein ü ist.
>>
>> Hmmm.  I would try Wireshark--you might not actually be sending a
>> u-umlaut
>> after all but another strange character instead.  But you said
>> "receive"--i.e., from server to client--the problem seems to be with your
>> *request* below, not response, correct?  Could it be that a bad
>> request is
>> messing up your response?
>>
>>
>>
>>  
>>> Payload: <soap:Envelope
>>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>>>
>>> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>>
>>>
>>>     
>>
>>   
> 
> 


Re: CharconversionException when receiving a german character ü

Posted by Christian Schneider <ch...@die-schneider.net>.
Hi Glen,

I am putting a ü into the call :
customers = customerService.getCustomersByName("Müller");

Quite interesting is also that what the client sends is not the same as 
what the server receives:
INFO: Outbound Message
---------------------------
Encoding: UTF-8
Headers: {SOAPAction=[""]}
Messages: Payload: <soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName 
xmlns:ns2="http://customerservice.example.com/"><name>Müller</name></ns2:getCustomersByName></soap:Body></soap:Envelope> 

--------------------------------------

INFO: Inbound Message
----------------------------
Encoding:
Headers: {SOAPJMS_contentType=[text/xml], SOAPAction=[""]}
Messages: Message:

Payload: <soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName 
xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope> 

--------------------------------------

The encoding is missing on the server side and the "ü" is diplayed as "?"

btw. Drahthaifish is funny ;-)
Greetings

Christian


Glen Mazza schrieb:
> Christian Schneider wrote:
>   
>> Hi,
>>
>> I am getting a CharconverionException when trying to receive a german 
>> character ü in a soap message.
>> The error happens with cxf 2.1.3 with jms as transport. I have not 
>> tested on http yet. I am quite sure I did not see this exception when we 
>> worked on the snapshot.
>>
>> Any idea what is going wrong here? I have attached the log on the server 
>> and client side side. If it helps I can post the complete project.
>>
>> Greetings
>>
>> Christian
>>
>>     
>
> Hmmm.  Vielleicht sollen Sie Drahthaifisch benützen, um zu versichern, dass
> Sie wirklich zu dem Dienst ein ü senden. Von Ihr SOAP-Anfrage unten scheint
> es, das Ihr sogenannte ü nicht wirklich ein ü ist.
>
> Hmmm.  I would try Wireshark--you might not actually be sending a u-umlaut
> after all but another strange character instead.  But you said
> "receive"--i.e., from server to client--the problem seems to be with your
> *request* below, not response, correct?  Could it be that a bad request is
> messing up your response?
>
>
>
>   
>> Payload: <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
>> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
>>
>>     
>
>   


-- 

Christian Schneider
---
http://www.liquid-reality.de


Re: CharconversionException when receiving a german character ü

Posted by Glen Mazza <gl...@gmail.com>.

Christian Schneider wrote:
> 
> Hi,
> 
> I am getting a CharconverionException when trying to receive a german 
> character ü in a soap message.
> The error happens with cxf 2.1.3 with jms as transport. I have not 
> tested on http yet. I am quite sure I did not see this exception when we 
> worked on the snapshot.
> 
> Any idea what is going wrong here? I have attached the log on the server 
> and client side side. If it helps I can post the complete project.
> 
> Greetings
> 
> Christian
> 

Hmmm.  Vielleicht sollen Sie Drahthaifisch benützen, um zu versichern, dass
Sie wirklich zu dem Dienst ein ü senden. Von Ihr SOAP-Anfrage unten scheint
es, das Ihr sogenannte ü nicht wirklich ein ü ist.

Hmmm.  I would try Wireshark--you might not actually be sending a u-umlaut
after all but another strange character instead.  But you said
"receive"--i.e., from server to client--the problem seems to be with your
*request* below, not response, correct?  Could it be that a bad request is
messing up your response?



> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:getCustomersByName
> xmlns:ns2="http://customerservice.example.com/"><name>M?ller</name></ns2:getCustomersByName></soap:Body></soap:Envelope>
> 

-- 
View this message in context: http://www.nabble.com/CharconversionException-when-receiving-a-german-character-%C3%BC-tp20352582p20352987.html
Sent from the cxf-user mailing list archive at Nabble.com.