#919 Strange bug

open
nobody
None
5
2015-02-19
2011-09-22
NAiT
No

(Warning: wall-of-text incoming)

Good day fellow users of Dr. Java.

I come to you on this, the first of probably many occasions, to ask a question relating to an error I’ve encountered. I have, and use Dr. Java on two computers, yet sadly, one of them can’t seem to run any Java programs.

Compiling works fine, but running a program gives me this error in the interaction tab:

> JVM failed to start. Make sure a firewall is not blocking
inter-process communication. See the console tab for details.

In the console tab, I get this message:

java.io.IOException: Unable to run process; class path may need to be adjusted
at edu.rice.cs.plt.concurrent.ProcessTaskController$1.run(ProcessTaskController.java:157)
at java.lang.Thread.run(Unknown Source)

Being the good Java-noob that I am, I instantly Googled the error, only to find very little to no information about the cause, or a possible fix. I did however pic up on that some of you like to see the “About” screen when people whine about their silly errors. So here is what I have:
System Properties:
DrJava Version drjava-20110822-r5448
DrJava Build Time 20110822-1613

drjava.debug.port = 49490
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = <anonymized user.dir>Program Files\Java\jre7\bin
java.vm.version = 21.0-b17
user.country.format = NO
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg = sun.io
user.country = US
user.script =
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = Service Pack 1
java.vm.specification.name = Java Virtual Machine Specification
user.dir = <anonymized user.dir>
java.runtime.version = 1.7.0-b147
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = <anonymized user.dir>Program Files\Java\jre7\lib\endorsed
os.arch = amd64
java.io.tmpdir = <anonymized user.home>\AppData\Local\Temp\ line.separator = "\u000d\u000a"
java.vm.specification.vendor = Oracle Corporation
user.variant =
os.name = Windows 7
sun.jnu.encoding = Cp1252
java.library.path = <anonymized user.dir>Program Files\Java\jre7\bin;<anonymized user.dir>Windows\Sun\Java\bin;<anonymized user.dir>Windows\system32;<anonymized user.dir>Windows;<anonymized user.dir>Program Files (x86)\NVIDIA Corporation\PhysX\Common;<anonymized user.dir>Windows\system32;<anonymized user.dir>Windows;<anonymized user.dir>Windows\System32\Wbem;<anonymized user.dir>Windows\System32\WindowsPowerShell\v1.0\;<anonymized user.dir>PROGRA~1\DISKEE~1\DISKEE~1\;<anonymized user.dir>Program Files\Intel\WiFi\bin\;<anonymized user.dir>Program Files\Common Files\Intel\WirelessCommon\;<anonymized user.dir>Program Files (x86)\QuickTime\QTSystem\;<anonymized user.dir>Program Files\Java\jre7\bin;.
sun.awt.enableExtraMouseButtons = true
java.specification.name = Java Platform API Specification
java.class.version = 51.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
os.version = 6.1
user.home = <anonymized user.home>
user.timezone = Europe/Berlin
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = Cp1252
java.specification.version = 1.7
java.class.path = <anonymized user.dir>drjava-beta-20110822-r5448.exe
user.name = <anonymized user.name>
java.vm.specification.version = 1.7
sun.java.command = <anonymized user.dir>drjava-beta-20110822-r5448.exe
java.home = <anonymized user.dir>Program Files\Java\jre7
sun.arch.data.model = 64
user.language = en
java.specification.vendor = Oracle Corporation
user.language.format = no
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode
java.version = 1.7.0
java.ext.dirs = <anonymized user.dir>Program Files\Java\jre7\lib\ext;<anonymized user.dir>Windows\Sun\Java\lib\ext
sun.boot.class.path = <anonymized user.dir>Program Files\Java\jre7\lib\resources.jar;<anonymized user.dir>Program Files\Java\jre7\lib\rt.jar;<anonymized user.dir>Program Files\Java\jre7\lib\sunrsasign.jar;<anonymized user.dir>Program Files\Java\jre7\lib\jsse.jar;<anonymized user.dir>Program Files\Java\jre7\lib\jce.jar;<anonymized user.dir>Program Files\Java\jre7\lib\charsets.jar;<anonymized user.dir>Program Files\Java\jre7\classes
java.vendor = Oracle Corporation
file.separator = \ java.vendor.url.bug = http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
java.rmi.server.hostname = 127.0.0.1
sun.desktop = windows
sun.cpu.isalist = amd64

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

In shadowed configuration:
compiler.error.color = #cc0000
font.main = Calibri-18
font.line.numbers = Calibri-16
font.doclist = Calibri-12
font.toolbar = Calibri-12
display.right.margin = false
lineenum.enabled = true
look.and.feel = com.sun.java.swing.plaf.windows.WindowsLookAndFeel
key.delete.next = [shift DELETE]
key.delete.previous = [shift BACK_SPACE]
save.before.compile = true
recent.files = [<anonymized user.dir>\Users\\&lt;anonymized user.name>\\Desktop\\Semester oppgave 1\\Given\\Ordliste.java,<anonymized user.dir>\Users\\&lt;anonymized user.name>\\Desktop\\Semester oppgave 1\\Semester oppgave 1\\drid.java,<anonymized user.dir>\Users\\&lt;anonymized user.name>\\Desktop\\Semester oppgave 1\\Semester oppgave 1\\oppgave1.java,<anonymized user.dir>\Users\\&lt;anonymized user.name>\\Desktop\\Semester oppgave 1\\SO3.java,<anonymized user.dir>\Users\\&lt;anonymized user.name>\\Desktop\\Semester oppgave 1\\Given\\Bil.java]
window.height = 1036
window.width = 960
window.x = 960
window.y = 0
doc.list.width = 24
last.dir = <anonymized user.dir>\Users\\&lt;anonymized user.name>\\Desktop\\Semester oppgave 1\\Given\\Bil.java
last.interactions.dir = <anonymized user.dir>\Users\\&lt;anonymized user.name>\\Desktop\\Semester oppgave 1\\Given
tabbedpanes.state = 960 540 700 400
new.version.notification = stable versions only
new.version.notification.last = 1316183586261
drjava.survey.notification.last = 1316183468820
drjava.survey.result.last = http://www.drjava.org/submit-usage.php?rev=5387&os.name=Windows%207&os.version=6.1&java.version=1.7.0&java.vendor=Oracle%20Corporation
file.ext.registration = always

Used memory: about 37,36 megabytes
Free memory: about 76,08 megabytes
Total memory: about 113,44 megabytes
Total memory can expand to: about 1,77 gigabytes

Number of processors/cores: 8

