More issues with Java and WD web login

After updating to the latest version of Java, the web interface will just not open.

The Java GUI just hangs half complete, and I get the following error report:

Anybody got any ideas?

Java Plug-in 10.60.2.19
Using JRE version 1.7.0_60-b19 Java HotSpot™ 64-Bit Server VM
User home directory = /Users/MacUser 1

c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to

createGUI didn’t successfully complete
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1276)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1251)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1347)
at com.wd.nas4g.mapdrive.MapDrive.init(MapDrive.java:125)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.io.IOException: Cannot run program “mount”: error=1, Operation not permitted
at com.wd.nas4g.mapdrive.command.impl.MacMountStatusCmd.execute(MacMountStatusCmd.java:32)
at com.wd.nas4g.mapdrive.MapDrive.buildSharesUI(MapDrive.java:395)
at com.wd.nas4g.mapdrive.MapDrive.setSecure(MapDrive.java:614)
at com.wd.nas4g.mapdrive.MapDrive.createGUI2(MapDrive.java:465)
at com.wd.nas4g.mapdrive.MapDrive.access$1200(MapDrive.java:65)
at com.wd.nas4g.mapdrive.MapDrive$1.run(MapDrive.java:177)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302)
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.io.IOException: Cannot run program “mount”: error=1, Operation not permitted
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at java.lang.Runtime.exec(Runtime.java:617)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.wd.nas4g.mapdrive.command.impl.MacMountStatusCmd.execute(MacMountStatusCmd.java:26)
… 19 more
Caused by: java.io.IOException: error=1, Operation not permitted
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:184)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
… 23 more
Exception in thread “AWT-EventQueue-2” java.lang.RuntimeException: java.io.IOException: Cannot run program “mount”: error=1, Operation not permitted
at com.wd.nas4g.mapdrive.command.impl.MacMountStatusCmd.execute(MacMountStatusCmd.java:32)
at com.wd.nas4g.mapdrive.MapDrive.buildSharesUI(MapDrive.java:395)
at com.wd.nas4g.mapdrive.MapDrive.setNonSecure(MapDrive.java:607)
at com.wd.nas4g.mapdrive.MapDrive.access$2300(MapDrive.java:65)
at com.wd.nas4g.mapdrive.MapDrive$2$1.run(MapDrive.java:275)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
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.io.IOException: Cannot run program “mount”: error=1, Operation not permitted
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at java.lang.Runtime.exec(Runtime.java:617)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.wd.nas4g.mapdrive.command.impl.MacMountStatusCmd.execute(MacMountStatusCmd.java:26)
… 18 more
Caused by: java.io.IOException: error=1, Operation not permitted
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:184)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
… 22 more

Ruddy52,

I would recommend uninstalling Java from your system and attempting with a different Internet Browser such as Mozilla Firefox or Google Chrome for testing purposes.

Thanks, but i’ve tried that.

This seems to happen every time Java release an update. Java updated to 7.60, and once again, just as with 7.51, I cannot access my drives.

Why does this happen? Why can’t WD and Java seem to stay connected on updates?

same issue here …

in fact, it actually never worked for me …

if I ever come across a solution, I’ll post it here

Yes, i have had this issue on the Mac. I ended up:

  • changing to “always allow”, or something like that, the Java rights in the Safari preference,

  • adding the full http and https web addresses of your NAS (typically you seen these listed as security warnings) to the exceptions in the Java control panel. Don’t forget to add the port numbers at the end.

  • the Jave wheel is still not circling like on Windows, but the shares do appear after 1 to 2 seconds.

1 Like

Hi Etupes,

your tips got me going in the direction to fix part of my issue : the mount error has disappeared. Thanks !

I found a deeply buried option in safari
Safari > preferences > security > Internetplugins / Manage website settings > choose Java in the left list > in the right pane, the open sites are listed with a dropdown : four options (from once to always allow)

