Note that there are some explanatory texts on larger screens.

plurals
  1. POException: AbstractMethodError: javax.ws.rs.core.Response.getStatusInfo()Ljavax/ws/rs/core/Response$StatusType;
    primarykey
    data
    text
    <p>When trying a POST-Request using jersey 1.18, I get the following exception:</p> <pre><code>Exception in thread "main" java.lang.AbstractMethodError: javax.ws.rs.core.Response.getStatusInfo()Ljavax/ws/rs/core/Response$StatusType; at javax.ws.rs.WebApplicationException.computeExceptionMessage(WebApplicationException.java:205) at javax.ws.rs.WebApplicationException.&lt;init&gt;(WebApplicationException.java:179) at javax.ws.rs.WebApplicationException.&lt;init&gt;(WebApplicationException.java:244) at com.sun.jersey.core.provider.jaxb.AbstractRootElementProvider.writeTo(AbstractRootElementProvider.java:159) at com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:300) at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:217) at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153) at com.sun.jersey.api.client.Client.handle(Client.java:652) at com.sun.jersey.api.client.WebResource.voidHandle(WebResource.java:706) at com.sun.jersey.api.client.WebResource.access$400(WebResource.java:74) at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:555) at jtmt.shell.commands.upld.TrcUploader.upload(TrcUploader.java:29) at jtmt.shell.commands.trcrt.ICMPTraceRoute.run(ICMPTraceRoute.java:92) at jtmt.shell.commands.Main.&lt;init&gt;(Main.java:42) at jtmt.shell.commands.Main.main(Main.java:64) </code></pre> <p>The code that produces this is:</p> <pre><code> Trace trc = Trace.fromTracerouteResult(trace); WebResource wr = _c.resource(URL); WebResource.Builder wrb = wr.cookie(new Cookie("user", USER)); wrb = wrb.cookie(new Cookie("auth", AUTH)); wrb.post(trc); return true; </code></pre> <p>The entiry <code>Trace</code> looks like this:</p> <pre><code>@XmlRootElement public class Trace { private Map&lt;Integer,List&lt;String&gt;&gt; addressesPerHop; private String source; private String traget; /* getters and setters */ } </code></pre> <p>I include the following jars when compiling and executing:</p> <pre><code>commons-cli-1.2.jar jersey-server-1.18.jar asm-3.1.jar jersey-servlet-1.18.jar jersey-client-1.18.jar jersey-core-1.18.jar </code></pre> <p>Any Ideas whats missing? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload