#859 NullPointerException when trying to located missing files

John Cate

When source files are moved behind a running instance of DrJava and a 'find all' is used to search all documents, a dialog pops up saying that the files can't be found. If you select 'Yes' to find a file, the file chooser pops up and a NullPointerException is thrown.

Was found while working on Feature Request 2977070 - 'Option to abort failing global...', but is not a result of those changes. This bug is present in the latest beta, 20100415-r5220.

The stack trace is extremely short and I couldn't figure out what was going on; it is attached.

Note: this error does not interrupt the process of choosing a file. It's just annoying.


  • John Cate

    John Cate - 2010-05-05

    strack trace for bug

  • Mathias Ricken

    Mathias Ricken - 2010-05-05

    Posting the stack trace from the attached file. This smells like a Swing bug to me.

    at javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:422)
    at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:211)

    System Properties:
    DrJava Version drjava-20090323-r4836
    DrJava Build Time 20090323-1937

    drjava.debug.port = 39866
    java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path = /home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/i386
    java.vm.version = 1.5.0_14-b03
    java.vm.vendor = Sun Microsystems Inc.
    java.vendor.url = http://java.sun.com/
    path.separator = :
    java.vm.name = Java HotSpot(TM) Client 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 = <anonymized user.home>
    java.runtime.version = 1.5.0_14-b03
    java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
    java.endorsed.dirs = /home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/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 = ANSI_X3.4-1968
    java.library.path = /home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/i386/client:/home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/i386:/home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/../lib/i386:/home/javaplt/packages/yjp-6.0.11/bin/linux-x86-32
    java.specification.name = Java Platform API Specification
    java.class.version = 49.0
    sun.management.compiler = HotSpot Client Compiler
    os.version = 2.6.18-194.el5
    user.home = <anonymized user.home>
    user.timezone = America/Chicago
    java.awt.printerjob = sun.print.PSPrinterJob
    file.encoding = ANSI_X3.4-1968
    java.specification.version = 1.5
    java.class.path = drjava.jar
    user.name = <anonymized user.name>
    java.vm.specification.version = 1.0
    java.home = /home/javaplt/java/Linux-i686/jdk1.5.0_14/jre
    sun.arch.data.model = 32
    user.language = en
    java.specification.vendor = Sun Microsystems Inc.
    java.vm.info = mixed mode, sharing
    java.version = 1.5.0_14
    java.ext.dirs = /home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/ext
    sun.boot.class.path = /home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/rt.jar:/home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/i18n.jar:/home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/sunrsasign.jar:/home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/jsse.jar:/home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/jce.jar:/home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/lib/charsets.jar:/home/javaplt/java/Linux-i686/jdk1.5.0_14/jre/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 =
    sun.desktop = gnome
    sun.cpu.isalist =

    #DrJava configuration file
    #Wed May 05 11:29:26 CDT 2010
    key.delete.next = shift DELETE
    key.delete.previous = shift BACK_SPACE
    find.replace.all.documents = true
    last.dir = <anonymized user.home>/OldComp/HW07/src/listFW
    last.interactions.dir = <anonymized user.home>/OldComp/HW07
    new.version.notification.last = 1273076943430

    Used memory: about 7.37 megabytes
    Free memory: about 1.09 megabytes
    Total memory: about 8.45 megabytes
    Total memory can expand to: about 63.56 megabytes

  • Mathias Ricken

    Mathias Ricken - 2010-08-16

    I'm fairly certain this is a Swing bug. There have been other bugs with this stack trace element:



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks