EJB Run Time Error!.........  Plz Help Me ASAP

hi all,
i got an exception while running the client program
"java.lang.ClassCastException:ExeBean_yceoj3_HomeImpl:
the Server Program(ExeBean) are given below..
i think this above mentioned exception is related to this code
plz check this code... i am waiting for ur reply...
import javax.naming.*;
import javax.sql.*;
import java.sql.*;
import javax.ejb.*;
import java.rmi.*;
import java.lang.*;
public class ExeBean implements SessionBean
     Connection con=null;
     public void setSessionContext(SessionContext sc)
     public void ejbActivate()
     public void ejbPassivate()
     public void ejbRemove()
          try
               con.close();
          catch(Exception e)
               System.out.println(e);
     public void ejbCreate() throws CreateException, RemoteException
          try
               InitialContext ic=new InitialContext();
               DataSource d=(DataSource)ic.lookup("java:comp/env/jdbc/examples");
               con=d.getConnection();
          catch(Exception e)
               System.out.println(e);
          public boolean validate(String u, String p)throws RemoteException
               try
                    PreparedStatement p1=con.prepareStatement("Select pwd from testusers where userid=?");
                    p1.setString(1,u);
                    ResultSet rs=p1.executeQuery();
                    while(rs.next())
                         String t=rs.getString(1);
                         if(t.equals(p))
                              return true;
                         else
                              return false;
               catch(Exception e)
                    System.out.println(e);
               return false;
};

hi Thomos,
again i got same exceptions plz check the below code samples
Remote:
import javax.ejb.*;
import java.rmi.*;
public interface Exe2 extends EJBObject
     public boolean validate(String u, String p) throws RemoteException;
Home:
import javax.ejb.*;
import java.rmi.*;
public interface ExeHome extends EJBHome
     public Exe2 create() throws CreateException, RemoteException;
Server :
import javax.naming.*;
import javax.sql.*;
import java.sql.*;
import javax.ejb.*;
import java.rmi.*;
import java.lang.*;
public class ExeBean implements SessionBean
     Connection con=null;
     public void setSessionContext(SessionContext sc)
     public void ejbActivate()
     public void ejbPassivate()
     public void ejbRemove()
          try
               con.close();
          catch(Exception e)
               System.out.println(e);
     public void ejbCreate() throws CreateException, RemoteException
          try
               InitialContext ic=new InitialContext();
               DataSource d=(DataSource)ic.lookup("java:comp/env/jdbc/examples");
               con=d.getConnection();
          catch(Exception e)
               System.out.println(e);
          public boolean validate(String u, String p)throws RemoteException
               try
                    PreparedStatement p1=con.prepareStatement("Select pwd from testusers where userid=?");
                    p1.setString(1,u);
                    ResultSet rs=p1.executeQuery();
                    while(rs.next())
                         String t=rs.getString(1);
                         if(t.equals(p))
                              return true;
                         else
                              return false;
               catch(Exception e)
                    System.out.println(e);
               return false;
Client :
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.naming.*;
import javax.rmi.*;
public class Client extends JFrame
     JTextField t1=null,t2=null;
     public Client()
          Container c=getContentPane();
          c.setLayout(new FlowLayout());
          c.add(new JLabel("UserName :"));
          t1=new JTextField(15);
          c.add(t1);
          c.add(new JLabel("Password :"));
          t2=new JTextField(15);
          c.add(t2);
          JButton b =new JButton("Login");
          c.add(b);
          b.addActionListener(new MyAction());
          setSize(300,400);
     public static void main(String args[])
          new Client().setVisible(true);
     class MyAction implements ActionListener
          public void actionPerformed(ActionEvent ae)
               try
                    java.util.Hashtable h=new java.util.Hashtable();
                    h.put(Context.PROVIDER_URL,"t3://manju:7001/");
                    h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
                    InitialContext ic=new InitialContext(h);
                    ExeHome eh=(ExeHome)ic.lookup("jdbc/examples");
                    Exe2 e2=eh.create();
                    String u=(String)t1.getText();
                    String p=(String)t2.getText();
                    //boolean b=e2.validate(u, p);
                    System.out.println("boolean result b:"+e2.validate(u, p));
               if(e2.validate(u, p))
                         System.out.println("valid user");
                    else
                         System.out.println("invalid user");
               catch(Exception e)
                    System.out.println(e);
