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 17644 - NPE from terminalemulator
Summary: NPE from terminalemulator
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: ivan
URL:
Keywords:
: 16936 17769 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-11-14 00:47 UTC by andy
Modified: 2008-12-23 08:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
3.3.2 NPE stack trace (701 bytes, text/plain)
2002-06-20 20:10 UTC, Jim Hazen
Details
3.3.2 IDE log, shows more NPEs (241.98 KB, text/plain)
2002-06-20 20:11 UTC, Jim Hazen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2001-11-14 00:47:49 UTC
3.3beta3

I was executing an app, clicked back on the editor tab and got this little error.   


Popup window:
Tue Nov 13 19:41:29 EST 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at org.netbeans.lib.terminalemulator.Term$OpsImpl.op_char(Term.java:2576)
        at
org.netbeans.lib.terminalemulator.InterpDumb$11.action(InterpDumb.java:132)
        at
org.netbeans.lib.terminalemulator.InterpDumb.processChar(InterpDumb.java:92)
        at org.netbeans.lib.terminalemulator.Term.putc_work(Term.java:3031)
        at org.netbeans.lib.terminalemulator.Term.appendText(Term.java:3718)
        at
org.netbeans.core.output.OutputTabTerm$TermOutputWriter.appendText(OutputTabTerm.java:1267)
        at
org.netbeans.core.output.OutputTabTerm$TermOutputWriter.write(OutputTabTerm.java:1005)
[catch] at org.openide.execution.ProcessExecutor$CopyMaker.run(ProcessExecutor.java:518)c,c,c,c	 

+++
from terminal:
Internal HTTP server running on port 8083
Buffer.lineAt(10025) -> null

java.lang.Exception: Stack trace
	at java.lang.Thread.dumpStack(Thread.java:993)
	at org.netbeans.lib.terminalemulator.Buffer.lineAt(Buffer.java:105)
	at org.netbeans.lib.terminalemulator.Term.cursor_line(Term.java:435)
	at org.netbeans.lib.terminalemulator.Term.access$2600(Term.java:160)
	at org.netbeans.lib.terminalemulator.Term$OpsImpl.op_char(Term.java:2574)
	at org.netbeans.lib.terminalemulator.InterpDumb$11.action(InterpDumb.java:132)
	at org.netbeans.lib.terminalemulator.InterpDumb.processChar(InterpDumb.java:92)
	at org.netbeans.lib.terminalemulator.Term.putc_work(Term.java:3031)
	at org.netbeans.lib.terminalemulator.Term.appendText(Term.java:3718)
	at
org.netbeans.core.output.OutputTabTerm$TermOutputWriter.appendText(OutputTabTerm.java:1267)
	at
org.netbeans.core.output.OutputTabTerm$TermOutputWriter.write(OutputTabTerm.java:1005)
	at org.openide.execution.ProcessExecutor$CopyMaker.run(ProcessExecutor.java:518)
Comment 1 David Konecny 2001-11-14 15:03:59 UTC
terminalemulator is implemented in core I think. moving there.
Comment 2 akemr 2001-11-16 09:55:52 UTC
*** Issue 16936 has been marked as a duplicate of this issue. ***
Comment 3 akemr 2001-11-20 12:49:16 UTC
*** Issue 17769 has been marked as a duplicate of this issue. ***
Comment 4 akemr 2001-11-20 12:55:07 UTC
In this and duplicated issues following exception appears:

java.lang.NullPointerException
at org.netbeans.lib.terminalemulator.Term$OpsImpl.op_char
(Term.java:2626)
at org.netbeans.lib.terminalemulator.InterpDumb$1.action
(InterpDumb.java:134)
at org.netbeans.lib.terminalemulator.InterpDumb.processChar
(InterpDumb.java:94)
at org.netbeans.lib.terminalemulator.Term.putc_work(Term.java:3160)
at org.netbeans.lib.terminalemulator.Term.appendText(Term.java:3904)
at org.netbeans.core.output.OutputTabTerm$TermOutputWriter.appendText
(OutputTabTerm.java:1392)
at org.netbeans.core.output.OutputTabTerm$TermOutputWriter.write
(OutputTabTerm.java:1130)
at org.netbeans.core.output.OutputTabTerm$TermOutputWriter.write
(OutputTabTerm.java:1161)
at java.io.PrintWriter.write(PrintWriter.java:229)