Compiler Discovery Log:
From config: not set
makeFromRuntime: compilerAdapter=edu.rice.cs.drjava.model.compiler.Javac170Compiler
attempt = JDK 7.0, 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/ObjectCollectedException
compilers found: 0
no compilers found, adding NoCompilerAvailable library
From runtime: invalid Oracle JDK library Java 7.0
---- Searching for Libraries ----
---- Getting Default Search Roots ----
Dir added: <anonymized user.dir>Program Files\Java\jre7
Dir added: <anonymized user.dir>Program Files\Java
Dir added: <anonymized user.dir>Program Files
Dir added: <anonymized user.dir>Program Files\Java
Dir added: <anonymized user.dir>Program Files
Dir added: <anonymized user.dir>Program Files\Java
Dir added: <anonymized user.dir>Program Files
Dir not added: <anonymized user.dir>Java
Dir added: <anonymized user.dir>
Dir not added: <anonymized user.dir>Java
Dir added: <anonymized user.dir>
Dir not added: <anonymized user.dir>System\Library\Frameworks\JavaVM.framework\Versions
Dir not added: <anonymized user.dir>usr\java
Dir not added: <anonymized user.dir>usr\j2se
Dir not added: <anonymized user.dir>usr
Dir not added: <anonymized user.dir>usr\local\java
Dir not added: <anonymized user.dir>usr\local\j2se
Dir not added: <anonymized user.dir>usr\local
Dir not added: <anonymized user.dir>usr\lib\jvm
Dir not added: <anonymized user.dir>usr\lib\jvm\java-6-sun
Dir not added: <anonymized user.dir>usr\lib\jvm\java-1.5.0-sun
Dir not added: <anonymized user.dir>usr\lib\jvm\java-6-openjdk
Dir not added: <anonymized user.dir>home\javaplt\java\Linux-i686
---- Searching for descriptors ----
ms: 1316218824778
drjava.jar: <anonymized user.dir>drjava-beta-20110822-r5448.exe
jar file: java.util.jar.JarFile@67b0b2b7
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: 1316218824794
duration ms: 16
---- Done searching for descriptors ----
File added: <anonymized user.dir>drjava-beta-20110822-r5448.exe
Dir added: <anonymized user.dir>
File added: <anonymized user.dir>drjava-beta-20110822-r5448.exe
File not added: <anonymized user.dir>Program Files\JavaPLT\hj\lib\hjc.jar
File not added: <anonymized user.dir>Program Files\hj\lib\hjc.jar
File not added: <anonymized user.dir>usr\local\hj\lib\hjc.jar
Dir added: <anonymized user.dir>
File added: <anonymized user.dir>drjava-beta-20110822-r5448.exe
File not added: <anonymized user.dir>Program Files\JavaPLT\JavaMint\langtools\dist\lib\classes.jar
File not added: <anonymized user.dir>Program Files\JavaPLT\JavaMint\langtools\dist\lib\tools.jar
File not added: <anonymized user.dir>Program Files\JavaMint\langtools\dist\lib\classes.jar
File not added: <anonymized user.dir>Program Files\JavaMint\langtools\dist\lib\tools.jar
File not added: <anonymized user.dir>usr\local\JavaMint\langtools\dist\lib\classes.jar
File not added: <anonymized user.dir>usr\local\JavaMint\langtools\dist\lib\tools.jar
Dir added: <anonymized user.dir>
File added: <anonymized user.dir>drjava-beta-20110822-r5448.exe
File not added: <anonymized user.dir>Program Files\JavaPLT\nextgen2\nextgen2.jar
File not added: <anonymized user.dir>Program Files\JavaPLT\nextgen2\jars\nextgen2.jar
File not added: <anonymized user.dir>Program Files\JavaPLT\nextgen2\nextgen2.jar
File not added: <anonymized user.dir>Program Files\JavaPLT\nextgen2\jars\nextgen2.jar
File not added: <anonymized user.dir>usr\local\nextgen2\nextgen2.jar
File not added: <anonymized user.dir>usr\local\nextgen2\jars\nextgen2.jar
File added: <anonymized user.dir>Program Files\Java\jdk1.6.0_27\lib\tools.jar
File not added: <anonymized user.dir>Program Files\Java\jdk1.6.0_27\Classes\classes.jar
File added: <anonymized user.dir>Program Files\Java\jdk1.7.0\lib\tools.jar
File not added: <anonymized user.dir>Program Files\Java\jdk1.7.0\Classes\classes.jar
File not added: <anonymized user.dir>Program Files\Java\lib\tools.jar
File not added: <anonymized user.dir>Program Files\Java\Classes\classes.jar
File not added: <anonymized user.dir>JavaFiles\lib\tools.jar
File not added: <anonymized user.dir>JavaFiles\Classes\classes.jar
---- Collecting Valid Results ----
Checking file <anonymized user.dir>drjava-beta-20110822-r5448.exe for EclipseDescriptor --> edu.rice.cs.drjava.model.compiler.EclipseCompiler
true
makeFromFile: <anonymized user.dir>drjava-beta-20110822-r5448.exe --> Java 6.0_25, vendor: UNKNOWN
desc = EclipseDescriptor --> edu.rice.cs.drjava.model.compiler.EclipseCompiler
Checking file <anonymized user.dir>drjava-beta-20110822-r5448.exe for HjDescriptor --> edu.rice.cs.drjava.model.compiler.HjCompiler
false
Checking file <anonymized user.dir>drjava-beta-20110822-r5448.exe for MintDescriptor --> edu.rice.cs.drjava.model.compiler.MintCompiler
false
Checking file <anonymized user.dir>drjava-beta-20110822-r5448.exe for NextGenDescriptor --> edu.rice.cs.drjava.model.compiler.NextGenCompiler
false
Checking file <anonymized user.dir>Program Files\Java\jdk1.6.0_27\lib\tools.jar for edu.rice.cs.drjava.model.JDKDescriptor$None: none
true
makeFromFile: <anonymized user.dir>Program Files\Java\jdk1.6.0_27\lib\tools.jar --> Java 6.0_27, vendor: ORACLE
desc = edu.rice.cs.drjava.model.JDKDescriptor$None: none
loading debugger: edu.rice.cs.drjava.model.debug.jpda.JPDADebugger
debugger=edu.rice.cs.drjava.model.debug.jpda.JPDADebugger
Checking file <anonymized user.dir>Program Files\Java\jdk1.7.0\lib\tools.jar for edu.rice.cs.drjava.model.JDKDescriptor$None: none
true
makeFromFile: <anonymized user.dir>Program Files\Java\jdk1.7.0\lib\tools.jar --> Java 7.0, vendor: UNKNOWN
desc = edu.rice.cs.drjava.model.JDKDescriptor$None: none
loading debugger: edu.rice.cs.drjava.model.debug.jpda.JPDADebugger
debugger=edu.rice.cs.drjava.model.debug.jpda.JPDADebugger
---- Getting Completed Compound Results ----
Result:
Found library: JDK library Java 7.0 at <anonymized user.dir>Program Files\Java\jdk1.7.0\lib\tools.jar, boot classpath: [<anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\alt-rt.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\charsets.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\deploy.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\javaws.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\jce.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\jsse.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\management-agent.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\plugin.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\resources.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\rt.jar]
Found library: Oracle JDK library Java 6.0_27 at <anonymized user.dir>Program Files\Java\jdk1.6.0_27\lib\tools.jar, boot classpath: [<anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\alt-rt.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\alt-string.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\charsets.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\deploy.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\javaws.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\jce.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\jsse.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\management-agent.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\plugin.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\resources.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\rt.jar]
Found library: Eclipse library 6.0_25 at <anonymized user.dir>drjava-beta-20110822-r5448.exe, boot classpath: [<anonymized user.dir>drjava-beta-20110822-r5448.exe]
From search: JDK library Java 7.0 at <anonymized user.dir>Program Files\Java\jdk1.7.0\lib\tools.jar, boot classpath: [<anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\alt-rt.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\charsets.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\deploy.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\javaws.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\jce.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\jsse.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\management-agent.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\plugin.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\resources.jar, <anonymized user.dir>Program Files\Java\jdk1.7.0\jre\lib\rt.jar]
tVersion: Java 7.0 UNKNOWN
coarsenedVersion: Java 7.0 UNKNOWN
added
From search: Oracle JDK library Java 6.0_27 at <anonymized user.dir>Program Files\Java\jdk1.6.0_27\lib\tools.jar, boot classpath: [<anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\alt-rt.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\alt-string.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\charsets.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\deploy.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\javaws.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\jce.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\jsse.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\management-agent.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\plugin.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\resources.jar, <anonymized user.dir>Program Files\Java\jdk1.6.0_27\jre\lib\rt.jar]
tVersion: Java 6.0_27 ORACLE
coarsenedVersion: Java 6.0 ORACLE
added
From search: Eclipse library 6.0_25 at <anonymized user.dir>drjava-beta-20110822-r5448.exe, boot classpath: [<anonymized user.dir>drjava-beta-20110822-r5448.exe]
tVersion: Java 6.0_25 UNKNOWN
coarsenedVersion: Java 6.0 UNKNOWN
added

