• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

An error occurred while launching/running the application.

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sir
when we started the application then there is error and our code is (jnlp file) which we written for this application--------------


<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for SwingSet2 Demo Application -->
<jnlp
codebase="file:///home/guest/seema/ScormPlayer/"
href = "Player.jnlp" >
<!--jnlp
codebase = "http://172.28.44.20:8080/EditorFrame" href = "EditorFrame.jnlp" -->
<information>
<title>ScormPlayer</title>
<vendor>Scorm</vendor>
<homepage href="http://www.google.com" />
<description>Player</description>
<description kind="short">A demo of the capabilities
of the ReloadEditor Graphical User Interface.</description>
<icon href="file:///home/guest/seema/ScormPlayer/reload-scormplayer.gif"/>
<offline-allowed/>
<security>
<all-permissions/>
</security>

</information>
<resources>
<j2se version="1.4+"/>

<jar href="file:///home/guest/seema/ScormPlayer/scorm.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/ant.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/bootstrap.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/bsh-core-2.0b1.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/catalina.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/commons-beanutils.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/commons-collections.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/commons-digester.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/commons-logging-api.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/jakarta-regexp-1.2.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/jasper-compiler.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/jasper-runtime.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/naming-common.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/jdom.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/naming-resources.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-diva.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-dweezil.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-jdom.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-moonunit.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/reload-support.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/servlet.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/servlets-common.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/servlets-default.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/servlets-invoker.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/struts.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/tomcat-coyote.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/tomcat-http11.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/tomcat-util.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/xercesImpl.jar" />
<jar href="file:///home/guest/seema/ScormPlayer/lib/xml-apis.jar" />
</resources>
<application-desc main-class="uk.ac.reload.scormplayer.client.gui.ScormPlayerFrame"/>
</jnlp>
~
this is the error which is occured------------------------------

Unexpected exception: java.lang.ExceptionInInitializerError

java.lang.ExceptionInInitializerError

at uk.ac.reload.scormplayer.client.gui.ScormPlayerFrame.<init>(ScormPlayerFrame.java:178)
at uk.ac.reload.scormplayer.client.gui.ScormPlayerFrame.main(ScormPlayerFrame.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission scormplayer.properties.file read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at uk.ac.reload.scormplayer.properties.ScormPlayerProperties.<clinit>(ScormPlayerProperties.java:59)
... 13 more
sir please give the reply very quickly as soon as possible.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see you put the </resource> that I suggested in the previous post...why keep starting a new thread?

also http://faq.javaranch.com/view?EaseUp

and looks like you need to set your properties file permissions to be readable by your application....
 
Beware the other head of science - it bites! Nibble on this message:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic