Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dumpTreshold not working

I use JAX-WS RI for SOAP XML exchanging with another service. I am trying to see full error log of my soap xml sending, but can't do this because of truncating message:

    at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
    at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
    at org.apache.cxf.transpo

Message has been truncated

use com.sun.xml.ws.transport.http.HttpAdapter.dumpTreshold property to increase the amount of printed part of the message
--------------------

And I can't correct this using these settings:

System.setProperty("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");
        System.setProperty("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");
        System.setProperty("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true");
        System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true");
        System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dumpTreshold", "999999");

I mean dumpTreshold = 999999

Any help will be appreciated.

like image 299
Lev Avatar asked Dec 24 '22 00:12

Lev


2 Answers

I've changed line

System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dumpTreshold", "999999");

with

System.setProperty("com.sun.xml.ws.transport.http.HttpAdapter.dumpTreshold", "999999");

and now I can see full log.

like image 90
Lev Avatar answered Dec 27 '22 10:12

Lev


You can also set it in the environment.

For jetty I use:

export MAVEN_OPTS=" \
-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true \
-Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dumpTreshold=999999 \ 
-Dcom.sun.xml.ws.transport.http.HttpAdapter.dumpTreshold=999999"
like image 45
MrSmith42 Avatar answered Dec 27 '22 10:12

MrSmith42