Me being totally lost at this MASSIV amount of information, I come to you, the brighter minds, for some advice.
I did play around with some Windows Services in Windows 7 the other day… Could that be the cause? Does Dr. Java or Java in general need specific services enabled?
In short, I wonder; what’s wrong, and how do I fix it?
Or is my other computer doomed to be Dr.Java-less forever?

Thank you a million for an otherwise wonderful tool.

Discussion

  • DrJava uses two JVMs and relies on RMI which uses TCP/IP to communicate between JVMs. So you must allow Java to access the internet (TCP/IP) to use the interactions and testing features of Drjava. Compilation is performed in the main JVM so it is not affected.

    Windows 7 normally pops up a window that explicitly asks for permission for Java to access the internet. If you make your security settings more secure than the default, Windows 7 may simply prohibit the communication without popping up a window to ask permission. I don't know since I have never tried changing the security level from its default.

    At any rate, in all prior cases where we have this bug report, it has been a Windows firewall issue prevent the two DrJava JVMs from communicating.

     
  • NAiT
    NAiT
    2011-09-23

    Hmm, I’d love to say that your information helped me greatly… but sadly to no avail. I enabled the Windows Firewall service, and, like you said, a pop-up appeared questioning my trust in Java. I allowed it access, but still got the same error.

    After that I disabled the firewall completely, and stopped its service from running… still nothing. Any clues to what I can do to fix my problem?