This site requires JavaScript, please enable it in your browser!
Greenfoot back
Back to discussions
Dennis
Dennis wrote ...

2011/3/13

Can't start Greenfoot =(

Dennis Dennis

2011/3/13

I got the following problem, i just downloaded greenfoot and it always says : "greenfoot failed to launch. For help go to greenfoot.org/programming/support/index.html I already tried to reinstall greenfoot several times, but it didn't help at all. Have a 64-bit, Windows 7 computer and Greenfoot 2.0.1 Would me happy, if anyone can help me ! Greetz
egenius egenius

2011/3/13

Does java work on your computer normally?
Dennis Dennis

2011/3/13

yes it does, the strangest thing is, greenfoot runs without any problems
davmac davmac

2011/3/15

Maybe do what it says - go to http://greenfoot.org/programming/support/index.html and follow the instructions there. In particular, send us the debug log.
den den

2012/4/14

I have just got the same error on Ubuntu. The reason was that connections to the local host were not allowed. After altering iptables rules, it started working. In case someone hits the same situation try executing 'iptables -A INPUT -i lo -j ACCEPT' to check if you have the same problem. Keep in mind that command will allow all connections to the local host.
davmac davmac

2012/4/15

den, if you specify 'lo' as the interface (as you do) the you are only affecting the loopback interface, which is used for connections between two processes on your machine, but not any real network connections. Your statement that this will 'allow all connections to the local host' isn't accurate. In fact, you should always allow such connections. Firewall setups which don't allow connection on the 'lo' interface are pretty much broken.
cgk cgk

2012/5/18

I got the same error message when i tried to start greenfoot 2.2.0 on debian squeeze. where can i find the debug log? There is no entry in /var/log/syslog. cgk
davmac davmac

2012/5/18

~/.greenfoot/greenfoot-debuglog.txt. '~' is your home directory. '.greenfoot' may be hidden.
cgk cgk

2012/5/18

Hello davmac, thanks for your fast reply. Here is the log:
...
[ul]
    [li]Internal error: Could not start registry. Attempt number: 8
java.rmi.server.ExportException: Listen failed on port: 41790; nested exception is: 
        java.net.SocketException: Invalid argument
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:312)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:68)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:222)
        at rmiextension.BlueJRMIServer.startRegistry(BlueJRMIServer.java:138)
        at rmiextension.BlueJRMIServer.<init>(BlueJRMIServer.java:108)
        at rmiextension.RMIExtension.startup(RMIExtension.java:60)
        at bluej.extmgr.ExtensionWrapper.safeStartup(ExtensionWrapper.java:533)
        at bluej.extmgr.ExtensionWrapper.newExtension(ExtensionWrapper.java:209)
        at bluej.extmgr.ExtensionsManager.loadDirectoryExtensions(ExtensionsManager.java:164)
        at bluej.extmgr.ExtensionsManager.loadExtensions(ExtensionsManager.java:100)
        at bluej.extmgr.ExtensionsManager.getInstance(ExtensionsManager.java:61)
        at bluej.pkgmgr.PkgMgrFrame.<clinit>(PkgMgrFrame.java:295)
        at bluej.Main.processArgs(Main.java:126)
        at bluej.Main.access$000(Main.java:55)
        at bluej.Main$1.run(Main.java:97)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
        at java.awt.EventQueue.access$000(EventQueue.java:84)
        at java.awt.EventQueue$1.run(EventQueue.java:602)
        at java.awt.EventQueue$1.run(EventQueue.java:600)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.net.SocketException: Invalid argument
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
        at java.net.ServerSocket.bind(ServerSocket.java:328)
        at java.net.ServerSocket.<init>(ServerSocket.java:194)
        at rmiextension.LocalSocketFactory.createServerSocket(LocalSocketFactory.java:54)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
        ... 33 more
