Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#923 NullPointerException in disableAutomaticTrace in Interaction

closed-fixed
Debugger (51)
5
2014-10-28
2011-11-12
Mathias Ricken
No

java.lang.NullPointerException
at edu.rice.cs.drjava.ui.MainFrame.disableAutomaticTrace(MainFrame.java:5814)
at edu.rice.cs.drjava.ui.MainFrame.access$23500(MainFrame.java:132)
at edu.rice.cs.drjava.ui.MainFrame$ModelListener.interactionStarted(MainFrame.java:9100)
at edu.rice.cs.drjava.model.GlobalEventNotifier.interactionStarted(GlobalEventNotifier.java:344)
at edu.rice.cs.drjava.model.repl.InteractionsEventNotifier.interactionStarted(InteractionsEventNotifier.java:65)
at edu.rice.cs.drjava.model.repl.DefaultInteractionsModel$4.run(DefaultInteractionsModel.java:155)
at edu.rice.cs.util.swing.Utilities.invokeLater(Utilities.java:62)
at edu.rice.cs.drjava.model.repl.DefaultInteractionsModel._notifyInteractionStarted(DefaultInteractionsModel.java:155)
at edu.rice.cs.drjava.model.repl.InteractionsModel._prepareToInterpret(InteractionsModel.java:280)
at edu.rice.cs.drjava.model.repl.InteractionsModel.access$100(InteractionsModel.java:70)
at edu.rice.cs.drjava.model.repl.InteractionsModel$2.run(InteractionsModel.java:207)
at edu.rice.cs.util.swing.Utilities.invokeLater(Utilities.java:62)
at edu.rice.cs.drjava.model.repl.InteractionsModel.interpretCurrentInteraction(InteractionsModel.java:200)
at edu.rice.cs.drjava.ui.InteractionsController$10.actionPerformed(InteractionsController.java:486)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(Unknown Source)
at edu.rice.cs.drjava.ui.InteractionsPane.processKeyEvent(InteractionsPane.java:180)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

System Properties:
DrJava Version drjava-20111024-r5454
DrJava Build Time 20111024-2158

drjava.debug.port = 40370
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = /usr/java/jre1.6.0_13/lib/i386
java.vm.version = 11.3-b02
java.vm.vendor = Sun Microsystems Inc.
java.vendor.url = http://java.sun.com/
path.separator = :
java.vm.name = Java HotSpot(TM) Server VM
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
user.country = US
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /rhel5pdi<anonymized user.home>
java.runtime.version = 1.6.0_13-b03
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /usr/java/jre1.6.0_13/lib/endorsed
os.arch = i386
java.io.tmpdir = /tmp
line.separator = "\u000a"
java.vm.specification.vendor = Sun Microsystems Inc.
os.name = Linux
sun.jnu.encoding = UTF-8
java.library.path = /usr/java/jre1.6.0_13/lib/i386/server:/usr/java/jre1.6.0_13/lib/i386:/usr/java/jre1.6.0_13/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
java.specification.name = Java Platform API Specification
java.class.version = 50.0
sun.management.compiler = HotSpot Tiered Compilers
os.version = 2.6.18-164.el5
user.home = <anonymized user.home>
user.timezone = America/Los_Angeles
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
java.specification.version = 1.6
java.class.path = <anonymized user.home>/bin/drjava.jar
user.name = <anonymized user.name>
java.vm.specification.version = 1.0
java.home = /usr/java/jre1.6.0_13
sun.arch.data.model = 32
user.language = en
java.specification.vendor = Sun Microsystems Inc.
java.vm.info = mixed mode
java.version = 1.6.0_13
java.ext.dirs = /usr/java/jre1.6.0_13/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = /usr/java/jre1.6.0_13/lib/resources.jar:/usr/java/jre1.6.0_13/lib/rt.jar:/usr/java/jre1.6.0_13/lib/sunrsasign.jar:/usr/java/jre1.6.0_13/lib/jsse.jar:/usr/java/jre1.6.0_13/lib/jce.jar:/usr/java/jre1.6.0_13/lib/charsets.jar:/usr/java/jre1.6.0_13/classes
java.vendor = Sun Microsystems Inc.
file.separator = /
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
java.rmi.server.hostname = 127.0.0.1
sun.desktop = gnome
sun.cpu.isalist =

DrJava configuration file
In resource bundle edu.rice.cs.drjava.config.options:
nothing

