JNLP security error?

I got the file in the right directory and still it gives me a Security Error issue!
Anyone would know what I am doing wrong? On Windows.
Thanks,
george
Category: Security Error
access denied (java.io.FilePermission D:\Launch\images\splash.gif read)

here is more of the error message:
java.security.AccessControlException: access denied (java.io.FilePermission D:\Launch\images\splash.gif 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.checkRead(Unknown Source)
     at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
     at sun.awt.SunToolkit.getImage(Unknown Source)
     at javax.swing.ImageIcon.<init>(Unknown Source)
???-->     at javax.swing.ImageIcon.<init>(Unknown Source)
     at myStartSplash.<init>(myStartSplash.java:7)
     at LanchApp$SplashStarter.<init>(LanchApp.java:18)
     at LanchApp.<init>(LanchApp.java:7)

Similar Messages

  • Java Security Error while Launching the Application through JNLP

    Hi!,
    I have a problem in launching my Application through JNLP. It is giving the Error dialog as "Unable to lauch application" with the dialog title as "Java Security Error".
    I don't know why this problem is coming but when I have reset my profile on my system & then I tried to launch the same application & I got success.
    Can anyone suggest me what was the problem?
    Pradeep Gupta

    hi,
    usually it is the web dynpro launch system that is causing the issue, OR there is a misconfiguration in the backend like the tasks are set up with com.sap/esslea in the backend and the xml file is referencing sap.com <SWITCH>/esslea and the dynpro is showing this as not deployed.
    Regards
    Sharanya Rajagopal

  • JNLP Security Question

    Hi,
    I am trying to implement some JNLP security in my application. I want my application to have read,write permissions to a specific directory under user home.The tag that I used in the JNLP file is as below,
    <security>
                  <j2ee-application-client-permissions/>
              </security>  I used a .java.policy file under user home directory. The permissions in the file is as follows,
    grant codeBase "http://localhost:8080/myapp/xxxxx.jar" {
        permission java.io.FilePermission "file:${user.home}\\myapp\\-", "read, write";
    };I tried with "-" as well as "*" for the permission but none working for me. My application requires to create some log file under "{user.home}\\myapp\\" directory . Though the directory exists , still the application complains about access denied to that directory while launching the application. The error is as below,
    access denied (java.io.FilePermission C:\Documents and Settings\XXXXX\myapp read)Any idea what I am missing ? I tried doing the same with the respective JRE\\lib\\security\\ , java.policy as well as javaws.policy instead of the {user.home}\\.java.policy file, but none of them working for me.
    Appreciate if you could point out any way of resolving this.

    All Permissions working fine. With all permissions it's able to read/write all directories/drives. But I need specific permissions to provide only read/write to a particular directory. The issue is that Java doesn't respect GPO settings in windows and we should be able to restrict our application to access other drives, directories etc. The below link says we can do that with the help of a policy file. I was trying that but with no luck. Still appreciate if someone can point me any other way where I can restrict the JWS application to access other drive/directories using a policy file, any other way.
    [http://download.oracle.com/javase/1.4.2/docs/guide/security/permissions.html]
    [http://download-llnw.oracle.com/javase/6/docs/technotes/guides/security/PolicyFiles.html]

  • JNLP Launching Error

    Hi,
    I am facing the problem of launching an application through JNLP file.
    When I am launching the application with JNLP file as
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for RMI-IIOP sample -->
    <jnlp spec="1.0+" codebase="http://localhost:8181"
                                  href="AyaamClient/launch.jnlp">
    <information>
    <title>Ayaam Network</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <description>Ayaam Network</description>
    <description kind="short">Ayaam Network Application </description>
    <icon href="resources/splash.jpg"/>
    <icon kind="splash" href="resources/splash.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.6+"/>
    <jar href="AyaamClient/Startup.jar" />
    <extension href="AyaamClient/Activation.jnlp"/>
    </resources>
    <application-desc main-class="com.ayaam.applicationFramework.gui.view.uicontainer.concomponent.network.AymNetWorkDialog">
    </application-desc>
    </jnlp>
    The application is working fine i.e. successfully launched and i'm able to perform my operation but when I am chaning the codebase="http://localhost:8181" to codebase="http://10.249.8.243:8181" it is not starting the application.
    The only change that i am making in JNLP file is that I am changing the localhost with the IP address of server. The changed JNLP file for reference is
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for RMI-IIOP sample -->
    <jnlp spec="1.0+" codebase="http://10.249.8.243:8181"
                                  href="AyaamClient/launch.jnlp">
    <information>
    <title>Ayaam Network</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <description>Ayaam Network</description>
    <description kind="short">Ayaam Network Application </description>
    <icon href="resources/splash.jpg"/>
    <icon kind="splash" href="resources/splash.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.6+"/>
    <jar href="AyaamClient/Startup.jar" />
    <extension href="AyaamClient/Activation.jnlp"/>
    </resources>
    <application-desc main-class="com.ayaam.applicationFramework.gui.view.uicontainer.concomponent.network.AymNetWorkDialog">
    </application-desc>
    </jnlp>
    The error that is coming is
    JNLPException[category: Launch File Error : Exception: null : LaunchDesc:
    at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
         at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
         at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    #### Java Web Start Error:
    #### JAR resources in JNLP file are not signed by same certificate
    Although I have signed all the JAR files with the same JDK version.
    It is working fine when I am launching the application with localhost but as soon as I am changing the localhost with the port number of server it is throwing exception.
    Please suggest how to remove this error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    bjamin wrote:
    ..I need to deploy an application (which is not mine)..Wow. Can you say NOT MY FAULT, PLEASE SOLVE IT FOR ME 'CAUSE I HAVE NO IDEA WHAT I'M DOING AND LIED TO GET THIS JOB any louder?
    Well, before you get any (further) misconceptions, I will point out that nobody here cares who wrote the application..
    .. using java web start.
    I succeeded deploying 'Sun dynamic tree example', but when I try to launch my app, the browser print.. 'Print' or 'display'? The first I've never heard of, the second is relatively easy to fix.
    But when I click on the jnlp file (from the windows explorer), the application start !!!
    How can I debug my problem ???Get some CRC into your keyboard. It might end up electrocuting you, but at least it will unstick that '?' key.

  • Help, Security Error

    Hi, i'm new to JWS and JNLP. I downloaded the API & Specification and demo program from Sun and have tried it out and read the APi & Specification. I edited the JNLP file that comes with the demo program(below) replacing all the neccessary item to my own program.
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- file Hello.jnlp -->
    <jnlp codebase="http://localhost:80/demo"
    href="http://localhost:80/demo/JNLP.jnlp">
    <information>
    <title>I AM here</title>
    <vendor>me</vendor>
    <icon href="HelloJNLP.jpg"/>
    </information>
    <resources>
    <j2se version="1.2+"/>
    <jar href="HelloJNLP.jar"/>
    </resources>
    <application-desc main-class="HelloJNLP"/>
    </jnlp>
    But when i try to run it using a tomcat server, there is this security error which i dun understand,
    Category: Security Error
    access denied (java.util.PropertyPermission user.dir read)
    I tried signing my jar file but the same thing still happen. I tried the same approach with other demo program from my JSDK but it still come out with the same error.
    Could anyone help enlighten me on this. Thank you very much.

    access denied (java.util.PropertyPermission user.dir
    read)
    The sandbox permission set does not allow this Property permission.
    I tried signing my jar file but the same thing still
    happen.
    When you signed your jar did you add the request to the jnlp file:
    <security>
    <all-permissions/>
    </security>
    without this Java Web Start will not grant additional permissions to signed applications.
    /Dietz

  • JavaWS Security Error

    Hello all,
    I am currently using Ubuntu 7.10 with Sun Java Web Start 5.0 installed.
    When I launch the Jnlp file, I receive the following:
    General:
    An error occurred while launching/running the application.
    Title: WebScarab
    Vendor: Rogan Dawes
    Category: Security Error
    Unsigned application requesting unrestricted access to system
    Unsigned resource: http://dawes.za.net/rogan/webscarab/webscarab.jar
    Exception:
    JNLPException[category: Security Error : Exception: null : LaunchDesc:
    <jnlp spec="1.0" codebase="http://dawes.za.net/rogan/webscarab/" href="http://dawes.za.net/rogan/webscarab/WebScarab.jnlp">
    <information>
    <title>WebScarab</title>
    <vendor>Rogan Dawes</vendor>
    <homepage href="http://dawes.za.net/rogan/webscarab/"/>
    <description>A web application testing tool.</description>
    <description kind="short">A web application testing tool.</description>
    <description kind="tooltip">WebScarab</description>
    <icon href="http://dawes.za.net/rogan/webscarab/icon.gif" width="64" kind="default"/>
    <icon href="http://dawes.za.net/rogan/webscarab/splash.gif" kind="splash"/>
    <shortcut online="true">
    <menu submenu="WebScarab"/>
    </shortcut>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <property name="com.apple.macos.useScreenMenuBar" value="true"/>
    <property name="apple.laf.useScreenMenuBar" value="true"/>
    <property name="com.apple.mrj.application.apple.menu.about.name" value="WebScarab"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.6.0"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.5.0_06"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.5.0_05"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.5.0_04"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.5.0_03"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.5.0_02"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.5.0"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.4.2_10"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.4.2_09"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.4.2_08"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.4.2_07"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.4.2_06"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.4.2_05"/>
    <j2se initial-heap-size="134217728" max-heap-size="536870912" href="http://java.sun.com/products/autodl/j2se" version="1.4.2_04"/>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4.2_03"/>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4.2_02"/>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4.2_01"/>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4.2+"/>
    <jar href="http://dawes.za.net/rogan/webscarab/webscarab.jar" download="eager" main="false"/>
    <jar href="http://dawes.za.net/rogan/webscarab/lib/bsf-2.3.0.jar" download="eager" main="false"/>
    <jar href="http://dawes.za.net/rogan/webscarab/lib/bsh-2.0b1.jar" download="eager" main="false"/>
    <jar href="http://dawes.za.net/rogan/webscarab/lib/chardet.jar" download="eager" main="false"/>
    <jar href="http://dawes.za.net/rogan/webscarab/lib/concurrent.jar" download="eager" main="false"/>
    <jar href="http://dawes.za.net/rogan/webscarab/lib/htmlparser.jar" download="eager" main="false"/>
    <jar href="http://dawes.za.net/rogan/webscarab/lib/jcommon-0.8.7.jar" download="eager" main="false"/>
    <jar href="http://dawes.za.net/rogan/webscarab/lib/jfreechart-0.9.12.jar" download="eager" main="false"/>
    <jar href="http://dawes.za.net/rogan/webscarab/lib/tagsoup-1.0rc2.jar" download="eager" main="false"/>
    <jar href="http://dawes.za.net/rogan/webscarab/lib/wsdl4j.jar" download="eager" main="false"/>
    <extension href="http://dawes.za.net/rogan/webscarab/lib/help.jnlp" name="Java Help"/>
    </resources>
    <application-desc main-class="org.owasp.webscarab.WebScarab"/>
    </jnlp> ]
    at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(LaunchDownload.java:1054)
    at com.sun.javaws.LaunchDownload.checkSignedResources(LaunchDownload.java:943)
    at com.sun.javaws.Launcher.continueLaunch(Launcher.java:821)
    at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:515)
    at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
    at com.sun.javaws.Launcher.run(Launcher.java:165)
    at java.lang.Thread.run(Thread.java:595)
    The JNLP file content is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- where the jnlp file lives on the web -->
    <jnlp spec="1.0" codebase="http://dawes.za.net/rogan/webscarab" href="WebScarab.jnlp">
    <information>
    <title>WebScarab</title>
    <vendor>Rogan Dawes</vendor>
    <homepage href="http://dawes.za.net/rogan/webscarab/" />
    <description>A web application testing tool.</description>
    <description kind="short">A web application testing tool.</description>
    <description kind="tooltip">WebScarab</description>
    <icon href="http://dawes.za.net/rogan/webscarab/icon.gif" width="64" height="64" />
    <icon href="http://dawes.za.net/rogan/webscarab/splash.gif" kind="splash" />
    <!-- allow app to run without Internet access -->
    <offline-allowed/>
    <!-- hints for setting up shortcuts -->
    <!-- Prefer a shortcut for online operation -->
    <shortcut online="true">
    <!-- create desktop shortcut -->
    <desktop/>
    <!-- create menu item for this app under the major heading WebScarab -->
    <menu submenu="WebScarab"/>
    </shortcut>
    </information>
    <security>
    <all-permissions />
    </security>
    <resources>
    <property name="com.apple.macos.useScreenMenuBar" value="true"/>
    <property name="apple.laf.useScreenMenuBar" value="true"/>
    <property name="com.apple.mrj.application.apple.menu.about.name" value="WebScarab"/>
    <!-- Acceptable JVMs in preferred order, best first -->
    <j2se version="1.6.0" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.5.0_06" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.5.0_05" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.5.0_04" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.5.0_03" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.5.0_02" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.5.0" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.4.2_10" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.4.2_09" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.4.2_08" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.4.2_07" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.4.2_06" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.4.2_05" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.4.2_04" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
    <j2se version="1.4.2_03" href="http://java.sun.com/products/autodl/j2se" />
    <j2se version="1.4.2_02" href="http://java.sun.com/products/autodl/j2se" />
    <j2se version="1.4.2_01" href="http://java.sun.com/products/autodl/j2se" />
    <!-- 1.4.2+ means any 1.4.2 version not containing a dash e.g. not 1.4.2-beta -->
    <j2se version="1.4.2+" href="http://java.sun.com/products/autodl/j2se" />
    <!-- application code, load before launch -->
    <jar href="webscarab.jar" download="eager"/>
    <jar href="lib/bsf-2.3.0.jar" download="eager"/>
    <jar href="lib/bsh-2.0b1.jar" download="eager"/>
    <jar href="lib/chardet.jar" download="eager"/>
    <jar href="lib/concurrent.jar" download="eager"/>
    <jar href="lib/htmlparser.jar" download="eager"/>
    <jar href="lib/jcommon-0.8.7.jar" download="eager"/>
    <jar href="lib/jfreechart-0.9.12.jar" download="eager"/>
    <jar href="lib/tagsoup-1.0rc2.jar" download="eager"/>
    <jar href="lib/wsdl4j.jar" download="eager"/>
    <extension name="Java Help" href="lib/help.jnlp"/>
    </resources>
    <!-- JNI native Windows .dll code -->
    <resources os="Windows" arch="x86">
    <nativelib href="lib/windows_x86.jar" download="eager"/>
    </resources>
    <!-- application class with main method -->
    <application-desc main-class="org.owasp.webscarab.WebScarab">
    <!-- <argument>Lite</argument> -->
    </application-desc>
    </jnlp>
    Any help is appreciated. It has been working for months, but the last few days I have been unable to run the application.

    According to your post archive webscarab.jar is not signed. Is it? You can check signature files presence under META-INF, simply opening archive with WinZip.
    A suggestion: use code tag to post everything other than your own words (code, jnlp, exceptions, etc.)

  • JNLPException: security error how to resolve

    "JNLPException[category: security error : Exception: null : LaunchDesc: null " it happened when run app.jnlp on the java web start.
    the app.jnlp is following:
    {code}<?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
    codebase="http://192.168.0.7:8080/b2/c8/splash/">
    <information>
    <title>A User-Friendly App</title>
    <vendor>Mauro Inc.</vendor>
    <homepage href="home.html"/>
    <description>Install Your programs via the Web, quickly and effectively!</description>
    <description kind="short">An example of a simple Java-launched Installator</description>
    <security>
    <all-permissions/>
    </security>
    <offline-allowed/>
    </information>
    <resources>
    <j2se version="1.5+"/>
    <extension
    name="Splash Window"
    href="splash.jnlp">
    </extension>
    <jar href="app.jar"/>
    <jar href="first.jar"/>
    <jar href="second.jar"/>
    <jar href="third.jar"/>
    </resources>
    <application-desc/>
    </jnlp>
    {code}
    the splash.jnlp is following:
    {code}
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
         spec="1.0+"
         codebase="http://192.168.0.7:8080/b2/c8/splash//">
         <information>
              <title>Install Your Program Via the Web,quickly and effectively!</title>
              <vendor>Mauro Inc.</vendor>
              <homepage href="home.html"/>
              <description>Install Your Program Via the Web,quickly and effectively!</description>
              <description kind="short">A simple Java-launched Installator</description>
              <offline-allowed/>
         </information>
         <resource>
              <j2se version="1.5+"/>
              <jar href="splash.jar"/>
         </resource>
         <installer-desc main-class="com.fei.Splash"/>
    </jnlp>
    {code}
    The error message is that reference many host computer in one resource.But use other jar file,it do not have error.In this error,I use a singleton pattem in the jar file.
    thanks for your attention.
    Edited by: feiyangdefei on Jan 28, 2008 6:04 AM
    Edited by: feiyangdefei on Jan 28, 2008 6:06 AM
    Edited by: feiyangdefei on Jan 28, 2008 6:08 AM

    by the way,the App.java is following:
    import java.awt.BorderLayout;
    import java.awt.event.WindowAdapter;
    import javax.swing.JLabel;
    import javax.swing.JFrame;
    import javax.swing.ImageIcon;
    import java.awt.event.WindowEvent;
    public class App extends JFrame{
         public App(){
              ImageIcon img =
                   new ImageIcon(getClass().getClassLoader().getResource("images/back.jpg"));
              JLabel jlabel = new JLabel(img);
              jlabel.setLayout(new BorderLayout());
              jlabel.add(new JLabel("An Application..."));
              getContentPane().add(jlabel);
              addWindowListener(new WindowAdapter(){
                   public void windowClosing(WindowEvent e){
                        System.exit(0);
              pack();
              setVisible(true);
         public static void main(String[] args){
              App app = new App();
    }and the Splash.java is following:
    import java.awt.*;
    import javax.swing.*;
    import javax.jnlp.*;
    import java.net.URL;
    public class Splash extends JWindow implements Runnable{
      private ClassLoader loader;
      private static ExtensionInstallerService extensionInstaller;
      private JLabel ImageLabel;
      private JLabel MessageLabel  = new JLabel();
      private JLabel animLabel;
      private JLabel resourceLabel  = new JLabel();
      private static Splash splash;
      //data
      private String[] jarSequence= {"first.jar", "second.jar", "third.jar"};
      private String[] msgSequence= {
        "Now Even More Powerful!",
        "Incredibly Fast And Reliable!",
        "Ready To Go?"};
      private String codebase = "http://192.168.0.7:8080/jwstest/";
       * Private Constructor - Implements the Singleton Design Pattern
      private Splash() {
        super();
        loader = getClass().getClassLoader();
        //prepare UI
        //ImageLabel = new JLabel(new ImageIcon(loader.getResource("images/background.jpg")));
        ImageLabel = new JLabel(new ImageIcon("images/background.jpg"));
        //animLabel = new JLabel(new ImageIcon(loader.getResource("images/working.gif")));
        animLabel = new JLabel(new ImageIcon("images/background.jpg"));
        resourceLabel.setBorder(BorderFactory.createEmptyBorder(6,6,6,6));
        ImageLabel.setLayout(new BorderLayout());
        ImageLabel.setBorder(BorderFactory.createRaisedBevelBorder());
        ImageLabel.add(resourceLabel, BorderLayout.NORTH);
        ImageLabel.add(MessageLabel, BorderLayout.SOUTH);
        ImageLabel.add(animLabel, BorderLayout.CENTER);
        getContentPane().setLayout(new BorderLayout());
        getContentPane().add(ImageLabel, BorderLayout.CENTER);
        pack();
        //Centers the window
        Dimension size = getSize();
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        if (size.height > screenSize.height) {
          size.height = screenSize.height;
        if (size.width > screenSize.width) {
          size.width = screenSize.width;
        setLocation((screenSize.width - size.width) / 2, (screenSize.height - size.height) / 2);
       * Implements the Singleton Design Pattern
      public static Splash getInstance(){
        if (splash == null)
          splash = new Splash();
        return splash;
       * Sets a message visible at the bottom
       * @param text Text to show
      public static void setMessage(String text) {
        if (splash != null)
          splash.MessageLabel.setText("    " + text);
       * Sets a message visible at the top showing the
       * currently downloading resource file
       * @param rsr Text to show
      public static void setLoadingResource(String rsr) {
        if (splash != null) {
          splash.resourceLabel.setText("Downloading: "+rsr);
       * Shows up the splash window or destroys it
       * @param show
      public static void showUp(boolean show) {
        if (splash == null)
          return;
        splash.setVisible(show);
        if (show == false) {
          splash.setCursor(Cursor.getDefaultCursor());
          splash = null;
        } else {
          splash.setCursor(new Cursor(Cursor.WAIT_CURSOR));
          try {
            // Lookup the Service
            extensionInstaller =
              (ExtensionInstallerService)ServiceManager.lookup("javax.jnlp.ExtensionInstallerService");
            // Hide JNLP Client's download window
            extensionInstaller.hideStatusWindow();
          } catch(UnavailableServiceException use) {
            System.out.println("Service not supported: "+use);
       * Takes charge of all the JAR delivery
      public void run() {
        DownloadService ds;
        int jarNumber = jarSequence.length;
        try {
          ds = (DownloadService)ServiceManager.lookup("javax.jnlp.DownloadService");
        } catch (UnavailableServiceException use) {
          ds = null;
          System.out.println("Service is not supported: "+use);
        }//once have a ds you can do a lot of things
        //begin downloading jars
        for (int i=0;i<jarNumber;i++){
          if (ds != null) {
            processJar(ds,i);
          //take a breath
          try {
            Thread.currentThread().sleep(3000);//IT'S ONLY COSMETICS!
    //        Thread.currentThread().yield();
          } catch (Exception e) {
            System.out.println("Synchronization Exception: "+e);
        }//-for
        showUp(false);//all the needed JARs have processed
        extensionInstaller.installSucceeded(true);//we're optimistic
       * A fancy method that finds out if a JAR is cached and removes it.
       * substitute it with your code.
      private void processJar(DownloadService ds, int i){
        try {
          // determine if a particular resource is cached
          URL url =
            new URL(codebase + jarSequence);
    boolean cached = ds.isResourceCached(url, null);
    // remove the resource from the cache, just for fun
    if (cached) {
    ds.removeResource(url, null);
    // reload the resource into the cache, yes!
    setMessage(msgSequence[i]);
    setLoadingResource(jarSequence[i]);
    DownloadServiceListener dsl = ds.getDefaultProgressWindow();
    ds.loadResource(url, null, dsl);
    } catch (Exception e) {
    System.out.println("Loading Resource: " + e);
    public static void main(String[] args) {
    Splash splash1 = Splash.getInstance();
    splash1.showUp(true);
    splash1.run();
    thank you again.
    Edited by: feiyangdefei on Jan 28, 2008 6:14 AM
    Edited by: feiyangdefei on Jan 28, 2008 6:15 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Security Error : Multiple hosts referenced in resources

    Hi,
    Im attempting to use the abbot maven plugin that can download an application via webstart and run GUI tests against it.
    I have got this working before, and am setting it up again, but get a webstart error that I have not seen before/can see in the forums.
    Title: SystemTest1
    Vendor: mycompany, inc.
    Category: Security Error
    Multiple hosts referenced in resources
    JNLPException[category: Security Error : Exception: null : LaunchDesc: null ]      at com.sun.javaws.LaunchDownload.checkJNLPSecurity(Unknown Source)      at com.sun.javaws.Launcher.downloadResources(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.Thr
    Could anyone shead some light as to where this error comes from/why??
    Thanks
    James

    in any given jnlp file, all the resources must be downloaded from the same download host. In this way the SecurityManager can assign one permission collection to all the code loaded from that jnlp file (allowing socket permission only to that host).
    If you have a jnl;p file with multiple resources loaded from differant hosts, re-factor the jnlp file so all of the resources loaded from a seperate host are in one component extension jnlp file.
    /Andy

  • Flex encounters "Security error accessing url.Unable to load WSDL"

    i have created a flex application which connects to SAP via web service.
    when i try to run my flex application i encounter the following error.
    "Security error accessing url.Unable to load WSDL"
    i went through various posts relating a BSP application and crossdomain.xml
    i have created the crossdomain.xml file in the application and
    i tried those options and still not able to figure out the problem.
    the security error is because of the absence of the crossdomain.xml file, and in which path should i be saving the file?
    Kindly help me solve the problem.
    Thanks in advance.

    Have you seen this blog
    "Crossdomain.xml" in ABAP Web AS Server cache

  • Security error accessing ur unable to load wsdl

    HI
    I am using a webservice(.net webservice) that is on my
    localhost and using it in flex application that is also on my
    system. Means both the webservice and flex application are on the
    same system.
    But when i gives the reference of the webservice using the
    system ip and run the application by the flex builder it generates
    the error as:
    mx.messaging.messages::ErrorMessage)#0
    body = (Object)#1
    clientId = "DirectHTTPChannel0"
    correlationId = "24CD6542-F141-1A05-BA35-00A108CB30A0"
    destination = ""
    extendedData = (null)
    faultCode = "Channel.Security.Error"
    faultDetail = "Destination: DefaultHTTP"
    faultString = "Security error accessing url"
    headers = (Object)#2
    messageId = "CC123DF0-0E6C-05FF-7894-00A109676283"
    rootCause = (flash.events::SecurityErrorEvent)#3
    bubbles = false
    cancelable = false
    currentTarget = (flash.net::URLLoader)#4
    bytesLoaded = 0
    bytesTotal = 0
    data = (null)
    dataFormat = "text"
    eventPhase = 2
    target = (flash.net::URLLoader)#4
    text = "Error #2170: Security sandbox violation:
    http://localhost:3000/MYCIMS/flex_bin/Design.swf
    cannot send HTTP headers to
    http://myip/MyServer/AdminWS.asmx."
    type = "securityError"
    timestamp = 0
    timeToLive = 0
    I have put crossdomain.xml file in the root of the localhost
    and made every changes possible in the crossdomain.xml file but the
    application is not running.
    Please somebody provide an effective solution, I have spend
    lots of time to resolve the problem but its not being....
    Thanks in advance
    Gopi Saini

    Have you seen this blog
    "Crossdomain.xml" in ABAP Web AS Server cache

  • Security error accessing url (Unable to load WSDL)

    Hi folks.
    I have a Flex project that use a WCF webservice. In my localhost everything is allright, but I want to upload my flex project to a web host (http://www.dorj.ir) and upload my WCF webservice to a server that has a valid IP...
    After going to http://www.dorj.ir, you can see this error
    Security error accessing url
    Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://ip/service.svc?wsdl)
    I put the crossdomain.xml file in the root of my server:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
         <allow-access-from domain="http://www.dorj.ir" />
         <allow-http-request-headers-from domain="http://www.dorj.ir" headers="SOAPAction"/>
    </cross-domain-policy>
    But I have the same error, yet...!
    what should I do?!

    Have you seen this blog
    "Crossdomain.xml" in ABAP Web AS Server cache

  • I keep receiving security errors when trying to open a pdf.

    I keep receiving a security error when trying to run my javascript program, the function previously worked, but now creates an error after I entered the addWaterMark function. I have put my whole code below for my script.
    The basic function is to load a text file into an array which has the path and file location, open the document, add a watermark, save the file, close the file, then repeat for the next array position.
    I am using Acrobat Standard so I am unable to debug using the console, therefore I am struggling to understand what I am doing wrong. I will point out that I am not a fluent programmer, only have a basic knowledge of programming.
    Code
    app.addSubMenu(
      cName:"Extras",
      cParent:"Edit"
    app.addMenuItem(
      cName:"Import File",
      cParent:"Extras",
      cExec:"main()"
    function main()
      var fileCount = 0
      var listOfFiles = []
      listOfFiles = importData()
      amountOfFiles = listOfFiles.length
      for (var i =0; i<listOfFiles.length; i++)   //calculates amount of entries in the array listOfFiles
      newFile = openFile(listOfFiles[i]) //Opens current file
      var d = app.activeDocs; //Gets current document title name 
      addWater(d[0]);
      app.execMenuItem("Save");
      for( var x in d ) d[x].closeDoc();
    function addWater(myName)
    { app.alert("watermark",0);
      myName.addWatermarkFromText(
      cText: "OBSOLETE",
      cFont: "Arial",
      nFontSize:36,
      aColor: color.red,
      nOpacity: 0.5
    //function SaveFile saves the current file but with an addition of WM to the filename
    saveFile = app.trustedFunction(function(currentDoc, currentFileName)
      { app.alert("savefile",0);
      app.beginPriv();
      currentDoc.saveAs(currentFileName);
      app.endPriv();
    //function openFile which opens the file named in the variable currentFilename
    openFile = app.trustedFunction(function(currentFileName)
      {app.alert("openfile" + currentFileName,0);
      app.beginPriv();
      app.openDoc(currentFileName);
      app.endPriv();
    //importData function imports the paths and filenames contained in the list.txt located on the desktop
    importData = app.trustedFunction(function()
      {app.alert("import",0);
      app.beginPriv();
      cFilePath = "/C/Users/103019944/Desktop/File_List.txt";
      var stmData = util.readFileIntoStream(cFilePath);
      var cData = util.stringFromStream(stmData);
      var cMsg = cData;
      var fileArray = cMsg.split("\r\n");
      for (var i =0; i<fileArray.length; i++)
      return(fileArray);
      app.endPriv();

    I have found the error, you are quite correct I had an extra letter in the filename, I thought I'd checked this but just shows that sattention to detail is the key.
    The script works perfectly now, thanks you for your help, really appreciated.
    Thanks again
    Ben

  • How can I fix 2121 sandbox security error, local swf MP3 player test calls MP3's from website?

    1st Issue.  I am a new user and am fighting #2121, #2044 & #2048 Flash security errors in getting an MP3 player to work as I test the fla file in Flash CS4 on my local computer.  The fla in Flash and swf in Dreamweaver calls mp3 files from our host server on the internet.
    After reading various sparce posts and Adobe articles on this issue, I have added a crossdomain.xml file at our websites root (see file below) and added the code, flash.system.Security.allowDomain in line 1 of the action script of the flash fla to allow our site access (-see script below).  These efforts have helped get the player to work better on our test site.
    But, I am still getting the 2121 error within Flash CS4 as I debug the player or play the swf in live view within Dreamweaver.  Playing the fla or swf will lock-up the Flash 10 player and crash the program. I am having the mp3 player access the mp3 files from our web site as I test the fla.
    Here is the debug message I am getting:
    Attemping to launch and connect to Player using URL C:\Web Site Files\Plank Productions afc\Plank Productions 2010\site\MP3_List_Player_AS3.swf [SWF] C:\Web Site Files\Plank Productions afc\Plank Productions 2010\site\MP3_List_Player_AS3.swf - 209827 bytes after decompression SecurityError: Error #2121: Security sandbox violation: Sound.id3: file:///C/Web%20Site%20Files/Plank%20Productions%20afc/Plank%20Productions%202010/site/MP3%5FList %5FPlayer%5FAS3.swf cannot access . This may be worked around by calling Security.allowDomain.
    at flash.media::Sound/get id3()
    at com.afcomponents.mp3player::MP3Player/get id3()
    at com.afcomponents.mp3player::MP3Player/handleBuffe ring()
    Here is the crossdomain xml code:
    <?xml version="1.0" encoding="utf-8"?>
    <?xml version="1.0"?><!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain- policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="www.plankproductions.com" secure="false"/>
    <allow-access-from domain="plankproductions.com" secure="false"/>
    </cross-domain-policy>
    Here is the AS3 in line 1 of the Fla file that I added:
    flash.system.Security.allowDomain("www.plankproductions.com", "plankproductions.com");
    2nd Issue.  The online playback of the mp3 player will play about 4-7 mp3’s then lock-up in Internet Explorer 8 on a pc.  I think that is related to flash security, not sure, I do not know how to debug the mp3 player on the web site.
    http://plankproductions.com/pptemplate_afc_mp3.shtml
    Questions.
    -How can I resolve the error 2121?
    -What as3 code do I need to target the local c drive to have security clearance and work properly, is this the problem?
    -Why is the mp3 player locking up on the web page?
    Thank you in advance for any help.
    Operating System: Windows XP Professional, CS4 Web Premium

    Do you have the standard or debug player installed?  Such errors should not occur with the standard player.
    See http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html#main_Find_Flash_Play er_version_type_and_capabilities__Flash_developers_only_

  • Today I tried to open Safari and what I was presented was several minimized windows stating that there was a security error detected, also a suspicious activity was found in my computer. How do I go by in getting this cleared off?  Help.  Thanks

    MAcBook Pro, 2.4 Ghz Intel Core 2 Duo, 4GB 1067Mhz DDR3, Software Mac OS X Lion 10.7.5 (11G63). 
    Problem:  i tried to open Safari about a couple of hours ago and I was presented with this error message block with an address of http://www.virushealthcheck.com. The message is; Windows detected security error, due to suspicious activity found on your computer.  Contact Windows Certified Live Tech ( 1.866.606.2003).  If I clk the OK button , there are multiple layered windows that will appear after that.  Can't get out of it , except to quit Safari.  earlier today before this happened I was on Facebook, Instagram, responding email cutting and paste transactions and saving it to Microsoft word.  then I turned off my lap top for several hours. When I turned it back on awhile ago, I discovered this problem.  on top of that aI can't even clear the history everything is gray out except for the Earlier today, and the day and date of the month. I tried several times to quit Safari, turn off and turn back on my lap top to no avail.  My question is; How do I go by to in getting this error message when I click on Safari? Does that mean that I might have a virus in my lap top? Please Help.  Thanks.

    Force Quit .
    Press command + option + esc keys together at the same time. Wait.
    When Force Quit window appears, select the Safari if not already.
    Press Force Quit button at the bottom of the window.   Wait.
    Safari will quit.
    Relaunch Safari holding the shift key down.
    http://www.thesafemac.com/fbi-ransomware-virus-rampant/

  • Security error while loading pdf file in jsp in firefox?

    When i type in the following link manually in firefox as " file://///172.16.2.1/copyediting/ELS/mallet.pdf", pdf file is loaded successfully in the firefox browser. PDF file is located in remote server which is referred by IP 172.16.2.1.
    I've assigned the Same link in a String in jsp page and tested it through my tomcat application as
    <%
    String linktotest="file://///172.16.2.1/copyediting/ELS/mallet.pdf";
    %>
    <a href="<%=linktotest%>">link</a>
    when i click on the hyperlink , the pdf is not loaded in firefox and i'm getting the following error in firefox error console
    Security Error: Content at http://172.16.3.222:8080/FMS/source/journal/ProductionEntry.jsp may not load or link to file://///172.16.2.1/copyediting/ELS/mallet.pdf
    can any one please give me the solution.

    Links and forms in HTML should point to public URL´s (with http:// or https:// protocol), not to the file system (with file://).
    If those files are not public accessible by URL, then you need to create a servlet which does the file streaming task. This example may be useful then: [http://balusc.blogspot.com/2007/07/fileservlet.html].

Maybe you are looking for

  • Not able to update single file in a non ejb Module related jar

    Hey all, I have depoyed my j2ee application <b>.ear</b> on NW webAS .        This application apart from having all the ejb Modules related jar, <b>also has a jar which has all my properties files</b> being accessed by my application. Very often is i

  • IPod and iTunes file transfer

    I just upgraded to iTunes 7 and now my file transfer to my ipod (3 genereation 15 gig) have come to a crawl. Some saying it will take hours. How do I fix this?

  • Reading an env. variable in JAAS login module

    Hi All, I have a JAAS login module wherein I want to add a static block to read certain properties from a file. Is there any property within WAS 6.40 wherein I can set the file path and read it using System.getProperty in my JAAS login module? I do n

  • Bex Query showing incorrect data

    Hi Experts, I have a Bex query on an infoset. The infoset is based on Sales Order Line Item DSO and Sales Order Condition DSO. I am refering Net value from Sales Order Line Item DSO. In the query, the values of Net Value is not coming correctly. When

  • Handing off a call from the iPhone to the Mac using Continuity?

    Why can't I hand off a call from my iPhone to my mac using continuity?  Am I missing something?  Does't seem to allow me to do this, just the other way around.  Any suggestions?