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 160953 - multiple problems (regressions) running applications from the IDE
Summary: multiple problems (regressions) running applications from the IDE
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-23 21:03 UTC by Thomas Preisler
Modified: 2009-03-31 13:36 UTC (History)
1 user (show)

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 Thomas Preisler 2009-03-23 21:03:08 UTC
Many new regressions. Below are some of them. Before closing this IZ, please verify I/O sample works on all supported platforms 
(OpenSolaris/Solaris/Linux/Mac/Windows) with SunStudio and GNU sets and in both external and internal output window. I know it is a lot of testing but it is easy 
to oversee a problem if not testing all combinations.

1) On Ubuntu Linux:
Using internal output window:
ejava.lang.NullPointerException
    at org.netbeans.modules.dlight.perfan.storage.impl.Erprint$FilteredInputProcessor.reset(Erprint.java:296)
    at org.netbeans.modules.dlight.perfan.storage.impl.Erprint.stop(Erprint.java:129)
    at org.netbeans.modules.dlight.perfan.spi.MonitorsUpdateService.stop(MonitorsUpdateService.java:101)
    at org.netbeans.modules.dlight.perfan.spi.SunStudioDataCollector.targetFinished(SunStudioDataCollector.java:447)
    at org.netbeans.modules.dlight.perfan.spi.SunStudioDataCollector.targetStateChanged(SunStudioDataCollector.java:225)
    at org.netbeans.modules.dlight.api.execution.DLightTarget$1.run(DLightTarget.java:136)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005) 

2) On Mac
External output window doesn't show. No obvious errors.

3) On Mac: I/O sample doesn't work in internal output window. This is what it shows (with no typing):

Type a string (or 'q' when done) >>>
Read: exit

Type a string (or 'q' when done) >>>
Read: $?

Type a string (or 'q' when done) >>>
Comment 1 Andrew Krasny 2009-03-24 03:34:33 UTC
http://hg.netbeans.org/cnd-main/rev/67eceaf17363 - part fix. 

Fixes problems with not found env file in case of ext. terminal usage...
Comment 2 Andrew Krasny 2009-03-24 03:35:42 UTC
http://hg.netbeans.org/cnd-main/rev/3e82cc3206d3 - part fix.

Fixes regressions on Windows.
Comment 3 Andrew Krasny 2009-03-24 03:37:01 UTC
http://hg.netbeans.org/cnd-main/rev/a8b0885b395a - part fix.

Fixes NPE in erprint.
Comment 4 Andrew Krasny 2009-03-24 04:23:08 UTC
I have verified on Mac and I/O works fine (Quote) if internal InputOutput is used.
External terminal doesn't work - it just cannot find xterm 

I think it is not P1 anymore and can be downgraded to at least P2...

Comment 5 Andrew Krasny 2009-03-24 16:44:06 UTC
http://hg.netbeans.org/cnd-main/rev/baad9bfe6be5
and
http://hg.netbeans.org/cnd-main/rev/5a99b3052807

fix several minor MacOS problems
Comment 6 Thomas Preisler 2009-03-26 05:10:21 UTC
Cannot get output to work on Windows Vista. External terminal just flashes and disappears and no output in internal
output window. You basically cannot run apps on Windows Vista. I think this is a P1.
Comment 7 Andrew Krasny 2009-03-26 19:56:25 UTC
agree with thp
Comment 8 Alexander Pepin 2009-03-27 16:50:45 UTC
The following exception appears on Solaris 10 while running any application using external terminal:
java.io.InterruptedIOException
	at java.io.FileOutputStream.writeBytes(Native Method)
	at java.io.FileOutputStream.write(FileOutputStream.java:260)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
	at org.netbeans.modules.nativeexecution.LocalNativeProcess.<init>(LocalNativeProcess.java:160)
	at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(NativeProcessBuilder.java:140)
	at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(NativeProcessBuilder.java:70)
	at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:254)
	at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:230)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 9 Alexander Pepin 2009-03-27 17:05:58 UTC
Here is the exception on Mac mentioned by Thomas:
java.io.IOException: no xterm in /usr/bin /bin /usr/sbin /sbin: not found
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
        at java.lang.ProcessImpl.start(ProcessImpl.java:91)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
        at org.netbeans.modules.nativeexecution.TerminalLocalNativeProcess.<init>(TerminalLocalNativeProcess.java:
173)
        at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(NativeProcessBuilder.java:134)
        at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(NativeProcessBuilder.java:70)
[catch] at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:254)
        at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:230)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:613)
Comment 10 Andrew Krasny 2009-03-27 20:50:14 UTC
Regarding exception on Mac... 
The problem was because of 'which' utility on this particular version of MacOS (at least on the laptop I've performed my
testing which worked as expected)... And problem with this one is that it's exit code is always 0 (SUCCESS) disregarding
the existence or absence of xterm in user's PATH..

As I was looking for xterm using command:

sh -c "which xterm || ls /usr/bin/xterm || ls /usr/X11R6/bin/xterm" 2>/dev/null


on that Mac I received "no xterm found in .... " from which ;(


fixed with http://hg.netbeans.org/cnd-main/rev/3e3d8229beb6


Comment 11 Andrew Krasny 2009-03-30 21:08:38 UTC
Fixes have been tested on all platforms. 
No showstoppers found (both I/O, ext terminal works on Solaris, Windows, Linux, MacOS).


Fixed also in release67_m3
http://hg.netbeans.org/release67_m3/rev/3bd9124c47a6
http://hg.netbeans.org/release67_m3/rev/9cef0278eb20

Comment 12 Alexander Pepin 2009-03-31 13:36:58 UTC
the fix verified on all platforms