In shadowed configuration:
browser.string = /usr/bin/firefox <URL>
javac.location = /rhel5pdi/apollo/package/local_1/Linux-2.6c2.5-i686/JDK/JDK-876.0-0/jdk1.6.0/lib/tools.jar
key.delete.next = [shift DELETE]
key.delete.previous = [shift BACK_SPACE]
find.replace.match.case = false
indent.level = 4
recent.files = [/rhel5pdi<anonymized user.home>/Desktop/gss/RandomSample.java,/rhel5pdi<anonymized user.home>/Desktop/gss/VisitorTest.java,/rhel5pdi<anonymized user.home>/Desktop/gss/RunHttpSpnego.java,/rhel5pdi<anonymized user.home>/Desktop/gss/Backoff.java,/rhel5pdi<anonymized user.home>/Desktop/gss/ListSample.java]
window.height = 1127
window.width = 1610
window.x = -5
window.y = 0
window.state = 6
last.dir = /rhel5pdi<anonymized user.home>/Desktop/gss
last.interactions.dir = /rhel5pdi<anonymized user.home>/Desktop/gss
tabbedpanes.state = 840 525 700 400
new.version.notification = weekly experimental builds
new.version.notification.last = 1321066246708

Used memory: about 61.48 megabytes
Free memory: about 42.27 megabytes
Total memory: about 103.75 megabytes
Total memory can expand to: about 885.94 megabytes

Number of processors/cores: 2

