[kaffe] Kaffe and RXTX on XSCALE

asutosh gopinath asutosh.gopinath at lycos.com
Sat Aug 7 05:55:31 PDT 2004


hi,
I am trying to run SimpleWrite. I get following error:

SimpleWrite: Error setting event notification: java.lang.NullPointerException
java.lang.NullPointerException
   at gnu.io.RXTXPort$MonitorThread.run (RXTXPort.java:1530)   


verbosejit says java/lang/ThreadGroup.uncaughtException
I'm pasting a portion of JIT below:

<JIT: java/lang/Thread.sleep(J)V time 78ms (13102ms) @ 0x65a820>
<JIT: java/lang/Thread$Sleeper.<init>()V time 15ms (13117ms) @ 0x59294c>
<JIT: java/lang/Thread.waitOn(Ljava/lang/Object;J)V time 20ms (13137ms) @ 0x63e8
24>
<JIT: gnu/io/CommPortIdentifier.fireOwnershipEvent(I)V time 17ms (13154ms) @ 0x6
5abe8>
<JIT: java/lang/ThreadGroup.uncaughtException(Ljava/lang/Thread;Ljava/lang/Throw
able;)V time 106ms (13260ms) @ 0x656410>
<JIT: java/lang/Throwable.printStackTrace(Ljava/io/PrintStream;)V time 6ms (1326
6ms) @ 0x664130>
<JIT: java/lang/Throwable.stackTraceString()Ljava/lang/String; time 11ms (13277m
s) @ 0x658034>
<JIT: java/lang/Throwable.getStackTrace()[Ljava/lang/StackTraceElement; time 6ms
 (13283ms) @ 0x656608>
<JIT: java/lang/Throwable.toString()Ljava/lang/String; time 8ms (13291ms) @ 0x65
880c>
<JIT: java/lang/Throwable.getLocalizedMessage()Ljava/lang/String; time 6ms (1329
7ms) @ 0x4a08d8>
<JIT: java/lang/Throwable.getMessage()Ljava/lang/String; time 4ms (13301ms) @ 0x
6488b0>
<JIT: gnu/io/RXTXPort.getOutputStream()Ljava/io/OutputStream; time 65ms (13366ms
) @ 0x6483e0>
<JIT: gnu/io/RXTXPort.setSerialPortParams(IIII)V time 10ms (13376ms) @ 0x659824>
<JIT: gnu/io/Zystem.reportln(Ljava/lang/String;)Z time 8ms (13384ms) @ 0x65a418>
<JIT: gnu/io/RXTXPort.notifyOnOutputEmpty(Z)V time 5ms (13389ms) @ 0x6567f0>
SimpleWrite: Error setting event notification: java.lang.NullPointerException
<JIT: java/lang/Throwable.stackTraceStringBuffer(Ljava/lang/StringBuffer;Ljava/l
ang/String;[Ljava/lang/StackTraceElement;I)V time 13ms (13402ms) @ 0x65902c>
<JIT: java/lang/StackTraceElement.toString()Ljava/lang/String; time 10ms (13412m
s) @ 0x66902c>
<JIT: java/lang/Throwable.getCause()Ljava/lang/Throwable; time 6ms (13418ms) @ 0
x64b7cc>
<JIT: java/io/PrintStream.print(Ljava/lang/String;)V time 6ms (13424ms) @ 0x6538
1c>
<JIT: java/io/PrintStream.flush()V time 4ms (13428ms) @ 0x4a0ad8>
<JIT: java/lang/System.exit(I)V time 41ms (13469ms) @ 0x64b86c>
<JIT: java/lang/Runtime.exit(I)V time 8ms (13477ms) @ 0x665600>
<JIT: java/lang/Runtime.exitJavaCleanup()Z time 4ms (13481ms) @ 0x592acc>
<JIT: java/io/PrintWriter.flush()V time 25ms (13506ms) @ 0x592b84>
java.lang.NullPointerException
   at gnu.io.RXTXPort$MonitorThread.run (RXTXPort.java:1530)
<JIT: java/lang/Thread.finish()V time 9ms (13515ms) @ 0x667040>
<JIT: java/lang/ThreadGroup.remove(Ljava/lang/Thread;)V time 5ms (13520ms) @ 0x6
67428>
<JIT: java/lang/Runtime.runShutdownHooks()Z time 38ms (13558ms) @ 0x66982c>
<JIT: java/util/Vector.elements()Ljava/util/Enumeration; time 46ms (13604ms) @ 0
x6657f8>
<JIT: java/util/Vector$1.<init>(Ljava/util/Vector;)V time 6ms (13610ms) @ 0x665b
d0>
<JIT: java/util/Vector$1.Block$()V time 3ms (13613ms) @ 0x648840>
<JIT: java/util/Vector$1.hasMoreElements()Z time 5ms (13618ms) @ 0x64b90c>
<JIT: java/util/Vector$1.nextElement()Ljava/lang/Object; time 5ms (13623ms) @ 0x
6659f8>
<JIT: java/lang/Thread.join()V time 4ms (13627ms) @ 0x6539e4>
<JIT: java/lang/Thread.join(J)V time 6ms (13633ms) @ 0x665dd0>
<JIT: java/lang/Thread.join(JI)V time 9ms (13642ms) @ 0x66681c>
<JIT: java/io/File$DeleteFileHelper.run()V time 21ms (13663ms) @ 0x667810>
<JIT: java/util/AbstractSequentialList.iterator()Ljava/util/Iterator; time 4ms (
13667ms) @ 0x4a0458>
<JIT: java/util/AbstractList.listIterator()Ljava/util/ListIterator; time 5ms (13
672ms) @ 0x4a02d8>
<JIT: java/util/LinkedList.listIterator(I)Ljava/util/ListIterator; time 109ms (1
3781ms) @ 0x668228>
<JIT: java/util/LinkedList.checkBoundsInclusive(I)V time 8ms (13789ms) @ 0x67380
8>
<JIT: java/util/LinkedList$LinkedListItr.<init>(Ljava/util/LinkedList;I)V time 2
7ms (13816ms) @ 0x673028>
<JIT: java/util/LinkedList$LinkedListItr.Block$()V time 4ms (13820ms) @ 0x4a0358
>
<JIT: java/util/LinkedList$LinkedListItr.hasNext()Z time 5ms (13825ms) @ 0x653ac
4>
<JIT: java/util/LinkedList$LinkedListItr.checkMod()V time 34ms (13859ms) @ 0x668
610>



I dont know if it is kaffe's problem or RXTX's problem. Has anybody used rxtx successfully with kaffe on Xscale?

please help

Regards
asutosh

-- 
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10





More information about the kaffe mailing list