Javascript to java communication fails in firefox, help...

I am trying to call a method called "Stop()" in my applet
this works fine in IE, but appears to crash the applet in firefox ( possibly stopping the thread?)
var cam_app = document.getElementById('cam_applet');
cam_app.Stop();i also have an method called Play() and i notice in firefox if i call the method in lower case.... i get this errror:
var cam_app = document.getElementById('cam_applet');
     cam_app.play();Error: There is no Java method xplug.play that matches JavaScript argument types ().
Candidate methods with the same name are:
void play(java.net.URL, java.lang.String)
void play(java.net.URL)
but yet this line works fine:
var cam_app = document.getElementById('cam_applet');
     cam_app.Play();all attemps in IE seem to work fine, loaded in firefox, the stop method seems to crash the xplug applet
anyone can help with this.....
i would just edit the applet and me a new method that is not called 'stop', but this is not my applet and i can not modify it
thanks in advance for assistance

Ok, I can provide a little more information, but I do not get an error message....
i have a java applet called xplug ( i did not write this applet, it is a web camera applet )
i embedd the applet in my page and give it an ID='cam_applet'
and it has these methods that are public....
    public void start()
        Play();
    public void stop()
        Stop();
    public void Stop()
        playing = false;
    public void Play()
    }it appears that i can call start and Play from both IE and firefox, and all of them from IE, things work fine.
if i call stop or Stop from firefox the applet will stop feeding video, and appears to not respond to any more calls, although i get no error messages, just no more video, and have to reload the page for things to return to normal
within this applet there is only one Play call, so the error message i get when i call play is a clue i think. I realize IE does not follow the rules as strictly, so it works because of that (feature), but the fact that firefox errors when i call 'play' lowercase tells me that it is looking for a matching applet call, and can only find play calls with arguements.
this tells me that maybe the stop and Stop calls are also calling the applet.stop call which maybe stopping the thread ( my guess )
you can actually see this in action at www.teleoperated.com and veiw source to see the code.... if you have firefox, then you can witness the failure first hand
thanks again for any responses