Compiler Discovery Log:
makeFromFile: /rhel5pdi/apollo/package/local_1/Linux-2.6c2.5-i686/JDK/JDK-876.0-0/jdk1.6.0/lib/tools.jar --> Java 6.0, vendor: UNKNOWN
desc = edu.rice.cs.drjava.model.JDKDescriptor$None: none
loading debugger: edu.rice.cs.drjava.model.debug.jpda.JPDADebugger
no debugger, LinkageError java.lang.NoClassDefFoundError: com/sun/jdi/ClassNotPreparedException
From config: invalid JDK library Java 6.0 at /rhel5pdi/apollo/package/local_1/Linux-2.6c2.5-i686/JDK/JDK-876.0-0/jdk1.6.0/lib/tools.jar, boot classpath: null
makeFromRuntime: compilerAdapter=edu.rice.cs.drjava.model.compiler.Javac160Compiler
attempt = JDK 6.0_13, isAvailable() = false
compiler=edu.rice.cs.drjava.model.compiler.NoCompilerAvailable
loading debugger: edu.rice.cs.drjava.model.debug.jpda.JPDADebugger
no debugger, LinkageError java.lang.NoClassDefFoundError: com/sun/jdi/ClassNotPreparedException
compilers found: 0
no compilers found, adding NoCompilerAvailable library
From runtime: invalid Oracle JDK library Java 6.0_13
---- Searching for Libraries ----
---- Getting Default Search Roots ----
Dir added: /usr/java/jre1.6.0_13
Dir added: /usr/java
Dir added: /usr
Dir not added: /C:/Program Files/Java
Dir not added: /C:/Program Files
Dir not added: /C:/Java
Dir not added: /C:
Dir not added: /System/Library/Frameworks/JavaVM.framework/Versions
Dir added: /usr/java
Dir not added: /usr/j2se
Dir added: /usr
Dir not added: /usr/local/java
Dir not added: /usr/local/j2se
Dir added: /usr/local
Dir added: /usr/lib/jvm
Dir not added: /usr/lib/jvm/java-6-sun
Dir not added: /usr/lib/jvm/java-1.5.0-sun
Dir not added: /usr/lib/jvm/java-6-openjdk
Dir not added: /rhel5pdi/home/javaplt/java/Linux-i686
---- Searching for descriptors ----
ms: 1321066171600
drjava.jar: <anonymized user.home>/bin/drjava.jar
jar file: java.util.jar.JarFile@ae1393
class name: edu.rice.cs.drjava.model.compiler.descriptors.EclipseDescriptor
loaded!
class name: edu.rice.cs.drjava.model.compiler.descriptors.HjDescriptor
loaded!
class name: edu.rice.cs.drjava.model.compiler.descriptors.MintDescriptor
loaded!
class name: edu.rice.cs.drjava.model.compiler.descriptors.NextGenDescriptor
loaded!
class name: edu.rice.cs.drjava.model.compiler.descriptors.SoyLatteDescriptor
loaded!
ms: 1321066171621
duration ms: 21
---- Done searching for descriptors ----
File added: /rhel5pdi<anonymized user.home>/bin/drjava.jar
Dir added: /rhel5pdi<anonymized user.home>/bin
File added: /rhel5pdi<anonymized user.home>/bin/drjava.jar
File not added: /C:/Program Files/JavaPLT/hj/lib/hjc.jar
File not added: /C:/Program Files/hj/lib/hjc.jar
File not added: /usr/local/hj/lib/hjc.jar
Dir added: /rhel5pdi<anonymized user.home>/bin
File added: /rhel5pdi<anonymized user.home>/bin/drjava.jar
File not added: /C:/Program Files/JavaPLT/JavaMint/langtools/dist/lib/classes.jar
File not added: /C:/Program Files/JavaPLT/JavaMint/langtools/dist/lib/tools.jar
File not added: /C:/Program Files/JavaMint/langtools/dist/lib/classes.jar
File not added: /C:/Program Files/JavaMint/langtools/dist/lib/tools.jar
File not added: /usr/local/JavaMint/langtools/dist/lib/classes.jar
File not added: /usr/local/JavaMint/langtools/dist/lib/tools.jar
Dir added: /rhel5pdi<anonymized user.home>/bin
File added: /rhel5pdi<anonymized user.home>/bin/drjava.jar
File not added: /C:/Program Files/JavaPLT/nextgen2/nextgen2.jar
File not added: /C:/Program Files/JavaPLT/nextgen2/jars/nextgen2.jar
File not added: /C:/Program Files/JavaPLT/nextgen2/nextgen2.jar
File not added: /C:/Program Files/JavaPLT/nextgen2/jars/nextgen2.jar
File not added: /usr/local/nextgen2/nextgen2.jar
File not added: /usr/local/nextgen2/jars/nextgen2.jar
File not added: /usr/java/jre1.6.0_13/javaws/lib/tools.jar
File not added: /usr/java/jre1.6.0_13/javaws/Classes/classes.jar
File not added: /usr/java/lib/tools.jar
File not added: /usr/java/Classes/classes.jar
File added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar
File not added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/Classes/classes.jar
File added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar
File not added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/Classes/classes.jar
File added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar
File not added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/Classes/classes.jar
File added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar
File not added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/Classes/classes.jar
File added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar
File not added: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/Classes/classes.jar
---- Collecting Valid Results ----
Checking file /rhel5pdi<anonymized user.home>/bin/drjava.jar for EclipseDescriptor --> edu.rice.cs.drjava.model.compiler.EclipseCompiler
true
makeFromFile: /rhel5pdi<anonymized user.home>/bin/drjava.jar --> Java 6.0_21, vendor: UNKNOWN
desc = EclipseDescriptor --> edu.rice.cs.drjava.model.compiler.EclipseCompiler
Checking file /rhel5pdi<anonymized user.home>/bin/drjava.jar for HjDescriptor --> edu.rice.cs.drjava.model.compiler.HjCompiler
false
Checking file /rhel5pdi<anonymized user.home>/bin/drjava.jar for MintDescriptor --> edu.rice.cs.drjava.model.compiler.MintCompiler
false
Checking file /rhel5pdi<anonymized user.home>/bin/drjava.jar for NextGenDescriptor --> edu.rice.cs.drjava.model.compiler.NextGenCompiler
false
Checking file /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar for edu.rice.cs.drjava.model.JDKDescriptor$None: none
true
makeFromFile: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar --> Java 1.2.0, vendor: ORACLE
desc = edu.rice.cs.drjava.model.JDKDescriptor$None: none
library is not valid: compiler=false debugger=false javadoc=false
---- Getting Completed Compound Results ----
Result:
Found library: Eclipse library 6.0_21 at /rhel5pdi<anonymized user.home>/bin/drjava.jar, boot classpath: [/rhel5pdi<anonymized user.home>/bin/drjava.jar]
From search: Eclipse library 6.0_21 at /rhel5pdi<anonymized user.home>/bin/drjava.jar, boot classpath: [/rhel5pdi<anonymized user.home>/bin/drjava.jar]
tVersion: Java 6.0_21 UNKNOWN
coarsenedVersion: Java 6.0 UNKNOWN
added

Discussion

  • Mathias Ricken
    Mathias Ricken
    2011-11-14

    • status: open --> closed-fixed
     
  • Mathias Ricken
    Mathias Ricken
    2011-11-14

    Fixed as of revision 5455.