ReadObject() method cant find a serilizable class in serilizable Vector

I have been thinking this problem for three hours,I dont know what to do now
first,my envirment path is :
G:\tomcat2\Tomcat 4.1\webapps\ROOT\WEB-INF\classes;
G:\tomcat2\Tomcat 4.1\webapps\ROOT\WEB-INF\classes\DataBase
"myfriendsCol.dbs"has only a serilizable Vector in it,
"myfriendsCol.dbs" is in DataBase package;
this Vector has some DataStructure(code is below):
package DataBase;  //DataStructure in DataBase package
import java.io.*;
public class DataStructure implements Serializable{
  String columnID;     //column's name
  String columnType;  
  public DataStructure(String CI,String CT){
    columnID=CI; 
    columnType=CT;
  public String getColumnID(){
    return columnID;
  public String getColumnType(){
    return columnType;
}now,I want use jsp to visit "myfriendsCol.dbs",this jsp file is in G:\tomcat2\Tomcat 4.1\webapps\ROOT
code here:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="DataBase.*" %>
<%@ page import="DataBase.DataStructure" %>
<html>
   <body>
    <% SQLDriver driver=new SQLDriver();
       ResultSet set=driver.executeQuery("desc myfriends");
     %>
    </body>
</html>SQLDriver.class and ResultSet.class in DataBase package together with DataStructure.class and myfriendsCol.dbs
in driver.executeQuery(String sql);code below:
public ResultSet executeQuery(String sql){
   else if(sql.indexOf("desc")!=-1){
     String tableName=sql.substring(sql.indexOf("c")+2,sql.length());//get tablename"myfriends"
     Vector tableInfo=readVector(tableName);//code below
  public Vector readVector(String tableName){
    try{
     String filename=tableName+"Col.dbs";     //filename is "myfriendsCol.dbs"
     File path=new File("G:/tomcat2/Tomcat 4.1/webapps/ROOT/WEB-INF/classes/DataBase",filename);
     fileInput=new FileInputStream(path);
     objInput=new ObjectInputStream(fileInput);
     outer=(Vector)objInput.readObject();  //exception occur !
     }catch(ClassNotFoundException ex){System.out.println("classNotFoundException2 is "+ex);}
      catch(IOException ioex){System.out.println("IOException is "+ioex);}
    return outer;
  }   tomcat report error:
classNotFoundException2 is java.lang.ClassNotFoundException: DataStructure

did you compile it?
Is it in the right location?
The last message would appear not...

Similar Messages

  • JavaServerFaces javax.faces.application.Action cant find this package/class

    My ant build is failing as a result of being unable to find
    javax.faces.application.Action (I extended this class). I cannot find
    that package in any of the jsf-ea3 or j2ee jar files. Any help would be appreciated.
    I already posted this once but got no response, this time I will assign a few dukes. I figured this was a simple question.

    Well that would explain why I can't find it, as I am using EA3. And by the looks of my compile errors when using jwsdp1.2 (includes ea4), I have some work to do to get my app to compile under the new release. Thanks, you get the dukes.

  • Find out wich class have colled method at run time

    hello
    If I have one class with some public method, is there a way to find out wich class have called it, and do it at runtime?
    I can't modie classes that a using this method.

    well if make method to throw something, then I have to by able to handle it within the class that calls it?!
    but I cant allter that class.
    did I missunderstadn how you mean?
         public boolean isBlocked() throws Throwable{
              try {
                   throw new Throwable();                    
              } catch (Exception e) {
                   e.printStackTrace(); //And how do I here get the class calling to the method?
                   return (nextSeqNum-base >=  windowSize);
         }

  • Cant find method? and i cant figure out how to round a decimal....

    when i compile this it says "getAverage not found in class AverageGradeUser" - look at actionPeformed() to find where its used at....how do i fix this, i had it working but somehow messed it up and when the new average is figured and put in the results textfield, how can u round it off to the nearest tenth (0.1)..ive tried using NumberFormat and related things but couldnt get it to work
    please help me
    thanks
    p.s. keep in mind i am a rookie-rookie-rookie in java programming
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class AverageGradeUser extends Applet implements ActionListener
    /****InstanceVariables****/
    public TextField input;
    /*****InitMethod****/
    public void init()
    Label directions = new Label("Enter a grade percent: ");
    input = new TextField(10);
    Label results = new Label("Your new average is: ");
    TextField output = new TextField(10);
    add(directions);
    add(input);
    add(results);
    add(output);
    output.setEditable(false);
    input.addActionListener(this);
    } // init()
    public void actionPerformed(ActionEvent e)
    double grade = Double.parseDouble(input.getText());
    if (e.getSource() == input)
    getAverage(grade);
    } // actionPerformed()
    } // AverageGradeUser class
    ============================================================
    (the classes are in separate files but both are in the project)
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class AverageGrade
    /****InstanceVariables****/
    private double total = 0;
    private double counter = 0;
    private double average = 0;
    private TextField input;
    private TextField output;
    /****ConstructorMethod****/
    public AverageGrade()
    /****AccessMethod****/
    public void getAverage(double g)
    total += g;
    counter ++;
    average = total / counter;
    output.setText(average + " " + getLetterGrade(average));
    input.setText("");
    } // getAverage()
    private String getLetterGrade(double avg)
    if (avg >= 90)
    return "A";
    else if (avg >= 80)
    return "B";
    else if (avg >= 70)
    return "C";
    else if (avg >= 60)
    return "D";
    else if (avg < 60)
    return "F";
    else
    return "error";
    } // getLetterGrade()
    } // AverageGrade class

    According to the code you have posted, method "getAverage()" is defined in class "AverageGrade" -- and not in class "AverageGradeUser". Therefore, you have two choices (in my opinion):
    1. Add the definition of method "getAverage()" to class "AverageGradeUser"
    2. Change the "actionPerformed()" method:
    Replace the line:
    getAverage(grade)with
    new AverageGrade().getAverage(grade)Hope this helps you.
    Good Luck,
    Avi.

  • HT2534 i follow these steps.. but i cant find "None" option in the payment Method...

    cant find "None" option in the payement methods..please help..

    Did you follow the instructions on that page exactly when creating the account (the instructions won't work with existing accounts) ? I've just tried it and I get the 'none' option i.e. I logged out of my account and found a free app in the store and clicked on its free 'price' :
    And on the popup that you then get I clicked on 'create Apple id' :
    Which then gave me the 'none' option :

  • Pls help me on finding info abt classes and methods....

    hi.. I'm new to java .. but i know the very basics of it.. so that i could write a couple of simple programs.. I've been working wit .NET all these days and MSDN library helps me a gr8 deal.. it gives explanation for every class and methods of the class, even explaining the parameters passed into the methods.. I'm currently workin wit J2ME for developing MIDlets... As i know the basics programming isnt very bad.. but where can i find the explanation for the classes used in micro edition or the methods that belong to the classes...
    Is there any facility like MSDN library for java where i can find the whole information...?????
    Pls help with....
    Thanks for ur patience...

    * Goto [http://java.sun.com/j2me/docs/|http://java.sun.com/j2me/docs/]
    * Click on link "MIDP 2.0 Specification (JSR 118)"
    * Under Specification, Click on Download
    * Hit Accept License Agreement
    * Download ZIP file (not the pdf version)
    * Unzip file and view files
    * Enter folder "midpng-javadoc-final"
    * Open Overview.html
    * Find link "JavaDoc API Documentation".
    [Ref.|http://www.java-tips.org/java-me-tips/midp/where-is-j2me-api-javadoc.html]

  • When i try to make an itunes account it i cant find "none" by payemnt method and i dont have a credit card. any way to get around that?

    when i try to make an itunes account it i cant find "none" by payemnt method and i dont have a credit card. any way to get around that?

    Unless the instructions on this page are followed when creating an account : http://support.apple.com/kb/HT2534
    then credit card details will need to be entered before the account can be used to download any item from the store.
    If created the account (e.g. you're not in the process of creating it and are stuck on the payment screen) and you are being prompted to review it then you could see if this post by mountaingoatgirl lets you reviewit without needing to enter credit card details : https://discussions.apple.com/message/24303054
    If not then you will need to create a new account, and follow the instructions on that HT2534 page when creating it. If you want to use the same email address then you will need to replace it on that account first e.g. by logging into it via the Store > View Account menu option on your computer's iTunes or via http://appleid.apple.com
    Creating an account with 'none' via a computer's iTunes : https://discussions.apple.com/message/24321860

  • Error jsp useBean  cant find class com.bloodoo.shoppingbasket

    I have an application which runs on my home Pc . It is a basic shopping cart app. I have Tomcat 4.1 and j2sdk1.4.2.
    When I transfered the application to Lunarpages my host , with the same folder structure I altered all the passwords and db connectors etc but when Itry to access the shop.jsp page I get the following error " useBean cant find class com.bloodoo.shoppingbasket " . I transferred the .java and .class files to Lunarpages.
    Do the .java files have to be compiled to .class files in the folder they wil be accessed ?
    If this is the case how are .java files compiled in a remote server?
    Any help very much appreciated .
    Thanks
    Jim Ascroft

    Hi there,
    I am using Tomcat on my home server and Lunarpages my web host uses Resin. I have not heard of resin and dont know if this would make any difference. All the folders and imports are ok on Tomcat at home and they are set up withy the same structure on Lunarpages.
    Any thoiughts ?
    Regards
    Jim Ascroft

  • I cant find a simple answer to this question.

    I get this stupid error when running an applet:
    java.lang.NoClassDefFoundError: website (wrong name: website/website)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:403)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    1)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
    at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
    at java.net.URLClassLoader$1.run(Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:110)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:363)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:532)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:468)
    at sun.applet.AppletPanel.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    i cant find a simple answer to fixing this, where hav i gone wrong?
    Below is me HTML:
    <APPLET
    CODEBASE = "C:\JBuilder3\myclasses\"
    CODE = "website.class"
    NAME = "website"
    WIDTH = 400
    HEIGHT = 300
    HSPACE = 0
    VSPACE = 0
    ALIGN = middle
    >
    </APPLET>
    below is part of me code:
    package website;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    public class website extends Applet implements Runnable
    Thanks in advance

    The simple answer is that by putting your class into the package named "website", the java runtime program looks for a directory called "website", which it is apparently unable to find. Try removing the package statement and recompile.

  • NodeManager or managed server cant find admin server

    <15-05-2003 11:31:58 PDT> <Info> <[email protected]:5555> <Starting Server
    Admin server on Machine A.
    Managed server on machine B.
    using the demo ssl configuration.
    When I try to start my managed sever from the admin console I get the following
    error :
    nesDomain::ophelia ...>
    <15-05-2003 11:31:59 PDT> <Info> <[email protected]:5555> <Server nesDomain::ophelia
    started, process id = 264>
    Starting WebLogic Server...
    <15-05-2003 11:32:05 PDT> <Error> <Management> <141079> <Error encountered attempting
    to contact AdminServer at http://localhost:7001/wl_management_internal2/Bootstrap
    to obtain configuration information.      Will attempt to to start an independent
    ManagedServer. No server log avaliable, Exception was: java.net.ConnectException:
    Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost',
    port: '7001'>
    <15-05-2003 11:32:09 PDT> <Notice> <Management> <140005> <Loading configuration
    C:\ophelia\user_domains\nesDomain\config.xml>
    I looks like the managed server tries to find the admin server on localhost, but
    I cant find where to change this ...

    I'm getting the same problem as posted by Sumitkhapli when I try to start a managed server either through the Admin Console or through the command line. Any ideas?
    Output and Exception Message trying to start the managed server:
    C:\WebLogicSPK3\weblogic81\common\bin>startManagedWebLogic MyServer1 http://SBREWSTER1:7777
    C:\WebLogicSPK3\weblogic81\common\bin>echo off
    CLASSPATH=C:\WEBLOG~1\JROCKI~1\lib\tools.jar;C:\WEBLOG~1\WEBLOG~1\server\lib\weblogic_sp.jar;C:\WEBLOG~1\WEBLOG~1\server\lib\weblogic.jar;C:\WEBLOG~1\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;C:\WEBLOG~1\WEBLOG~1\common\eval\pointbase\lib\pbclient44.jar;C:\WEBLOG~1\JROCKI~1\jre\lib\rt.jar;C:\WEBLOG~1\WEBLOG~1\server\lib\webservices.jar;C:\WEBLOG~1\JROCKI~1\lib\tools.jar;C:\WEBLOG~1\WEBLOG~1\server\lib\weblogic_sp.jar;C:\WEBLOG~1\WEBLOG~1\server\lib\weblogic.jar;
    PATH=C:\WEBLOG~1\WEBLOG~1\server\bin;C:\WEBLOG~1\JROCKI~1\jre\bin;C:\WEBLOG~1\JROCKI~1\bin;C:\WEBLOG~1\WEBLOG~1\server\bin;C:\WEBLOG~1\JROCKI~1\jre\bin;C:\WEBLOG~1\JROCKI~1\bin;C:\WEBLOG~1\WEBLOG~1\server\bin;C:\WEBLOG~1\JROCKI~1\jre\bin;C:\WEBLOG~1\JROCKI~1\bin;.;C:\Java\j2re1.4.2_04\bin;C:\Java\jakarta-tomcat-3.2.4;C:\OrbixE2A\etc\bin;C:\OrbixE2A\asp\6.0\bin;C:\OrbixE2A\bin;C:\JBuilder7\jdk1.3.1\jre\bin\hotspot;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\PROGRA~1\MKSTOO~1\bin;C:\PROGRA~1\MKSTOO~1\bin\x11;C:\PROGRA~1\MKSTOO~1\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\MSSQL7\BINN;C:\Program Files\Hummingbird\Connectivity\9.00\Accessories\;Y:\bin;I:\Tools\Stingray\ObjectiveStudio\Lib;C:\bin;C:\WEBLOG~1\WEBLOG~1\server\bin\oci920_8;C:\WEBLOG~1\WEBLOG~1\server\bin\oci920_8;C:\WEBLOG~1\WEBLOG~1\server\bin\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http://[hostname]:[port]/console *
    <Jan 20, 2005 11:39:04 AM EST> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
    Enter username to boot WebLogic server:weblogic
    Enter password to boot WebLogic server:
    <Jan 20, 2005 11:39:09 AM EST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA WebLogic JRockit(TM) 1.4.2_04 JVM Version ari-31788-20040616-1132-win-ia32 from BEA Systems, Inc.>
    <Jan 20, 2005 11:39:09 AM EST> <Info> <Management> <BEA-141140> <The managed server is going to contact the admin server at http://SBREWSTER1:7777 to check if there exists a running admin server at this URL.>
    <Jan 20, 2005 11:39:09 AM EST> <Info> <Configuration Management> <BEA-150017> <This server is being started as a dependent managed server.>
    <Jan 20, 2005 11:39:09 AM EST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973
    WebLogic XMLX Module 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973 >
    <Jan 20, 2005 11:39:09 AM EST> <Info> <Configuration Management> <BEA-150015> <Connecting to the administration server http://SBREWSTER1:7777 to retrieve the initial configuration.>
    <Jan 20, 2005 11:39:11 AM EST> <Error> <Configuration Management> <BEA-150001> <An error occurred while connecting to the admin server to bootstrap through URL: http://SBREWSTER1:7777/wl_management_internal2/Bootstrap, user: weblogic
    java.lang.ClassNotFoundException: weblogic.management.mbeans.custom.ApplicationConfiguration
    at java.lang.Class.forName(Ljava.lang.String;ZLjava.lang.ClassLoader;)Ljava.lang.Class;(Unknown Source)
    at java.io.ObjectInputStream.resolveClass(Ljava.io.ObjectStreamClass;)Ljava.lang.Class;(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
    at java.util.ArrayList.readObject(Ljava.io.ObjectInputStream;)V(ArrayList.java:547)
    at java.lang.LangAccessImpl.readObject(Ljava.lang.Class;Ljava.lang.Object;Ljava.io.ObjectInputStream;)V(Unknown Source)
    at java.io.ObjectStreamClass.invokeReadObject(Ljava.lang.Object;Ljava.io.ObjectInputStream;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
    at weblogic.management.ManagedServerAdmin.retrieveMBeansFromAdminServer(Ljava.lang.String;)Ljava.util.List;(ManagedServerAdmin.java:543)
    at weblogic.management.ManagedServerAdmin.initialize()V(ManagedServerAdmin.java:150)
    at weblogic.t3.srvr.T3Srvr.initializeHere()V(T3Srvr.java:771)
    at weblogic.t3.srvr.T3Srvr.initialize()V(T3Srvr.java:670)
    at weblogic.t3.srvr.T3Srvr.run([Ljava.lang.String;)I(T3Srvr.java:344)
    at weblogic.Server.main([Ljava.lang.String;)V(Server.java:32)
    >
    The WebLogic Server did not start up properly.
    Exception raised: 'weblogic.management.configuration.ConfigurationException: [Configuration Management:150001]An error occurred while connecting to the admin server to bootstrap through URL: http://SBREWSTER1:7777/wl_management_internal2/Bo
    otstrap, user: weblogic
    java.lang.ClassNotFoundException: weblogic.management.mbeans.custom.ApplicationConfiguration
    at java.lang.Class.forName(Ljava.lang.String;ZLjava.lang.ClassLoader;)Ljava.lang.Class;(Unknown Source)
    at java.io.ObjectInputStream.resolveClass(Ljava.io.ObjectStreamClass;)Ljava.lang.Class;(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
    at java.util.ArrayList.readObject(Ljava.io.ObjectInputStream;)V(ArrayList.java:547)
    at java.lang.LangAccessImpl.readObject(Ljava.lang.Class;Ljava.lang.Object;Ljava.io.ObjectInputStream;)V(Unknown Source)
    at java.io.ObjectStreamClass.invokeReadObject(Ljava.lang.Object;Ljava.io.ObjectInputStream;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
    at weblogic.management.ManagedServerAdmin.retrieveMBeansFromAdminServer(Ljava.lang.String;)Ljava.util.List;(ManagedServerAdmin.java:543)
    at weblogic.management.ManagedServerAdmin.initialize()V(ManagedServerAdmin.java:150)
    at weblogic.t3.srvr.T3Srvr.initializeHere()V(T3Srvr.java:771)
    at weblogic.t3.srvr.T3Srvr.initialize()V(T3Srvr.java:670)
    at weblogic.t3.srvr.T3Srvr.run([Ljava.lang.String;)I(T3Srvr.java:344)
    at weblogic.Server.main([Ljava.lang.String;)V(Server.java:32)
    Reason: weblogic.management.configuration.ConfigurationException: [Configuration Management:150001]An error occurred while connecting to the admin server to bootstrap through URL: http://SBREWSTER1:7777/wl_management_internal2/Bootstrap, us
    er: weblogic
    java.lang.ClassNotFoundException: weblogic.management.mbeans.custom.ApplicationConfiguration
    at java.lang.Class.forName(Ljava.lang.String;ZLjava.lang.ClassLoader;)Ljava.lang.Class;(Unknown Source)
    at java.io.ObjectInputStream.resolveClass(Ljava.io.ObjectStreamClass;)Ljava.lang.Class;(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
    at java.util.ArrayList.readObject(Ljava.io.ObjectInputStream;)V(ArrayList.java:547)
    at java.lang.LangAccessImpl.readObject(Ljava.lang.Class;Ljava.lang.Object;Ljava.io.ObjectInputStream;)V(Unknown Source)
    at java.io.ObjectStreamClass.invokeReadObject(Ljava.lang.Object;Ljava.io.ObjectInputStream;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
    at weblogic.management.ManagedServerAdmin.retrieveMBeansFromAdminServer(Ljava.lang.String;)Ljava.util.List;(ManagedServerAdmin.java:543)
    at weblogic.management.ManagedServerAdmin.initialize()V(ManagedServerAdmin.java:150)
    at weblogic.t3.srvr.T3Srvr.initializeHere()V(T3Srvr.java:771)
    at weblogic.t3.srvr.T3Srvr.initialize()V(T3Srvr.java:670)
    at weblogic.t3.srvr.T3Srvr.run([Ljava.lang.String;)I(T3Srvr.java:344)
    at weblogic.Server.main([Ljava.lang.String;)V(Server.java:32)
    C:\WebLogicSPK3\weblogic81\common\bin>

  • Ive looked for 2 days, i cant find this swing component

    im looking for the size of the rectangles used to draw parts of a JScrollBar.
    ive tired get them through calculations based on the ratios of visable space in the JScrollPane...that dosent work.
    today ive tried making the protected method getThumbBounds() in BasicScrollUI() public so that i could see the sweeeeet rectangle dimensions within, yet when i execute this code i get all zeros
    //scroll is a JScrollPane
    scroll.getVerticalScrollBar().setUI(new BasicScrollBarUI());               
    BasicScrollBarUI ui = (BasicScrollBarUI) scroll.getVerticalScrollBar().getUI();
    System.out.println(ui.getThumbBounds().toString()   ); do i need to validate or somthing?
    how else could i get them?

    First of all, if you want to controll two scroll bars
    at once, you don't need to know any of its dimensions.
    You should read up on models, views, and controllers
    in swing. i did read up on them and found no other way. maby someone could give more specifics on how else to do it? besides i allready have the code to do it,its only a few lines, i just need those values
    Secondly, you can subclass the
    MetalScrollBarUI and create methods which return the
    size of the scroll buttons, the track, and the
    thumb.great idea, but will this work for all look and feels? the more abstract ScrollBarUI does not seem to offer generic methods for getting the track value.
    also if i cant find a way to do it for all L&Fs, where can i find the WindowsScrollBarUI class? id rather subclass that then the metal, but only as a last resort. thanks

  • Problem with JDK 6 update 5 - Error Message says cant find java compiler

    Hi i am a complete beginner to programming and i am having trouble with the latest java development kit. jdk 6 update 5.
    The problem is i have set the path and the program cant find my compiler.
    I have installed the latest java development kit 6 update 5 on my windows xp machine.
    I have created a simple program as shown below:
    class Hello
         public static void main(String[] args)
                   System.out.println("Hello from java");
    saved the file to my desktop as Hello.java
    I have set the path variable like so:
    Go to control panel then click system icon then click advanced tab then click environmental variables.
    Now in system variables the path is shown as this - %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
    I then add this to the end;C:\Program Files\Java\jdk1.6.0_05\bin
    This is the location to the things like compiler, applet viewer etc.
    No in the command prompt i type javac Hello.java and i get this error message:
    C:\> javac Hello.java
    javac: file not found: Hello.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    The jdk is installed properly im sure but it can find my compiler.
    What mistake have i made in setting the path because im guessing that is related to the problem?
    Could someone out there please help me?
    Thank You
    Rafeeq

    saved the file to my desktop as Hello.java
    C:\> javac Hello.javaC:\ is not the desktop!
    The jdk is installed properly im sure but it can find my compiler.Of course it can! It just can't find the file you are trying to compile, because that's not in the root directory.
    I suggest you make a directory C:\java and save your source file there rather than on the desktop. In the command prompt, enter cd \java to make it the current working directory and then enter javac Hello.java.
    @Pravin: The question is about compiling, not running. CLASSPATH has nothing to do with this problem.
    db

  • Find the implementation class of a Business object

    HI Gurus,
    Is there any path in SPRO from where we can find the implementation class of a BOL object?
    For an example, I am working with BuilHeader. The backend table for BUL Header which will be updated while modifiyng BuilHeader is BUT000. So how can we find the back end database  table name or implementation class where the table BUT000 is updated?

    Hi Suchandra Bose
    the flow will go like this.
    1) the data in the BOL structures moved to Genil Implementation Class  which is defined in the below SPRO path
    CRM->CRM Cross application components->Generic Interaction Layer/Object Layer->Basic Settings in this corresponding each and every component one Genil class and its Model information in the form of tables will be maintained.
    2) Take for example BP component , for BP component CL_CRM_BUIL is the Generic Interaction layer class , with in the generic interaction layer class methods (Create_objects, MODIFY_OBJECTS, GET_OBJECTS)  you will find a code snippet to get the * Handler class* , this handler class will inturn get the Interaction Layer classes to reach the API  ,
    get object handler
          lv_cl_object =
             me->handler_factory->get_obj_handler(
                                      iv_object_name = iv_object_name ).
    3) This handler method will query the table CRMC_OBJIMP_BUIL  to get the relevant handler class depending on which functionality you are implementing.
    Thanks & Regards
    Raj

  • Could not find the main class: oracle.ide.boot.Launcher.  Program will exit

    Hi,
    I have installed Oracle11g_win64_11gR1, Database and Client.
    The issue is unable to invoke "sqldeveloper", getting the following error message. Could you please help ?
    FYI. I have already downloaded and installed installed JRE and JDK.
    ie. C:\Program Files (x86)\Java\jre6\ and C:\Program Files\Java\jdk1.6.0_24, still did not work.
    C:\Users\oracle>java -version
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
    Let me know, if you need more information. Here is the error message.
    Error Message
    =========
    (1) if I invoke sqldeveloper, directly from the location " C:\app\oracle\product\11.1.0\db_1\sqldeveloper\sqldeveloper\bin " using explorer, I do get error message
    "Unable to find a java Virtual Machine.
    To point to a location of java Virtual machine please refer to the Oracle9i JDeveloper Install Guide ( jdev/install.html)"
    (2) if I invoke sqldeveloper, directly from the locationC:\app\oracle\product\11.1.0\client_1\sqldeveloper, it prompts me to enter "full path for java.exe".
    When I enter full path and continue, still it continue to prompt and ask the same input.
    (3) if I invoke sqldeveloper from from command prompt using the batch file "sqldeveloper.bat"
    C:\Users\oracle>C:\app\oracle\product\11.1.0\client_1\sqldeveloper\sqldeveloper\
    bin\sqldeveloper.bat
    C:\Users\oracle>java -Xmx512M -Xverify:none -XX:JavaPriority10_To_OSPriority=10
    -XX:JavaPriority9_To_OSPriority=9 -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_F
    LAG=true -Dsun.java2d.ddoffscreen=false -Dwindows.shell.font.languages= -Dide.co
    nf="sqldeveloper.conf" -Dide.home.dir.name=.sqldeveloper -classpath ..\..\ide\l
    ib\ide-boot.jar;..\..\jdev\lib\xmleditor.jar;..\..\ide\lib\oicons.jar;..\..\..\j
    dbc\lib\ojdbc5.jar;..\..\jlib\jewt4.jar;..\..\jlib\share.jar;..\..\sqldeveloper\
    lib\jle2.jar oracle.ide.boot.Launcher
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/ide/boot/Launc
    her
    Caused by: java.lang.ClassNotFoundException: oracle.ide.boot.Launcher
    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)
    Could not find the main class: oracle.ide.boot.Launcher. Program will exit.
    OS
    ==============
    MS Windows 7 Home Premium
    sqldeveloper.conf
    ===================
    SetSkipJ2SDKCheck true
    IncludeConfFile ../../jdev/bin/ide.conf
    AddVMOption -Dapple.laf.useScreenMenuBar=true
    AddVMOption -Dcom.apple.mrj.application.apple.menu.about.name="SQL_Developer"
    AddVMOption -Dcom.apple.mrj.application.growbox.intrudes=false
    AddVMOption -Dcom.apple.macos.smallTabs=true
    AddVMOption -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true
    AddJavaLibFile ../../jdev/lib/xmleditor.jar
    AddJavaLibFile ../../ide/lib/oicons.jar
    AddJavaLibFile ../../jlib/jewt4.jar
    AddJavaLibFile ../../jlib/share.jar
    AddJavaLibFile ../ide/jlib/xmlef.jar
    AddJavaLibFile ../../sqldeveloper/lib/jle2.jar
    AddJavaLibFile ../../sqldeveloper/lib/oracle.dbtools.logging.jar
    AddVMOption -Dsun.java2d.ddoffscreen=false
    AddVMOption -Dwindows.shell.font.languages=
    IncludeConfFile sqldeveloper-nondebug.conf
    SetJavaHome C:\Program Files\Java\jdk1.6.0_24
    Edited by: sivapara on Feb 16, 2011 1:08 PM

    I was able to resolve this issue by performing following.
    1. Go to the location where sqldeveloperW.exe is being executed from.
    2. You will find a file sqldeveloper.conf in that location. Edit this file and change the value of IncludeConfFile to point to actual place. For me following were old and new values.
    OLD (Wrong) : IncludeConfFile ../../jdev/bin/ide.conf
    NEW (Correct) : IncludeConfFile ../../ide/bin/ide.conf
    After making above change in the sqldeveloper.conf file. Save and close it. Restart SQLDeveloper. You will not get the error anymore.
    Thanks
    Ravi

  • Executable JAR file: Could not find the main class.

    Hello,
    I have a problem with making an executable JAR file.
    I have written a JAVA program that consists of five different classes of which User.java is the main class and I have saved a text document with Main-Class: User and a blank line after that.
    If I try:
    jar cmf MainClass.txt User.jar User.class Beheerder.class Operator.class Manager.class MaakVisueelSchema.class
    it makes a executable jar file which actually works! :)
    But when the Operator class trys to open the MaakVisueelSchema class the screen stays blank.
    I can run MaakVisueelSchema with java MaakVisueelSchema.
    So I tried to make an executable JAR that consists only of MaakVisueelSchema, the same way as I did for User:
    Main-Class: MaakVisueelSchema
    jar cmf MainClass.txt MaakVisueelSchema.jar MaakVisueelSchema.class
    Then I get the error message:
    Could not find the main class. Program will exit.
    from the Java Virtual Machine Launcher.
    The big difference between MaakVisueelSchema and the other classes is that MaakVisueelSchema contains a PaintComponent method and an ComponentListener. Is it possible that one of those creates the error?
    Can anyone help me with this problem?
    Thanks in advance!
    Bye!

    Yes,
    I tried:
    jar xvf MaakVisueelSchema.jar
    and it returns:
    META-INF/
    META-INF/MANIFEST.MF
    MaakVisueelSchema.classN/G. You need to manually create a manifest file in a text editor, have it point to your main class, and enter it in your jar command as an argument.

Maybe you are looking for

  • Synced to another user account??

    After updating iTunes I get an error message when trying to sync my iPod Touch to my PC (Outlook).   It says I'm synced to another user account and asks if I want to merge or replace info.  I'm afraid to do either - not sure if I will lose all my inf

  • Purchase order in the backend system

    hello all, we are using SRM 7.0, classic scenario. we are implementing BBP_CREATE_BE_PO_NEW BAdI to change some data that is transferred to the backend for the purchase order creation. i tried to set external breakpoint for wf-batch. however, it seem

  • Drag and Drop exercise

    Hi. I am a language teacher and completely new to Flash. I have designed a drag and drop exercise with textboxes that I converted into movie clips. One set of textboxes are empty and are the 'target' textboxes. The other set of textboxes are exactly

  • My iTunes is messing up.

    'm trying to retore my iPhone 4s, why is my itunes updating my software when its already up to date

  • Problem while releasing the production order.

    Hai gurus, When i release the production order , SAP doesn't block when i have a deficit of stock for some materails.I checked all the customizing and found every thing is fine. As the materials that has defict stock has back flush indicator, is that