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.
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)
terminalemulator is implemented in core I think. moving there.
*** Issue 16936 has been marked as a duplicate of this issue. ***
*** Issue 17769 has been marked as a duplicate of this issue. ***
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)
Target milestone -> 3.3.1.
Target milestone -> 3.4
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.
Jim, can you attach stack trace of exception, Thanks in advance.
Created attachment 6361 [details] 3.3.2 NPE stack trace
Created attachment 6362 [details] 3.3.2 IDE log, shows more NPEs
Thanks Jim, first stack trace is described in issue 24728, but the second one is new, so maybe new issue will be needed, Ivan ?
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.
Target milestone was changed from '3.4' to TBD.
Set terget milestone to TBD
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.
closed
moving terminal emulator issues to terminalemulator component. To see the correct version and target milestone of this issue look at Issue Activity table.