Hello, I am having a problem with Avast blocking the program Greenfoot from launching on my computer. I know that Avast is causing the problem because Greenfoot works fine when I uninstall the Avast software. I reviewed the issue with the support team on Greenfoot and they told me a recent Avast update is causing the problem. This update is described here: http://stackoverflow.com/questions/19392087/cant-connect-to-localhost-after-avast-antivirus-latest-update Also, the way Greenfoot operates is described here: http://www.greenfoot.org/doc/firewall As you can see, Avast is blocking a connection needed to run the Greenfoot program. How can I configure the settings in Avast in order to allow the program to run properly? I’ve tried everything I could messing around with the settings and referring to other websites for information, but I just don’t know how. Any help would be appreciated. I don’t want to have to uninstall my Avast software in order to run Greenfoot.
Here is a debug log for Greenfoot, from the last time I attempted to run it:
Greenfoot run started: Tue Dec 17 00:47:43 EST 2013
Greenfoot version: 2.3.0
Java version 1.7.0_45
Virtual machine: Java HotSpot™ 64-Bit Server VM 24.45-b08 (Oracle Corporation)
Running on: Windows 7 6.1 (amd64)
Java Home: C:\Program Files\Java\jdk1.7.0_45\jre
Opening project: C:\Program Files (x86)\Greenfoot\lib\greenfoot\startupProject
1387259264998: Listening for JDWP connection on address: javadebug
Connected to debug VM via dt_shmem transport…
Communication with debug VM fully established.
Internal error: Could not launch RMI server
Exception message: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection timed out: connect
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection timed out: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:177)
at rmiextension.BlueJRMIServer.(BlueJRMIServer.java:111)
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.Project.openProject(Project.java:467)
at bluej.Main.processArgs(Main.java:158)
at bluej.Main.access$000(Main.java:55)
at bluej.Main$1.run(Main.java:97)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.(Socket.java:425)
at java.net.Socket.(Socket.java:208)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
… 30 more
Commencing network test…
Local host address = 192.168.1.104
Local host ip = 192.168.1.104
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…
Successful.
Attempting to connect to 127.0.0.1:49337 with NO_PROXY…
(!!) Couldn’t accept connection: Accept timed out
(!!) Exception class: java.net.SocketTimeoutException
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:49339 with NO_PROXY…
Successful.
Attempting to connect to 0:0:0:0:0:0:0:1:49339…
Successful.
Creating server socket bound to 192.168.1.104…
Successful.
Attempting to connect to 192.168.1.104:49342 with NO_PROXY…
(!!) Couldn’t accept connection: Accept timed out
(!!) Exception class: java.net.SocketTimeoutException
Network test complete.
(!!) Couldn’t connect to local address: Connection refused: connect
(!!) Exception class: java.net.ConnectException