Internal error: Could not start registry. Attempt number: 9
java.rmi.server.ExportException: Listen failed on port: 56094; nested exception is: 
        java.net.SocketException: Invalid argument
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:312)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:68)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:222)
        at rmiextension.BlueJRMIServer.startRegistry(BlueJRMIServer.java:138)
        at rmiextension.BlueJRMIServer.<init>(BlueJRMIServer.java:108)
        at rmiextension.RMIExtension.startup(RMIExtension.java:60)
        at bluej.extmgr.ExtensionWrapper.safeStartup(ExtensionWrapper.java:533)
        at bluej.extmgr.ExtensionWrapper.newExtension(ExtensionWrapper.java:209)
        at bluej.extmgr.ExtensionsManager.loadDirectoryExtensions(ExtensionsManager.java:164)
        at bluej.extmgr.ExtensionsManager.loadExtensions(ExtensionsManager.java:100)
        at bluej.extmgr.ExtensionsManager.getInstance(ExtensionsManager.java:61)
        at bluej.pkgmgr.PkgMgrFrame.<clinit>(PkgMgrFrame.java:295)
        at bluej.Main.processArgs(Main.java:126)
        at bluej.Main.access$000(Main.java:55)
        at bluej.Main$1.run(Main.java:97)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
        at java.awt.EventQueue.access$000(EventQueue.java:84)
        at java.awt.EventQueue$1.run(EventQueue.java:602)
        at java.awt.EventQueue$1.run(EventQueue.java:600)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.net.SocketException: Invalid argument
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
        at java.net.ServerSocket.bind(ServerSocket.java:328)
        at java.net.ServerSocket.<init>(ServerSocket.java:194)
        at rmiextension.LocalSocketFactory.createServerSocket(LocalSocketFactory.java:54)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
        ... 33 more
Internal error: Could not launch RMI server
Exception: java.io.IOException: Could not start the registry.
java.io.IOException: Could not start the registry.
        at rmiextension.BlueJRMIServer.startRegistry(BlueJRMIServer.java:151)
        at rmiextension.BlueJRMIServer.<init>(BlueJRMIServer.java:108)
        at rmiextension.RMIExtension.startup(RMIExtension.java:60)
        at bluej.extmgr.ExtensionWrapper.safeStartup(ExtensionWrapper.java:533)
        at bluej.extmgr.ExtensionWrapper.newExtension(ExtensionWrapper.java:209)
        at bluej.extmgr.ExtensionsManager.loadDirectoryExtensions(ExtensionsManager.java:164)
        at bluej.extmgr.ExtensionsManager.loadExtensions(ExtensionsManager.java:100)
        at bluej.extmgr.ExtensionsManager.getInstance(ExtensionsManager.java:61)
        at bluej.pkgmgr.PkgMgrFrame.<clinit>(PkgMgrFrame.java:295)
        at bluej.Main.processArgs(Main.java:126)
        at bluej.Main.access$000(Main.java:55)
        at bluej.Main$1.run(Main.java:97)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
        at java.awt.EventQueue.access$000(EventQueue.java:84)
        at java.awt.EventQueue$1.run(EventQueue.java:602)
        at java.awt.EventQueue$1.run(EventQueue.java:600)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Commencing network test...
Local host address = 127.0.1.1
Local host ip = 127.0.1.1
Addresses for 'localhost':
 -> 127.0.0.1
 -> 0:0:0:0:0:0:0:1
(end of list).
Creating unbound server socket...
Successful.
Creating server socket bound to 127.0.0.1...
(!!) Creation of server socket failed; message=Invalid argument
(!!) Exception class: java.net.SocketException
Creating server socket bound to 0:0:0:0:0:0:0:1...
Successful.
Attempting to connect to 0:0:0:0:0:0:0:1:59213 with NO_PROXY...
Internal error: Update stats failed: java.net.SocketException: Network is unreachable
Successful.
Attempting to connect to 0:0:0:0:0:0:0:1:59213...
Successful.
Creating server socket bound to 127.0.1.1...
(!!) Creation of server socket failed; message=Invalid argument
(!!) Exception class: java.net.SocketException
Network test complete.[/li]
[/ul]
davmac davmac

2012/5/18

Looks like a Java or Debian bug, similar to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573742 (which is supposed to be fixed). You didn't provide the full log so I'm not sure what Java version you're running, but I suggest you try the Oracle JDK if you haven't already. (Otherwise: Is IPv4 not configured on your machine?)
cgk cgk

2012/5/18

Hello davemac thanks for your help. I found an explanation in German. See: http://www.rootz.de/2011/02/debian-6-0-squeeze-java-apps-haben-probleme-mit-netzwerkverbindungen/#more-1966 which links to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560044 it says to do sudo sed -i 's/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/' /etc/sysctl.d/bindv6only.conf sudo invoke-rc.d procps restart now greenfoot starts. Just to make it clear: my log starts with
Greenfoot run started: Fri May 18 12:13:42 CEST 2012
Greenfoot version: 2.2.0
Java version 1.6.0_26
Virtual machine: Java HotSpot(TM) Server VM 20.1-b02 (Sun Microsystems Inc.)
Running on: Linux 2.6.32-5-686-bigmem (i386)
Java Home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre
----
Internal error: Could not start registry. Attempt number: 0
java.rmi.server.ExportException: Listen failed on port: 33665; nested exception is: 
	java.net.SocketException: Invalid argument
	at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:312)
...
You need to login to post a reply