Problem in calling applet function in jsp

When i am trying to load Java applet through jsp, i get this error :
Java Plug-in 1.6.0_02
Using JRE version 1.6.0_02 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\pankajb
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
load: class CAppletDisplay.class not found.
java.lang.ClassNotFoundException: CAppletDisplay.class
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadCode(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)
Caused by: java.io.IOException: open HTTP connection failed.
     at sun.applet.AppletClassLoader.getBytes(Unknown Source)
     at sun.applet.AppletClassLoader.access$100(Unknown Source)
     at sun.applet.AppletClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     ... 10 more
<jsp:plugin type="applet" code="CAppletDisplay.class" codebase="." width="857" height="687" align="left">
        <jsp:params>
           <jsp:param name="machine" value="server" />
          <jsp:param name="port" value="1433" />
          <jsp:param name="Databasename" value="Timba" />
          <jsp:param name="userid" value="sa" />
          <jsp:param name="password" value="password"/>
           </jsp:params>
           <jsp:fallback>There is a problem with your browser ...</jsp:fallback>
     </jsp:plugin>

load: class CAppletDisplay.class not found.
java.lang.ClassNotFoundException: CAppletDisplay.classthat means that client jre didn't find the CAppletDisplay class.
make sure that you put this class in the right directory.

Similar Messages

  • Problem with call of function F4UT_RESULTS_MAP in search help exit

    Hi everybody,
    i have a problem concerning call of function F4UT_RESULTS_MAP.
    I call this function in this way:
    CALL FUNCTION 'F4UT_RESULTS_MAP'
           TABLES
                shlp_tab          = p_shlp_tab
                record_tab        = p_record_tab
                source_tab        = lt_zv055[]
           CHANGING
                shlp              = p_shlp
                callcontrol       = p_callcontrol
           EXCEPTIONS
                illegal_structure = 1
                OTHERS            = 2.
    in lt_zv055[] there are results from previous select, but i want to select only values,
    that match select options that are specified in p_shlp.
    But it always shows all the values that are in lt_zv055.
    What am i doing wrong?
    Thanks in advance.

    Read the "Notes" part in FM documentation and you will find the reason .

  • How jsp can call applet functions

    good morning to all java experts
    i have one problem that is
    in my application i have one applet in the server side which contains functions like encryption, decryption, hash functions.
    whenever any client wants to store some information on server side then he download the applet from the server and he gives his own key and encrypt all the contents and these encrypted message only transmitted through media and store on server side
    whenever clients wants to retrieve some information from server then he fetch the only encrypted message to client side then he down load the applet from server and decrypts the message as he pass the previous key.
    the problem is that whenever jsp calls the applet functions through javascript it displaying error message like: error in the jsp page
    but this concept working through html page properly
    plss reply as soon as possible
    thanking uuu

    the problem is that whenever jsp calls the applet functions through javascript Show the relevant code how you thought to accomplish this (this is namely impossible without firing a new request to the server).
    it displaying error message like: error in the jsp pageAnd further on, you -as developer- should know that it is not-done and unclear to talk about errors if they are irrelevant. Always post and the full, complete, original and unchanged error message and -if in Java- also the stacktrace. They are helpful in debugging.

  • Linux: JS cannot call Applet functions

    I was wondering if anyone else has had this problem:
    Our platform is RedHat Linux 7.2 with Mozilla 0.9.7 and 0.9.8 as well as NS 6.2.1 (I have tried JRE 1.3.1_01 and 1.4 rc1)
    Whenever I load our applet in a frame and try to call the applet functions I get a JS error stating "Applet.xxx() is not a valid function"
    Loading the same applet in a standard page (no frames) works fine. Also the framed applet works fine on the windows platform.
    I'm guessing this is more of a Mozilla/NS problem that a Java problem, but I have foudn little information elsewhere and this forum seems to be filled with lots of great info.
    I have submited this as a Mozilla bug:
    http://bugzilla.mozilla.org/show_bug.cgi?id=121641
    The URL has case code examples.
    Thanks, Jesse

    If your applet requires a Java plugin, you have to realize that Netscape's LiveConnect has not been fully ported to JRE1.4 rc1 and neither Mozilla nor NN6.2.1 has its own JVM. Altho I have NN6.2, I seldom use it because it's still very buggy and extremely slow.
    V.V.

  • Problem in call library function

    Hi,
    I encountered some problems when using call library function node.
    After i select the path in configuration of call library function node, an error message is shown as 1st attachment.
    After i tick and the specified path on diagram, link the path name to the node, and run the program. Another error message is shown as 2nd attachment.
    Is my dll file got problem? Or i have done a wrong setting?
    Here i have attached my dll file.
    The dll file is built by Microsoft Visual Studio 2008.
    Please kindly advise.
    Thank you.
    Attachments:
    picture1.JPG ‏14 KB
    picture2.JPG ‏17 KB
    CodeUtil.zip ‏152 KB

    TanTan wrote:
    Hi,
    Is my dll file got problem? Or i have done a wrong setting?
    It seems to be compiled for WinCE. Assumed that you have Win2000/XP/Vista/7. Check your MSVC build settings.
    Andrey.

  • Problem in Calling a Function

    Here is my code, I dohave problem in exceute method when I run the application. Below you can find the console trace. alloc is a function which string as a input and return string .
    Can some one please help me in calling the function from jdbc
    cst = con.prepareCall(" {? = call alloc(?)} ");
    cst.registerOutParameter(1,OracleTypes.VARCHAR);
    cst.setString(2, "BK");
    cst.execute();
    java.lang.NullPointerException
    at oracle.jdbc.ttc7.TTCAdapter.newTTCType(TTCAdapter.java:300)
    at oracle.jdbc.ttc7.TTCAdapter.createNonPlsqlTTCColumnArray(TTCAdapter.java:270)
    at oracle.jdbc.ttc7.TTCAdapter.createNonPlsqlTTCDataSet(TTCAdapter.java:231)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1934)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2149)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2032)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2894)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:684)
    at com.att.abs.dao.DatabaseFunctionChecking.main(DatabaseFunctionChecking.java:24)

    You are using a 9.2 or older version of the drivers. Oracle recommends that you always use the most recent version, currently 11.2.0.1.0.
    Douglas

  • Problem in Calling a function in sql statement.

    hi,
    I am having a function ops_safex_utl.EDIT_ASSC_CNTR_LOG(id number);
    when i am trying to use this inside a sql statement as shown below, it is giving error (exception part inside the function).
    SQL> select ops_safex_utl.EDIT_ASSC_CNTR_LOG(688) from dual;
    OPS_SAFEX_UTL.EDIT_ASSC_CNTR_LOG(688)
    -1 (-- exception )
    when i am trying to call this function using a PL/SQL Block then it is woking fine as shown below.
    SQL> DECLARE
    2
    3 x NUMBER(2);
    4
    5 BEGIN
    6
    7 x := ops_safex_utl.EDIT_ASSC_CNTR_LOG(688);
    8
    9 dbms_output.put_line('x '||' '||x);
    10
    11 END;
    12 /
    hi
    insert into ops_assc_cntr_log
    insert into ops_ac_ex_gratia_log
    insert into ops_ac_sls_dlvry_slab_dtls_log
    insert into ops_ac_sls_dlvry_slab_dtls_log
    insert into ops_ac_sls_dlvry_slab_dtls_log
    insert into ops_ac_sls_dlvry_slab_dtls_log
    insert into ops_ac_sls_dlvry_slab_dtls_log
    insert into ops_ac_spl_acct_dtls_log
    insert into ops_ac_spl_acct_slab_dtls_log
    insert into ops_ac_spl_acct_slab_dtls_log
    insert into ops_ac_spl_acct_slab_dtls_log
    insert into ops_ac_spl_acct_dtls_log
    insert into ops_ac_spl_acct_slab_dtls_log
    insert into ops_ac_spl_acct_slab_dtls_log
    insert into ops_ac_spl_acct_slab_dtls_log
    update ops_assc_cntr
    success
    x 0
    PL/SQL procedure successfully completed.
    when i am trying to run the SQL statement it is returning a exception from the function.
    SELECT ops_safex_utl.EDIT_ASSC_CNTR_LOG(688) from dual --it is returning -1 (i.e exception).
    My sql client version is 9.2.0.1.0. and my data base version is 10.2.0.2.0.
    Please advice.

    Could you post the exception handler within the function.
    It sounds like you return -1 if you experience an error - it would be easier to determine the cause of the problem if you return the Oracle error details, E.g:
    EXCEPTION
       WHEN OTHERS THEN
          RETURN dbms_utility.format_error_backtrace;This will then return a meaningful error, identifying exactly what is causing the error to be generated.

  • Strange problem of calling library function node in labview 2010 and 2011

    one year ago,I develop a program to usb device data and it works well,in labview 8.6 or 2009(win xp).Recently, When I test
    the program in labview 2010 and labview 2011(win xp).,the program always crash immediately.I check the program and find main
    problem is in call library function node. In my program,I use labview 2009 library for the USBExpress driver for
    Silicon Labs USB MCU's from:https://decibel.ni.com/content/docs/DOC-9522,for example, 2 functions SI_OPEN and SI_READ
    can not work well.
    the header definition of SI_OPEN and SI_READ is:
    SI_STATUS WINAPI SI_Open(
    DWORD dwDevice,
    HANDLE* cyHandle
    SI_STATUS WINAPI SI_Read(
    HANDLE cyHandle,
    LPVOID lpBuffer,
    DWORD dwBytesToRead,
    LPDWORD lpdwBytesReturned,
    OVERLAPPED* o = NULL
    the SI_STATUS is equivalent to int type.
    orignally, for HANDLE * in SI_Open, the parameter type in call library function node is numeric, data format is unsigned 32 bit integer ,and pass pointer to value.
    for HANDLE in SI_Read, the parameter type in call library function node is numeric, data format is unsigned 32 bit integer ,and pass value.The program works well in labview 8.6&2009,however,crash in labview 2010 &2011.
    later,I debug the program, for HANDLE *, I choose parameter type in call library function node as adapt to type, data format is point to Handles.for HANDLE, I choose parameter type in call library function node as adapt to type, data format is Handles by Value.Crash not happend in labview 2010&2011,however,it cannot read any data from from USB device correctly as before.I can not find the reason.
    Dear friends,I need your help to answer the problem. Thank you.

    Based on the help page it looks like it should execute asynchronously.
    The thing in the description that leads me to believe they execute asynchronously is that you can configure the library to run as a multi-threaded operation.
    Please take a look here to see the difference between synchronous and asynchronous execution.
    Since the code even has the ability to be multi-threaded, you can consider it as running in parallel to your other code.
    Any data returned is passed to the thread that called that function.
    Cory K

  • Call a function in jsp

    in html we can call a user define function at any event and include the function within <script> </script>.
    eg:
    <script language="javascript">
    <!--
    function GetData() {
    // do something
    -->
    </script>
    <input type="submit" text="submit" onclick="GetData()">
    but how are we going to call the function GetData() in jsp ..... are we using this tag <% %> ?? how does the syntax like ??
    Please assist... thanks

    Hi
    <html>
    <head>
    <script language="JavaScript">
    <!--
    function isValidDate(frm) {
         if(frm.T1.value.length == 0) {
    alert("please enter the date");
    frm.T1.focus();
    else {
    if(isBlank(frm.T1.value)) {
    alert("Please enter the date");
    frm.T1.focus();
    frm.submit();
    } // closing the function isValidDate()
    function isBlank(txt) {
         if( txt.length == getCountOf(' ', txt) ) {
         return true;
         else {
         return false;
    } // closing the function isBlank
    //-->
    </script>
    </head>
    <body>
    <form name="test">
    date <input type="text" name="T1" size="22">
    <p>
    <input type="button" value="Submit" name="B1" onClick="javascript:isValidDate(this.form);">
    <input type="reset" value="Reset" name="B2">
    </form>
    </body>
    </html>
    this helps in validating your form
    cheers
    rambee

  • Problem in calling the function

    HI
    i am creating the dynamic xml menu drop down menu in flash ,
    1) CreateMainMenu --- used to create the m ain
    menu..........
    2) getEmpDetailsFrmXML ------- used to load the xml file...
    3) GenerateMenu ------ used to genereta the menus.. in run
    time ....
    but in the GenerateMenu when user roll over the main menu
    it'll check whether is there any submenu is there or not
    if it's available ,then it need to call this
    GenerateMenu("submenu_mc", 110, 90, 500, node_xml); function
    but it's not calling the function...... i tried to used some
    sample function also like test() ... it also not working....
    Can any help me to clear this issue....
    ~~SK

    Hi,
    Can any one help me to solve this issue...
    ~~
    Sk

  • Problem in calling AVM1Movie function

    Hello all,
    I have loaded an Action Script 2.0 swf file in Action Script 3.0 file. I want to call a function of  Action Script 2.0 function from  Action Script 3.0 file.
    following is the code i am using.
    Action Script 3.0:
    var loader:Loader=new Loader();
    loader.load(new URLRequest("2.swf"));
    addChild(loader);
    loader.contentLoaderInfo.addEventListener(Event.INIT,swfloaded);
    var banerObject;
    function swfloaded(e:Event) {
        banerObject=Object(loader.content);
    btn.addEventListener(MouseEvent.CLICK,clicked);
    function clicked(e:Event){
        banerObject.as2function();
    Action Script 2.0:
    function as2function(){
    trace("function is called");
    Please let me know, how i can call that function.

    I believe you need to make use of LocalConnection to communicate between different version files.  While I am fairly well confused with it, the following may be helpful for you.
    http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html

  • Calling applet in a jsp

    Hi
    How do i include an applet in a jsp file.I need to send a parameter to
    the applet as well .
    Thanks

    You use an HTML Applet tag:
    http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/using_tags.html

  • Problem with Call Library Function. Want to pass a string and return a string, but my compiler does not recognize "CStr" and Labview does not recognize my "char *function()" callout

    Hi, I'm trying to use a .DLL I wrote in Visual C++ .NET. The Call Library Function generates a function prototype of "CStr Parser(CStr arg_raw)"
    but my compiler won't accept this. So I change it to how C normally deals with strings "char *Parser(char *arg_raw). Now the Call Librafy Function does not find "Parser" in my .DLL though it is definitely there!
    Help!
    -Fong

    Hello
    You will need to include extcode.h in your C file. You can find this under ..\LabVIEW\cintools folder.
    The include has all the defines you will need.
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • Problem with calling a function through onclick event in a tag

    Hi All,
    I have a text which should act as a link.
    On click of this text i need to display the table in the same page.
    this is how i want to do
    !<_ a     !st y l e='cursor pointer' h_ r  ef ='  #' !o n cl ick = " l o a dtc () "  _> display table _<  /  _a  _ >
    !<   % if i_ref = ' X' % _>
    !<   !h t m lb : t a bleVi ew id =" tv_vbak " tabl e= <  %  = it_vbak  % _ >
    !< s_c rip  t t y p e  =   "te  xt/ja  v a s c r ipt" >
    !f unct io n lo a dt c ()
    i_ref='X'.
    !<  _/ s c r i pt _>
    here am setting a flag and if that flag is set i will display the table.
    Please ignore the unewanted characters in my code. i was not able to paste the code directly.
    Thanks,
    Sandeep
    Edited by: SandeepReddy on May 25, 2010 9:22 AM

    Hi Sandeep,
    are you using javascript to get the link in the text view?
    i will tell u onething clearly.
    if you are using javascript in ur code, debugging will not wrk properly , what you need to do is add the alert in between so that you can know whether that particular code is wrking or not ok. 
    2) to call the javascript from the textview or the inputfield you have a attribute called onClientClick you need to call the function there and implement that function in javascript.
    <htmlb:textView text   = "<%= i_str %>"
                            design = "EMPHASIZED"
                            onClientClick = loadtc() />
    add ur javascript code ok
    cheers
    Bhavana
    Edited by: Bhavana Amar on May 25, 2010 10:25 AM

  • Problem with calling a function within a function

    My problem is with the getWidth and getLength functions. The problem I am having is with the fact that when I get an incorrect input I pass it through the function again, which give me a weird return. The return I get is the correct input plus all the previous incorrect inputs after that. The one that gets returned is first incorrect input? I don't know if you understand, but I would appreciate help for this beginner.
    **Sorry about posting in this forum... I just realized this is not for beginners. Help would still be appreciated.**
    import java.util.Scanner;
    //Calculates the area of a rectangle
    public class AreaRectangle {
        private static Scanner c = new Scanner(System.in);
        private static boolean isNumber(String in) {
            boolean isNum = false;
            int count = 0;
            for (int i=0;i<in.length();i++) {
                if (in.charAt(i) >= '0' && in.charAt(i) <= '9' || in.charAt(i) == '.') {
                    if (in.charAt(i) == '.') {count++;}
                    else if (count > 1){isNum=false;break;}
                    else {isNum = true;}
                else {
                    isNum=false;
                    break;
            return isNum;
        public static double getLength() {
            String input;
            boolean isNum;
            double length = 0;
            System.out.print("Please enter the rectangle's length: ");
            input = c.nextLine();
            isNum = isNumber(input);
            if (isNum) {
                length = Double.parseDouble(input);
            else {
                System.out.println("Incorrect input!");
                getLength();
            System.out.println(input);
            return length;
        public static double getWidth() {
            String input;
            boolean isNum;
            double width = 0;
            System.out.print("Please enter the rectangle's width: ");
            input = c.nextLine();
            isNum = isNumber(input);
            if (isNum) {
                width = Double.parseDouble(input);
            else {
                System.out.println("Incorrect input!");
                getWidth();
            System.out.println(input);
            return width;
        public static double getArea(double length, double width) {
            return width*length;
        public static void displayData(double length, double width, double area) {
            System.out.println("Width = "+width+" "+"Length = "+length+" "+"Area = "+area);
        public static void main(String[] args) {
            double l, w, a;
            l = getLength();
            w = getWidth();
            a = getArea(l, w);
            displayData(l, w, a);
    }Edited by: x713 on Apr 12, 2008 7:12 PM
    Edited by: x713 on Apr 12, 2008 7:19 PM

    You're calling things recursively and that's not good (at least not here).
    To clarify, please look:
        public static double getLength() {
            if (something) {
                do something else
            else {
                System.out.println("Incorrect input!");
                getLength();  // you call the entire method again here! This is the recursive call
        }Better is to have a while loop inside the method and repeat this loop until the input that the user enters is correct (or until they quits).

Maybe you are looking for

  • Photoshop CS5 Extended - Not starting after many years of use.

    I have Photoshop CS5 Extended. I have had this programme several years now,  which I use on my Mac. 10.7.5. I have today tried to open an image in my photoshop and is giving me all sorts of trouble. What can the problem be?

  • ITunes could not sync calendars to iPhone because the iPhone disconnected

    error message iTunes could not sync calendars to iPhone because the iPhone disconnected I have spoken to Apple a couple of times in the last week (approx 2hr) apple support said it could be a Microsoft issue I have spoken to Microsoft and read endles

  • Duplicate data in table

    I am designing a form that has two tables. The user is supposed to enter their data in the first table, and that data automatically copies to the second table (so when they print the form, they have two copies of the same thing while only having to e

  • How can I make the pen lines invisible?

    I have made lots of edits with the pen tool, and I am noticing that the lines from the pen are a different color than what the shape is I made. Is there a way to make these lines from the pen invisible? Thanks so much for any help!

  • Problem downloading Itunes 10.5.2 :

    I'm not sure if this has happened to anyone else, but I'm having trouble downloading Itunes 10.5.2. I get the message that an update is available, but when I click on "download now", nothing happens. I am running windows 7 home premium - 64 bit opera