Swing component prohibits loading web applet?

Hi all,
I imported a JFilechooser using this java class:
import javax.swing.JFileChooser;
public class FXfilechooser {
public static JFileChooser create() {
JFileChooser fc = new JFileChooser();
return fc;
} {color:#ff6600}FXfilechooser.java{color}
and then I use it in the .fx file using the SwingComponent.wrap() metho like this:
import javafx.scene.*;
import javafx.stage.*;
import javafx.ext.swing.*;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.control.Button;
var fc =FXfilechooser.create();
var fcComp=SwingComponent.wrap(fc);
Stage {
title: "File Chooser Sample"
width:800
height:600
scene: Scene {
content: [
Text {
font : Font {
size: 24*
x: 10, y: 30
content: "Text"
Button {
layoutX:50
layoutY:150
text: "Browse"
action: function() {
fc.showOpenDialog(fc);
}{color:#ff6600}graphUI.fx{color}
When I run the project in Netbeans it works perfectly, but when I run it in the web browser I get only a grey box.
So I did a little test and changed the {color:#ff6600}graphUI.fx{color} to this one:
import javafx.scene.*;
import javafx.stage.*;
import javafx.ext.swing.*;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.control.Button;
Stage {
title: "File Chooser Sample"
width:800
height:600
scene: Scene {
content: [
Text {
font : Font {
size: 24
x: 10, y: 30
content: "Text"
Button {
layoutX:50
layoutY:150
text: "Browse"
action: function() {
var fc =FXfilechooser.create();   // create and wrapping moved in the action function
var fcComp=SwingComponent.wrap(fc);
fc.showOpenDialog(fc);
}{color:#ff6600}modified graphUI.fx{color}
When I run this in the browser, I can see the button now and the text, but the filechooser dows not appear when I click the button.
I tested this in linux and windows using FF.
Any suggeestions?
Regards
Edited by: babil on Jul 12, 2009 6:29 AM
Edited by: babil on Jul 12, 2009 6:30 AM

Sorry for the code, I messed somehow with the rich text editor here.
This is the output from the console.
Thanks
Reading certificates from 315286 http://dl.javafx.com/javafx-rt-linux-i586__V1.2.0_b233.jar | /home/peppe/.java/deployment/cache/6.0/6/34260e86-6dd1daa6.idx
Exception in thread "AWT-EventQueue-4" java.lang.Error: Couldn't launch FX Stage graphUI
     at com.sun.javafx.runtime.adapter.AppletStartupRoutine.run(Unknown Source)
     at com.sun.javafx.tk.swing.SwingToolkit$StartupRoutine.run(Unknown Source)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
     at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
     at java.security.AccessController.checkPermission(AccessController.java:546)
     at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
     at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
     at java.lang.System.getProperty(System.java:650)
     at javax.swing.filechooser.FileSystemView.getHomeDirectory(FileSystemView.java:380)
     at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFileChooserUI.java:253)
     at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:136)
     at javax.swing.plaf.metal.MetalFileChooserUI.installUI(MetalFileChooserUI.java:126)
     at javax.swing.JComponent.setUI(JComponent.java:673)
     at javax.swing.JFileChooser.updateUI(JFileChooser.java:1763)
     at javax.swing.JFileChooser.setup(JFileChooser.java:360)
     at javax.swing.JFileChooser.<init>(JFileChooser.java:333)
     at javax.swing.JFileChooser.<init>(JFileChooser.java:286)
     at FXfilechooser.create(FXfilechooser.java:15)
     at graphUI.javafx$run$(graphUI.fx:22)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     ... 10 more

Similar Messages

  • Which Swing component could load a picture just like picturebox in VB?

    Dear all:
    I need show a picture on the wihdow I programmed with Swing,yet I did not know which component can load a picture just like picturebox in Visual Basic.If you knew about,please tell me.Thanks.
    Kindly regards!

    The "bold" tags are used to highlight important words or phrases in your question, not the entire question.
    I don't know what a "picture box" is so I'll just point you to the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html#popup]A Visual Index to Swing Components. Many components support images.

  • Loading Java Applet Failed in CRM 2007 Web Client Marketing

    We have recently upgraded our CRM 4.0 sp6 system to CRM 2007.  As part of this upgrade we configured the SAP Best Practice Building Blocks.  Logging on to the webclient using the user MKT_MAN (assigned business role BP_MKT_MAN) we get an error when trying to run the Marketing Calendar.  the error we get is that "Loading Java Applet Failed" the specific applet in question is: Applet com.sap.crm.mkt.calendar.applet.MktCalendar notinited
    We have implemented the following SAP notes to try and rectify the issue but with no success:
    Note 1177590 - Version 2.0 of Marketing Calendar java applet
    Note 1237477 - Marketing Calendar is not displayed, Tensegrity Library
    Any ideas as to what can resolve this issue
    Thanks in advance
    Eddie

    Hi Eddie
    I have exactly the same problem, using IE 6.0 & JRE 1.4.2_07.
    What I have found is that users in my company with the same configuration on their machines, same settings as above can load the Marketing Calendar without issue.
    Have loaded the same notes as yourself already.
    I have managed to get it to working by switching off my proxy settings entirely. This is fine for testing but of no use for go live.
    I have also found that when it does finally load successfully it is incredibly slow in comparison to other functionality within the WEB UI.
    Thus far I have logged an OSS Message regarding this matter, could I recommend you do the same, this should encourage SAP that the issue is not isolated.
    Good Luck
    Arden

  • Loading Images for web Applet

    I just recently learned how to load a applet to my site, and now that I'm able to load simple ones up I want to move on. I made a game this morning, but I used images in it. When i loaded the applet to the site, it didn't work. As suggested from another user I tried:
    Image background=this.getImage(getCodeBase(),"/forest.gif"); All of the applet's classes/html file is in the root directory folder with all of my images. I also tried...
    Image background=this.getImage("http://www.StevePicHolder.1colony.com/images/forest.jpg");and no luck...What do I need to do to make my applets online be able to use pictures?

    The Applet.getCodeBase() method returns the absolute URL where your class files reside. If the image file is in the same location you would code the following:
    Image background=this.getImage(getCodeBase(),"forest.gif");If your image file is in a path relative to the code base (e.g., an images folder residing relative to your class files) then specify the relative path via the following:
    Image background=this.getImage(getCodeBase(),"images/forest.gif");If your image files are in the same or relative location of your HTML file containing the APPLET tag then use the getDocumentBase() method instead.

  • How can I open a saved report in WEBI applet

    Hello -
    We have successfully integrated the BO WEBI applet into our web application, and have created reports using the "Save As" option.  However, we don't seem to have access to these reports.  There does not seem to be an "Open File" or "Open Report" icon in the applet toolbar that we can use to access the reports that we have created and saved.  Is this capability not available in the WEBI?  There also doesn't seem to be an easy-to-find explanation of what we are doing wrong.
    Thank you for any help.

    Ted -
    Thanks for your response.  We tried what you suggested, and it does indeed work for the first document you load.
    However, now I see the effects of not having an Open icon in the applet's toolbar.  So we have a "list widget" in our app from which the user can select a report to load into the applet for viewing or editing.  The way it works, as you suggested, is to provide the doc id and name thru the applet parameters.   So after selecting a document, we rerender (via ajax) the panel that contains the applet, which, of course, causes the applet to completely reload - which is very ugly, clunky, and something that seems unnecessary. (We actually get an error when we try to select another report, telling us that we need to close down the applet and log in again, but this error is beside the point for now.)
    The first sentence of your initial reply was to say that there is no Open method.  By this, were you also implying that there is no java method call in the applet I can make via javascript on the page?  I would really like to be able to load a new document into the applet without having to suffer thru a reload.  Is there any java api exposed for the applet that I can possibly use to load a new document "on the fly"?  I haven't been able to
    Thanks again for any help.

  • ClassFormatError when attempting to load an applet from within a JSP

    Greetings everyone.
    I have a problem that i seem unable to solve.
    I've created a web application. I'm using Java 1.4.2_05 and Tomcat. Right now i'm trying to load an applet from a JSP and i'm getting an error that, try as i might, i can't understand why it happens.
    Here is some detailed info:
    The applet's code:
    package smpb.myapp.controllers;
    import java.applet.Applet;
    import java.awt.Graphics;
    public class GUIApplet extends Applet
         public void init()
         public void stop()
         public void paint(Graphics g)
                  g.drawString("Hey hey hey",20,20);
               g.drawString("Hellooo World",20,40);
    The JSP's code:
    <%@ page language="java"
                   import="java.util.*"
                   session="true" %>
    <%
         String name = (String) request.getSession().getAttribute("userName");
    %>
    <html>
         <head>
              <title>Login</title>
         </head>
         <body>
              <h1><p align="center">Application</p></h1>
              <br>
              Welcome <%= name %>! Thank you for logging in!
              <br><br><br>
              <applet align="middle" code="smpb.myapp.controllers.GUIApplet.class" codebase="./" archive="MyApp_applets.jar">
                   Your browser does not support this feature.
              </applet>
              <br><br>
              <a href='<%=request.getContextPath() + "/LogOut"%>'>Log Out</a><br>
         </body>
    </html>-------------------------------------------
    When i reach this JSP the applet fails to load and i get the following error message at the java console:
    Loading applet ...
    Initializing applet ...
    Starting applet ...
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with no proxy
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    Last modified time and/or expiration value is not available.  Jar file will not be cached.
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with no proxy
    Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with no proxy
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    Last modified time and/or expiration value is not available.  Jar file will not be cached.
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with no proxy
    Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
    java.lang.ClassFormatError: smpb/myapp/controllers/GUIApplet (Bad magic number)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1856)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
         at sun.applet.AppletPanel.run(AppletPanel.java:298)
         at java.lang.Thread.run(Thread.java:534)
    Exception: java.lang.ClassFormatError: smpb/myapp/controllers/GUIApplet (Bad magic number)-------------------------------------------
    The JSP is in the root directory of the web application's path right along with the jar file. The jar file itself has the following structure:
    Archive:  HelpDesk_applets.jar
      Length     Date   Time    Name
            0  05-17-06 12:17   META-INF/
          106  05-17-06 12:17   META-INF/MANIFEST.MF
            0  05-10-06 17:14   smpb/
            0  05-10-06 17:14   smpb/myapp/
            0  05-12-06 16:50   smpb/myapp/controllers/
          794  05-12-06 17:15   smpb/myapp/controllers/GUIApplet.class
          900                   6 filesNow, i've tried loading the very same jar file that i use in the JSP through a static HTML which is virtually identical to the JSP i presented and everything works just fine. I've checked and rechecked to see if all the permissions to access the jar file were accurate, i checked to see if Tomcat had it's MIME settings correctly configured so that there was no chance that the files were being corrupted during the load (as that is a usual cause for the problem, or so i've gathered) but to no avail. I've searched the web, including these forums, and found similar problems but no conclusive solution. I can't seem to figure out, at all, what could possibly be wrong. Does anyone have any ideas? I've tried to be as thorough as i could from the start, so, any help would be deeply appreciated.

    Hi mshah101,
    This can happen if the applet is compiled using an higher version of java and the browser is pointing to an older version (even if minor version number is higher)

  • How to load an applet jar file?

    Hello everyone,
    I have an applet that uses my own jar file and approximately 6 third party jar files. I set up jar indexing (jar -i) which will download the jar files when they are needed. All seems to work well, but now I want to manually load the jar files which I cannot get working.
    When the applet starts, about 1/2 of the jar files are downloaded (because they are needed at startup). I then want to load the additional jar files in the background, after the gui is initialized. I have tried this using the below thread which is executed from within the applet's start method:
    // Try to load additional jar files in background by loading a class from each jar file.
    Thread loadClass = new Thread() {
      public void run() {
        System.out.println("Loading classes...");
        try {
          // Tried loading classes this way, doesn't work.
          getClass().getClassLoader().loadClass("pkg1.Class1");
          getClass().getClassLoader().loadClass("pkg2.Class2");
          getClass().getClassLoader().loadClass("pkg3.Class4");
          getClass().getClassLoader().loadClass("pkg4.Class4");
          /* Loading classes this way doesn't work either.
          Class.forName("pkg1.Class1");
          Class.forName("pkg2.Class2");
          Class.forName("pkg3.Class3");
          Class.forName("pkg4.Class4");
        catch(ClassNotFoundException e) {
          // First attempt to load a class (pkg1.Class1) throws exception.
          System.out.println("Can't find class: " + e.getMessage());
    loadClass.start();As you can see from above I am trying to load a class from each of the jar files so that the jar files would load into memory/cache. Unfortunately, it cannot find the classes. These are the errors from the java console:
    Loading classes...
    Loading: pkg1.Class1
    Connecting http://my.server.com/my_dir/pkg1/Class1.class with no proxy
    Connecting http://my.server.com/my_dir/pkg1/Class1.class with cookie "JSESSIONID=some_big_long_char_list"
    Can't find class: pkg1.Class1
    So it appears the jar file is not being downloaded. When I take away the dynamic jar loading (removing the "jar -i" & adding them all to the applet archive list) the thread executes correctly. So I know the class names, etc, are correct. How does one load an applet jar file?
    Any help/suggestions are appreciated.

    The above error I posted was because I forgot to index the jar files. That is why it couldn't find the jar file. I thought I was getting farther along with my problem, but I apparently just forgot to index the jars. I am now getting the problem that I got yesterday...
    The applet freezes/hangs when it hits the thread. The GUI never opens (even though I'm running this thread right after the gui shows). The java console quits responding and the applet just stays the grey screen. I also tried the invoke later that you suggested.
    public void start() {
      // ...initialize gui...
      // Applet freezes and remains grey, also the java console freezes.
      javax.swing.SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          System.out.println("Loading classes...");
          try {
            // When I comment out the below forName calls, the thread will still run evidenced through the done print statement.
            Class.forName("pkg1.Class1");
         Class.forName("pkg2.Class2");
         Class.forName("pkg3.Class3");
         Class.forName("pkg4.Class4");
            System.out.println("...Done loading classes");
          catch(Exception e)     {
            System.out.println("Can't find class: " + e.getMessage());
    }

  • Loading Java Applet....again

    Hi,
    I've done a search on this topic and have not been able to resolve the problem.
    The problem being that after trying to "Run a Form on the Web" using test.fmx, The loading java applet message stays in the browser indefinitely.
    Some have suggested turning on the JInitiator Console to get a better understanding of the problem.
    My problem is that when I click the "Show Java Console" and then "apply" in the JInitiator Control Panal nothing happens. I'm completely new to all of this, is there anything else I have to do to display the Java console?
    Java consoles aside, any suggestions as what else I can do? When I first run the form I get an "applet loading" message in the browser status bar for a split second, followed by "exception:http://<servername.domain>/forms60java/f60web.jar"
    I'm using IE 5.00 and jinitiator 1.1.7.27
    Thanks for any help.
    Darren

    Anyone knows what's the classid of Jinitiator 1.1.7.31?
    Thanks a heap for any replies
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dhananjay Jawale ([email protected]):
    Hi,
    Please make sure what Shay has suggested about the correct class id . For Jinitiator 1.1.7.27 it is 093501ce-d290-11d3-a3d6-00c04fa32518
    Check your toolbar if you can see a application icon with java cup. If you can get it, maximize it .
    This is a known problem with OS like Windows 95.
    In my application support, i get calls regarding not able to find the login screen and i help them in same way.
    Try it and let us know
    Thanks,
    Dhananjay<HR></BLOCKQUOTE>
    null

  • Loading an applet in tomcat 4.x

    Hi,
    I have been reading the forums for a while trying to find an explanation to the problem I am having with no success.
    The problem is that I have an applet that has a dynamic number of parameters. The number of parameters is determined by the contents of an application bean which is part of the environment.
    The problem is that I can't get the applet to work using the <applet> tag. It seems that no matter what I set the codebase parameter to, I always get the dreaded "ClassDefNotFound Exception: FacilityApplet" in IE 6.0 or "ClassFormatError: Bad Major Version Number" exception in Netscape 4.79.
    I am using JDK 1.4_0_01 and Tomcat 4.1.12 and my application (oam), context is organized as follows:
    webapps/
    oam
    WEB-INF
    classes
    lib
    applets
    facility
    jsp
    html
    index.html
    I have jarred the applet into a file called FacilityApplet.jar and stored it into the oam/applets/facility directory. The contents of the jar file follows:
    META-INF/
    META-INF/MANIFEST.MF
    FacilityApplet.class
    common/DataEvent.class
    common/Facility.class
    common/Link.class
    DialogBox/
    DialogBox/DialogBox$CloseDialog.class
    DialogBox/DialogBox$CloseWindow.class
    DialogBox/DialogBox.class
    The following is the contents of my jsp page that attempts to load the applet.
    <html>
    <head>
    <!-- Ensure the HTTP Server Does Not Save this Page in Cache -->
    <meta HTTP-EQUIV=Pragma CONTENT=no-cache >
    <title> Status Page </title>
    </head>
    <%@ page import="javaBeans.SettingsBean" %>
    <jsp:useBean id="settings" class="SettingsBean" scope="application" />
    <body BGCOLOR="honeydew" LINK="Blue" TEXT="black" VLINK="Red">
    <h1>
    Application Status
    </h1>
    <%
    // Make sure we have a good bean to work with
    if (settings.getTotalFacilities() != 0) {
    %>
    <applet
    archive="FacilityApplet.jar"
    codebase="http://localhost:8080/oam/applets/facility"
    code="FacilityApplet.class"
    width="300" height="150" >
    <param name="PORT" value="8939" >
    <%
    for (int i = 0;i < settings.getTotalFacilities();i++) {
    %>
    <param name="FAC_<%= i %>" value="<%= settings.getFacilityName(i) %>">
    <param name="STATE_<%= i %>"
    value="<%= settings.getFacility(i).getState() %>">
    <% } %>
    </applet>
    <% }
    else {
    %>
    <h2 align="center"> No Facilities to Display </h2>
    <% } %>
    </body>
    </html>
    Here are the values for codebase that I have tried so far:
    codebase="<%= request.getContextPath() %>/applets/facility"
    codebase="http:localhost:8080/oam/applets/facility"
    codebase="../applets/facility"
    I also expanded the jar file under the applets/facility directory with the same results. I also copied all the class files in the same directory as my jsp file, codebase="facility", with the same results.
    Now, if I use the <jsp:plugin> tag the applet loads with no problems using codebase="<%= request.getContextPath() %>/applets/facility", but that does not allow me to set my applet parameters dynamically. It works fine if I hardcode my parameters inside the <jsp:param> tag. However, I can explain this since it will require the JSP compiler to do multiple passes over the source code, and I don't think it does that.
    My PC has the latest version of the JRE plugin 1.4.X.
    Any help will be greatly appreciated.
    Maizo

    Folks,
    I hate to follow up my own posting but I figured out the problem. My browser was using its own JVM, which of course was an old one.
    Sorry to waste these resources
    Maizo

  • Global Web Applets and My Custom Home Page Report

    Hello,
    I setup a custom "My Home Page Report" which is great but does not display the report when you load the home page without clicking the "Generating analysis... Click here to view the results" link. Is there a way around this?
    I then setup a a Global Web Applet and embedded this on the main home page. When doing this I found you cannot have 1 section that spans the entire width of the page as you can with a report (To my knowledge?). I then tried putting two Custom Web Applets side by side to display the graph and report I wanted. This works however, I have vertical scroll bars although the reports are perfectly displayed and do not require any scrolling. Is there a way to get rid of the scroll bars?
    Regards
    Innoveer

    Innoveer, you can contact customer care and ask them to provision your On Demand application with the custom homepage "Execute Report Immediately" option. However, you want to make sure that this custom report loads quickly - if not it will delay the loading of your homepage.

  • Cannot load a Applet using Weblogic6.1

    I am unable to load an applet. My application/web server is weblogic6.1. The problem is i am unable to set the right codebase.
    any ideas..on how to set codebase when using weblogic 6.1.. my applet class files are in
    c:/bea/applications/myApp/WEB-INF/classes

    thanx for the mail..
    When this application was set as Default application, even though the applet class files were in /WEB-INF/classes, it worked.. but now this is no longer a default application and the applet throws classnotfound exception..
    i guess i am missing some other settings ...
    The applet needs to be publically accessible to the
    client. Nothing in WEB-INF is going to be publically
    accessible. You need to put the applet somewhere
    else, such as where you'd normally put the referencing
    HTML file.

  • Loading an Applet Multiple Times

    I'm using the JNLPAppletLauncher to load an applet that is used in several web pages across my site. Whenever I load the applet, the jnlp extension for the url of the JNLP file changes to something slightly different due to authorization logic. The first page that loads the applet functions correctly, and the applet itself functions exactly as it should. However, if I navigate to any other page that has the applet, the load fails with the following error:
    java.lang.IllegalArgumentException: jnlpExtension parameters do not match previously loaded appletSeeing as how the url of the jnlp file is the only extension I'm specifying, is there any way to make the AppletLauncher not flip out whenever it encounters a url that isn't exactly the same as the last one used? In other words, can I specify to the AppletLauncher not to store that information?
    Any help is greatly appreciated.

    Why does authentication change your url? I guess you're sending the session id to the client and it's sending it back in the query string (you're not behind basic auth).
    If it's not and it's because of some other weird thing, an application proxy may work.
    Point to an unprotected servlet and in this servlet:
    - check for user auth (it's still there if user has authenticated),
    - open an HttpURLConnection to the actual jnlp (where you should set the dummy servlet in the href)
    - read it and send it back (headers included) to the client
    No quick idea otherwise.
    Bye.

  • Web Applet Problem OnDemandRdrtLogin Iframe

    Hi,
    we have multiple Web Applets attached to one object.
    The Administrator has no problem. We see all the Web Applet with the correct results.
    But if we login into the system with the standard user the first time we see the following link in each web applet.
    https://secure-ausomxdsa.crmondemand.com/OnDemand/user/analytics/saw.dll?OnDemandRdrtLogin
    After refreshing the window it does work normal and the correct web applets are shown.
    We are using iframes in the web applets.
    Has someone a solution or workaround for this issue. Did not found anything about the OnDemandRdrtLogin.
    Seems like the user hast o login in to the reporting the first time. I am a bit confused that it works with Admin user and with the standarduser it does not work.
    Kind Regards,

    Well I'm sure it must be something I'm doing, but what?
    I'm able to load another jnilib using a wrapper jar with no problem. I don't have the source to this jar and jnilib so I don't know how it is being done.
    I've created a simple jnilib and wrapper pair using the apple's Xcode template, but get the following error.
    Here is the stack trace:
    java.lang.ExceptionInInitializerError
         at CaMIDIappletTest.init(CaMIDIappletTest.java:86)
         at sun.applet.AppletPanel.run(AppletPanel.java:378)
         at jep.AppletFramePanel.run(AppletFramePanel.java:176)
         at java.lang.Thread.run(Thread.java:613)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.caMIDI)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkLink(SecurityManager.java:818)
         at java.lang.Runtime.loadLibrary0(Runtime.java:816)
         at java.lang.System.loadLibrary(System.java:992)
         at JNIWrapper.<clinit>(JNIWrapper.java:14)
    So, why can my applet work with one wrapper jar and jnilib pair, and not my pair?

  • Web applet loadlibrary problem

    Hello,
    According to
    http://java.sun.com/sfaq/example/loadLibrary.html
    A web applet should be able to load a library from a method in the classpath.
    However, when I run my web applet, I get the error:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.caMIDI)
    I'm certain the method that is loading the library is in the classpath because when I remove this jar from the classpath, I get a class not found error.
    None of the jars are signed. I am using OS X 10.4.10.
    Any ideas,
    Thanks!

    Well I'm sure it must be something I'm doing, but what?
    I'm able to load another jnilib using a wrapper jar with no problem. I don't have the source to this jar and jnilib so I don't know how it is being done.
    I've created a simple jnilib and wrapper pair using the apple's Xcode template, but get the following error.
    Here is the stack trace:
    java.lang.ExceptionInInitializerError
         at CaMIDIappletTest.init(CaMIDIappletTest.java:86)
         at sun.applet.AppletPanel.run(AppletPanel.java:378)
         at jep.AppletFramePanel.run(AppletFramePanel.java:176)
         at java.lang.Thread.run(Thread.java:613)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.caMIDI)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkLink(SecurityManager.java:818)
         at java.lang.Runtime.loadLibrary0(Runtime.java:816)
         at java.lang.System.loadLibrary(System.java:992)
         at JNIWrapper.<clinit>(JNIWrapper.java:14)
    So, why can my applet work with one wrapper jar and jnilib pair, and not my pair?

  • BROWSER HANGING WITH LOADING JAVA APPLET

    HI
    WHEN I RUN THE FORM ON THE EXTERNAL
    BROWSER.(USING OPTION RUN A FORM ON THE WEB).
    FILLING IN ALL THE DETAILS.
    BROWSER HANGS WITH MESSAGE LOADING JAVA APPLET.
    TEST.FMX IS IN THE FORMS60 PATH.
    I NEED HELP THANKS
    DEEPAK.
    null

    Try using the java console to get more info on what is hapenning.
    If you have using Jinitator its on the jinitator control panel.

Maybe you are looking for

  • Redetermine Org Data when Employee responsible Changed

    Hi,   In my project we need to redetermine the org data when the employee responsible is changed. With Regards, Selvam T

  • This is my ChaClient file

    2. ChatClient.java import java.net.*; import java.io.*; import java.applet.*; import java.awt.*; public class ChatClient extends Applet {  private Socket socket              = null; private DataInputStream console = null; private DataOutputStream str

  • Return Item Category??

    Hello Friends, I am workind on issue which has order type ZBSR (voucher). There is only 1 return itrm category which returns the stock into unrestricked use immediately. I need to  configure a new item category which mirrors the original SAP return i

  • Webparts deleted from the Web Part Gallery

    We have a situation in SharePoint 2010 where a Site Collection Admin accidentally deleted most of the web part definitions from the Web Part Gallery in one of our Site Collections.  I know I can use the "Populate Gallery" button on the screen that is

  • Serious Problem with my time capsule.

    When I try to back up to my 500GB time capsule using time machine, it first say preparing backup, then a window pops up saying "Backup Failed: The Backup disk image could not be created." I called the apple store and they said they did not know what