#498 Exception if file bigger than 8192 bytes

open
nobody
None
5
2008-05-12
2008-05-12
Alex
No

The attached source code compiles (it shows the errors)
on the command line, however it fails to compile using Epic if the source code is bigger than 8192 bytes.

How to reproduce:

1) Open views "Problems" and "Error log"
2) Clean all events from the "Error log" that you might have
3) Load the testPerlCompiler.pl in Epic
4) Hit menu "Source->Validate" : you should see an error in the "Problem" view, pointing to line 71
5) Type anything on the source file and save it
Immediately, you will notice that the "Error log" is populated with two
"An unexpected exception occurred while validating testPerlCompiler.pl
org.eclipse.core.runtime.CoreException[0]: java.io.IOException: The pipe is being closed.
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:290)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:128)
at sun.nio.cs.StreamEncoder$ConverterSE.implClose(StreamEncoder.java:304)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:208)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:245)
at org.epic.core.util.ProcessExecutor.execute(ProcessExecutor.java:169)
at org.epic.core.util.ProcessExecutor.execute(ProcessExecutor.java:71)
at org.epic.core.util.PerlExecutor.execute(PerlExecutor.java:142)
at org.epic.perleditor.editors.util.PerlValidatorBase.runPerl(PerlValidatorBase.java:287)
at org.epic.perleditor.editors.util.PerlValidatorBase.validate(PerlValidatorBase.java:51)
at org.epic.perleditor.editors.PerlSyntaxValidationThread.runImpl(PerlSyntaxValidationThread.java:84)
at org.epic.perleditor.editors.PerlSyntaxValidationThread.run(PerlSyntaxValidationThread.java:67)

Drilling down to the other event, you see
Failed to execute command line: "C:\Tools\Perl\bin\perl.exe" "-c" "-w"

java.io.IOException: The pipe is being closed.
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:290)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:128)
at sun.nio.cs.StreamEncoder$ConverterSE.implClose(StreamEncoder.java:304)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:208)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:245)
at org.epic.core.util.ProcessExecutor.execute(ProcessExecutor.java:169)
at org.epic.core.util.ProcessExecutor.execute(ProcessExecutor.java:71)
at org.epic.core.util.PerlExecutor.execute(PerlExecutor.java:142)
at org.epic.perleditor.editors.util.PerlValidatorBase.runPerl(PerlValidatorBase.java:287)
at org.epic.perleditor.editors.util.PerlValidatorBase.validate(PerlValidatorBase.java:51)
at org.epic.perleditor.editors.PerlSyntaxValidationThread.runImpl(PerlSyntaxValidationThread.java:84)
at org.epic.perleditor.editors.PerlSyntaxValidationThread.run(PerlSyntaxValidationThread.java:67)

Running on Windows as I need to automate some Excel reports.

# ---------------------------------------------------
eclipse.buildId=M20050929-0840
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20070201 (JIT enabled)
J9VM - 20070131_11312_lHdSMR
JIT - 20070109_1805ifx1_r8
GC - 200701_09
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
# --------------------------------------------------

Discussion

  • Alex
    Alex
    2008-05-12

    Test program causes exception

     
    Attachments
  • Jan Ploski
    Jan Ploski
    2008-05-14

    Logged In: YES
    user_id=86907
    Originator: NO

    I could not reproduce it under Linux.

    Does it also occur under Windows with Sun's JVM?