Class exception

some know why my class failure? :(
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -client       to select the "client" VM
    -server       to select the "server" VM
    -hotspot      is a synonym for the "client" VM  [deprecated]
                  The default VM is client.
    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
Press any key to continue...

public class Tragamoneda {
    public static void main(String[] args) {
        // Crear marco.
        TragamonedaFrame frame = new TragamonedaFrame();
        // Mostrar frame.
        frame.show();
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;//Tablas
import javax.swing.border.*;//Bordes
import java.util.Calendar;//Fecha y Hora
import java.util.Date;
import java.io.*;
public class TragamonedaFrame extends JFrame implements ActionListener  {
     JPanel               pnlPaneles[]     = new JPanel[38];//38 paneles contenidos en el arreglo pnlPaneles
     JLabel                lblEtiquetas[]     = new JLabel[60];//100 etiquetas contenidos en el arreglo lblEtiquetas
     JComboBox           cboComboBox[]     = new JComboBox[50];//20 combobox contenidos en el arreglo cboComboBox
     JPasswordField      txtPassword[]     = new JPasswordField[1];//1 Campo de texto password contenidos en el arreglo txtPassword
     JToggleButton      btnToggle[]          = new JToggleButton[20];//20 Botones presionados contenidos en el arreglo btnToggle
     JButton           btnBotones[]     = new JButton[40];//40 botones contenidos en el arreglo btnBotones
    JTextField           txtTextField[]     = new JTextField[30];//28 Campos de texto en el arreglo txtTextField
    JTextArea           txtTextArea[]     = new JTextArea[11];//10 Areas de texto contenidos en el arreglo txtTextArea
    JLabel                lblFondos[]          = new JLabel[10];//10 labels usadas como fondo
     int dia, mes, a�o, hora, minuto, segundo;
     int error1,error2;
    Icon csesion, salir, retro, inicio, mant, caja, simu, repo, fondo1, mantenimiento, admin,user;
     //Indica la posici�n del Panel actual,indica la opcion y categoria seleccioanda
     int     Indicador_Panel,Indicador_Opcion,Indicador_Categoria;;
     //Variables de la GUI
     List               Lista_Reporte;
     Timer               Tiempo;
     ButtonGroup          Grupo_Opciones,Grupo_Categoria;
     //Variables Globales
     String                Fecha,Hora;
     boolean               Estado_Tabla;
    // Constructor
     public TragamonedaFrame() {
        setLayout(null);
        setSize(new Dimension(800,640));
        getContentPane().setBackground(Color.white);
             setUndecorated(true);
         getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
        // Agregar Listener de la ventana(Cerrar ventana).
        this.addWindowListener
        (new WindowAdapter() {
               public void windowClosing(WindowEvent e) {
                 TragamonedaFrame.this.Close_Frame();
        // CREACI�N DE LA GUI
                  //Panel Cerra Sesi�n ,Salir y Atr�s
          pnlPaneles[0]= new JPanel();
          pnlPaneles[0].setLayout(null);
          pnlPaneles[0].setBounds(10,587,90,30);
          pnlPaneles[0].setVisible(true);
               getContentPane().add(pnlPaneles[0]);     
          salir= new ImageIcon("icon/salir.jpg");
          btnBotones[0]= new JButton(salir);
          btnBotones[0].setToolTipText("Salir");
          btnBotones[0].setVisible(true);
          btnBotones[0].addActionListener(this);
          btnBotones[0].setBounds(0,0,30,30);
          pnlPaneles[0].add(btnBotones[0]);
          csesion= new ImageIcon("icon/csesion.jpg");
          btnBotones[1]= new JButton(csesion);
          btnBotones[1].setToolTipText("Cerrar Sesi�n");
          btnBotones[1].setBounds(30,0,30,30);
          btnBotones[1].addActionListener(this);
          btnBotones[1].setVisible(false);
          pnlPaneles[0].add(btnBotones[1]);
          retro= new ImageIcon("icon/retro.gif");
          btnBotones[2]= new JButton(retro);
          btnBotones[2].setToolTipText("Retroceder");
          btnBotones[2].setBounds(60,0,30,30);
          btnBotones[2].addActionListener(this);
          btnBotones[2].setVisible(false);
          pnlPaneles[0].add(btnBotones[2]);
          //Panel de Entrada o Login
          pnlPaneles[1]= new JPanel();
          pnlPaneles[1].setLayout(null);
          pnlPaneles[1].setBounds(255,180,240,120);
               pnlPaneles[1].setVisible(true);
          getContentPane().add(pnlPaneles[1]);
          lblEtiquetas[0]= new JLabel("Usuario :");
          lblEtiquetas[0].setBounds(2,2,110,25);
          pnlPaneles[1].add(lblEtiquetas[0]);
          cboComboBox[0]= new JComboBox();
          cboComboBox[0].setBounds(120,2,110,25);
          cboComboBox[0].addItem("Administrador");
          cboComboBox[0].addItem("Empleado");
          cboComboBox[0].addItem("Cliente");
          cboComboBox[0].addItemListener(new ItemListener(){
               //clase interna anonima
               public void itemStateChanged(ItemEvent e){
                    if(e.getStateChange()==ItemEvent.SELECTED){
                         if(cboComboBox[0].getSelectedIndex()==2){
                              txtPassword[0].setVisible(false);
                              lblEtiquetas[0].setVisible(true);
                              lblEtiquetas[1].setVisible(false);
                         }else{
                              txtPassword[0].setText("");
                              txtPassword[0].setVisible(true);
                              lblEtiquetas[0].setVisible(true);
                              lblEtiquetas[1].setVisible(true);
     protected void Close_Frame() {
         // Cerrar aplicaci�n
         System.exit(1);
     // Procesa eventos de tipo ActionEvent
     public void actionPerformed( ActionEvent e ){
          //Timer de la Fecha y Hora
          if(e.getSource()== Tiempo){
               //Toma la Fecha y Hora del Sistema
               Date date     = Calendar.getInstance().getTime();
               int      mes     = Integer.parseInt(String.format("%1$tm",date));
               Hora     = String.format("%tT",date);
               Fecha     = String.format("%1$td/%1$tm/%1$tY",date);
               //Titulo del Frame
               /***/setTitle(String.format("Fecha :   %1$td  de  "+ obtener_Mes(mes)+"  de  %1$tY       "+   
                                 "Hora :  %tT ",date));
          //Clic en cualquier Bot�n
          else
               for(int i = 0; i<btnBotones.length; i++)
                    if(e.getSource()== btnBotones){
                         System.out.println("Se Usa Boton Cargado");
                         BotonPulsado(i);
                         break;
     //Devuelve el mes
     String obtener_Mes(int m){
     switch(m){
          case 1: return "Enero";
          case 2: return "Febrero";
          case 3: return "Marzo";     
          case 4: return "Abril";     
          case 5: return "Mayo";     
          case 6: return "Junio";          
          case 7: return "Julio";          
          case 8: return "Agosto";          
          case 9: return "Setiembre";     
          case 10: return "Octubre";     
          case 11: return "Noviembre";     
          case 12: return "Diciembre";     
          return "";
     void BotonPulsado(int indice){

Similar Messages

  • How to resolve preverifying class exception while building

    Hi,
    I am new to J2ME, i am getting preverifying class exception when ever building a application using Wireless Toolkit 2.1, JDK1.5, CLDC 1.1.
    actually i need to run web application on mobiles (PDA), can any one suggests how to resolve the above exception and what are the jar files required in classpath.
    Please let me know.
    Thanks
    ST_Reddy.

    Then leave it as it is. If the method doesn't throw the exception it is not a problem.
    If you need to throw the exception in some rare cases, then throw RuntimeException. It is not required to declare such exception in interface.

  • Invalid Class Exception problem

    Hi whenever i try to run this method from a different class to the one it is declared in it throws invalid class exception, (in its error it says the class this method is written in is the problem) yet when i run it from its own class in a temporary main it works fine, perhaps someone can see the problem in the method code. All its doing is reading from a few different txt files, deserializing the objects and putting them into arraylists for future access.
    public void readCourseData()
              CourseArrayLengths cal;
              try
                   FileInputStream fis = new FileInputStream("arraylengths.txt");
                   ObjectInputStream ois = new ObjectInputStream(fis);
                   cal = ((CourseArrayLengths) ois.readObject());     
                   ois.close();
                   FileInputStream fis1 = new FileInputStream("units.txt");
                   ObjectInputStream ois1 = new ObjectInputStream(fis1);
                   for(int i=0;i<cal.getUnitArrayLength();i++)
                        units.add((Unit) ois1.readObject());
                   ois1.close();
                   FileInputStream fis2 = new FileInputStream("sections.txt");
                   ObjectInputStream ois2 = new ObjectInputStream(fis2);
                   for(int i=0;i<cal.getSectionArrayLength();i++)
                        sections.add((Section) ois2.readObject());
                   ois2.close();
                   FileInputStream fis3 = new FileInputStream("files.txt");
                   ObjectInputStream ois3 = new ObjectInputStream(fis3);
                   for(int i=0;i<cal.getFileArrayLength();i++)
                        files.add((Filetype) ois3.readObject());
                   ois3.close();
              catch(FileNotFoundException exception)
              System.out.println("The File was not found");
              catch(IOException exception)
              System.out.println(exception);
              catch(ClassNotFoundException exception)
              System.out.println(exception);
         }

    import java.util.ArrayList;
    import java.io.*;
    import javax.swing.*;
    public class Unit implements Serializable
    ArrayList units = new ArrayList();
    ArrayList sections = new ArrayList();
    ArrayList files = new ArrayList();
    String unitName;
    int sStart=0,sEnd=0,sIndex=0,fIndex=0,subIndex=0;
         public Unit(String unitNamec,int sStartc,int sEndc)
              unitName = unitNamec;
              sStart = sStartc;
              sEnd = sEndc;
         public Unit()
         public String getUnitName()
              return unitName;
         public Unit getUnit(int i)
              return (Unit)units.get(i);
         public Section getSection(int i)
              return (Section)sections.get(i);
         public ArrayList getUnitArray()
              return units;
         public int getSectionStart()
              return sStart;
         public int getSectionEnd()
              return sEnd;
         public void setSectionStart(int i)
              sStart = i;
         public void setSectionEnd(int i)
              sEnd = i;
         public void addUnit(String uName)
              units.add(new Unit(uName,sections.size(),sIndex));
              sIndex++;
         public void addSection(String sName,Unit u)
              //problem lies with files.size()
              sections.add(new Section(sName,files.size(),files.size()));
              u.setSectionEnd(u.getSectionEnd()+1);
              //fIndex++;
         public void addFile(String fName,File fPath,Section s)
              files.add(new Filetype(fName,fPath));
              s.setFileEnd(s.getFileEnd()+1);
         public void display(Unit u)
              System.out.println(u.getUnitName());
              for(int i=u.getSectionStart();i<u.getSectionEnd();i++)
                   System.out.println(((Section)sections.get(i)).getSectName());
                   for(int j=((Section)(sections.get(i))).getFileStart();j<((Section)(sections.get(i))).getFileEnd();j++)
                        System.out.println(((Filetype)files.get(j)).getFileName());
         public void writeCourseData()
         //writes 3 arrays to 3 different files
    try
    FileOutputStream fos = new FileOutputStream("units.txt");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
         for(int i=0;i<units.size();i++)
         oos.writeObject((Unit)units.get(i));
         oos.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
    try
    FileOutputStream fos = new FileOutputStream("sections.txt");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
         for(int i=0;i<sections.size();i++)
         oos.writeObject((Section)sections.get(i));
         oos.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
    try
    FileOutputStream fos = new FileOutputStream("files.txt");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
         for(int i=0;i<files.size();i++)
         oos.writeObject((Filetype)files.get(i));
         oos.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
    try
    FileOutputStream fos = new FileOutputStream("arraylengths.txt");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
         oos.writeObject(new CourseArrayLengths(units.size(),sections.size(),files.size()));
         oos.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
         public void readCourseData()
              CourseArrayLengths cal;
              try
                   FileInputStream fis = new FileInputStream("arraylengths.txt");
                   ObjectInputStream ois = new ObjectInputStream(fis);
                   cal = ((CourseArrayLengths) ois.readObject());     
                   ois.close();
                   FileInputStream fis1 = new FileInputStream("units.txt");
                   ObjectInputStream ois1 = new ObjectInputStream(fis1);
                   for(int i=0;i<cal.getUnitArrayLength();i++)
                        units.add((Unit) ois1.readObject());
                   ois1.close();
                   FileInputStream fis2 = new FileInputStream("sections.txt");
                   ObjectInputStream ois2 = new ObjectInputStream(fis2);
                   for(int i=0;i<cal.getSectionArrayLength();i++)
                        sections.add((Section) ois2.readObject());
                   ois2.close();
                   FileInputStream fis3 = new FileInputStream("files.txt");
                   ObjectInputStream ois3 = new ObjectInputStream(fis3);
                   for(int i=0;i<cal.getFileArrayLength();i++)
                        files.add((Filetype) ois3.readObject());
                   ois3.close();
              catch(FileNotFoundException exception)
              System.out.println("The File was not found");
              catch(IOException exception)
              System.out.println(exception);
              catch(ClassNotFoundException exception)
              System.out.println(exception);
         /*public static void main(String args[])
              Unit u1 = new Unit();
              u1.addUnit("Cmps2a22");
              u1.addSection("Section1",u1.getUnit(0));
              //u1.addSubSection("Subsect1",u1.getSection(0));
              u1.addFile("File1",null,u1.getSection(0));
              u1.addFile("File2",null,u1.getSection(0));
              u1.addSection("Section2",u1.getUnit(0));
              u1.addFile("NF",null,u1.getSection(1));
              u1.addFile("NF2",null,u1.getSection(1));
              u1.addFile("NF3",null,u1.getSection(1));
              u1.addSection("Section3",u1.getUnit(0));
              u1.addFile("NF",null,u1.getSection(2));
              u1.addFile("NF2",null,u1.getSection(2));
              u1.addFile("NF4",null,u1.getSection(2));
              u1.display(u1.getUnit(0));
              u1.writeCourseData();
              u1.readCourseData();
              u1.display(u1.getUnit(0));
    import java.util.ArrayList;
    import java.io.*;
    public class Section implements Serializable
    private String sectName,subSectName;
    private int fpStart=0,fpEnd=0,subSectStart=0,subSectEnd=0;
    private Section s;
    private boolean sub;
         public Section(String sectNamec,int fpStartc,int fpEndc,int subSectStartc,int subSectEndc,Section sc,boolean subc)
              sectName = sectNamec;
              fpStart = fpStartc;
              fpEnd = fpEndc;
              subSectStart = subSectStartc;
              subSectEnd = subSectEndc;
              s = sc;
              sub = subc;
         public Section(String sectNamec,int fpStartc,int fpEndc)
              sectName = sectNamec;
              fpStart = fpStartc;
              fpEnd = fpEndc;
         public Section getParent()
              return s;
         public boolean isSub()
              return sub;
         public String getSubName()
              return subSectName;
         public int getSubStart()
              return subSectStart;
         public int getSubEnd()
              return subSectEnd;
         public void setSubStart(int i)
              subSectStart = i;
         public void setSubEnd(int i)
              subSectEnd = i;
         public int getFileStart()
              return fpStart;
         public int getFileEnd()
              return fpEnd;
         public String getSectName()
              return sectName;
         public void setFileStart(int i)
              fpStart = i;
         public void setFileEnd(int i)
              fpEnd = i;
         public void addSection(String sectName)
         /*public static void main(String args[])
    import java.io.*;
    public class Filetype implements Serializable
         private String name;
         private File filepath;
         public Filetype(String namec, File filepathc)
              name = namec;
              filepath = filepathc;
         public String getFileName()
              return name;
         public File getFilepath()
              return filepath;
    import java.io.*;
    public class CourseArrayLengths implements Serializable
    private int ul,sl,fl;
         public CourseArrayLengths(int ulc,int slc,int flc)
              ul = ulc;
              sl = slc;
              fl = flc;
         public int getUnitArrayLength()
              return ul;
         public int getSectionArrayLength()
              return sl;
         public int getFileArrayLength()
              return fl;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.ArrayList;
    import java.io.*;
    public class OrganiserGui implements ActionListener
    int width,height;
    JFrame frame;
         public OrganiserGui()
              width = 600;
              height = 500;
         public void runGui()
              //Frame sizes and location
              frame = new JFrame("StudentOrganiser V1.0");
    frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
              frame.setSize(width,height);
              frame.setLocation(60,60);
              JMenuBar menuBar = new JMenuBar();
              //File menu
              JMenu fileMenu = new JMenu("File");
              menuBar.add(fileMenu);
              fileMenu.addSeparator();
              JMenu addSubMenu = new JMenu("Add");
              fileMenu.add(addSubMenu);
              JMenuItem cwk = new JMenuItem("Coursework assignment");
              addSubMenu.add(cwk);
              JMenuItem lecture = new JMenuItem("Lecture");
              lecture.addActionListener(this);
              addSubMenu.add(lecture);
              JMenuItem seminar = new JMenuItem("Seminar sheet");
              addSubMenu.add(seminar);
              //Calendar menu
              JMenu calendarMenu = new JMenu("Calendar");
              menuBar.add(calendarMenu);
              calendarMenu.addSeparator();
              JMenu calendarSubMenu = new JMenu("Edit Calendar");
              calendarMenu.add(calendarSubMenu);
              JMenuItem eventa = new JMenuItem("Add/Remove Event");
              eventa.addActionListener(this);
              calendarSubMenu.add(eventa);
              JMenuItem calClear = new JMenuItem("Clear Calendar");
              calClear.addActionListener(this);
              calendarSubMenu.add(calClear);
              JMenu calendarSubMenuView = new JMenu("View");
              calendarMenu.add(calendarSubMenuView);
              JMenuItem year = new JMenuItem("By Year");
              year.addActionListener(this);
              calendarSubMenuView.add(year);
              JMenuItem month = new JMenuItem("By Month");
              month.addActionListener(this);          
              calendarSubMenuView.add(month);
              JMenuItem week = new JMenuItem("By Week");
              week.addActionListener(this);
              calendarSubMenuView.add(week);
              //Timetable menu
              JMenu timetableMenu = new JMenu("Timetable");
              menuBar.add(timetableMenu);
              timetableMenu.addSeparator();
              JMenu stimetableSubMenu = new JMenu("Social Timetable");
              timetableMenu.add(stimetableSubMenu);
              JMenu ltimetableSubMenu = new JMenu("Lecture Timetable");
              timetableMenu.add(ltimetableSubMenu);
              frame.setJMenuBar(menuBar);
    frame.setVisible(true);
         public void actionPerformed(ActionEvent e)
              JMenuItem source = (JMenuItem)(e.getSource());
              System.out.println(source.getText());     
              Calendar c = new Calendar();
              if(source.getText().equalsIgnoreCase("By Year"))
                   System.out.println("INSIDE");
                   c.buildArray();
                   c.calendarByYear(Calendar.calendarArray);     
              if(source.getText().equalsIgnoreCase("Add/Remove Event"))
                   c.eventInput();
              if(source.getText().equalsIgnoreCase("clear calendar"))
                   c.buildYear();
                   c.writeEvent(Calendar.calendarArray);
                   c.buildArray();
              if(source.getText().equalsIgnoreCase("lecture"))
                   System.out.println("Nearly working");
                   //JFileChooser jf = new JFileChooser();
                   //jf.showOpenDialog(frame);
                   FileManager fm = new FileManager();
                   //choose unit to add file to
                   JOptionPane unitOption = new JOptionPane();
                   Unit u = new Unit();
                   u.readCourseData();
                   //u.display(u.getUnit(0));
                   System.out.println((u.getUnit(0)).getUnitName());
                   String[] unitNames = new String[u.getUnitArray().size()];
                   for(int i=0;i<unitNames.length;i++)
                        //unitNames[i] = (((Unit)u.getUnitArray().get(i)).getUnitName());
                        //System.out.println(unitNames);
                        System.out.println((u.getUnit(i)).getUnitName());
                   //unitOption.showInputDialog("Select Unit to add lecture to",unitNames);
                   //needs to select where to store it
                   //fm.openFile(jf.getSelectedFile());
         public static void main(String args[])
              OrganiserGui gui = new OrganiserGui();
              gui.runGui();
    java.io.invalidclassexception: Unit; local class incompatible: stream classdesc serialversionUID = 3355176005651395533, local class serialversionUID = 307309993874795880

  • Import java classes Exception Error in Forms 10g

    Hi,
    I have created a jar file using JDeveloper and need to import it in my Forms 10g to be able to call web services. In my forms builder, after I click on Program - Import Classes and give the name of the stub I created, it gives me the following error :
    Exception occurred: java.lang.ClassNotFoundException:
    I am following the step by step instructions of OTN
    http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm
    In the above documentation, where it says "Call the Stub from a Forms Application", point no. 1, it tells to go to control panel - system - advanced - environment variables and edit CLASSPATH. The problem is that in my variable, I cannot see CLASSPATH, it has PATH. I had added my jar file in there. Is it because of this that I'm getting the error.
    After that I have added the jar file in default.env in CLASSPATH.
    I would appreciate your urgent help in this matter.
    Thanks in advance.

    Well you can create a new variable called CLASSPATH - however, if you are actually seeing the JAR file in the Java Importer then that would assume you are infact seeing the JAR file.
    DO you get this problem if you JAR up a simple "Hello world" - if could be that you are not importing all the classes needed . What Jdeveloper version are you using - if its 10.1.3.1 and JAXRPC web services you may need to add an additional JAR to the class.
    Luckily for you ...check out...
    http://groundside.com/blog/GrantRonald?title=want_to_know_how_to_call_web_services_fr&more=1&c=1&tb=1&pb=1
    Regards
    Grant
    Message was edited by:
    Grant Ronald

  • Cannot find class: Exception??

    Hi
    The compiler claims it cannot find class FileNotFoundException or any other exception in my Main. Any packages I import has no problem. My structure:
    java \ myMain \ Main.java
    java \ com \ myName \ packages //no, the space is just there as visual help:)
    Use javac -classpath java\ @compile.file
    ...where compile.file is a txt file giving the paths and filenames to all files I include.
    This is first time I use the -classpath parameter, but I believed java.lang always was included. What Am I doing wrong.
    regards
    JT

    You should review the tool documentation for the javac command and its use of classpath.
    Your problem appears to be due to the way you defined classpath, "-classpath java\". While you don't provide enough information to conclusively say what it should be, I'm guessing it should also include java\myMain\ - assuming that you're issuing the javac command from the parent of the \java\ directory, as your command example indicates.
    Here is a clip about its use of the classpath.
    "When compiling a source file, the compiler often needs information about a type whose definition did not appear in the source files given on the command line. The compiler needs type information for every class or interface used, extended, or implemented in the source file. This includes classes and interfaces not explicitly mentioned in the source file but which provide information through inheritance.
    For example, when you subclass java.applet.Applet, you are also using Applet's ancestor classes: java.awt.Panel, java.awt.Container, java.awt.Component, and java.lang.Object.
    When the compiler needs type information, it looks for a source file or class file which defines the type. The compiler searches for class files first in the bootstrap and extension classes, then in the user class path (which by default is the current directory). The user class path is defined by setting the CLASSPATH environment variable or by using the -classpath command line option. (For details, see Setting the Class Path).
    If you set the -sourcepath option, the compiler searches the indicated path for source files; otherwise the compiler searches the user class path for both class files and source files."

  • Renderer not found for renderable class Exception

    Hi,
    I'm getting this exception on a handheld device with OS Windows Mobile 5 and browser PIE.  I've also tried to change the protocol between the server and client by adding the ?sap-wd-client=HtmlClient parameter to the end of my URL, however, it doesn't render my pull down selections properly.  any suggestions?
    Error stacktrace:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Renderer not found for the renderable class com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.HorizontalGutterAdapter
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.client.PieClient.sendHtml(PieClient.java:929)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.client.PieClient.fillDynamicTemplateContext(PieClient.java:386)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.client.PieClient.sendResponse(PieClient.java:1067)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.client.PieClient.retrieveData(PieClient.java:224)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRetrieveData(WindowPhaseModel.java:595)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:156)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Caused by: com.sap.tc.webdynpro.clientserver.renderer.RendererNotFoundException: Renderer not found for the renderable class com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.HorizontalGutterAdapter
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.RenderManager.getRendererClass(RenderManager.java:119)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.createRenderer(AbstractRenderManager.java:287)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.getRenderer(AbstractRenderManager.java:271)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.getRenderer(AbstractRenderManager.java:254)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:334)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:118)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.pie.GridLayoutRenderer.renderGridLayoutCellFragment(GridLayoutRenderer.java:328)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.pie.GridLayoutRenderer.renderGridLayoutRowFragment(GridLayoutRenderer.java:247)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.pie.GridLayoutRenderer.renderGridLayoutFragment(GridLayoutRenderer.java:200)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.pie.GridLayoutRenderer.render(GridLayoutRenderer.java:71)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:339)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:118)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.pie.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:104)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.pie.ScrollContainerRenderer.render(ScrollContainerRenderer.java:51)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:339)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:118)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.pie.UiWindowRenderer.render(UiWindowRenderer.java:26)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:339)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:118)
         at com.sap.tc.webdynpro.clientimpl.mobile.pie03.client.PieClient.sendHtml(PieClient.java:921)
         ... 31 more

    I know of the protocols to set by the client for the server to render applications: WmlClient, PieClient, Pie03Client, Nokia08Client, XmlClient, HtmlClient.    What would the parameter be for standard IE 6.0 or 7.0 browsers?

  • Cannot open step in workflow due to constructor class exception

    Dear experts,
    We are creating custom workflow using ABAP class. In the constructor method, we want to raise exception, for example if the approver doesn't exist.
    However, after putting the code, when we go to workflow definition in pftc and go into the step where we use one of the instance method of this class, the exception in constructor is raised. We pass the class instance to this step.
    Does anyone know why this happen and how to prevent this?
    Regards,

    Hi Marcelino and Salvatore,
    First if you haven't already done so, have a look at the 7 step-by-step blogs I wrote on ABAP OO and Workflow such as Getting started with ABAP OO for Workflow ... using the IF_WORKFLOW interface  Using ABAP OO methods in Workflow Tasks - these will help make sure you have covered off all the basics.
    Secondly re exceptions - I agree with the others, it's better to raise them in the specific method not in the constructor.  However you can raise CX_BO_INSTANCE_NOT_FOUND to indicate that there was a problem with instantiating the instance.
    Any exceptions you do raise should be subclasses of CX_BO_TEMPORARY or CX_BO_APPLICATION so that workflow recognises them correctly and knows what default error handling to apply if it occurs.
    Hope that helps.
    Regards,
    Jocelyn

  • Deserialize Object Invalid Class Exception

    I receive the followign error when attempting to deserialize an Integer class:
    java.lang.Integer; Local class not compatible: stream classdesc serialVersionUID=1360826667802527544 local class serialVersionUID=1360826667806852920
    java.io.InvalidClassException: java.lang.Integer; Local class not compatible: stream classdesc serialVersionUID=1360826667802527544 local class serialVersionUID=1360826667806852920
         at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:560)
         at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:604)
         at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:981)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:402)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:272)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1231)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:272)
         at nyerges.matt.Serialization.DeserializeObjectFromString(Serialization.java:50)
         at nyerges.matt.TestSerialization.main(TestSerialization.java:35)
    Here is my main class and method:
    package nyerges.matt;
    * @author n0139292
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class TestSerialization {
         public static void main(String[] args) {
              Integer i = new Integer(10);
              System.out.println(i);
              String res = Serialization.SerializeObjectToString(i);
              Integer q = (Integer) Serialization.DeserializeObjectFromString(res);
              System.out.println(q);
    }Here is the code for the serialization class:
    package nyerges.matt;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    * @author n0139292
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class Serialization {
         public static String SerializeObjectToString(Object o)
              try{
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   ObjectOutputStream oos = new ObjectOutputStream(baos);
                   oos.writeObject(o);
                   oos.flush();
                   oos.close();
                   String toSend = new String(baos.toByteArray());
                   return toSend;
              }catch(Exception e){
                   System.out.println(e.getMessage());
                   e.printStackTrace();
              return null;
         public static Object DeserializeObjectFromString(String s)
              try
                   byte[] bs = s.getBytes();
                   ByteArrayInputStream bais = new ByteArrayInputStream(bs);
                   ObjectInputStream ois = new ObjectInputStream(bais);
                   Object toGet = (Object) ois.readObject();
                   ois.close();
                   return toGet;
              }catch(Exception e)
                   System.out.println(e.getMessage());
                   e.printStackTrace();
              return null;
    }This does not deal with RMI or Marshalling problems, since I am doing it on the same computer within seconds of each other. This was developed and ran with WebSphere if that helps.
    Thanks in advance,
    Matt

    Check this out for a discussion on this:
    http://forum.java.sun.com/thread.jspa?threadID=479051&messageID=2228486
    Oh, as an aside and you might also want to take a look here, for method names:
    http://java.sun.com/docs/codeconv/

  • Call global class exception to report prog

    Hi expert,
            In  global class, i write a method in that one exception can be raised. that exception can be called in
    report program. please can you help me.
    Thank you,
    dinesh.

    Hello Dinesh
    If your method has just exceptions defined in its signature and NOT exception classes then you can handle them like you do for function module exceptions.
    However, I assume your method has one or more exception classes defined in its signature. Then you can use the TRY...CATCH...ENDTRY block:
    " Here we are in your report:
    DATA: lo_error    TYPE REF TO cx_root.
    DATA: ld_msg    TYPE bapi_msg.
    TRY.
      CALL METHOD go_myclass->method_with_exceptionclass( ).  " e.g. ZCX_MY_EXCEPTION
    CATCH zcx_my_exception INTO lo_error.
       ld_msg = lo_error->get_longtext( ).
      MESSAGE ld_msg   TYPE 'I'.
    ENDTRY.
    Regards
      Uwe

  • Does class Exception have an empty constructor

    I thought every class you create in Java automatically creates an empty constructor regardless if you put one or not. I have a piece a class that extends Exception. In order to create a new object of my class using an empty constructor, I have to create it myself, unless I can call Exception's empty constructor.

    A default empty constructor will be added to any class in which you don't declare your own constructor. See http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#16823
    If the body of a constructor does not start with a call to another constructor, via super() or this(), the compiler will automatically add a call to super() at the start of the constructor. See http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#78435
    I'm guessing you have your own Exception class that has a declared constructor like:
    public class MyException extends Exception {
      public MyException(String message) {
        super(message);
    }You'll need to add your own empty constructor to this which calls super():
    public class MyException extends Exception {
      public MyException() {
        super();
      public MyException(String message) {
        super(message);
    }

  • Router class exception

    Hi,
    We are using a custom router class called WLSRouter along with a EJB app, which
    is deployed on a 4-server cluster on WLS8.1SP2. I have included the WLSRouter.class
    in the EJB JAR file. But when I try to start the cluster I get this kind of exception.
    Why am I getting this exception and how do I make the router class available to
    WLS?
    My deployment desc looks like this:-
    <stateless-clustering>
    <home-is-clusterable>True</home-is-clusterable>
    <home-load-algorithm>random</home-load-algorithm>
         <home-call-router-class-name>WLSRouter</home-call-router-class-name>
    <stateless-bean-is-clusterable>True</stateless-bean-is-clusterable>
    <stateless-bean-load-algorithm>random</stateless-bean-load-algorithm>
         <stateless-bean-call-router-class-name>WLSRouter</stateless-bean-call-router-class-name>
    <stateless-bean-methods-are-idempotent>False</stateless-bean-methods-are-idempotent>
    </stateless-clustering>
    The exception I get is:-
    <BEA-000140> <Failed to deserialize statedump from server -.....
    A-MSAT:ServerC with java.lang.ClassNotFoundException: WLSRouter: This error could
    indicate that a component was deployed on a cluster member but not other members
    of that cluster. Make sure that any component deployed on a server that is part
    of a cluster is also deployed on all other members of that cluster.
    java.lang.ClassNotFoundException: WLSRouter: This error could indicate that a
    component was deployed on a cluster member but not other members of that cluster.
    Make sure that any component deployed on a server that is part of a cluster is
    also deployed on all other members of that cluster
    at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:321)
    at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:236)
    at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:216)
    at weblogic.common.internal.WLObjectInputStream.resolveClass(WLObjectInputStream.java:48)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.rmi.cluster.BasicReplicaHandler.readExternal(BasicReplicaHandler.java:690)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.common.internal.WLObjectInputStreamBase2.readObjectWL(WLObjectInputStreamBase2.java:58)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.readExternal(ReplicaAwareRemoteRef.java:384)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.rmi.cluster.ReplicaAwareRemoteObject.readExternal(ReplicaAwareRemoteObject.java:215)
    at weblogic.rmi.cluster.ClusterableRemoteObject.readExternal(ClusterableRemoteObject.java:290)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.common.internal.WLObjectInputStreamBase2.readObjectWL(WLObjectInputStreamBase2.java:58)
    at weblogic.cluster.BasicServiceOffer.readExternal(BasicServiceOffer.java:147)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at java.util.ArrayList.readObject(ArrayList.java:548)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:824)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.common.internal.WLObjectInputStreamBase2.readArrayList(WLObjectInputStreamBase2.java:84)
    at weblogic.cluster.StateDumpMessage.readExternal(StateDumpMessage.java:48)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.cluster.HTTPExecuteRequest.execute(HTTPExecuteRequest.java:82)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

    Anwesha wrote:
    Hi,
    The error is the ClassNotFound exception,while the WLS cluster starts up.Are you sure the class is in the classpath? Does javap find it? It's
    very unlikely you'd get a ClassNotFound on something in the classpath.
    -- Rob
    >
    The BEA docs say that we must this custome Class router to rmic...http://edocs.bea.com/wls/docs81/cluster/api.html#391538
    I did so,and I get a *RTD.xml. Now what do I with this?
    Rob Woollen <[email protected]> wrote:
    Certainly having the router class in the CLASSPATH is sufficient. Can
    you show me the error message you're seeing?
    I don't recall if call routers can be in an application classloader.
    -- Rob
    Anwesha wrote:
    Hi,
    Adding to the CLASSPATH of WLS is not helping.I am getting exceptionduring deployment.
    I want to know what is the correct way of including a custom Routerclass in a
    WLS env? Is it to be put in a JAR or, put as standalone file and includedin ClassPath?
    I couldn't find any documentation explaining this.
    Thanks
    Anwesha.
    Rob Woollen <[email protected]> wrote:
    Does everything work fine if the WLSRouter is in the $CLASSPATH of
    all
    the servers?
    Can you show me the config.xml entry for this Application. In
    particular, I'm interested in how you target the application to
    different servers.
    -- Rob
    Anwesha wrote:
    Hi,
    We are using a custom router class called WLSRouter along with a EJBapp, which
    is deployed on a 4-server cluster on WLS8.1SP2. I have included theWLSRouter.class
    in the EJB JAR file. But when I try to start the cluster I get thiskind of exception.
    Why am I getting this exception and how do I make the router classavailable to
    WLS?
    My deployment desc looks like this:-
    <stateless-clustering>
    <home-is-clusterable>True</home-is-clusterable>
    <home-load-algorithm>random</home-load-algorithm>
         <home-call-router-class-name>WLSRouter</home-call-router-class-name>
    <stateless-bean-is-clusterable>True</stateless-bean-is-clusterable>
    <stateless-bean-load-algorithm>random</stateless-bean-load-algorithm>
         <stateless-bean-call-router-class-name>WLSRouter</stateless-bean-call-router-class-name>
    <stateless-bean-methods-are-idempotent>False</stateless-bean-methods-are-idempotent>
    </stateless-clustering>
    The exception I get is:-
    <BEA-000140> <Failed to deserialize statedump from server -.....
    A-MSAT:ServerC with java.lang.ClassNotFoundException: WLSRouter:
    This
    error could
    indicate that a component was deployed on a cluster member but notother members
    of that cluster. Make sure that any component deployed on a serverthat is part
    of a cluster is also deployed on all other members of that cluster.
    java.lang.ClassNotFoundException: WLSRouter: This error could indicatethat a
    component was deployed on a cluster member but not other members
    of
    that cluster.
    Make sure that any component deployed on a server that is part of
    a
    cluster is
    also deployed on all other members of that cluster
    at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:321)
    at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:236)
    at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:216)
    at weblogic.common.internal.WLObjectInputStream.resolveClass(WLObjectInputStream.java:48)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.rmi.cluster.BasicReplicaHandler.readExternal(BasicReplicaHandler.java:690)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.common.internal.WLObjectInputStreamBase2.readObjectWL(WLObjectInputStreamBase2.java:58)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.readExternal(ReplicaAwareRemoteRef.java:384)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.rmi.cluster.ReplicaAwareRemoteObject.readExternal(ReplicaAwareRemoteObject.java:215)
    at weblogic.rmi.cluster.ClusterableRemoteObject.readExternal(ClusterableRemoteObject.java:290)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.common.internal.WLObjectInputStreamBase2.readObjectWL(WLObjectInputStreamBase2.java:58)
    at weblogic.cluster.BasicServiceOffer.readExternal(BasicServiceOffer.java:147)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at java.util.ArrayList.readObject(ArrayList.java:548)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:824)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.common.internal.WLObjectInputStreamBase2.readArrayList(WLObjectInputStreamBase2.java:84)
    at weblogic.cluster.StateDumpMessage.readExternal(StateDumpMessage.java:48)
    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.cluster.HTTPExecuteRequest.execute(HTTPExecuteRequest.java:82)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

  • SessionMgr class - Exception

    Post Author: trydis
    CA Forum: .NET
    In relation to trying to connect to a Crystal Reports XI server i've encountered a problem.I'm using Visual Studio 2005, have referenced CrystalDecisions.Enterprise.Framework.dll version 11.0.3300.0 and also added it to the GAC. The rest of the dll's are version 10.2.3600.0 that came with Crystal Reports for .NET.The problem is that every time i try to instantiate the CrystalDecisions.Enterprise.SessionMgr class i get the following error:"Retrieving the COM class factory for component with CLSID {BD984C67-258F-426A-AA6C-925C63BE6CC5} failed due to the following error: 80040154."I've tried using gacutil, regasm, regsrv32 but nothing helps :(This is driving me crazy, please help! Thanks.

    Post Author: Ted Ueda
    CA Forum: .NET
    Few comments:You can't mix Crystal assembly versions, so 11.0 won't work with 10.2You can't use 11.0 assemblies in .NET 2.0 (10.2 is supported with .NET 2.0).Crystal Enterprise .NET uses COM interop - the exception you're encountering is because the 11.0 assembly component is trying to load a 11.0 version COM object, that wasn't installed.I'm inferring that you're trying to do this because XI Release 1 Enterprise .NET SDK isn't supported with VS 2005 - however, this won't get you around this.Sincerely,Ted Ueda 

  • Failed to Generate Wrapper Class exception while connecting to access database.

    i tried to connect to access database in windows. i made a user dsn in windows
    control panel and added this to the connection pool. after which i created a JDBC
    datasource using this connection pool.(specifying the driver as sun.jdbc.odbc.JdbcOdbcDriver
    and url=jdbc:odbc:xyz
    where xyz is the user dsn name pointing to the relevant access database file.
    on testing this in the weblogic admin console it showed successful operation.
    when i tried to use this connection pool in weblogic 8.1 workshop and tried
    building a rowset control to check the connectivity it gave the following exception.
    file attached.
    any hints on how to get it working/ how to use access database with wl 8.1
    workshop.
    Exception in context_onAcquire
    java.sql.SQLException: Failed to Generate Wrapper Class.
    Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
    at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
    [DB-error.txt]

    ashok wrote:
    i tried to connect to access database in windows. i made a user dsn in windows
    control panel and added this to the connection pool. after which i created a JDBC
    datasource using this connection pool.(specifying the driver as sun.jdbc.odbc.JdbcOdbcDriver
    and url=jdbc:odbc:xyz
    where xyz is the user dsn name pointing to the relevant access database file.
    on testing this in the weblogic admin console it showed successful operation.
    when i tried to use this connection pool in weblogic 8.1 workshop and tried
    building a rowset control to check the connectivity it gave the following exception.
    file attached.
    any hints on how to get it working/ how to use access database with wl 8.1
    workshop.
    Exception in context_onAcquire
    java.sql.SQLException: Failed to Generate Wrapper Class.
    Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
    at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
    Hi Askok. This exception usually means that the weblogic server's environment
    doesn't have all it needs to make the jdbc connection you want. You should
    ensure that the OS environment variable PATH has all the libraries you need
    for making a jdbc-odbc connection, and that it's classpath also contains the
    driver you want.
    What DBMS are you connecting to? The reason I ask is because if there is a
    pure JDBC driver for it, that will be preferable, because the jdbc-odbc bridge
    from Sun is not threadsafe, so it can corrupt Weblogic.
    Joe
    >
    Exception in context_onAcquire
    java.sql.SQLException: Failed to Generate Wrapper Class.
    Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
    at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
    at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
    at weblogic.jdbc.jts.Driver.newConnection(Driver.java:674)
    at weblogic.jdbc.jts.Driver.createLocalConnection(Driver.java:196)
    at weblogic.jdbc.jts.Driver.connect(Driver.java:154)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getConnection(DatabaseControlImpl.jcs:1360)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.context_onAcquire(DatabaseControlImpl.jcs:1252)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:603)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:989)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:919)
    at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:553)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.onAcquire(JcsContainer.java:513)
    at sun.reflect.GeneratedMethodAccessor325.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:524)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:464)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.acquireResources(WlwThreadContext.java:676)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:307)
    at processes.Audit.insertAuditData(Audit.ctrl)
    at processes.ExceptionHandler.auditInsertAuditData(ExceptionHandler.jpd:78)

  • Tiger and USB communications problem....Invalid Class Exception

    I purchased my G5 last April, and installed Tiger on it. Since installtion of Tiger I have been unable to run WeatherLink 5.01, 5.0.2 or 5.03, even after reinstalling the operating system. The issue is that the software is unable to connect to the Vantage Pro2 weather station via the USB port.
    Each time the software shuts down, and here's the information in the Console:
    java.io.InvalidClassException: globals.ProgConfigData; Local class not compatible: stream classdesc serialVersionUID=-3030819089009633781 local class serialVersionUID=-3230663525674838887
    Index 1 for 'pxm#' 2062 out of range (must be between 0 and 0)
    Attempted to read past end of 'pxm#'(2062) resourcejava.io.FileNotFoundException: /WeatherLink Install Log.log (Permission denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:135)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:57)
    at globals.SoftwareVersionTool.save(SoftwareVersionTool.java:93)
    at win.main.MainWin.main(MainWin.java:4401)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.zerog.lax.LAX.launch(Unknown Source)
    at com.zerog.lax.LAX.main(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
    at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    at apple.launcher.JavaApplicationLauncher.main(JavaApplicationLauncher.java:61)
    exception: null
    Exception occurred in main() of MainWin
    The people who developed the WeatherLink software have run out of answers for me.
    Thanks, John

    Sorry this post is so late but I'm only just now setting up a Vantage Pro2 weather station.
    You might want to check out a couple of alternatives to WeatherLink, neither of which is written in Java: wview and WeatherTracker. WeatherTracker has promise but is still in beta and has a lot of issues. However, it might be functional enough for you. You can download it through the WeatherTracker forums.
    wview is a different animal from WeatherLink and WeatherTracker in that it has no windowed application: it uses your web browser as its display application. The only difficulty is that it's open source, requiring you to download it, build it, and configure it, all from the Terminal. The instructions on the wview web site are pretty good, though, and there's even an OS X-specific quick start page. Since wview is native code and not computationally intensive, the system requirements are pretty low, too: it's running quite well on an old 466 MHz G3 iBook SE (with an Airport card) I had lying around gathering dust, which allows the VP2 console to be located just about anywhere and still used for data logging instead of requiring the purchase of a Wireless Envoy.
    You can check out my weather page to get an idea of wview's capabilities. As I write this, I'm using wview's built-in weather station simulator, but I will start using live data hopefully in about a week, pending the arrival of my WeatherLink package (only needed to get the data logger).

  • Invalid class exception

    Getting following exception from a EJB client :
    exception is:
         java.io.InvalidClassException: javax.ejb.EJBException; Local class not compatible: stream classdesc serialVersionUID=-9219910240172116449 local class serialVersionUID=796770993296843510
    2004-08-11 17:46:03,091 ERROR [] [main]
    The EJB is properly deployed in JBoss App server.
    The classpath on client side has all the classes which are in the classpath of Jboss(Run script)
    The full exception trace is :
    Exception in thread "main" java.rmi.UnmarshalException: Error unmarshaling return; nested exceptio
    n is:
    java.io.InvalidClassException: javax.ejb.EJBException; Local class not compatible: stream
    classdesc serialVersionUID=-9219910240172116449 local class serialVersionUID=796770993296843510
    java.io.InvalidClassException: javax.ejb.EJBException; Local class not compatible: stream classdes
    c serialVersionUID=-9219910240172116449 local class serialVersionUID=796770993296843510
    at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:518)
    at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:562)
    at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:931)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
    at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:935)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1181)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
    at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2258)
    at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:514)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1407)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
    at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2258)
    at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:514)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1407)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:207)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
    at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
    Anybody has idea about this?
    Thanks

    The client and server code are in Sync.
    The classpath on client side:
    ANT_CLASSES="$ANT_HOME/lib/xerces.jar:$ANT_HOME/lib/commons-lang-2.0.jar:$ANT_HOME/lib/commons-logging.jar:$ANT_HOME/lib/jcs.jar"
    APP_CLASSPATH="$pbase/client/programs:$JBOSS_HOME/server/default/deploy/aurora.jar:$pbase/classes/common"
    JBOSS_CP="$JBOSS_HOME/client/jbossall-client.jar:$HOME/a/ejb.jar:$JAVA_HOME/lib/tools.jar"
    CLASSPATH=$JBOSS_CP:$ANT_CLASSES:$APP_CLASSPATH
    The classpath in Jboss run script:
    ANT_CLASSES="$ANT_HOME/lib/xerces.jar:$ANT_HOME/lib/commons-lang-2.0.jar:$ANT_HOME/lib/commons-logging.jar:$ANT_HOME/lib/jcs.jar"
    OR_CLASSES="/user11/oracle/8.1.7/jdbc/lib/classes12.zip"
    APP_CLASSPATH="$pbase/classes/common"
    JBOSS_CLASSPATH="$JAVA_HOME/lib/tools.jar:$ANT_CLASSES:$APP_CLASSPATH:$HOME/a/ejb.jar:$OR_CLASSES"
    Both (client and server ) are using same JDK 1.3.1.

  • Server Startup Class Exception - Where do the startup classes go?

    Trying to get the server to run a class at startup. It complains it
    can't find my startup class. I have it in a jar file in the app-inf
    directory. Should it go someplace else?
    thanks

    Add the startup classes jar file to the APP-INF/lib directory.
    Jay Zimmett <[email protected]> wrote:
    Trying to get the server to run a class at startup. It complains it
    can't find my startup class. I have it in a jar file in the app-inf
    directory. Should it go someplace else?
    thanks

Maybe you are looking for

  • Raw files - iPhoto and Photoshop Elements

    I am shooting raw files on a Canon 400D. They upload into iPhoto 6.0.6 ok but I can't open them in PE4.0.1 for editing. I can drag the .CR2 file onto the desktop but PE doesn't recognise it. Am I missing something or am I going about this the wrong w

  • Acrobat Pro Ext 9 always crashes, error 147:6 (I'm traveling & need help!)

    I installed (from CDROM) and activated Acrobat Pro 9 Extended a week or so ago on my laptop, Windows XP Pro. I used it several times without any problem. I left my home yesterday on a one month trip, mostly out of the US but in the US until tomorrow.

  • SQLException Calling Stored Procedure

    Hello all, I'm getting the following exception when calling a stored procedure from Java. Maybe someone can help me out here. See details below. Exception java.sql.SQLException: ORA-01747: invalid user.table.column, table.column, or column specificat

  • HT1925 will I loose all my itunes songs if i uninstall/reinstall itunes ????

    I have an error msg when itunes starts up, saying registry settings used by itunes drivers for burning cds/dvds are missing. It wants me to uninstall and reinstall itunes software. If I do, will I loose all the song's on my computer that were stored

  • How to dynamic set messageInputText item data type?

    Hi, I have a LOV and other messageInputText items on the page. I need to be able to change the messageInputText item data type based on the value selected from LOV. How can I do that? DD