Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3554

Setting log4j level to org.apache.cxf makes the message failed to sent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4, 2.3.4
    • 2.4.1
    • JAXB Databinding
    • None
    • JDK 1.6 Eclipse IDE
      log4j 1.2.16

    • Advanced

    Description

      When updating the logging level for the package org.apache.cxf the messages fails to be sent with the following exception:
      17:40:43,548 (LogUtils.java:371) - Interceptor for

      {http://wsdl.example.com/Baseline_v1_v2}

      Baseline_Service#

      {http://wsdl.example.com/Baseline_v1}

      MyOperation has thrown exception, unwinding now
      org.apache.cxf.interceptor.Fault: Could not send Message.
      at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
      at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:484)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:414)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:317)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:269)
      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
      at $Proxy26.myoperation(Unknown Source)
      at com.example.ws.client.MyClient.myoperation(MyClient.java:41)
      at com.example.ws.test.WebServiceTestCase.setUp(WebServiceTestCase.java:42)
      at com.example.ws.test.MyTest.setUp(MyTest.java:29)
      at junit.framework.TestCase.runBare(TestCase.java:128)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:120)
      at junit.framework.TestSuite.runTest(TestSuite.java:230)
      at junit.framework.TestSuite.run(TestSuite.java:225)
      at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      Caused by: java.io.IOException: IOException invoking https://test.webservices.example.com/si/Baseline_v1: Stream is closed
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1385)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1370)
      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:56)
      at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:614)
      at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
      ... 24 more
      Caused by: java.io.IOException: Stream is closed
      at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConnection.java:2518)
      at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:2507)
      at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:46)
      at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1342)
      ... 29 more

      Perhaps above line in logs may help:

      17:40:42,923 (HTTPConduit.java:876) - Conduit '

      {http://wsdl.example.com/Baseline_v1_v2}

      Baseline_Port.http-conduit' has been (re)configured for plain http.
      17:40:42,923 (HTTPConduit.java:358) - No Trust Decider configured for Conduit '

      {http://wsdl.example.com/Baseline_v1_v2}

      Baseline_Port.http-conduit'
      17:40:42,923 (HTTPConduit.java:371) - No Auth Supplier configured for Conduit '

      {http://wsdl.example.com/Baseline_v1_v2}

      Baseline_Port.http-conduit'
      17:40:42,923 (HTTPConduit.java:390) - Conduit '

      {http://wsdl.example.com/Baseline_v1_v2}

      Baseline_Port.http-conduit' has been configured for plain http.
      ...
      17:40:43,329 (TrustDecisionUtil.java:106) - No Trust Decider for Conduit '

      {http://wsdl.example.com/Baseline_v1_v2}

      Baseline_Port.http-conduit'. An afirmative Trust Decision is assumed.
      17:40:43,548 (HTTPConduit.java:1277) - Sending POST Message with Headers to https://test.example.amadeus.com/si/Baseline_v1 Conduit :

      {http://wsdl.example.com/Baseline_v1_v2}

      Baseline_Port.http-conduit
      Content-Type: null

      Attachments

        Issue Links

          Activity

            People

              cschneider Christian Schneider
              yguerro Yoann Guerro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 96h
                  96h
                  Remaining:
                  Remaining Estimate - 96h
                  96h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified