sad Online (Java Web Start) not working.

This topic has been viewed 15211 times and has 5 replies
Thread status: Active
Questions about Sweet Home 3D installation [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
mumon66
Posts: 3
Joined: Mon Oct 30, 2017 5:33 pm
Country: Italy
Contact:

Online (Java Web Start) not working.

Post by mumon66 »

Hi, I'm trying to use the Online version of SH3D; but I'm unable to make it work.
When I click on "Launch Sweet Home 3D with Java Web Start" in http://www.sweethome3d.com/download.jsp, I see the splash window, then the "downloading", and I get a security confirmation dialog; after confirming, nothing happens.

I've tried to run Java Web Start in a console, like this:

javaws "http://www.sweethome3d.com/SweetHome3D.jnlp"

I get these messages from Java:

Code: Select all

java.security.AccessControlException: access denied ("java.io.FilePermission" "/usr/bin/xprop" "execute")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.security.AccessController.checkPermission(AccessController.java:884)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at java.lang.SecurityManager.checkExec(SecurityManager.java:796)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1018)
        at java.lang.Runtime.exec(Runtime.java:620)
        at java.lang.Runtime.exec(Runtime.java:450)
        at java.lang.Runtime.exec(Runtime.java:347)
        at org.GNOME.Accessibility.AtkWrapper.<clinit>(AtkWrapper.java:34)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:805)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:886)
        at javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:611)
        at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:218)
        at net.sourceforge.jnlp.runtime.Boot.init(Boot.java:326)
        at net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:58)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:245)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:63)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:195)
java.security.AccessControlException: access denied ("java.io.FilePermission" "/usr/bin/xprop" "execute")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.security.AccessController.checkPermission(AccessController.java:884)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
        at java.lang.SecurityManager.checkExec(SecurityManager.java:796)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1018)
        at java.lang.Runtime.exec(Runtime.java:620)
        at java.lang.Runtime.exec(Runtime.java:450)
        at java.lang.Runtime.exec(Runtime.java:347)
        at org.GNOME.Accessibility.AtkWrapper.<clinit>(AtkWrapper.java:34)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:805)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:886)
        at javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:611)
        at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:218)
        at net.sourceforge.jnlp.runtime.Boot.init(Boot.java:326)
        at net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:58)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:245)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:63)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:195)
Codebase matches codebase manifest attribute, and application is signed. Continuing. See: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/no_redeploy.html for details.
It sits there and stays.

I cannot understand what's the base problem; it's clear that the applet wants to run /usr/bin/xprop but it cannot; is it that the issue?

I'm using Ubuntu 17.04 with IcedTea 1.6.2-3.1ubuntu3.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Online (Java Web Start) not working.

Post by Puybaret »

Java Web Start version and Online applet are two different parts of Sweet Home 3D, but from your description, I guess its the Java Web Start version you tried. From the error, you may not have the rights to run xprop. Check its rights and grant yourself the right to run it with a command looking like:

Code: Select all

su chmod +x /usr/bin/xprop
Emmanuel Puybaret, Sweet Home 3D creator
mumon66
Posts: 3
Joined: Mon Oct 30, 2017 5:33 pm
Country: Italy
Contact:

Re: Online (Java Web Start) not working.

Post by mumon66 »

You're right, Java Web Start and not Online.

Permissions on xprop are already set:

$ ls -la /usr/bin/xprop
-rwxr-xr-x 1 root root 37912 May 6 2015 /usr/bin/xprop

Mysterious, but that's not the issue: I have tested javaws the same under Arch Linux, where there's no /usr/bin/xprop; "cannot access" is thrown, but then everything works OK.

I've gone a bit further by launching:

javaws -noupdate -verbose -jnlp "http://www.sweethome3d.com/SweetHome3D.jnlp"

After a couple of minutes and tons of messages, I get this messages:

Code: Select all

Selected proxies: [HTTP @ localhost/127.0.0.1:3128]
call privileged method: addSingleInstanceListener
           arg: com.eteks.sweethome3d.SweetHome3D$3@57ca7116
        result: null
