Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 9065 times and has 5 replies Next Thread
mumon66
Newbie



Italy
Joined: Oct 30, 2017
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
sad Online (Java Web Start) not working.

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:


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/technote...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.
[Oct 30, 2017, 5:58:37 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Online (Java Web Start) not working.

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:
su chmod +x /usr/bin/xprop

----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Oct 31, 2017, 5:20:03 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
mumon66
Newbie



Italy
Joined: Oct 30, 2017
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
sad Re: Online (Java Web Start) not working.

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:


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... shock
[Nov 6, 2017, 12:17:20 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Online (Java Web Start) not working.

Don't hate Java otherwise Sweet Home 3D would have never existed, moreover under Linux wink

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 developer
[Nov 6, 2017, 12:42:11 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
mumon66
Newbie



Italy
Joined: Oct 30, 2017
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Online (Java Web Start) not working.

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... wink

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.
[Nov 6, 2017, 2:38:27 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Online (Java Web Start) not working.

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 developer
[Nov 8, 2017, 9:47:11 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved