This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 249918 - ArrayIndexOutOfBoundsException at java.net.SocketInputStream.read
Summary: ArrayIndexOutOfBoundsException at java.net.SocketInputStream.read
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 253663 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-21 03:43 UTC by circlejp
Modified: 2015-09-05 03:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208688


Attachments
stacktrace (949 bytes, text/plain)
2015-01-21 03:43 UTC, circlejp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description circlejp 2015-01-21 03:43:02 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows 7

User Comments:
GUEST: Starting debug on php project

GUEST: Trying to use XDebug

GUEST: Trying to get xdebug working with php and netbeans.  Changed port to 9002 and set proxy to none.

GUEST: Trying to use xdebug.

circlejp: Problem occurred while trying to configure xdebug for Drupal php debugging.

Using Netbeans 8.0.2 on A windows 7 laptop. Running Apache 2.4, PHP 5.4,  xdebug 2.2.6, Chrome Canary, Chrome NetBeans connector, xdebug helper extensions

Open drupal file user.module.php
set two breakpoints
right-click project node. Choose Debug.

Netbeans Says debugger is running

Browser window opens. Waits and Waits and Waits. does not connect.

Sessions window shows 2 sessions, one php, one javascript.

Kill browser, cancel debug session.


Notes: I have not yet been able to get xdebug to step through code successfully. I am only working on a localhost setup. My run configuration shows a debugger proxy port of 9001. I was flailing around trying to get things working and switched ports to 9001. when a previous session on port 9000 failed to close the socket. I  also put 127.0.0.1 in the debugger proxy field at some point. I do not need a proxy so I removed these values, but the port number 9001 continues

GUEST: Just trying to use xdebugger for php




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException
   at java.net.SocketInputStream.read(SocketInputStream.java:142)
   at java.net.SocketInputStream.read(SocketInputStream.java:121)
   at org.netbeans.modules.php.dbgp.packets.DbgpMessage.getContent(DbgpMessage.java:249)
   at org.netbeans.modules.php.dbgp.packets.DbgpMessage.create(DbgpMessage.java:118)
   at org.netbeans.modules.php.dbgp.DebugSession.receiveData(DebugSession.java:263)
   at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:210)
Comment 1 circlejp 2015-01-21 03:43:04 UTC
Created attachment 151595 [details]
stacktrace
Comment 2 Tomas Mysik 2015-09-04 08:57:54 UTC
Improved error reporting.

http://hg.netbeans.org/web-main/rev/096b1b444a20
Comment 3 Tomas Mysik 2015-09-04 10:22:40 UTC
*** Bug 253663 has been marked as a duplicate of this bug. ***
Comment 4 Quality Engineering 2015-09-05 03:04:27 UTC
Integrated into 'main-silver', will be available in build *201509050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/096b1b444a20
User: Tomas Mysik <tmysik@netbeans.org>
Log: #249918 - ArrayIndexOutOfBoundsException at java.net.SocketInputStream.read

More useful error reporting.