Starting SingleInstanceServer on portServerSocket[addr=localhost/127.0.0.1,localport=46523]
Exception in thread "AWT-EventQueue-1" java.lang.ExceptionInInitializerError
        at com.eteks.sweethome3d.swing.HomePane.checkClipboardContainsHomeItemsOrFiles(Unknown Source)
        at com.eteks.sweethome3d.swing.HomePane.access$2800(Unknown Source)
        at com.eteks.sweethome3d.swing.HomePane$65.flavorsChanged(Unknown Source)
        at com.eteks.sweethome3d.swing.HomePane.addClipboardListener(Unknown Source)
        at com.eteks.sweethome3d.swing.HomePane.<init>(Unknown Source)
        at com.eteks.sweethome3d.swing.SwingViewFactory.createHomeView(Unknown Source)
        at com.eteks.sweethome3d.viewcontroller.HomeController.getView(Unknown Source)
        at com.eteks.sweethome3d.HomeFramePane.<init>(Unknown Source)
        at com.eteks.sweethome3d.HomeFrameController.getView(Unknown Source)
        at com.eteks.sweethome3d.HomeFrameController.displayView(Unknown Source)
        at com.eteks.sweethome3d.SweetHome3D$4.collectionChanged(Unknown Source)
        at com.eteks.sweethome3d.model.CollectionChangeSupport.fireCollectionChanged(Unknown Source)
        at com.eteks.sweethome3d.model.HomeApplication.addHome(Unknown Source)
        at com.eteks.sweethome3d.SweetHome3D.showDefaultHomeFrame(Unknown Source)
        at com.eteks.sweethome3d.SweetHome3D.start(Unknown Source)
        at com.eteks.sweethome3d.SweetHome3D$5.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com/eteks/sweethome3d/swing/HomeTransferableList
        at com.eteks.sweethome3d.swing.HomeTransferableList.<clinit>(Unknown Source)
        ... 30 more
Caused by: java.lang.ClassNotFoundException: com/eteks/sweethome3d/swing/HomeTransferableList
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at java.awt.datatransfer.DataFlavor.tryToLoadClass(DataFlavor.java:163)
        at java.awt.datatransfer.DataFlavor.initialize(DataFlavor.java:537)
        at java.awt.datatransfer.DataFlavor.<init>(DataFlavor.java:501)
        ... 31 more
Then, nothing more happens, although javaws doesn't end.

So, it opens a listener on localhost port 46523 (yes, I have a cntlm running on port 3128 and no, enabling direct connection has no effect), but then... what's happening?

I hate Java... [:O]
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Online (Java Web Start) not working.

Post by Puybaret »

Don't hate Java otherwise Sweet Home 3D would have never existed, moreover under Linux [;)]

But why not trying another solution available at download page? You could try the installer or the Jar executable version.
Emmanuel Puybaret, Sweet Home 3D creator
mumon66
Posts: 3
Joined: Mon Oct 30, 2017 5:33 pm
Country: Italy
Contact:

Re: Online (Java Web Start) not working.

Post by mumon66 »

Of course, I'm joking... That's only to curse a bit the ones who invented Java logging system, making it both way too verbose and hard to debug... [;)]

I already use the installer version, and it works (thanks!); the problem is I've installed the one packaged from maintainers. There's a several days delay from a new version is out to it's updated by maintainer - and I couldn't wait to see the new "punch-through windows" feature.

What's worse is that the different Linux distributions I use don't upgrade versions in sync; so I happened to open a file with and older version of SH3D, and I feared to break it.

Moreover, I'd like to share .sh3d files with Linux users, without forcing them to install the package.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Online (Java Web Start) not working.

Post by Puybaret »

Believe it or not, the stack traces that appears in logs are a great invention. They save a lot of time in debugging.
the problem is I've installed the one packaged from maintainers
Please use an installer provided at download page.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest