cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Vallen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-7450) encoding of incoming JMS message not set
Date Wed, 19 Jul 2017 08:18:00 GMT
Andreas Vallen created CXF-7450:
-----------------------------------

             Summary: encoding of incoming JMS message not set
                 Key: CXF-7450
                 URL: https://issues.apache.org/jira/browse/CXF-7450
             Project: CXF
          Issue Type: Bug
    Affects Versions: 3.1.11
            Reporter: Andreas Vallen


After upgrading from CXF 3.1.7 to 3.1.11, LoggingInInterceptor started failing due to the
message encoding being unset for incoming messages.

{code}
Caused by: java.lang.NullPointerException: charsetName
	at java.io.InputStreamReader.<init>(InputStreamReader.java:99)
	at org.apache.cxf.interceptor.AbstractLoggingInterceptor.writePayload(AbstractLoggingInterceptor.java:180)
	at org.apache.cxf.interceptor.LoggingInInterceptor.logInputStream(LoggingInInterceptor.java:221)
	at org.apache.cxf.interceptor.LoggingInInterceptor.logging(LoggingInInterceptor.java:159)
	at org.apache.cxf.interceptor.LoggingInInterceptor.handleMessage(LoggingInInterceptor.java:80)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:801)
	at org.apache.camel.component.cxf.transport.CamelOutputStream.handleResponseInternal(CamelOutputStream.java:172)
	at org.apache.camel.component.cxf.transport.CamelOutputStream.syncInvoke(CamelOutputStream.java:120)
	at org.apache.camel.component.cxf.transport.CamelOutputStream.commitOutputMessage(CamelOutputStream.java:99)
	at org.apache.camel.component.cxf.transport.CamelOutputStream.doClose(CamelOutputStream.java:71)
	at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:213)
	at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:56)
	at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:216)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)
	... 165 common frames omitted
{code}


Possible cause is that {{org.apache.cxf.transport.jms.JMSMessageUtils#populateIncomingContext}}
fails to set the encoding, because the message property that it looks for is {{Content-Type}},
but the message properties contain only one that is named "Content_HYPHEN_Type".




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message