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

Close

#254 Eclipse plug-in crashes Eclipse

open
nobody
7
2010-08-17
2010-06-08
Carl Alphonce
No

In previous versions of the Eclipse plug-in, on start-up the working directory of the interactions pane included all the open projects. Now the working directory is given as follows:

Welcome to DrJava. Working directory is /Users/CarlAlphonce
>

Built-in things work:
> 4 + 5
9

But using user-defined classes does not:
> new edu.buffalo.cse.green.GreenException("Ack!")
>

In fact, this crashes Eclipse (!):

edu.rice.cs.util.UnexpectedException: java.lang.NoSuchMethodError: edu.rice.cs.plt.iter.IterUtil.zip(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable;
at edu.rice.cs.drjava.model.repl.newjvm.MainJVM$ResultHandler.forUnexpectedException(MainJVM.java:804)
at edu.rice.cs.drjava.model.repl.newjvm.MainJVM$ResultHandler.forUnexpectedException(MainJVM.java:758)
at edu.rice.cs.drjava.model.repl.newjvm.InterpretResult$UnexpectedExceptionResult.apply(InterpretResult.java:95)
at edu.rice.cs.drjava.model.repl.newjvm.MainJVM.interpret(MainJVM.java:187)
at edu.rice.cs.drjava.model.repl.RMIInteractionsModel._interpret(RMIInteractionsModel.java:72)
at edu.rice.cs.drjava.model.repl.InteractionsModel.interpret(InteractionsModel.java:224)
at edu.rice.cs.drjava.model.repl.InteractionsModel$1$1.run(InteractionsModel.java:201)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.NoSuchMethodError: edu.rice.cs.plt.iter.IterUtil.zip(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable;
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem.findSignatureMatches(ExtendedTypeSystem.java:2833)
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem.access$3400(ExtendedTypeSystem.java:21)
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem$38.forSimpleClassType(ExtendedTypeSystem.java:2935)
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem$38.forSimpleClassType(ExtendedTypeSystem.java:2911)
at edu.rice.cs.dynamicjava.symbol.type.SimpleClassType.apply(SimpleClassType.java:21)
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem.lookupConstructor(ExtendedTypeSystem.java:2910)
at edu.rice.cs.dynamicjava.interpreter.ExpressionChecker$ExpressionVisitor.visit(ExpressionChecker.java:774)
at edu.rice.cs.dynamicjava.interpreter.ExpressionChecker$ExpressionVisitor.visit(ExpressionChecker.java:172)
at koala.dynamicjava.tree.SimpleAllocation.acceptVisitor(SimpleAllocation.java:132)
at edu.rice.cs.dynamicjava.interpreter.ExpressionChecker.check(ExpressionChecker.java:140)
at edu.rice.cs.dynamicjava.interpreter.StatementChecker.checkType(StatementChecker.java:126)
at edu.rice.cs.dynamicjava.interpreter.StatementChecker.visit(StatementChecker.java:761)
at edu.rice.cs.dynamicjava.interpreter.StatementChecker.visit(StatementChecker.java:112)
at koala.dynamicjava.tree.ExpressionStatement.acceptVisitor(ExpressionStatement.java:106)
at edu.rice.cs.dynamicjava.interpreter.Interpreter.typeCheck(Interpreter.java:75)
at edu.rice.cs.dynamicjava.interpreter.Interpreter.interpret(Interpreter.java:46)
at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM.interpret(InterpreterJVM.java:242)
at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM.interpret(InterpreterJVM.java:219)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
... 1 more

Caused by:
java.lang.NoSuchMethodError: edu.rice.cs.plt.iter.IterUtil.zip(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable;
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem.findSignatureMatches(ExtendedTypeSystem.java:2833)
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem.access$3400(ExtendedTypeSystem.java:21)
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem$38.forSimpleClassType(ExtendedTypeSystem.java:2935)
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem$38.forSimpleClassType(ExtendedTypeSystem.java:2911)
at edu.rice.cs.dynamicjava.symbol.type.SimpleClassType.apply(SimpleClassType.java:21)
at edu.rice.cs.dynamicjava.symbol.ExtendedTypeSystem.lookupConstructor(ExtendedTypeSystem.java:2910)
at edu.rice.cs.dynamicjava.interpreter.ExpressionChecker$ExpressionVisitor.visit(ExpressionChecker.java:774)
at edu.rice.cs.dynamicjava.interpreter.ExpressionChecker$ExpressionVisitor.visit(ExpressionChecker.java:172)
at koala.dynamicjava.tree.SimpleAllocation.acceptVisitor(SimpleAllocation.java:132)
at edu.rice.cs.dynamicjava.interpreter.ExpressionChecker.check(ExpressionChecker.java:140)
at edu.rice.cs.dynamicjava.interpreter.StatementChecker.checkType(StatementChecker.java:126)
at edu.rice.cs.dynamicjava.interpreter.StatementChecker.visit(StatementChecker.java:761)
at edu.rice.cs.dynamicjava.interpreter.StatementChecker.visit(StatementChecker.java:112)
at koala.dynamicjava.tree.ExpressionStatement.acceptVisitor(ExpressionStatement.java:106)
at edu.rice.cs.dynamicjava.interpreter.Interpreter.typeCheck(Interpreter.java:75)
at edu.rice.cs.dynamicjava.interpreter.Interpreter.interpret(Interpreter.java:46)
at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM.interpret(InterpreterJVM.java:242)
at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM.interpret(InterpreterJVM.java:219)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)

System Properties:
DrJava Version drjava-20090115-r4700
DrJava Build Time 20090115-1810

java.vendor = Apple Inc.
osgi.bundles.defaultStartLevel = 4
org.osgi.supports.framework.extension = true
sun.management.compiler = HotSpot 64-Bit Server Compiler
eclipse.p2.profile = SDKProfile
os.name = Mac OS X
sun.boot.class.path = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jsfd.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/charsets.jar
osgi.ws = cocoa
java.vm.specification.vendor = Sun Microsystems Inc.
java.runtime.version = 1.6.0_20-b02-279-10M3065
osgi.instance.area = file:<anonymized user.home>/Documents/workspace/
user.name = <anonymized user.name>
osgi.framework.extensions =
org.osgi.framework.system.packages = javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.ws.wsaddressing,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views,org.w3c.dom.xpath,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
awt.nativeDoubleBuffering = true
eclipse.launcher = <anonymized user.dir>/eclipse
org.osgi.framework.language = en
user.language = en
org.osgi.framework.processor = x86-64
osgi.syspath = /Applications/eclipse/plugins
sun.boot.library.path = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Libraries
apple.awt.graphics.UseOpenGL = false
osgi.manifest.cache = /Applications/eclipse/configuration/org.eclipse.osgi/manifests
java.version = 1.6.0_20
org.osgi.framework.os.name = MacOSX
user.timezone = America/New_York
sun.arch.data.model = 64
osgi.bundles = reference:file:org.eclipse.equinox.simpleconfigurator_1.0.101.R35x_v20090807-1100.jar@1:start
java.endorsed.dirs = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/endorsed
osgi.tracefile = <anonymized user.home>/Documents/workspace/.metadata/trace.log
eclipse.application = org.eclipse.ui.ide.workbench
sun.cpu.isalist =
sun.jnu.encoding = MacRoman
file.encoding.pkg = sun.io
org.osgi.framework.vendor = Eclipse
file.separator = /
java.specification.name = Java Platform API Specification
java.class.version = 50.0
user.country = US
org.eclipse.equinox.launcher.splash.location = /Applications/eclipse/plugins/org.eclipse.platform_3.3.201.v200909170800/splash.bmp
java.home = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
drjava.debug.port = 52714
osgi.os = macosx
eclipse.commands = -os
macosx
-ws
cocoa
-arch
x86_64
-showsplash
-launcher
<anonymized user.dir>/eclipse
-name
Eclipse
--launcher.library
<anonymized user.dir>//../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.0.1.R35x_v20090707/eclipse_1207.so
-startup
<anonymized user.dir>/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-keyring
<anonymized user.home>/.eclipse_keyring
-showlocation
-vm
/System/Library/Frameworks/JavaVM.framework

java.vm.info = mixed mode
osgi.splashLocation = /Applications/eclipse/plugins/org.eclipse.platform_3.3.201.v200909170800/splash.bmp
os.version = 10.6.3
osgi.arch = x86_64
path.separator = :
java.vm.version = 16.3-b01-279
org.osgi.supports.framework.fragment = true
osgi.framework.shape = jar
osgi.instance.area.default = file:<anonymized user.home>/Documents/workspace/
java.awt.printerjob = apple.awt.CPrinterJob
sun.io.unicode.encoding = UnicodeLittle
org.osgi.framework.version = 1.5.0
awt.toolkit = apple.awt.CToolkit
socksNonProxyHosts = local|*.local|169.254/16|*.169.254/16
ftp.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
osgi.install.area = file:/Applications/eclipse/
osgi.framework = file:/Applications/eclipse/plugins/org.eclipse.osgi_3.5.1.R35x_v20090827.jar
sun.awt.exception.handler = apple.awt.CToolkit$EventQueueExceptionHandler
user.home = <anonymized user.home>
org.eclipse.equinox.simpleconfigurator.configUrl = file:org.eclipse.equinox.simpleconfigurator/bundles.info
osgi.bundlestore = /Applications/eclipse/configuration/org.eclipse.osgi/bundles
osgi.splashPath = platform:/base/plugins/org.eclipse.platform
osgi.nl = en_US
java.specification.vendor = Sun Microsystems Inc.
java.library.path = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.vendor.url = http://www.apple.com/
org.osgi.framework.os.version = 10.6.3
eclipse.p2.data.area = @config.dir/../p2/
eclipse.startTime = 1275960731233
java.vm.vendor = Apple Inc.
gopherProxySet = false
java.runtime.name = Java(TM) SE Runtime Environment
java.class.path = <anonymized user.dir>/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
org.eclipse.update.reconcile = false
eclipse.vm = /System/Library/Frameworks/JavaVM.framework
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.version = 1.0
sun.cpu.endian = little
org.eclipse.swt.internal.carbon.smallFonts =
sun.os.patch.level = unknown
java.io.tmpdir = /var/folders/G+/G+k3MHwcF6W7ZWE5SHxGY++++TI/-Tmp-/
java.vendor.url.bug = http://bugreport.apple.com/
eclipse.product = org.eclipse.sdk.ide
java.rmi.server.hostname = 127.0.0.1
eclipse.home.location = file:/Applications/eclipse/
mrj.build = 10M3065
os.arch = x86_64
java.awt.graphicsenv = apple.awt.CGraphicsEnvironment
java.ext.dirs = /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext
mrj.version = 1060.1.6.0_20-279
user.dir = <anonymized user.dir>
org.osgi.supports.framework.requirebundle = true
apple.awt.graphics.UseQuartz = false
line.separator = "\u000a"
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
file.encoding = MacRoman
osgi.framework.version = 3.5.1.R35x_v20090827
eclipse.buildId = M20090917-0800
eclipse.vmargs = -Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Djava.class.path=<anonymized user.dir>/../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar

java.specification.version = 1.6
org.osgi.framework.executionenvironment = OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6
osgi.logfile = <anonymized user.home>/Documents/workspace/.metadata/.log
osgi.configuration.area = file:/Applications/eclipse/configuration/

#DrJava configuration file
#Mon Jun 07 21:35:41 EDT 2010
key.delete.next = shift DELETE
key.delete.previous = shift BACK_SPACE

Used memory: about 58.50 megabytes
Free memory: about 44.57 megabytes
Total memory: about 103.12 megabytes
Total memory can expand to: about 507.88 megabytes

Discussion

  • Carl Alphonce
    Carl Alphonce
    2010-06-08

    • summary: Eclipse plug-in working directory problem --> Eclipse plug-in crashes Eclipse
     
  • Carl Alphonce
    Carl Alphonce
    2010-08-17

    • priority: 5 --> 7
     
  • Carl Alphonce
    Carl Alphonce
    2010-08-17

    Any chance of getting this looked at? I want to use the eclipse plug-in for class, but haven't seen any reply. Is a fix coming, or should I re-plan for the start of classes (in two weeks)? It would be good to know either way - thanks!