java.lang.IllegalArgumentException: byteCount < 0: -1647333

Stack Overflow | Tomtom DeCrab | 3 months ago
  1. 0

    Android java.lang.IllegalArgumentException: byteCount

    Stack Overflow | 3 months ago | Tomtom DeCrab
    java.lang.IllegalArgumentException: byteCount < 0: -1647333
  2. 0

    Crash byteCount < 0

    GitHub | 8 months ago | prats226
    java.lang.IllegalArgumentException: byteCount < 0: -1698
  3. 0

    BufferedSource error with WebSockets

    GitHub | 2 years ago | arriolac
    java.lang.IllegalArgumentException: byteCount < 0: -26991
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    This one weird trick, the devs don't want you to know, crashes recipients' TS

    GitHub | 1 year ago | 2-4601
    java.lang.IllegalArgumentException: byteCount < 0: -26331
  6. 0

    StompSubProtocolHandler cannot handle receiving a PongMessage. {noformat} ERROR Feb 18 11:15:47 (56612 [qtp300104620-57] org.springframework.web.socket.messaging.StompSubProtocolHandler) Failed to parse PongMessage payload=[java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]], byteCount=0, last=true] in session 123f6cb6. Sending STOMP ERROR to client. [java] java.lang.IllegalArgumentException: Unexpected WebSocket message type: PongMessage payload=[java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]], byteCount=0, last=true] [java] at org.springframework.web.socket.messaging.StompSubProtocolHandler.handleMessageFromClient(StompSubProtocolHandler.java:203) [java] at org.springframework.web.socket.messaging.SubProtocolWebSocketHandler.handleMessage(SubProtocolWebSocketHandler.java:309) [java] at org.springframework.web.socket.handler.WebSocketHandlerDecorator.handleMessage(WebSocketHandlerDecorator.java:75) [java] at org.springframework.web.socket.handler.WebSocketHandlerDecorator.handleMessage(WebSocketHandlerDecorator.java:75) [java] at org.springframework.web.socket.handler.WebSocketHandlerDecorator.handleMessage(WebSocketHandlerDecorator.java:75) [java] at org.springframework.web.socket.handler.LoggingWebSocketHandlerDecorator.handleMessage(LoggingWebSocketHandlerDecorator.java:56) [java] at org.springframework.web.socket.handler.ExceptionWebSocketHandlerDecorator.handleMessage(ExceptionWebSocketHandlerDecorator.java:72) [java] at com.psymetrix.pdc.web.CustomJettyWebSocketHandlerAdapter.onWebSocketFrame(CustomJettyWebSocketHandlerAdapter.java:55) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:483) [java] at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:71) [java] at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:72) [java] at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onFrame(JettyAnnotatedEventDriver.java:149) [java] at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:107) [java] at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:309) [java] at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:214) [java] at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220) [java] at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:258) [java] at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:613) [java] at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:468) [java] at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) [java] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:626) [java] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:546) [java] at java.lang.Thread.run(Thread.java:745) {noformat} Note that the CustomJettyWebSocketHandlerAdapter class in the stack trace is used to workaround SPR-12727

    Spring JIRA | 2 years ago | Mark Anderson
    java.lang.IllegalArgumentException: Unexpected WebSocket message type: PongMessage payload=[java.nio.HeapByteBuffer[pos=0 lim=0 cap=0]], byteCount=0, last=true]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      byteCount < 0: -1647333

      at com.android.okhttp.okio.RealBufferedSource.read()
    2. com.android.okhttp
      RealBufferedSource.read
      1. com.android.okhttp.okio.RealBufferedSource.read(RealBufferedSource.java:46)
      1 frame
    3. Android
      HttpConnection$FixedLengthSource.read
      1. com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:418)
      1 frame
    4. com.android.okhttp
      RealBufferedSource$1.read
      1. com.android.okhttp.okio.RealBufferedSource$1.read(RealBufferedSource.java:349)
      1 frame
    5. Java RT
      Channels$InputStreamChannel.read
      1. java.io.InputStream.read(InputStream.java:162)
      2. java.nio.channels.Channels$InputStreamChannel.read(Channels.java:306)
      2 frames