(line numbers correspond to version 2001-11-16)
Comment 5 Jan Chalupa 2001-11-27 11:53:09 UTC
Target milestone -> 3.3.1.
Comment 6 Jan Chalupa 2001-11-27 11:56:43 UTC
Target milestone -> 3.3.1.
Comment 7 akemr 2001-12-12 12:25:57 UTC
*** Issue 16936 has been marked as a duplicate of this issue. ***
Comment 8 Jan Chalupa 2002-01-11 14:03:35 UTC
Target milestone -> 3.4
Comment 9 Jan Chalupa 2002-01-11 14:07:42 UTC
Target milestone -> 3.4
Comment 10 Jan Chalupa 2002-01-11 14:08:44 UTC
Target milestone -> 3.4
Comment 11 Jan Chalupa 2002-01-11 14:11:33 UTC
Target milestone -> 3.4
Comment 12 Jim Hazen 2002-06-15 11:53:35 UTC
This is a problem in 3.3.2 as well.  I get this problem very often,
and have to close and restart Netbeans.  And this is only a temp.
solution as I can only develop for 5-10mins before it starts up again.

I also seem to have problems going from 3.3.2 back to 3.3.1, projects
are screwed up.  Editors get lost, etc.  So it seems like I'm stuck. 
The target milestone is 3.4, but if this isn't going to be released in
the next few days I'd really appreciate a patch sooner.

Thanks.
Comment 13 Marian Mirilovic 2002-06-20 17:55:18 UTC
Jim, can you attach stack trace of exception,
Thanks in advance.
Comment 14 Jim Hazen 2002-06-20 20:10:10 UTC
Created attachment 6361 [details]
3.3.2 NPE stack trace
Comment 15 Jim Hazen 2002-06-20 20:11:24 UTC
Created attachment 6362 [details]
3.3.2 IDE log, shows more NPEs
Comment 16 Marian Mirilovic 2002-06-21 11:42:48 UTC
Thanks Jim,

first stack trace is described in issue 24728, but the second one is
new, so maybe new issue will be needed, Ivan ?
Comment 17 ivan 2002-06-21 19:55:00 UTC
As far as I'm concerned all NPEs in Term happen because it's
not being used from the AWT event thread. It's a JComponent
and should be used according to the rules. I'll be 
addressing this whole issue the big slot I get.
Comment 18 Marek Grummich 2002-07-22 08:35:28 UTC
Target milestone was changed from '3.4' to TBD.
Comment 19 Marek Grummich 2002-07-22 08:51:03 UTC
Target milestone was changed from '3.4' to TBD.
Comment 20 Marek Grummich 2002-07-22 08:52:19 UTC
Target milestone was changed from '3.4' to TBD.
Comment 21 Marek Grummich 2002-07-22 08:58:34 UTC
Target milestone was changed from '3.4' to TBD.
Comment 22 Marek Grummich 2002-07-22 08:59:57 UTC
Target milestone was changed from '3.4' to TBD.
Comment 23 Marek Grummich 2002-07-22 09:03:21 UTC
Target milestone was changed from '3.4' to TBD.
Comment 24 Marek Grummich 2002-07-22 09:16:09 UTC
Set terget milestone to TBD
Comment 25 Marek Grummich 2002-07-22 09:18:43 UTC
Set terget milestone to TBD
Comment 26 ivan 2002-07-27 00:44:48 UTC
I"m marking this and other NPE related bugs as fixed with my commit
tagged ivan_17. For a thorough description read
.../terminalemulator/ReleaseNotes.ivan.txt.
Since this is a rather radical change I'd rather see new bugs filed as
opposed to these being reopened.
Comment 27 Marian Mirilovic 2002-09-18 13:59:14 UTC
closed
Comment 28 Quality Engineering 2008-12-23 08:38:23 UTC
moving terminal emulator issues to terminalemulator component.
To see the correct version and target milestone of this issue look at Issue
Activity table.