weblogic-ejb-jar.xml :
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN'
'http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>ExeBean2</ejb-name>
<jndi-name>jdbc/examples</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Ejb-jar.xml :
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN'
'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>ExeBean2</ejb-name>
<home>ExeHome</home>
<remote>Exe2</remote>
<ejb-class>ExeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<resource-ref>
                                   <res-ref-name>jdbc/examples</res-ref-name>
                                   <res-type>javax.sql.DataSource</res-type>
                                   <res-auth>Container</res-auth>
     </resource-ref>
</session>
</enterprise-beans>
</ejb-jar>
plz check these above code snippets, if any thing worng in this above code plz modify.. i am waiting for the solution..
thanks in advance
from
Sree

Similar Messages

  • Run-time ERROR! Help Please...

    Hello everyone,
    I got a run time error for my very short program please anyone help me!!!
    My source code is
    //LKOracleDB.java
    public class LKOracleDB
         public static void main()
    I set path to jdk14b2\bin ,
    and I set classpath to jdk14b2\lib
    I compiled it with no error by using
    =>javac LKOracleDB.java
    then when I tried to run it with
    =>java LKOracleDB
    It show this error
    =>Exception in thread "main" java.lang.NoClassDefFoundError: LKOracleDB
    .... What could be the problem? Please help..
    Thanks in advance,
    lenk....

    Is your source file in a package?No, my source file is not in any package what u see is all code in my .java file. Do I need to put it in package? If so please tell me a little bit more.
    Are you running the java command from the same >directory that you compiled the code from?Yes, I recheck it.
    Your main() should be (String[] args) or else it is not >considered a valid main for the JVM to start. I change it but It still not work...?
    Thanks for your opinion
    lenk

  • ORA-01002 run-time error for help

    Hi, All:
    I modified little in Sample10.pc of PRO*C sample code to fit both NT and
    Linux using 8i version precompiler, with VC++ and GCC Compiler respectively.
    All process were fine when they connected to a DB Server(8i version), but
    when they connected to the other Server(8 version), the error : ORA-01002
    (Fetch out of sequence) was always issued at run-time. I checked the error
    message and found that the program was stuck on the "PREPARE" description. I
    have spent much more time debugging, but it still didn't work. Could you
    help me? I'm so preciated.
    Best regards,
    Yen-Gou Pan
    null

    Hello,
    This error comes when  there is an OpenSQL statement that tries to insert a record into a database table that is already existing.
    You need to implement  SAP Note 196113 and 1041894 along with technical consultant to help and overcome the issue.
    Br,
    Tushar

  • Run-time errors--need help

    Hi everyone,
    I'd greatly appreciate some help with this java program...here's the problem:
    Create a class Person that does the following:
    1. Set the Last Name only
    2. Set the First Name only
    3. Set the Middle Name only
    4. Gets the First Name
    5. Gets the Middle Name
    6. Gets the Last Name
    7. Check whether a given last name is the same as the last name of this person.
    8. Check whether a given last name is the same as the first name of this person.
    9. Check whether a given first name is the same as the middle name of this person.
    10. A method called equals that returns true if two objects contains the same first, middle, and last name
    11. A method called makeCopy that copies the instance variables of a Person object into another Person object.
    12. A method called getCopy that creates and returns the address of the object, which is a copy of another person object.
    13. A method for a copy constructor.
    14. A toString method to print out the name in the form (First Middle Last)
    15. Write the definitions of the methods of the class Person to implement the operations for this class.
    16. Write a test program to test the above.
    This is what I have but I think I'm missing some of the above...also, my if...else statements aren't running the way I want.. '
    public class Person {
    private String firstName;
    private String lastName;
    private String middleName;
    public Person (String first, String middle, String last) {
    firstName = first;
    lastName = last;
    middleName = middle;
    public Person() {
    firstName = "";
    lastName = "";
    middleName = "";
    public String toString() {
    return (firstName + " " + middleName + " " + lastName);
    public void setFirstName(String first) {
    firstName = first;
    public void setMiddleName(String middle) {
    middleName = middle;
    public void setLastName(String last) {
    lastName = last;
    public String getFirstName() {
    return firstName;
    public String getMiddleName() {
    return middleName;
    public String getLastName() {
    return lastName;
    public boolean equals(Person otherPerson) {
    return (lastName.equals(otherPerson.lastName) && firstName.equals(otherPerson.firstName));
    public void makeCopy(Person otherPerson) {      
    lastName = otherPerson.lastName;
    middleName = otherPerson.middleName;
    firstName = otherPerson.firstName;
    public Person getCopy() {
    Person temp = new Person();
    temp.firstName = firstName;
    temp.lastName = lastName;
    temp.middleName = middleName;
    return temp;
    public Person(Person otherPerson) {
    firstName = otherPerson.firstName;
    middleName = otherPerson.middleName;
    lastName = otherPerson.lastName;
    public void printName() {
    System.out.println(firstName + "," + middleName + "," + lastName);
    } and the test program follows
    import java.util.Scanner;
    public class TestProgPerson {
       static Scanner console = new Scanner(System.in);
       public static void main(String[] args) {
          Person myName = new Person("Bill", "Andrew", "Johnson");
          Person yourName = new Person();
          String firstName;
          String middleName;
          String lastName;
          System.out.print("My Name: ");
          myName.printName();
          System.out.println();
          System.out.print("Your Name: ");
          yourName.printName();
          System.out.println();
          System.out.print("Enter your first, middle, and last name: ");
          firstName = console.next();
          middleName = console.next();
          lastName = console.next();
          System.out.println();
          yourName.setName(firstName, middleName, lastName);
          if (myName.equals(yourName))
          System.out.println("Both people are the same.");
          else
          System.out.println("The two people are not the same.");
          myName.setFirstName(firstName);
          myName.setMiddleName(middleName);
          myName.setLastName(lastName);
          System.out.print("My new name: ");
          myName.printName();
          System.out.println();
          yourName.makeCopy(myName);
          System.out.print("After copying myName into yourName, yourName: ");
          yourName.printName();
          System.out.println();
    }

    public class Person {
         private String firstName;
         private String lastName;
         private String middleName;
         public Person (String first, String middle, String last) {
              firstName = first;
              middleName = middle;
              lastName = last;
         public Person() {
              firstName = "";
              lastName = "";
              middleName = "";
         public String toString() {
              return (firstName + " " + middleName + " " + lastName);
         public void setName(String first, String middle, String last) {
              firstName = first;
              middleName = middle;
              lastName = last;
         public void setFirstName(String first) {
              firstName = first;
         public void setMiddleName(String middle) {
              middleName = middle;
         public void setLastName(String last) {
              lastName = last;
         public String getFirstName() {
              return firstName;
         public String getMiddleName() {
              return middleName;
         public String getLastName() {
              return lastName;
         public boolean equals(Person otherPerson) {
              return (firstName == otherPerson.firstName && middleName == otherPerson.middleName &&
                             lastName == otherPerson.lastName);
         public void makeCopy(Person otherPerson) {
              firstName = otherPerson.firstName;
              middleName = otherPerson.middleName;
              lastName = otherPerson.lastName;
         public Person getCopy() {
              Person temp = new Person();
              temp.firstName = firstName;
              temp.lastName = lastName;
              temp.middleName = middleName;
              return temp;
         public Person(Person otherPerson) {
              firstName = otherPerson.firstName;
              middleName = otherPerson.middleName;
              lastName = otherPerson.lastName;
         public void printName() {
              System.out.println(firstName + " " + middleName + " " + lastName);
    //Test Program for the above.
    import java.util.Scanner;
    public class TestProgPerson {
         static Scanner console = new Scanner(System.in);
         public static void main(String[] args) {
              Person myName = new Person("William", "Andrew", "Johnson");
              Person yourName = new Person();
              String firstName;
              String middleName;
              String lastName;
              System.out.print("My Name: ");
              myName.printName();
              System.out.println();
              System.out.print("Your Name: ");
              yourName.printName();
              System.out.println();
              System.out.print("Enter your first, middle, and last name: ");
              firstName = console.next();
              middleName = console.next();
              lastName = console.next();
              System.out.println();
              yourName.setName(firstName, middleName, lastName);
              if (myName.equals(yourName))
              System.out.println("Both people are the same.");
              else
              System.out.println("The two people are not the same.");
              myName.setFirstName(firstName);
              myName.setMiddleName(middleName);
              myName.setLastName(lastName);
              System.out.print("My new name: ");
              myName.printName();
              System.out.println();
              yourName.makeCopy(myName);
              System.out.print("After copying myName into yourName, yourName: ");
              yourName.printName();
              System.out.println();
    }

  • Forms9i run time error - Please help

    Hi friends,
    I have a problem , when I use the url like
    http://ram.sembcorpenc.com/....... Its go to search page, but if you the
    http://ip-address:8889/................ Its give error FRM-91201,
    OC4J – Error , Unable to communicate with runtime process .
    Please help if possible, very soon …
    Thank you,
    Selvam

    Hi,
    why is it using port 80 in the first request and port 8889 in teh second? Looks like the first being from OracleAs and the second from Oracle Developer Suite. Did you start the HTTP listener for the developer suite contained OC4J?
    Frank

  • Run Time Errors, Please Help.

    I am getting errors of:
    Exception in thread "main" java.lang.NumberFormatException: feet
    at java.lang.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.lang.Double.parseDouble(Unknown Source)
    at SquareDriver.main(SquareDriver.java:29)
    her is my code:
    import cs1.Keyboard;
    import java.util.*;
    import square;
    import java.lang.*;
    public class SquareDriver
         public static void main (String [] args)
              double dblLength = 0;
              String strUnits;
              StringTokenizer Tokenizer;
              final String SENTINEL = "0";
              String strPart1= null;
         String strPart2 = null;
              System.out.println("Enter a Side Length Of a Sguare");
              strUnits = Keyboard.readString( );
              Tokenizer = new StringTokenizer (strUnits);
         while (!strUnits.equals(SENTINEL))
              if (Tokenizer.hasMoreTokens())
              { strPart1 = Tokenizer.nextToken();
              dblLength=Double.parseDouble(strPart1);
              if (Tokenizer.hasMoreTokens())
              {strPart2=Tokenizer.nextToken();
    square mysquare = new square(dblLength,strPart2);
    System.out.println(mysquare);
    }//end of main method;
    }// end of class;
    public class square
         public double dblPart1;
    public String strPart2;
    public double dblArea;
    public double Perimeter;
         public square (double Length, String Units)
              dblPart1 = Length;
              strPart2 = new String(Units);
         public double dblArea()
         {dblArea = (dblPart1 * dblPart1);
           return dblArea;
         public double Perimeter()
         {Perimeter = (dblPart1 * 4);
          return Perimeter;
         public String toString()
         String output= new String("");
              String tab = "\t";
              String newline ="\n";
              output+= "Area" tabdblArea()+strPart2+ "Squared";
              output+=newline;
              output+= "Perimeter"+tab+Perimeter()+strPart2 ;
              output+=newline;
              return output;
    } // end of class square

    You are trying to parse a string "feet" to a number (double).

  • Not able to open PDF or do any changes even if the PDF opens. Run Time Error is shown every time when trying to open PDF. Please help

    Hi,
    Not able to open PDF or do any changes even if the PDF opens. Run Time Error is shown every time when trying to open PDF. Please help

    Hi Shilpa ,
    Please refer to the following link and see if that helps you out.
    https://helpx.adobe.com/acrobat/kb/runtime-error-roaming-profile-workflows.html
    Are you trying to access the PDF with Acrobat or Adobe Reader?
    Regards
    Sukrit Dhingra

  • Run time error when we click  "Leave overview " in ESS - pl help

    Hi Gurus ,
    We are getting run time error when we
    click the 'Leave Overview' in
    ESS.
    when emloyee applies for leave he may
    need to wait for aproval during
    that time he cannot access the 'leave
    overview' screen he will be
    facing run time error .
    because of this run time error system
    performance become very slow .
    please help me .i will give points for valid answers .
    :-Suneetha reddy

    Hi ,
    I am soory for late reply ,
    I changed the runtime parameter to 1200 and monitaring the system .
    Now there is no Run time error but still Leave overview is taking time .
    Please help
    Thanks,
    Sunitha

  • Run time error  iview  'Leave Overview' in ESS -  Pl Help

    Hi Gurus ,
    We are getting run time error when we
    click the 'Leave Overview' in
    ESS.
    when emloyee applies for leave he may
    need to wait for aproval during
    that time he cannot access the 'leave
    overview' screen he will be
    facing run time error .
    because of this run time error system
    performance become very slow .
    please help me .i will give points for valid answers .
    :-Suneetha reddy
    Edited by: Sunitha Reddy on Mar 26, 2008 9:47 AM

    Hi ,
    I am soory for late reply ,
    I changed the runtime parameter to 1200 and monitaring the system .
    Now there is no Run time error but still Leave overview is taking time .
    Please help
    Thanks,
    Sunitha

  • Trying to upgrade my i-phone 3 operating system to ios-5.  The program seems to download fine, but at the end it says network run time error and then I have to cancel it out and try again.  Tried 5 times and I can't upgrade the system.  help?

    I am trying to upgrade the operating system on my i-phone 3 to ios-5.  I download the program and it runs and downloads.  When almost finished, an error occurs that says Network run time error.  This cancels out the download.  I have tried 5 times with the sdame result.  Can anyone help?  Thanks

    This is asked and answered frequently... a simple search of the forums would have revealed that disabling any Anti-Virus and Firewall software on the computer prior to downloading will rectify the issue.

  • I get aq run time error when trying to load the latest version of iTunes. Help.

    I get a run time error when attempting to install the latest version of iTunes & now cannot access iTunes. Can anyone help me?

    Hi jalbany,
    Thanks for using Apple Support Communities.  This article has steps you can take for the error you're seeing:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    - Ari

  • I am getting run time error 6034 after updating iTunes to new version.Any help?

    I am getting run time error 6034 after updating iTunes to new version.Any help?
    I tried different ways to resolve it like uninstall/install itunes
    I am also getting error message on iTunes helper.exe

    Hi isush!
    I have an article for you that will help you troubleshoot this issue:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • Please help with fixing run time error - what is wrong ?

    Hi
    I am new with JDBC.
    I have compiled a program and am not getting any compile erors, however when trying to run it, am getting errors:
    Advanced Java : Test 1
    Programmer: C.C. Steyn
    Date: 15 July, 2008
    Filename: MakeDB.java
    Purpose: To build an initial database for the ClientNameTaxNrs application
    import java.sql.*;
    import java.io.*;
    public class MakeDB
    public static void main(String[] args) throws Exception
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:ClientNameTaxNrs";
    Connection con = DriverManager.getConnection(url);
    Statement stmt = con.createStatement();
    // The following code deletes each index and table, if they exist.
    // If they do not exist, a message is displayed and execution continues.
    System.out.println("Dropping indexes & tables ...");
    try
    stmt.executeUpdate("DROP INDEX PK_ClientNameTaxNrs ON ClientNameTaxNrs");
    catch (Exception e)
    System.out.println("Could not drop primary key on ClientNameTaxNrs table: "
    + e.getMessage());
    try
    stmt.executeUpdate("DROP TABLE ClientNameTaxNrs");
    catch (Exception e)
    System.out.println("Could not drop ClientNameTaxNrs table: "
    + e.getMessage());
    ///////// Create the database tables /////////////
    System.out.println("\nCreating tables ............");
    // Create ClientNameTaxNrs table with primary key index
    try
    System.out.println("Creating ClientNameTaxNrs table with primary key index...");
    stmt.executeUpdate("CREATE TABLE ClientNameTaxNrs("
    +"ClientName TEXT(50) NOT NULL "
    + "TaxNr TEXT(10) NOT NULL, "
    +")");
    catch (Exception e)
    System.out.println("Exception creating ClientNameTaxNrs table: "
    + e.getMessage());
    // Read and display all ClientNameTaxNrs data in the database.
    ResultSet rs = stmt.executeQuery("SELECT * FROM ClientNameTaxNrs");
    System.out.println("Database created.\n");
    System.out.println("Displaying data from database...\n");
    System.out.println("ClientNameTaxNrs table contains:");
    byte[] buf = null;
    while(rs.next())
    System.out.println("Client Name: = "
    + rs.getString("ClientName"));
    System.out.println("Tax Nr: = "
    + rs.getString("Tax Nr"));
    rs = stmt.executeQuery("SELECT * FROM ClientNameTaxNrs");
    if(!rs.next())
    System.out.println("ClientNameTaxNrs table contains no records.");
    else
    System.out.println("ClientNameTaxNrs table still contains records!");
    rs = stmt.executeQuery("SELECT * FROM ClientNameTaxNrs");
    if(!rs.next())
    System.out.println("ClientNameTaxNrs table contains no records.");
    else
    System.out.println("ClientNameTaxNrs table still contains records!");
    stmt.close(); // closing Statement also closes ResultSet
    } // end of main()
    } // end of class
    ================================================
    here is the run time errors. How do i fix this ?
    Dropping indexes & tables ...
    Could not drop primary key on ClientNameTaxNrs table: [Microsoft][ODBC Microsoft
    Access Driver] Cannot find table or constraint.
    Could not drop ClientNameTaxNrs table: [Microsoft][ODBC Microsoft Access Driver]
    Table 'ClientNameTaxNrs' does not exist.
    Creating tables ............
    Creating ClientNameTaxNrs table with primary key index...
    Exception creating ClientNameTaxNrs table: [Microsoft][ODBC Microsoft Access Dri
    ver] Syntax error in CREATE TABLE statement.
    Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC Microsoft Acc
    ess Driver] The Microsoft Jet database engine cannot find the input table or que
    ry 'ClientNameTaxNrs'. Make sure it exists and that its name is spelled correct
    ly.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3065)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:2
    53)
    at MakeDB.main(MakeDB.java:69)
    Press any key to continue . . .

    Are you running Norton Internet Security or anything similar? There have been reports that Norton and similar firewall products treat an upgrade as a new application and so you have to go in and reallow connections for iTunes. Check the settings and if necessary remove and re-enable the exception for iTunes (consult your privacy filter's documentation for the appropriate procedure). You may also need to check the built-in Windows firewall as well.
    Hope this helps.

  • Help with Run Time Error Please....

    I got this Run Time error when I tried to execute a Swing program I was trying to run and I was wondering if anyone could explain what it meant and how I could go about fixing the situation. The program ran with no problem when I executed it yesterday but this morning, It failed for some reason .
    My Classes name is GUIcheck.java
    Exception in thread "main" java.lang.UnsupportedClassVersionError: GUIcheck (Unsupported major.minor version 49.0)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    I have posted the program below for your viewing ..
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class GUIcheck
        public static void main(String args[])
        JFrame.setDefaultLookAndFeelDecorated(true);
        JFrame frame = new JFrame ("Student Data Sheet");
        //Frame.setDefaultLookAndFeelDecorated(true);
       //Create the top panel.  This panel will use the grid layout and
       //will contain two labels (name and Social Security Number) and
       //two text boxes (nameTextField and ssTextField)
       JPanel topPanel = new JPanel(new GridLayout (2, 2, 5, 5));
       JLabel nameLabel = new JLabel ("Name:");
       topPanel.add(nameLabel);
       JTextField nameTextField = new JTextField(10);
       topPanel.add(nameTextField);
       JLabel ssLabel = new JLabel ("Social Security Number:");
       topPanel.add(ssLabel);
      JPasswordField ssTextField = new JPasswordField(10);
      topPanel.add(ssTextField);
      //Place the topPanel on the North side of the frame
      Container contentPane = frame.getContentPane();
      contentPane.add (topPanel, BorderLayout.NORTH);
      //Create the center panel.  It will be placed in the center of the
      //frame.  It will contain two sub panels.  One sub panel will contain
      //labels (Select sources of news and information and Classification).
      //The second sub panel will contain check boxes and radio buttons)
      JPanel centerPanel = new JPanel (new BorderLayout ());
      JPanel centerTopPanel = new JPanel (new GridLayout (1, 2, 5, 5));
      JLabel sourceLabel = new JLabel
                 ("Select sources of news and information");
      centerTopPanel.add (sourceLabel);
      JLabel classLabel = new JLabel ("Classification");
      centerTopPanel.add (classLabel);
      centerPanel.add (centerTopPanel, BorderLayout.NORTH);
      JPanel centerBottomPanel = new JPanel (new GridLayout (1, 2, 5, 5));
      JPanel checkBoxPanel = new JPanel (new GridLayout (3, 1, 5, 1));
      JCheckBox newspaperCheckBox = new JCheckBox ("Newspaper");
      checkBoxPanel.add (newspaperCheckBox);
    JCheckBox tvCheckBox = new JCheckBox ("TV");
    checkBoxPanel.add (tvCheckBox);
    JCheckBox friendsCheckBox = new JCheckBox ("Friends");
    checkBoxPanel.add (friendsCheckBox);
    centerBottomPanel.add (checkBoxPanel);
    JPanel radioButtonPanel = new JPanel (new GridLayout (4, 1, 5, 1));
    JRadioButton freshmanRadioButton = new JRadioButton ("Freshman");
    radioButtonPanel.add (freshmanRadioButton);
    JRadioButton sophomoreRadioButton = new JRadioButton ("Sophomore");
    radioButtonPanel.add (sophomoreRadioButton);
    JRadioButton juniorRadioButton = new JRadioButton ("Junior");
    radioButtonPanel.add (juniorRadioButton);
    JRadioButton seniorRadioButton = new JRadioButton ("Senior");
    radioButtonPanel.add (seniorRadioButton);
    centerBottomPanel.add (radioButtonPanel);
    centerPanel.add (centerBottomPanel, BorderLayout.SOUTH);
    contentPane.add (centerPanel, BorderLayout.CENTER);
    //creation of button group deleted
    //buttonPanel will contain buttons and will be placed at south side
    //of the frame
    JPanel buttonPanel = new JPanel(new GridLayout (1, 2, 5, 5));
    JButton submitButton = new JButton ("Submit");
    buttonPanel.add (submitButton);
    JButton exitButton = new JButton ("Exit");
    buttonPanel.add (exitButton);
    contentPane.add (buttonPanel, BorderLayout.SOUTH);
      }//end main
    }

    I do have the 1.5 at the moment and I still get the same error. I have removed other instances of JRE from my computer and retried but it still persists... What else can I do?
    Java Newbie

  • Urgent help on this run time error   LOAD_TYPEPOOL_VERSION_MISMATCH

    hi i got this run time error for a stamdard transaction..can anyboby throw some light?
    LOAD_TYPEPOOL_VERSION_MISMATCH
    02.08.2007 21:23:11
    ShrtText
    Type group was changed at runtime.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLCOBADI" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    is especially useful if you want to keep a particular message.
    The system attempted to correct the error
    automatically, so you should try to restart
    the program.
    The type group "COBAI" was changed while the program was running, so that an
    inconsistence occurred at runtime.
    The type group "COBAI" has the version 20070627153024.
    The program "%_CCOBAI" uses the version 20070802190113.
    The internal session was started at 20070802212309.

    Dear Ramachandran Rakhunathan  ,
    this special error happens, when you change a table, e.g. table AUFM. Please do not change central data structures when the system is running. Please take a look at SAP Note <a href="https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=162991">162991</a> for further information.
    Thanks,
    Hannes Kuehnemund
    SAP LinuxLab

Maybe you are looking for

  • Multiple iTunes accounts with AppleTV

    Just got our Apple TV. If my husband and I use separate iTunes accounts, can we use both accounts for things like music, movies, iCloud photos? I'm not setting up home sharing. Just want to be able to log in and out of our accounts. Is this possible?

  • How do I transfer library and playlists from external drive to PC?

    My old PC with iTunes died for good. Luckily library and playlists were save on and external hard drive. How do I transfer my library and playlists from that drive to another PC (Windows XP) and are the arrangement of tracks within the playlists incl

  • How to change you name in iCloud

    My dad regestard my iPad onto his name then I had to change my name on iCloud because when I send email on my iCloud email address it says Philip on it. I don't want people to laugh at me so I changed it my name now my dad got me an iPhone and he reg

  • How to stop form processing in script at certain condition

    Hi, I need to stop sap script form processing at a certain conditon. E.g., if there are 3 or less items to be printed it should not print the form at all. Since im using standard print pgm i can make changes only in form. Is there any command in (lik

  • Archiving and document viewers

    I'd will like to display my archived workitem and do no use any third party archiving system but SAP could you tell me how to use SAP AS interface to display archived document and workitem ?