java.lang.NegativeArraySizeException

Appcelerator JIRA | Clayton Headley | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Starting around 2:20 pm PST 8/28/2012, while working in Titanium Studio, build: 2.2.0.201208272345 I started seeing the following on all three OS (Win7, Ubuntu 12.04 and Mac OS 10.8.1): A popup error reading "Incompatible debugger version: The remote debugger version might not match the expected protocol verison (2006040705). The following was in the log: {noformat} !ENTRY com.aptana.php.debug.epl 4 0 2012-08-28 14:21:46.587 !MESSAGE (Build 2.2.0.201208272345) [ERROR] com.aptana.php.debug/debug Unexpected Exception: Listener thread still listening !STACK 0 java.lang.NegativeArraySizeException at org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession.readResponse(DBGpSession.java:490) at org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession.<init>(DBGpSession.java:91) at org2.eclipse.php.internal.debug.core.xdebug.communication.XDebugCommunicationDaemon.startConnectionThread(XDebugCommunicationDaemon.java:166) at org2.eclipse.php.internal.debug.core.daemon.AbstractDebuggerCommunicationDaemon$ReceiverThread.run(AbstractDebuggerCommunicationDaemon.java:244) at java.lang.Thread.run(Unknown Source) !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:21:51.634 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.protocol.DBGpResponse : org.xml.sax.SAXParseException: Premature end of file. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at org2.eclipse.php.internal.debug.core.xdebug.dbgp.protocol.DBGpResponse.parseResponse(DBGpResponse.java:207) at org2.eclipse.php.internal.debug.core.xdebug.dbgp.protocol.DBGpResponse.parseResponse(DBGpResponse.java:193) at org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession.<init>(DBGpSession.java:94) at org2.eclipse.php.internal.debug.core.xdebug.communication.XDebugCommunicationDaemon.startConnectionThread(XDebugCommunicationDaemon.java:166) at org2.eclipse.php.internal.debug.core.daemon.AbstractDebuggerCommunicationDaemon$ReceiverThread.run(AbstractDebuggerCommunicationDaemon.java:244) at java.lang.Thread.run(Unknown Source) !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:21:51.637 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession : Init response not received. XML=[B@12b9c6d !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:22:06.604 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession : Unexpected null from readResponse waiting for Init !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:22:06.606 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession : Unexpected null from readResponse waiting for Init !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:22:06.641 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession : Unexpected null from readResponse waiting for Init !ENTRY com.aptana.php.debug.epl 4 150 2012-08-28 14:24:59.441 !MESSAGE Incompatible debugger version. The remote debugger version might not match the expected protocol version (2006040705). {noformat} No idea what caused the issue but it spawned a large number of pop up errors. Errors stopped appearing around 2:35 PM PST 8/28/2012. I was unable to find a specific reproduction case.

    Appcelerator JIRA | 5 years ago | Clayton Headley
    java.lang.NegativeArraySizeException
  2. 0

    Starting around 2:20 pm PST 8/28/2012, while working in Titanium Studio, build: 2.2.0.201208272345 I started seeing the following on all three OS (Win7, Ubuntu 12.04 and Mac OS 10.8.1): A popup error reading "Incompatible debugger version: The remote debugger version might not match the expected protocol verison (2006040705). The following was in the log: {noformat} !ENTRY com.aptana.php.debug.epl 4 0 2012-08-28 14:21:46.587 !MESSAGE (Build 2.2.0.201208272345) [ERROR] com.aptana.php.debug/debug Unexpected Exception: Listener thread still listening !STACK 0 java.lang.NegativeArraySizeException at org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession.readResponse(DBGpSession.java:490) at org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession.<init>(DBGpSession.java:91) at org2.eclipse.php.internal.debug.core.xdebug.communication.XDebugCommunicationDaemon.startConnectionThread(XDebugCommunicationDaemon.java:166) at org2.eclipse.php.internal.debug.core.daemon.AbstractDebuggerCommunicationDaemon$ReceiverThread.run(AbstractDebuggerCommunicationDaemon.java:244) at java.lang.Thread.run(Unknown Source) !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:21:51.634 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.protocol.DBGpResponse : org.xml.sax.SAXParseException: Premature end of file. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at org2.eclipse.php.internal.debug.core.xdebug.dbgp.protocol.DBGpResponse.parseResponse(DBGpResponse.java:207) at org2.eclipse.php.internal.debug.core.xdebug.dbgp.protocol.DBGpResponse.parseResponse(DBGpResponse.java:193) at org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession.<init>(DBGpSession.java:94) at org2.eclipse.php.internal.debug.core.xdebug.communication.XDebugCommunicationDaemon.startConnectionThread(XDebugCommunicationDaemon.java:166) at org2.eclipse.php.internal.debug.core.daemon.AbstractDebuggerCommunicationDaemon$ReceiverThread.run(AbstractDebuggerCommunicationDaemon.java:244) at java.lang.Thread.run(Unknown Source) !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:21:51.637 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession : Init response not received. XML=[B@12b9c6d !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:22:06.604 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession : Unexpected null from readResponse waiting for Init !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:22:06.606 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession : Unexpected null from readResponse waiting for Init !ENTRY com.aptana.php.debug.epl 4 4 2012-08-28 14:22:06.641 !MESSAGE class org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession : Unexpected null from readResponse waiting for Init !ENTRY com.aptana.php.debug.epl 4 150 2012-08-28 14:24:59.441 !MESSAGE Incompatible debugger version. The remote debugger version might not match the expected protocol version (2006040705). {noformat} No idea what caused the issue but it spawned a large number of pop up errors. Errors stopped appearing around 2:35 PM PST 8/28/2012. I was unable to find a specific reproduction case.

    Appcelerator JIRA | 5 years ago | Clayton Headley
    java.lang.NegativeArraySizeException

    Root Cause Analysis

    1. java.lang.NegativeArraySizeException

      No message provided

      at org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession.readResponse()
    2. org2.eclipse.php
      AbstractDebuggerCommunicationDaemon$ReceiverThread.run
      1. org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession.readResponse(DBGpSession.java:490)
      2. org2.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGpSession.<init>(DBGpSession.java:91)
      3. org2.eclipse.php.internal.debug.core.xdebug.communication.XDebugCommunicationDaemon.startConnectionThread(XDebugCommunicationDaemon.java:166)
      4. org2.eclipse.php.internal.debug.core.daemon.AbstractDebuggerCommunicationDaemon$ReceiverThread.run(AbstractDebuggerCommunicationDaemon.java:244)
      4 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame