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.
Build: NetBeans IDE 7.3 (Build 201302132200) VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11 OS: Windows 7 User Comments: GUEST: un altre cop peta Stacktrace: java.lang.IndexOutOfBoundsException at java.io.PipedOutputStream.write(PipedOutputStream.java:0) at org.glassfish.tools.ide.server.FetchLogLocal.call(FetchLogLocal.java:224) at org.glassfish.tools.ide.server.FetchLogLocal.call(FetchLogLocal.java:56) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:0) at java.util.concurrent.FutureTask.run(FutureTask.java:0) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:0)
Created attachment 135596 [details] stacktrace
Created attachment 136837 [details] stacktrace Deploying a project to Glassfish
Looking into PipedOutputStream write method: } else if ((off < 0) || (off > b.length) || (len < 0) || ((off + len) > b.length) || ((off + len) < 0)) { throw new IndexOutOfBoundsException(); javadoc for read(byte b[]) says: The number of bytes read is, at most, equal to the length of <code>b</code> our code: fIn.read(buff); out.write(buff, 0, count) - off is 0 * len can be < 0 - (off + len) > b.length shall not happen because of fIn.read(buff) javadoc and off = 0 * (off + len) < 0) when len < 0 So adding one if: if (count > 0) { out.write(buff, 0, count); } should fix this issue. Checked into Tooling Library: ----------------------------- changeset: 629:71e8f5d887e8 summary: Bug# 231041 - IndexOutOfBoundsException at java.io.PipedOutputStream.write
Pushing changes into web-main.
Integrated into 'main-silver', will be available in build *201307252300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e92f2671e63b User: Tomas Kraus <TomasKraus@netbeans.org> Log: #231041 - IndexOutOfBoundsException at java.io.PipedOutputStream.write