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 11852 - [1.4] StringIndexOutOfBoundsException during compilation
Summary: [1.4] StringIndexOutOfBoundsException during compilation
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: anovak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-30 14:58 UTC by Martin Ryzl
Modified: 2008-12-22 22:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ryzl 2001-04-30 14:58:27 UTC
NB3.2 RC4, JDK 1.4, Apr/27

The following exception is thrown after every compilation when the compile 
messages are being written to the output tab. A simple class or interface is 
compiled (the exception is thrown but the class file is generated), a class 
which implements an interface not). It may be a bug in jdk (it works with 
jdk1.3), regexp (the exception is thrown from org.apache.regexp) or core (it is 
responsible for OutputTab handling).

Mon Apr 30 15:38:07 CEST 2001: java.lang.StringIndexOutOfBoundsException: The 
pipe has been ended
java.lang.StringIndexOutOfBoundsException: The pipe has been ended
        at 
org.apache.regexp.ReaderCharacterIterator.isEnd(ReaderCharacterIterator.java:125
)
        at org.apache.regexp.RE.matchNodes(RE.java:1335)
        at org.apache.regexp.RE.matchNodes(RE.java:914)
        at org.apache.regexp.RE.matchAt(RE.java:1469)
        at org.apache.regexp.RE.match(RE.java:1525)
        at 
org.openide.compiler.ErrorsParsingThread.run1(ErrorsParsingThread.java:532)
[catch] at 
org.openide.compiler.ErrorsParsingThread.run(ErrorsParsingThread.java:379)
Comment 1 anovak 2001-04-30 16:59:02 UTC
I have tried latest 1.4 - beta 62 and it comes to me that it works - I can't
reproduce it....

Which version of 1.4 do you use?
Comment 2 Martin Ryzl 2001-04-30 17:08:28 UTC
1.4.0-beta; Java HotSpot(TM) Client VM 1.4.0-beta-b62
Comment 3 Robert Dankanin 2001-05-02 18:40:59 UTC
I'm able to reproduce it under win2000 (NB 3.2, JDK1.4-b62), reopening

Steps to reproduce:
1. doubleClick on: UserDir\examples\colorpicker\ColorPreview
2. change something in [Source Editor] (e.g. add some comment) - to make it 
compilable
3. MW menu -> Build -> Compile
Comment 4 anovak 2001-05-03 08:13:56 UTC
It seems that this issue is related to Windows's JVM. It works perfectly on Solaris.
Comment 5 Jan Zajicek 2001-05-03 16:15:06 UTC
The main IO exception is this:


java.io.IOException: The pipe has been ended
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.FileDispatcher.read(FileDispatcher.java:32)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:171)
        at sun.nio.ch.IOUtil.read(IOUtil.java:150)
        at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:86)
        at java.io.InputStreamReader$CharsetFiller.readBytes(InputStreamReader.j
ava:332)
        at java.io.InputStreamReader$CharsetFiller.fill(InputStreamReader.java:3
74)
        at java.io.InputStreamReader.read(InputStreamReader.java:511)
        at java.io.BufferedReader.fill(BufferedReader.java:139)
        at java.io.BufferedReader.read1(BufferedReader.java:187)
        at java.io.BufferedReader.read(BufferedReader.java:261)
        at java.io.Reader.read(Reader.java:103)
        at org.apache.regexp.ReaderCharacterIterator.read(ReaderCharacterIterato
r.java:167)
        at org.apache.regexp.ReaderCharacterIterator.ensure(ReaderCharacterItera
tor.java:202)
        at org.apache.regexp.ReaderCharacterIterator.isEnd(ReaderCharacterIterat
or.java:142)
        at org.apache.regexp.RE.matchNodes(RE.java:1335)
        at org.apache.regexp.RE.matchNodes(RE.java:914)
        at org.apache.regexp.RE.matchAt(RE.java:1469)
        at org.apache.regexp.RE.match(RE.java:1525)
        at org.openide.compiler.ErrorsParsingThread.run1(ErrorsParsingThread.jav
a:532)
        at org.openide.compiler.ErrorsParsingThread.run(ErrorsParsingThread.java
:379)
Comment 6 Jan Chalupa 2001-05-06 08:14:55 UTC
Target milestone -> 3.3
Comment 7 anovak 2001-05-16 13:35:56 UTC
The bug is apparently in merlin. It should be integrated in the next  Merlin build.
Comment 8 Quality Engineering 2003-07-01 15:53:42 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 9 Quality Engineering 2003-07-01 16:13:55 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.