javax.ws.rs.ProcessingException

java.lang.IllegalArgumentException: invalid start or end

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web15

  • via Unknown by jrh3k5,
  • via Unknown by jrh3k5,
  • Stack trace

    • javax.ws.rs.ProcessingException: java.lang.IllegalArgumentException: invalid start or end at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:236) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:655) at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:652) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:228) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:422) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:652) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:387) at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:291) at org.glassfish.test.TestApp.main(TestApp.java:20) Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: invalid start or end at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1137) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2338) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:388) at org.glassfish.jersey.client.HttpUrlConnector._apply(HttpUrlConnector.java:276) at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:182) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:227) ... 10 more Caused by: java.lang.IllegalArgumentException: invalid start or end at sun.net.www.HeaderParser.subsequence(HeaderParser.java:58) at sun.net.www.protocol.http.AuthenticationHeader.parse(AuthenticationHeader.java:155) at sun.net.www.protocol.http.AuthenticationHeader.<init>(AuthenticationHeader.java:119) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1261) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379) ... 13 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.