From larry.latour@umit.maine.edu
This error arose when running a test program to find first 10000
primes. The error occured once, about halfway through the
computation, but then completed without incident.
Source class attached.
java.lang.NullPointerException
at javax.swing.text.StyledEditorKit
$AttributeTracker.updateInputAttributes(StyledEditorKit.java:223)
at javax.swing.text.StyledEditorKit$AttributeTracker.caretUpdate
(StyledEditorKit.java:258)
at javax.swing.text.JTextComponent.fireCaretUpdate
(JTextComponent.java:367)
at javax.swing.text.JTextComponent$MutableCaretEvent.fire
(JTextComponent.java:3232)
at javax.swing.text.JTextComponent
$MutableCaretEvent.stateChanged(JTextComponent.java:3254)
at javax.swing.text.DefaultCaret.fireStateChanged
(DefaultCaret.java:776)
at apple.laf.AquaCaret.fireStateChanged(AquaCaret.java:50)
at javax.swing.text.DefaultCaret.changeCaretPosition
(DefaultCaret.java:1206)
at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:
1114)
at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:1095)
at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:1023)
at javax.swing.text.JTextComponent.setCaretPosition
(JTextComponent.java:1400)
at edu.rice.cs.drjava.ui.AbstractDJPane.setCaretPosition
(AbstractDJPane.java:133)
at edu.rice.cs.drjava.ui.AbstractConsoleController.moveTo
(AbstractConsoleController.java:355)
at edu.rice.cs.drjava.ui.AbstractConsoleController.moveToEnd
(AbstractConsoleController.java:342)
at edu.rice.cs.drjava.ui.AbstractConsoleController
$CaretUpdateListener$1.run(AbstractConsoleController.java:233)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:267)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:182)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:
110)
Logged In: YES
user_id=430590
I need the whole program not just the offending class so
that I can try to reproduce the error. I also need to know
what version of DrJava was run when the error occurred.
-- Corky
Logged In: YES
user_id=666678
Originator: NO
Could you please come back to SourceForge and update this support
request with some more information as detailed in previous comments?
(The URL to go to is in this e-mail.) We'd like to help resolve
this problem if we can, or we'd like to close the support ticket
if the problem is resolved.
Thanks,
The DrJava Team