[
https://issues.apache.org/jira/browse/CXF-2506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771417#action_12771417
]
Laxmi Deepika Vadapalli commented on CXF-2506:
----------------------------------------------
I tried with my production version CXF 2.0.4 and it works fine.
I want to upgrade to CXF 2.1.7 , latest version to avoid other problems since
CXF 2.0.4 is very old version.
Please let me know if I can resolv ethis issue with CXF latest version.
THis time, my interceptor code is called only once but after proceesing it
fails with Null pointer Exception in CXF code.
Here is the error.
java.lang.NullPointerException
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
HTTPConduit.java:1935)
at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(
CacheAndWriteOutputStream.java:47)
at org.apache.cxf.io.CachedOutputStream.close(
CachedOutputStream.java:188)
at org.apache.cxf.transport.AbstractConduit.close(
AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(
HTTPConduit.java:627
)
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:478)
at org.apache.cxf.endpoint.ClientImpl.invoke(
ClientImpl.java:308)
at org.apache.cxf.endpoint.ClientImpl.invoke(
ClientImpl.java:260)
at org.apache.cxf.frontend.ClientProxy.invokeSync(
ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(
JaxWsClientProxy.java:127)
> LoggingInInterceptor called twice if message is larger than 64 kb (when
> CachedOutStream writes to tempfile)
> -----------------------------------------------------------------------------------------------------------
>
> Key: CXF-2506
> URL: https://issues.apache.org/jira/browse/CXF-2506
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.1.5
> Environment: Windows
> Reporter: Laxmi Deepika Vadapalli
> Attachments: java_first_jaxws.tar.gz
>
>
> I have my own SELoggingInterceptor. But it is same as LoggingInInterceptor
> code with no difference.
> I see that when message is larger than 64kb i.e. when CachedOutputStream
> write to temp file, this interceptor is called twice.
> First time, I process the message and second time I get Stream is closed
> Exception when I try to copy Message,content (InputStream) to
> CachedOutputStream.
> I tried printing the interceptor chain and I see my interceptor only once.
> It happens only with larger messages with CXF 2.1.5.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.