but also a seperate switch to activate : “execute in unsafe mode” <> “execute in safe mode” (it flips depending on what is active ; I was in safe mode, so I clicked it as “execute in unsafe mode”

(translations may be incorrect)

I still don’t see the shares, just a white box …

But not a stuck progress icon anymore and no more mount error.
So I’m getting close :slight_smile:

I have already added some adresses/ports to the java site exception list, but I need to review the list.
I’m also going to see if the port-forwarding or double NAT is involved.
I’m also going to double check permissions and maybe recreate the account WD : an error that is also in the logging is
network: Connecting https://xxxxx-yyyyyyy.wd2go.com/mapdrive/accessDenied.php with proxy=DIRECT

I’ll keep you posted …

Thanks again …

the update comes quicker than I thought myself…

I clicked in the whitebox and behold … my shares  --> no need to fiddle further with my config …

there are way too many entries in my java exception site list for the moment, I still need to clean that out

some examples (with xxx normally your device name) : 

https://xxx.wd2go.com/

http://xxx.wd2go.com/

http://xxx.wd2go.com:80/

https://xxx.wd2go.com:443/

with portnumbers 443 + 80 also once as the mapped external counterparts 8443 + 8080 (port forwarding)

and the same with /mapdrive/ suffixed to the URL with the port variants

and then the same with an external ip-adres too

(shotgun approach)

only one pair is needed normally ; it think the hostname with mapped outer port does the trick (if you have port forwarding active). That makes a lot of networking sense :slight_smile:

I’ll let you know when I get round to cleaning it out :slight_smile:

Got similar issue ona brand new Wintel machine - I could solve following these steps:

Environment:

    • IE 11 (11.0.9600.17498) / Windows 8.1 (6.3 - 9600)
    • Java 1.8 (1.8.0_31)

which are the most recent released versions at the time of writing (all updates installed, machine rebooted).

Using the Java control panel (open Control Panel and search for “Java”), include in the Sites Exception List (Security tab) both (MYNAS=name of your device, NNNNNN=serial number assigned by WD when device was registred -I guess-)

the first is required to launch the initial Java Applet (I think) the second is required because for some reason, another Java class is loaded from the http (and not https) “domain” (in Java security terms), this in “theory” no allowed.
The module loaded is
http://MYNAS.deviceNNNNNN.wd2go.com:80/Admin/webapp/htdocs/MapDrive.jar

This being done and assuming the Security Alerts have not yet been shown and acknowledged, you should get 4 alerts:

  1. IE: Unsecured site https://MYNAS.deviceNNNNNN.wd2go.com/ -
    The site’s (MYNAS.deviceNNNNNN.wd2go.com) certificate for https connection is from un unknown certifying authority,
    Authority is “CN=remotewd.com,OU=Branded Products,O=Western Digital,L=Mountain View,ST=CS,C=US”.
    If you want to continue, you have to ask to do so. Later, you will be proposed to install this “root” certificate to avoid this alert to be triggered each time you access the site the first time in a IE session
  2. Java: Unsecured site https://MYNAS.deviceNNNNNN.wd2go.com/ (same as 1 but from Java)
    This alert will remain each time you launch the Java Applet it is because the certifying authority is unknown from Java and alsdo bvecaus even if it was registered (there is a way to get hold of the site’s certificate for instance by looking at and exporting the certificate from IE clicking on the padlock next right to the URL and make it known from Java through the Java control panel, security tab and “Manage Certificates”, and iumport it in User certificates “Secured sites”)
  3. Java: Unsigned application from the https://MYNAS.deviceNNNNNN.wd2go.com/ domain (secured)
  4. Java: A signed application from “Western Digital Technologies, Inc.”

If you do what is described above and if register all certificates, you should be able to use WD2GO with IE11 without any security alert. It possibly applies -at least for parts- to Mac and other browsers such as Chrome, Safari…

Anyway this is just a bypass not THE solution, these alerts show that Western Digital WD2GO Applets should
be improved taking into account all the recent Security rules.

Hope it helps (it did for me, no alerts anymore)

Pierre