Create account / Log in

Socket Error

Issues with the Vassal engine.

Moderators: uckelman, Tim M

Socket Error

Postby RobS » October 7th, 2020, 2:20 am

My System:
Make: Custom Built Computer (2008)
OS: Windows 7
Processor: Intel Core 2 Quad CPU Q9300 @2.5GHz
Memory: 4BG (3GB usable)
System Type: 32-bit operating system
Video: AMD Radeon R7 360 series

I downloaded and installed the Win 32-bit version of Vassal3.4.5
I added C:\Program Files\VASSAL-3.4.5\* to my AVG anti-virus exceptions.

When I try to run a module, I get this:

Image

Here are the "details":

java.util.concurrent.ExecutionException: java.io.IOException: Cannot run program "C:\Program Files\VASSAL-3.4.5\jre\bin\java": CreateProcess error=2, The system cannot find the file specified
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at java.desktop/javax.swing.SwingWorker.get(SwingWorker.java:613)
at VASSAL.launch.AbstractLaunchAction$LaunchTask.done(AbstractLaunchAction.java:543)
at VASSAL.launch.Player$LaunchAction$1.done(Player.java:222)
at java.desktop/javax.swing.SwingWorker$5.run(SwingWorker.java:750)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:847)
at java.desktop/sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:857)
at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:310)
at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:242)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.io.IOException: Cannot run program "C:\Program Files\VASSAL-3.4.5\jre\bin\java": CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1142)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at VASSAL.tools.io.ProcessLauncher.launch(ProcessLauncher.java:110)
at VASSAL.tools.io.ProcessLauncher.launch(ProcessLauncher.java:86)
at VASSAL.tools.io.ProcessLauncher.launch(ProcessLauncher.java:64)
at VASSAL.launch.AbstractLaunchAction$LaunchTask.doInBackground(AbstractLaunchAction.java:428)
at VASSAL.launch.AbstractLaunchAction$LaunchTask.doInBackground(AbstractLaunchAction.java:239)
at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:483)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1109)
... 12 more
RobS
 
Posts: 95
Joined: June 19th, 2011, 5:10 pm

Re: Socket Error

Postby marktb1961 » October 7th, 2020, 2:39 am

I get this error when the module file is no longer there (eg name changed).
Have you tried opening it again from the Vassal File menu?
Platform used:
Vassal 3.4.10
MacOS Big Sur
iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 335
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Re: Socket Error

Postby jrwatts » October 7th, 2020, 6:38 am

We've seen this before. I'll bet you anything AVG quarantined java.exe from the C:\Program Files\VASSAL-3.4.5\jre\bin\java directory.

It would have done it as you installed, so adding VASSAL to the exceptions didn't help.
jrwatts
 
Posts: 125
Joined: April 29th, 2020, 10:30 pm

Re: Socket Error

Postby RobS » October 7th, 2020, 7:57 am

marktb1961 wrote:Have you tried opening it again from the Vassal File menu?

Yes, I'v tried opening the three modules shown in the picture in my previous post both by clicking on the modules and by selecting them from the Vassal file menu. Same "Socket Error" occurs.


jrwatts wrote:We've seen this before. I'll bet you anything AVG quarantined java.exe from the C:\Program Files\VASSAL-3.4.5\jre\bin\java directory.

It would have done it as you installed, so adding VASSAL to the exceptions didn't help.

Any way to fix this? I don't see anything in AVG's quarantine list.
RobS
 
Posts: 95
Joined: June 19th, 2011, 5:10 pm

Re: Socket Error

Postby uckelman » October 7th, 2020, 10:45 am

Thus spake RobS:
>
> "jrwatts" wrote:
> > We've seen this before. I'll bet you anything AVG quarantined
> > java.exe from the C:\Program Files\VASSAL-3.4.5\jre\bin\java
> > directory.
> >
> > It would have done it as you installed, so adding VASSAL to the
> > exceptions didn't help.
>
> Any way to fix this? I don't see anything in AVG's quarantine list.

Can you confirm whether C:\Program Files\VASSAL-3.4.5\jre\bin\java.exe
exists?

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8989
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Socket Error

Postby RobS » October 7th, 2020, 2:24 pm

uckelman wrote:Thus spake RobS:
>
> "jrwatts" wrote:
> > We've seen this before. I'll bet you anything AVG quarantined
> > java.exe from the C:\Program Files\VASSAL-3.4.5\jre\bin\java
> > directory.
> >
> > It would have done it as you installed, so adding VASSAL to the
> > exceptions didn't help.
>
> Any way to fix this? I don't see anything in AVG's quarantine list.

Can you confirm whether C:\Program Files\VASSAL-3.4.5\jre\bin\java.exe
exists?

--
J.

It does not. I see javaw.exe but mot java.exe
RobS
 
Posts: 95
Joined: June 19th, 2011, 5:10 pm

Re: Socket Error

Postby jrwatts » October 7th, 2020, 3:22 pm

I'm sure someone ran into this problem with AVG a few months ago, but I can't find the thread now. My best advice is to pay very careful attention to what AVG tells you as you install, and double-check the quarantined files immediately after to see if java.exe is there. Failing that, turn of AVG while you install, but then it might just kill java.exe once you turn it back on again!
jrwatts
 
Posts: 125
Joined: April 29th, 2020, 10:30 pm

Re: Socket Error

Postby RobS » October 7th, 2020, 8:34 pm

jrwatts wrote:I'm sure someone ran into this problem with AVG a few months ago, but I can't find the thread now. My best advice is to pay very careful attention to what AVG tells you as you install, and double-check the quarantined files immediately after to see if java.exe is there. Failing that, turn of AVG while you install, but then it might just kill java.exe once you turn it back on again!

That might be me you're thinking of a couple of months ago with version 3.3.2.

In any case, I checked my AVG quarantine again and java.exe was in there, so I restored it and made it an exception and Vassal seems to be working fine now.
Thank you for your help.
RobS
 
Posts: 95
Joined: June 19th, 2011, 5:10 pm


Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 3 guests