Welcome! Log In Create A New Profile

Advanced

Java SVN head NPE in gui.botConsole (x86_64?)

Posted by talcite 
Java SVN head NPE in gui.botConsole (x86_64?)
December 07, 2008 05:09AM
Hi all,

Just a bug report I'd like to file regarding the current SVN head revision generating an NPE when run with ant.

For some strange reason, it works with eclipse.

Here's the full output from ant:

[matthew@Desktop Reprap]$ ant run
Buildfile: build.xml

init:

build:
[echo] Reprap: /home/matthew/projects/reprap/Reprap/build.xml
[javac] Compiling 1 source file to /home/matthew/projects/reprap/Reprap/bin

properties:

backgroundstl:

jar:

run:
[java] Stable Library
[java] =========================================
[java] Native lib Version = RXTX-2.1-7
[java] Java lib Version = RXTX-2.1-7
[java] java.lang.Exception:
[java] Could not connect at /dev/ttyUSB0.
[java]
[java] Check to make sure that is the right path.
[java] Check that you have your serial connector plugged in.
[java]
[java] The program will continue but your geometry preference has been set to 'nullcartesian' for this session.
[java] at org.reprap.Main.initComms(Unknown Source)
[java] at org.reprap.Main.access$1400(Unknown Source)
[java] at org.reprap.Main$9.run(Unknown Source)
[java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
[java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
[java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
[java] Exception in thread "RepRap" java.lang.NullPointerException
[java] at javax.swing.ImageIcon.(ImageIcon.java:155)
[java] at org.reprap.gui.botConsole.PrintTabFrame.initComponents(Unknown Source)
[java] at org.reprap.gui.botConsole.PrintTabFrame.(Unknown Source)
[java] at org.reprap.gui.botConsole.BotConsoleFrame.initComponents(Unknown Source)
[java] at org.reprap.gui.botConsole.BotConsoleFrame.(Unknown Source)
[java] at org.reprap.gui.botConsole.BotConsoleFrame$2.run(Unknown Source)
[java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
[java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
[java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
[java] Experimental: JNI_OnLoad called.

BUILD SUCCESSFUL
Total time: 24 seconds

The first is because I don't have a bot connected. The second is the NPE that prevents the control console from popping up.

No idea what causes it, the stack trace severed all the line numbers.

I'd be glad to help debug if there's any commands that you'd like me to run.

I'd debug myself but it doesn't seem to happen with eclipse? I'm not sure, I checked out the head revision into eclipse and also imported the ant file into eclipse. Both worked, although the ant one complained about a missing .stl, I probably put it in the wrong directory or something.

Anyways, let me know if there's anything I can do to help. It'd be nice to run this without having eclipse open =D.

I'm running Fedora F9, x86_64 with openJDK 1.6.

I'll be checking the forums intermittently over the next couple of days. Exams =/

Matt
Filip
Re: Java SVN head NPE in gui.botConsole (x86_64?)
February 22, 2009 06:53AM
I am having the same problem
this is my output

Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.(ImageIcon.java:155)
at package.project.Spel1.(Spel1.java:30)
at package.project.Spel1.main(Spel1.java:202)

I am using Linux mint. Have not tried it in eclipse yet. Cause i would like to find a solution for this, it should work with netbeans 6.5
Sorry, only registered users may post in this forum.

Click here to login