Similar Messages

  • Java Instalation Failed. ~Please Help?~

    When i get to the installation step of download Java Version 6 Update 16 this error shows up.
    Error Msg:
    Installation Failed
    The wizard was interrupted before Java(TM) 6 Update 16 could be completely installed. To complete installation at another time, please run setup again.
    System:
    I'm runing Vista,
    500GB Hard drive, Laptop is like new so i dont think lack of hard drive space would be the problem.
    When Problem Occured:
    - I downloaded JDK 6 Update 14 with JavaFX SDK and saved everything into a folder on my desktop because I wasn't sure wether I wanted to keep it.
    - When i had no use for the program anymore i uninstalled it. I only had the program on the computer for a small while so im not sure weather Java was working after i downloaded because i never tested it out.
    - After i uninstalled it i realised Java was not working and one of the command prompts for one of my programs what used java said cannot find location of the folder That JDK was in, thats because i deleted it..
    -So i tryed to reinstall Java and this problem started.
    Things I have tryed:
    - Deleting all files associated with Java and retrying download.
    - Downloading other forms of Java such as;
    ----> Online & Offline RE download (interruption error)
    ----> JDK 6 Update 16 with Java EE (no runtime worked)
    ----> JDK 6 Update 14 with JavaFX SDK (no runtime again)
    - Downloading files to a desktop folder again, just incase. (Fail)
    Notes:
    - I could not find product key though to delete link to Java in control panel. (Possible cause?) Also the icon is not Java it is that blank page icon with Java written under it and when u click on it, it says "Aplication not found."
    - This happened two days ago.
    Edited by: Phillip- on Sep 24, 2009 8:28 PM
    Edited by: Phillip- on Sep 24, 2009 8:35 PM

    Have you tried to install the jdk. Do not insall from the download.
    Dowload the jdk to your computer (desktop or downloads) the install.
    I'm an XP, Linux and Mac user so I will have to check with some Vista users who have installed jdk.
    Also:
    Have you installed Firefox. One good thing IE is for is to download Firefox.

  • How to enable java script in my Firefox browser? help its urgent.

    how to enable java script in my Firefox browser? help its urgent.

    go to '''about:config''' and search for '''javascript.enabled''' change its value to '''true'''
    *[http://kb.mozillazine.org/About:config about:config]

  • Keep getting a message from Javascript (not Java)- "Uninstall Set", help it will not go away

    Each time I use Firefox, the message "Uninstall Set" keep popping up from Javascript (not Java). I can not use Firefox because this keeps popping up.

    That would be from an extension, anything similar from Firefox would have been cleaned up. If you'd been on 4.0.1 for a while and it just started happening, then I'd try Tools > Add-ons > Extensions then on the gear wheel choose "View Recent Updates" the date will appear the list small and the. The "last updated" button near top right does something mysterious.
    To see list in normal fashion again choose "Appearances" then return to "Extensions".
    If you dislike the formatting of the Add-ons list during normal viewing you can improve it tremendously with a custom style:
    * [https://addons.mozilla.org/firefox/addon/stylish/ Stylish :: Add-ons for Firefox]
    * [http://userstyles.org/styles/42112/firefox-4-compact-addons-manager Firefox 4 - Compact Addons Manager - Themes and Skins for browser - userstyles.org]
    From the wording the message could possible be referring to a Collection of Extensions. I avoid collection sets like the plague.
    Also see related answer
    * [https://support.mozilla.com/en-US/questions/824098 i keep getting a pop up saying uninstall set | Firefox Support Forum | Firefox Help] by Cor-el.

  • COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET: US$20 AWARD FOR SOLUTION!

    COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET PROBLEM (Easy Filter Java Applet) -
    US$20 TO ANYONE WHO CAN RESOLVE THE PROBLEM
    To forum visitors:
    I am prepared to pay a standard shareware fee of US$20 to a user who can resolve this technical problem.
    If your advice resolves the problem, I'll forward the payment to your postal address (include your
    address with your reply, and also your email address)
    I am attempting to enable a HTML button (using Javascript's onClick command) to directly input a number into one of the parameter text boxes in the Easy Filter Java applet (ie, enter a new color value number in the text field of the standard Colors Multiplicator Filter interface).
    The applet is Freeware and can be downloaded at: http://www.javazoom.net/applets/easyfilter10/EasyFilter10.html
    (It is a very effective bitmap display and editing utility)
    To achieve this, I am trying to access the part of the applet that defines and sets the textbox. The text box is defined in the .class file by accessing the parameter details in the genericfilter.txt file (accompanies the .class files). I need to access 'private String appletInitialize()' and then one of the 'textFieldParameters' which sets the textbox.
    I understand the basic syntax for referencing the applet:
    document.appletname.setString("An example"). However, accessing the text fields in this applet is more complex!!
    Please can you recommend the correct Javascript syntax to achieve communication with the applet.
    Thank you for your kind assistance.
    JM Graham
    [email protected]
    The Java source code for the applet: EasyFilter.class
    # Easy Filter - E.B/JavaZOOM 1999 #
    # Contact: [email protected] #
    # http://javazoom.hypermart.net #
    /* Originally compiled from EasyFilter.java */
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.applet.Applet;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.awt.image.MemoryImageSource;
    import java.awt.image.PixelGrabber;
    import java.util.Vector;
    public synchronized class EasyFilter extends Applet implements KeyListener
    private String paramFileName;
    private Color bgColor;
    private Color fgColor;
    private Color parColor;
    private Color sepColor;
    private Color titleColor;
    private Color helpColor;
    private int WinWidth;
    private int WinHeight;
    private String title;
    private String logoFileName;
    private String originalImageFileName;
    private String filteredCaption;
    private String originalCaption;
    private Vector paramsName;
    private Vector paramsValue;
    private Vector paramsComment;
    private Panel panelParameters[];
    private Label labelParameters[];
    private TextField textFieldParameters[];
    private Label labelComments[];
    private int nbParameters;
    private ScrollPane scrollPaneParams;
    private Panel panelParams;
    private Image theLogo;
    private Image theOriginalImage;
    private Image theFilteredImage;
    private int theOriginalPixelArray[];
    private int logoWidth;
    private int logoHeight;
    private int imageWidth;
    private int imageHeight;
    private drawCanvas canvasTitle;
    private Panel panelTitle;
    private Label labelTitle;
    private Panel panelImages;
    private Panel panelOriginalImage;
    private drawCanvas canvasOriginalImage;
    private Label labelOriginalImage;
    private Panel panelFilteredImage;
    private drawCanvas canvasFilteredImage;
    private Label labelFilteredImage;
    private Panel panelHelp;
    private Label labelHelp;
    private int Yspc;
    private FilterImplementation theFilter;
    public void init()
    String string = null;
    string = appletInitialize();
    setBackground(bgColor);
    if (string != null)
    removeAll();
    setBackground(Color.white);
    setForeground(Color.black);
    Label label = new Label(new StringBuffer("Error: ").append(string).toString(), 1);
    Panel panel = new Panel();
    panel.add(label);
    add(panel);
    setLayout(new FlowLayout(1, 5, Yspc));
    public void keyPressed(KeyEvent keyEvent)
    panelHelp.removeAll();
    boolean flag = true;
    if (KeyEvent.getKeyText(keyEvent.getKeyCode()).equals("Enter"))
    for (int i = 0; i < nbParameters; )
    try
    paramsValue.setElementAt(new Double(textFieldParameters.getText()), i);
    i++;
    catch (NumberFormatException e)
    labelHelp.setText(labelParameters[i].getText() + ": Not a Number");
    flag = false;
    break;
    if (flag == 1)
    labelHelp.setText(" .... Running, please wait .... ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    theFilter.updateParameters(paramsValue);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    canvasFilteredImage.repaint();
    panelHelp.removeAll();
    labelHelp.setText("- Done -");
    else
    labelHelp.setText("- Press Enter to run the Filter -");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    public void keyReleased(KeyEvent keyEvent)
    public void keyTyped(KeyEvent keyEvent)
    private String appletInitialize()
    WinWidth = size().width;
    WinHeight = size().height;
    if (getParameter("bgcolor") == null)
    bgColor = new Color(0, 0, 40);
    else
    bgColor = new Color(Integer.parseInt(getParameter("bgcolor"), 16));
    if (getParameter("fgcolor") == null)
    fgColor = new Color(255, 255, 255);
    else
    fgColor = new Color(Integer.parseInt(getParameter("fgcolor"), 16));
    if (getParameter("sepcolor") == null)
    sepColor = new Color(158, 128, 128);
    else
    sepColor = new Color(Integer.parseInt(getParameter("sepcolor"), 16));
    if (getParameter("parcolor") == null)
    parColor = new Color(24, 24, 24);
    else
    parColor = new Color(Integer.parseInt(getParameter("parcolor"), 16));
    if (getParameter("titlecolor") == null)
    titleColor = new Color(255, 255, 0);
    else
    titleColor = new Color(Integer.parseInt(getParameter("titlecolor"), 16));
    if (getParameter("helpcolor") == null)
    helpColor = new Color(0, 255, 255);
    else
    helpColor = new Color(Integer.parseInt(getParameter("helpcolor"), 16));
    paramsName = new Vector();
    paramsValue = new Vector();
    paramsComment = new Vector();
    paramFileName = getParameter("paramfile");
    String string = readParams(paramFileName);
    if (string != null)
    return string;
    MediaTracker mediaTracker = new MediaTracker(this);
    theOriginalImage = getImage(getDocumentBase(), originalImageFileName);
    mediaTracker.addImage(theOriginalImage, 0);
    if (logoFileName != null)
    theLogo = getImage(getDocumentBase(), logoFileName);
    mediaTracker.addImage(theLogo, 1);
    try
    mediaTracker.waitForAll();
    catch (InterruptedException e1)
    return "Error while loading image";
    if (mediaTracker.isErrorAny())
    return "Error while loading image";
    if (logoFileName != null)
    logoWidth = theLogo.getWidth(this);
    logoHeight = theLogo.getHeight(this);
    imageWidth = theOriginalImage.getWidth(this);
    imageHeight = theOriginalImage.getHeight(this);
    theOriginalPixelArray = new int[imageWidth * imageHeight];
    PixelGrabber pixelGrabber = new PixelGrabber(theOriginalImage, 0, 0, imageWidth, imageHeight, theOriginalPixelArray, 0, imageWidth);
    try
    pixelGrabber.grabPixels();
    panelTitle = new Panel();
    canvasTitle = new drawCanvas();
    labelTitle = new Label();
    panelTitle.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelTitle);
    panelTitle.setBackground(bgColor);
    panelTitle.add(canvasTitle);
    canvasTitle.setImage(theLogo);
    canvasTitle.setBounds(0, 0, logoWidth, logoHeight);
    labelTitle.setText(title);
    catch (InterruptedException e2)
    return "Internal Error, Try RELOAD !";
    if (title != null)
    panelTitle.add(labelTitle);
    labelTitle.setForeground(titleColor);
    labelTitle.setFont(new Font("Dialog", 1, 14));
    panelImages = new Panel();
    panelOriginalImage = new Panel();
    canvasOriginalImage = new drawCanvas();
    labelOriginalImage = new Label();
    panelFilteredImage = new Panel();
    canvasFilteredImage = new drawCanvas();
    labelFilteredImage = new Label();
    panelImages.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelImages);
    panelImages.setBackground(bgColor);
    panelOriginalImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelOriginalImage);
    panelOriginalImage.setBackground(Color.black);
    panelOriginalImage.add("Center", canvasOriginalImage);
    canvasOriginalImage.setImage(theOriginalImage);
    canvasOriginalImage.setBounds(0, 0, imageWidth, imageHeight);
    labelOriginalImage.setText(originalCaption);
    labelOriginalImage.setAlignment(1);
    panelOriginalImage.add("South", labelOriginalImage);
    labelOriginalImage.setBackground(Color.lightGray);
    labelOriginalImage.setForeground(Color.black);
    labelOriginalImage.setFont(new Font("SansSerif", 0, 10));
    panelFilteredImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelFilteredImage);
    panelFilteredImage.setBackground(Color.black);
    panelFilteredImage.add("Center", canvasFilteredImage);
    theFilter = new FilterImplementation(paramsValue, theOriginalPixelArray, imageWidth, imageHeight);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    labelFilteredImage.setText(filteredCaption);
    labelFilteredImage.setAlignment(1);
    panelFilteredImage.add("South", labelFilteredImage);
    labelFilteredImage.setBackground(Color.lightGray);
    labelFilteredImage.setFont(new Font("SansSerif", 0, 10));
    scrollPaneParams = new ScrollPane(0);
    panelParams = new Panel();
    nbParameters = paramsName.size();
    int i = WinHeight - (33 + 7 * Yspc + logoHeight + imageHeight + 23);
    if (i < Yspc + 2 + 24)
    i = Yspc + 2 + 24;
    scrollPaneParams.setBounds(0, 0, WinWidth - 10, i);
    panelParams.setLayout(new GridLayout(nbParameters, 1, 5, Yspc / 2));
    scrollPaneParams.add(panelParams);
    panelParams.setBackground(sepColor);
    panelParameters = new Panel[nbParameters];
    labelParameters = new Label[nbParameters];
    textFieldParameters = new TextField[nbParameters];
    labelComments = new Label[nbParameters];
    for (int j = 0; j < nbParameters; j++)
    panelParameters[j] = new Panel();
    panelParameters[j].setLayout(new FlowLayout(0, 5, 1));
    panelParams.add(panelParameters[j]);
    panelParameters[j].setBackground(parColor);
    labelParameters[j] = new Label();
    labelParameters[j].setText((String)paramsName.elementAt(j));
    panelParameters[j].add(labelParameters[j]);
    labelParameters[j].setForeground(fgColor);
    labelParameters[j].setFont(new Font("Dialog", 1, 12));
    textFieldParameters[j] = new TextField(8);
    textFieldParameters[j].setText(paramsValue.elementAt(j).toString());
    panelParameters[j].add(textFieldParameters[j]);
    textFieldParameters[j].setBackground(fgColor);
    textFieldParameters[j].addKeyListener(this);
    labelComments[j] = new Label();
    labelComments[j].setText((String)paramsComment.elementAt(j));
    panelParameters[j].add(labelComments[j]);
    labelComments[j].setForeground(fgColor);
    add(scrollPaneParams);
    panelHelp = new Panel();
    labelHelp = new Label();
    panelHelp.setLayout(new FlowLayout(1, 5, 0));
    add(panelHelp);
    panelHelp.setBackground(bgColor);
    labelHelp.setText(" Change colour values and press enter ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    labelHelp.setForeground(helpColor);
    return null;
    private String readParams(String string1)
    Object object1;
    String string2;
    if (string1 == null)
    return "Filename of filter's parameters needed";
    try
    URL uRL = new URL(getDocumentBase(), string1);
    URLConnection uRLConnection = uRL.openConnection();
    uRLConnection.setDoInput(true);
    uRLConnection.setUseCaches(false);
    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(uRLConnection.getInputStream()));
    string2 = null;
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    if (bufferedReader != null)
    Object object2;
    try
    for (object2 = bufferedReader.readLine(); object2 != null && string2 == null; object2 = bufferedReader.readLine())
    string2 = extractFormat(object2);
    catch ()
    string2 = object2.getMessage();
    finally
    bufferedReader.close();
    if (string2 != null)
    return string2;
    else
    return null;
    private String extractFormat(String string1)
    if (string1.length() == 0)
    return null;
    int i = 0;
    int j = string1.indexOf(" ", i);
    if (j == -1)
    return "Bad format error (space missing)";
    String string2 = string1.substring(i, j);
    if (string2.equals("TITLE"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    title = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    originalCaption = string1.substring(i, j);
    return null;
    if (string2.equals("FILTEREDCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    filteredCaption = string1.substring(i, j);
    return null;
    if (string2.equals("LOGO"))
    i = j + 1;
    j = string1.length();
    logoFileName = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALIMAGE"))
    i = j + 1;
    j = string1.length();
    originalImageFileName = string1.substring(i, j);
    return null;
    if (!string2.equals("PARAM"))
    return null;
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    paramsName.addElement(string1.substring(i, j));
    i = j + 2;
    j = string1.indexOf(32, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    try
    paramsValue.addElement(new Double(string1.substring(i, j)));
    j = string1.indexOf(34, i);
    catch (NumberFormatException e)
    return "Bad format in a PARAM line";
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    paramsComment.addElement(string1.substring(i, j));
    return null;
    public EasyFilter()
    logoHeight = 33;
    Yspc = 5;

    Addition to my above submission
    To clarify, I'll offer the US$20 to the FIRST person who offers me a workable solution to the problem, not to everyone!!!
    JMGRAHAM

  • Help! How to get the Java Communication Package work in JDK1.3.1?

    I downloaded a Java Communications API Win32 ver 2.0 from java.sun.com, and try to use it to do some programming to communication ports with JDK1.3.1.
    I failed. When I tested with the samples (BlackBox, SimpleRead) coming with the javax.comm. It showed "no serial port found", something like that. I check the installation Instructions of the comm. package, it only described the installation under JDK1.1 and the pre-release version of JDK1.2. (and the installation of the same package in JDK1.1 and JDK1.2 are totally different.)I tried the specification with my JDK1.3, but it doesn't work.
    Who knows how to install the Javax.comm package in JDK1.3.1? Please let me know as soon as possible. Thanks a lot.

    This comes straight out of the FAQ that you got with your download:
    Q: My application does not find any ports when it enumerates available ports.
    Q: BlackBox gives me a message that says "No serial ports found!"
    A: In order for the Java communications API to find ports the file
    javax.comm.properties must be in the correct place. The preferred location
    is in <jdk>/lib. See the installation instructions for alternate locations
    and further information.
    Installation is very simple. Comm is a standard extension, so copy comm.jar to %JAVA_HOME%\jre\lib\ext
    This is all in the docs....

  • Loading Java Applet Failed...Anyone please help.

    I am using JDeveloper 10.1.3
    Package: c17UPackage
    Java Applet: C17UPoloTestApplet.java
    Applet Html: C17UPoloTestHtml.html
    When I run C17UPoloTestHtml.html using Embedded OC4J server the HTML pages give me this error "Applet c17UPackage.view.C17UPoloTestApplet notinited" and "Loading Java Applet Failed...".
    In the Java Console it give me this error:
    java.lang.InstantiationError: oracle.jbo.JboException
    at oracle.jbo.common.JBOClass.initLoader(JBOClass.java:93)
    at oracle.jbo.common.JBOClass.<clinit>(JBOClass.java:34)
    at oracle.jbo.common.StringManagerFactory.create(StringManagerFactory.java:112)
    at oracle.jbo.common.StringManager.getSingleton(StringManager.java:110)
    at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:313)
    at oracle.jbo.common.StringManager.getLocalizedString(StringManager.java:286)
    at oracle.jbo.common.StringManager.getString(StringManager.java:226)
    at oracle.jbo.uicli.UIMessageBundle.getResString(UIMessageBundle.java:375)
    at oracle.jbo.uicli.controls.JUNavigationBar.<clinit>(JUNavigationBar.java:188)
    at c17UPackage.view.C17UPoloTestApplet.$init$(C17UPoloTestApplet.java:30)
    at c17UPackage.view.C17UPoloTestApplet.<init>(C17UPoloTestApplet.java:33)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    All the package(c17UPackage, oracle.jbo, oracle.binding, oracle.adf, com.jgoodies and com.sun) I store in the same directory as applet html(C17UPoloTestHtml.html).
    How to solve this problem? Anyone please help?
    Thanks You.

    In one of my project i tried to load applet using the <jsp:plugin> tag but failed. Since i had less time so i have not done the R&D instead i called the applet as
    <applet id="MyApplet" code="MyApplet.class\" archive=\"MyApplet.jar\" width=5 height=3/>and it worked fine for me. You can try this method.
    NOTE: My applet jar file was in the same directory of my JSP page
    Message was edited by:
    diptaPB

  • Javascript to Java (Applet) method call fails in JRE1.4.1 & NN4.79

    Win2k, Netscape 4.79, JRE 1.4.1. I'm trying to call an applet method from Javascript from the page which contains the applet. 'm using MAYSCRIPT tag. I'm getting the error "myApplet doesn'nt have any properties". (myApplet is the name of the applet). When I use the default JRE which is supported by NN4.79(Symantic JRE 1.1.5) it works well. Does JRE1.4.1 plugin doesn't support Javascript to Java calls? OR I'm doing something wrong.
    Deepak

    I'm seeing the same issue. This is supposed to work. I converted the <APPLET> tags in the HTML to use <OBJECT> and <EMBED> tags using Sun's converter (see http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/using_tags.html). I try to reference the applet (using the document.embeds[0] object instead of the document.applets[0] object) and it seems the applet has not been loaded. I can't reference any of the methods in the applet. It appears the applet has not loaded. I do not see any evidence of the applet's init() method being called.
    Have you had any luck getting this to work?

  • How to send response message from Java mapping class? Please help!

    Hi Experts,
      I have a sync scenario
              -Req-->  -
    >
    SOAP           XI       RFC
              <Res--     <-----
      The Req message contains:
      <Order>
           <Orderid>100</Orderid>
           <Desc>Extrenal Order</Desc>
           <Qty>2500</Qty>
      </Order>
      Response message is:
      <Log>
         <LogTxt>Qty value cannot be more than 3 chars</LogTxt>
      </Log>
      In the XI I have to validate the input request message using a schema. For this I am writing a java mapping program using aii_map_api.jar.
    My requirement is that If the input message schema validation fails then I want to send a response message back to sender.
      How can I send a response message back to the sender in java mapping program?
    Kindly help with sample code example.
    Thanks
    Gopal

    Hi,
    First, I think PI 7.1 has this functionality and perhaps it comes in a SP for PI 7.0 and XI 3.0.  So first have a look at that before creating custom development.
    Second, if you use the java mapping, you will only have access to a request or response message.  I would advise using a custom java module in the module processor and insert this message in the sender communication channel.  This will allow you to validate request and send a response.
    Regards,
    Yaghya

  • Java Communication Error - WAD

    Hi
    I get a 'Java Communication Error - Error when opening RFC Connection' when I save or try to execute my web template.
    Any help how to fix this problem...

    Summary
    Symptom
    You are using SAP Netweaver 2004s Web Application Designer.
    An operation that you want to perform is answered by a popup saying:
    "Error during RFC communication (subrc = ...)", followed by the a certain
    function name and in most cases an information that the portal or java
    communication has failed. The message usually has the message class
    RSBOLAP, numbers are 15, 17, 18.
    This may occur during an operation like Save Template, Load Template,
    Validate Template on Server, Load Reusable Web Item, Save Reusable Web
    Item, Get Valuehelp, Execute Template in Portal, Publish Template to...,
    Download of Metadata, and others.
    All of these operations use functionality from the Java Server in some way
    or the other, so they require a valid connection.
    Function modules that may be mentioned in the error message (the list is
    not complete) are:
    RZX2_BTMP_SET, RZX2_BTMP_GET, RZX2_BITM_SET, RZX2_BITM_GET,
    RSWAD_WEBPUB_CALL_SERVICE, RZX2_MIG3X70_DATA_GET, RSWAD_METADATA_GET,
    RSWAD_TEMPLATE_SERVICES, RSWAD_PF_WEBPUBGETVH, ...
    This note also applies if you for example change a Web Template, save it,
    and the changes do not seem to be reflected when executing the Template
    again.
    More Terms
    Setup, RSBOLAP015, RSBOLAP017, RSBOLABP18, RSBOLAP, 015, 017, 018, 15, 17,
    18
    Cause and Prerequisites
    The Web Application Designer needs an active and valid Portal connection
    for most of its operations. It can not be used without being connected to a
    BI backend system (Netweaver BI Server).
    Additionally, the connectivity Java->ABAP and ABAP->Java has to work for
    the user currently logged on.
    The usual communication flow is like this:
    1. The frontend calls for a service on the Netweaver Server.
    2. The call first meets the ABAP server.
    3. The call is processed in the ABAP server as far as possible, and then
    (if necessary) forwarded to the Java server.
    4. The Java server processes the call as far as possible, and if
    necessary calls another service functionality on the ABAP server.
    5. The result is sent back on exactly the same way that it has arrived
    25.01.2007 Page 2 of 3
    SAP Note Number 916090
    RFC-error messages in Web Application Designer 2004s
    (in the most complex scenario: ABAP back to Java, then back to ABAP,
    and then back to the frontend).
    So if either the call from ABAP to Java fails, or the later call Java back
    to ABAP does not work, an RFC-error occurs, leading to the error message in
    the frontend.
    Solution
    This is not an error in the Web Application Designer.
    When such an RFC-connection error occurs, the call from the Web Application
    Designer frontend to the backend has not worked or not received a result.
    In most cases, this means that the requested operation could not be
    performed.
    It may be that only the current call has failed, while the connectivity in
    general is set up correctly. This may be for example, if the maximum number
    of concurrent connections for the Portal is reached at the moment.
    For that reason, please wait a few moments or minutes, and try again to see
    whether the operation can be performed then.
    In most cases, however, the connectivity is not properly configured, so the
    call will not return a result also during the second and all following
    tries.
    In that case please ask your system administrator to set up the ABAP->JAVA
    and JAVA->ABAP connectivity in a valid way (at least for your user...).
    Please use note 888687 and 917950 (and their related notes) for the task.
    If you do not succeed, please make sure to provide all the information
    requested in these notes in your message. Otherwise an efficient message
    processing is not possible, postponing the solution unnecessarily.
    Header Data
    Release Status: Released for Customer
    Released on: 27.02.2006 11:11:38
    Priority: Recommendations/additional info
    Category: Consulting
    Main Component BW-BEX-ET-WEB-AD WEB Application Designer (Publishing)
    Additional Components:
    BW-BEX Business Explorer
    BW-BEX-ET Enduser Technology
    BW-BEX-ET-WEB BEx Web ABAP Runtime
    BW-BEX-ET-WEB-RT WEB Run Time
    Valid Releases
    25.01.2007 Page 3 of 3
    SAP Note Number 916090
    RFC-error messages in Web Application Designer 2004s
    Software Component Release From
    Release
    To Release and
    Subsequent
    SAP_BW 70 700 700
    SAP_BW 710 710 710
    Related Notes
    Number Short Text
    953109 RSPOR_SETUP: "Option Unicode flag is not set (ABAP is Unicod
    917950 SAP NetWeaver 2004s: Setting Up BEx Web
    888687 BEx Web Java: Analysis of communication/logon problems
    Attributes
    Attribute Value
    weitere Komponenten 0000000050
    weitere Komponenten 0000030974
    weitere Komponenten 0000032291
    weitere Komponenten 0000034475

  • Java Communication error:Error while opening an RFC connection

    Hi,
    I am getting Java Communication error:Error while opening an RFC connection when i try to run a query from Bex analyser.
    please let me know how to resolve this
    Thanks
    Bala Duvvuri

    This error usually comes when the java stack is not upgraded.
    when you upgrade yourABAP stack, simultaneously you have to upgrade the java stack also.
    Please co-ordinate with your basis team to inform EP team to upgrade the java stack when basis team do ABAP stack upgrade.
    Hope this would help you.

  • I can no longer scroll with the button on my touch pad. Have tried everything on Firefox help and still can't scroll....HELP please.

    I have just updated to the Firefox 4 Beta and from having no problems at all with the previous version I can now no longer scroll. I have reloaded my touch pad drivers and also been onto "about:config" and altered various things suggested by 'firefox help' and still no luck. The scroll button on the touch pad does still work as I can still scroll in Thunderbird and any of the other programs that I use, just not with Firefox any longer. Any suggestions would be gratefully received. Many thanks.

    Since today the scrolling started to work for me. Was there a fix auto installed? I havent updated anything that I know about.
    I might have uninstall an old Java JRE, don't remember when I did it, could that have done it?

  • A Firefox Help page appears for a moment, and is then wiped, in FF4RC

    I go to the Firefox Help Page 'Viewing video in Firefox without a plugin', and the body content appears for a few moments (on my Vista laptop), and then disappears, leaving only the Title,the Contributors line, a block of white space, the nurse pussycat image and text block. The stuff on the RHS is OK.
    I get the same on this w7 laptop, except I don't see the proper page at all (possibly because this laptop is quicker?).
    On 3.6.15, on both laptops, the page appears correctly, I think.
    I guess my question is can someone who knows how to submit a formal bug report on FF4 see if they can reproduce this, and if so, then please submit such a report?
    Or you could maybe tell me what I'm doing wrong; though as it fails on two separate laptops in FF4, and works on both in FF3.6.15, I don't think I am doing anything wrong.
    I've added troubleshooting info below, obediently, but I doubt it's needed...

    I'll make a note of that in the correct forum about specifically stating when an article doesn't apply to Firefox 4.0.

  • Java script not working..help plzzzz

    i am trying to do the following but not getting the result..help me plzzz
    admin.jsp
    <html>
    <script language="JavaScript">
    function compare()
    var name1;
    var pwd1;
    var repwd1;
    name1=name.value;
    out.println(name1);
    </script>
    <body>
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.*" %>
    <%
    String staff=request.getParameter("staff");
    if ("add".equals(staff))
    %>
    <p>Name<input type ="text" name="name" size="10"></p>
    <p>Password<input type ="text" name="pwd" size="10"></p>
    <p>Re-enter password<input type ="text" name="repwd" size="10"></p>
    <p>Accesslevel<input type ="text" name="Name" size="10">
    <input type="submit" name="b1" value=" Go " onClick="compare()">
    <%}%>
    </body>
    </html>
    i cannot pass the text value to the javascript function...why?..help me plzzzz.

    This is not a javascript forum, but you may want to look up something called document.getElementById().

  • Javascript acts funny in IE & not Firefox

    I have a page uploaded on a server with 5 buttons that conrol
    a sub-menu selection thru javascript. When I preview the page in
    Firefox it acts like it should, no problems. When I view the page
    using Internet explorer only one of the sub-menus decide to work.
    Is there anyone who might be able to help me fix this? Thanks in
    advance for the help.
    http://stewg76.atspace.com

    Here's the javascript that I'm trying to fix. I'm not sure
    what to replace the outerHTML with to fix this, as it was written
    by someone else, and I hate to admit it, I'm not very good with
    javascript, so I really appreciate all your help. :-)
    <script type="text/javascript">
    // Node expand/collapse functionality
    function expandNode( id )
    var objDiv, objImage, strInner
    objDiv = document.getElementById('div' + id);
    objImage = document.getElementById('image' + id);
    strInner = objDiv.innerHTML;
    if( objImage.src.indexOf( "plus" ) > 0 )
    objDiv.outerHTML = "<div id='div" + id + "'
    style='display:inline'>" + strInner + "</div>";
    objImage.src = "/img/minus.gif";
    else
    objDiv.outerHTML = "<div id='div" + id + "'
    style='display:none'>" + strInner + "</div>";
    objImage.src = "/img/plus.gif";
    </script>

Maybe you are looking for