Audio and Prompts Discussions

Flat
javaws ... SpeechSubmission.jnlp not starting
User: sven9
Date: 3/9/2018 7:57 am
Views: 6979
Rating: 0

Hi.

I contributed some speech sumissions two years ago. Now I wanted to add some more. I followed the advice given for Ubuntu 16.04 (I have Ubuntu 17.10)

http://voxforge.org/home/docs/faq/faq/java-webstart-and-voxforge-speechsubmission-application

but it fails as follows:

 # javaws http://read.voxforge1.org/speech/SpeechSubmission.jnlp

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)

The application is a local file. Codebase validation is disabled. See: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/no_redeploy.html for details.

The application is a local file. Codebase validation is disabled. See: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/no_redeploy.html for details.

netx: Initialization Error: Could not initialize application. ()

net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. The application has not been initialized, for more information execute javaws from the command line.

at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:813)

at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:532)

at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:936)

Caused by: java.lang.NullPointerException

at net.sourceforge.jnlp.security.SecurityDialogs.showMatchingALACAttributePanel(SecurityDialogs.java:405)

at net.sourceforge.jnlp.runtime.ManifestAttributesChecker.checkApplicationLibraryAllowableCodebaseAttribute(ManifestAttributesChecker.java:426)

at net.sourceforge.jnlp.runtime.ManifestAttributesChecker.checkAll(ManifestAttributesChecker.java:122)

at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:777)

at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:285)

at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)

at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)

at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)

at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:805)

... 2 more

What to do?
Thanks for your time.

--- (Edited on 2018-03-09 14:57:07 [GMT+0100] by sven9) ---

Re: javaws ... SpeechSubmission.jnlp not starting
User: kmaclean
Date: 3/9/2018 9:51 am
Views: 50
Rating: 1

>I followed the advice given for Ubuntu 16.04 (I have Ubuntu 17.10)... but it fail...

Just tried it with Oracle java and Ubuntu 16.04 and it works...which, unfortunately, does not help you any...

Which flavor of Java are you using?

The simplest fix is to download the jar file directly (which is what .jnlp does from the browser...):

$ wget http://read.voxforge1.org/speech/speechrecorder_standalone.jar

and run it in Java:

$ java -jar speechrecorder_standalone.jar

thanks,

Ken

 

Please note: I am currently working on an HTML5/Javascript version of the speech submission app which should be ready in a couple of weeks...

--- (Edited on 3/9/2018 10:51 am [GMT-0500] by kmaclean) ---

Re: javaws ... SpeechSubmission.jnlp not starting
User: sven9
Date: 3/13/2018 4:00 am
Views: 4
Rating: 0

Hello Ken.

Thanks for your help. Running the downloaded jar file worked perfectly and I recorded and uploaded some more data.

My java version:

openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.17.10.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

Maybe you can add the two commands to the mentioned FAQ entry or we just look forward to the HTML5 version of the tool :-)

Greeting

Sven

 

--- (Edited on 2018-03-13 10:00:57 [GMT+0100] by sven9) ---

--- (Edited on 2018-03-13 10:18:22 [GMT+0100] by sven9) ---

Re: javaws ... SpeechSubmission.jnlp not starting
User: kmaclean
Date: 3/13/2018 8:10 am
Views: 2443
Rating: 0

>Maybe you can add the two commands to the mentioned FAQ entry

done

--- (Edited on 3/13/2018 9:10 am [GMT-0400] by kmaclean) ---

PreviousNext