INVALID CLASS:model_cmd_bean as model class already exists.

Hello all,
I am gettin the following error:INVALID CLASS:model_cmd_bean as model class already exists. while creating a java bean Model.
but this is the 1st time i m using these wraper class and cmd class for creating a model.
Sugest what shoul i do?

Hi,
Welcome to SDN Community
Check these forum links,
Import JavaBean Error : Invalid Class
invalid class - ..as Model Class already exist
Hope this helps.
Regards
Srinivasan T

Similar Messages

  • Invalid Class -Java Bean not available for import

    hai friends,
    i have declared the bean but unable to import into webdynpro application
    i am geting the error invalid Class-java bean Not available for improt
    i am try for this since more than 10 days , i get the same error
    even i thought there may be issues with nwds , i have installed thrice.
    there is application download from the sdn tu_bonus calculation it is working 
    plz help me  neede very urgently

    Hi,
    Go thro' these solved threads dealing with similar type of problem,
    Import JavaBean Error : Invalid Class
    invalid class - ..as Model Class already exist
    Hope it helps to fix the error !
    Regards
    Srinivasan T

  • Import JavaBean Model - Invalid class

    Hi,
    I wanted to import a JavaBean Model as described in the Tutorial "Using EJBs in Web Dynpro Applications" (see: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c).
    Problem: i always get an error "Invalid class - JavaBean not available for import", when i want to select a local jar file as JavaBean source, althrough the jar-file contains a valid bean.
    Note:I also dont have a radio button in my GUI for selecting "Deploy time" as mentioned in the Tutorial and as i have seen in a screenshot in the Blog /people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes . in this Blog there is already a question about this, but this question has never been aswered...

    Wolfgang,
    See my tips on troubleshooting JavaBean Model Import: /people/valery.silaev/blog/2005/08/30/javabean-model-import-when-it-really-works
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Why does Flash generate invalid class names for library items?

    I imported a bunch of bitmaps (PNGs).  The library symbol names all included the full file name and its extension.  When I check "export for actionscript" it generates a class name based on the symbol name, and it includes the ".png", even though that's invalid in a class name.
    When I select multiple bitmaps and choose properties and export for actionscript, it has a note saying that classnames will be automatically generated for all items, but it does the same thing... including the ".png" in all the class names.  Is this a problem?  Wouldn't it save time if Flash would automatically strip the file extension from the instance name of bitmap library symbols when generating class names?

    Thank you Nipun.  That is exactly the behavior I would expect, and I can confirm that in the trial of Flash CC it generates valid class names by removing the file extension.  For example, a file named "3ball.test.png" will receive an auto-generated class name of "_3ball_test", so it really does ensure the class name is valid (meeting AS3 class name syntax)
    kglad, what I'm saying is that an image file name like "ball.png" is not a valid "class name", because it contains a period, which is reserved as a package delimiter.  I know the runtime can handle it as a valid "fully-qualified class name", but it's misleading because it's actually creating a class named "png" in package "ball", BUT it's understood that the auto-generated name is not supposed to be specifying any package, hence the misleading specification.  The class would have to be instantiated like this: "import ball.png; var bd:BitmapData = new png();" or "import ball.*; var bd:BitmapData = new png();"  You would also then have to import every single class individually and always use their fully qualified names, because you'd technically have a bunch of classes all named "png" inside a hundred different packages.  It's just not acceptable.
    The other problem that occurred in CS6 is if you loaded a bunch of files whose names started with numbers, then when you select them all, choose properties, and use the batch properties window to export them for actionscript, I noticed that such images would be auto-assigned generic names like "Class4" as it would realize the default auto-generated class name would be invalid.  This problem has been fixed beautifully in Flash CC.
    Nipun, it would actually be very helpful to have a little more control over the class naming conventions.  For example, if I wanted all my BitmapData classes to exist in an "images" folder or package, it would be helpful if in the batch properties window I could specify a package name for all the auto-generated class names.  When importing hundreds of images, it's very tedius to have to edit them individually and I don't always have time to write a JSFL script.  There's room in that window to add a text field for a package name.  Thanks!

  • 'invalid class-java beans not available for import

    Hi Experts,
    i am using java bean model in my Web Dynpro Application.
    for that one i have created command bean(Customer) and in my command bean i am using some other class(CustomerInfo) as reference. this CustomerInfo class contains 4 attribtes(name ,id ,etc  all are of type String)
    when i try to import these 2 class into web dynpro (using java bean model),for the Customer class it
    is giving an error message 'invalid class-java beans not
    available for import'.but 2nd class(CustomerInfo) is imported successfully with out giving the error.what might be reason.
    any help will be appriciated
    Thanks in advance
    With Regards
    Naidu

    Naidu,
    Please try to repeat JavaBean model import when running IDE in console mode (correspondign short-cut should be available in Windows Start menu, otherwise just copy original short-cut, edit it and change in command string "javaw" to java).
    Post here what is shown on console during import.
    VS

  • Invalid class: Javabean not available for import

    hi all,
    I have developed a very simple javabean in my WDJ DC in folder src/packages like this:
    package test.beans;
    public class TreeBean {
         private String name;
          * @return
         public String getName() {
              return name;
          * @param string
         public void setName(String string) {
              name = string;
    however when I try to import that into a model in NWDS 7.0.11, I get Invalid class: javabean not available for import.
    When I try to do the same in NWDS7.1SP5 it succeeds.
    What's wrong?
    Thanks for your help
    Vincenzo

    Rebuild and reload the DC/project

  • Import JavaBean Error : Invalid Class

    previously , i have 3 commandbean class , after that i add another 2 commandbean class,
    i hit the following error,
    Invalid Class -JavaBean not available for import class
    :net/solutions/model/ExternalToGateway
    Jar: c:\documents and settings\yzme\sap\workspace\SmsGatewaywebdynpro\lib\SmsGatewayCommandBean.jar
    Message was edited by:
            yzme yzme
    Message was edited by:
            yzme yzme

    Hi yzme yzme,
    These problems occur when you are not following the specification for the java Beans that the netweaver platform expects:
    Please check the following for eradicating the error:
    1. Is there a setter which doe'snt have a consequent getter for the variable.If so provide it because its considered mandatory from the bean Specs.
    2.If you have used your own methods for fetching and setting the value rather then using the getter setter for the same this will give a generational error on import.
    Above listed mistakes are made by developers ona regular basis. Please go through the java bean specs on sun.java.com for more details
    Regards
    Amit
    Allocate points if found Helpful.

  • Invalid Classes ( Objects)

    I am running 8.1.7 and I just look for all Objects that are Java classes and found that I have alot as INVALID, how can I recompile them or REVALIDATE them ?
    Any help will be great

    Hi Francisco,
    If the invalid classes are ones that you explicitly loaded using the
    "loadjava" tool, then the only way I know how to "revalidate" those
    classes would be to first remove them from the database (using the "dropjava"
    tool) and then reload them (using the "loadjava" tool).
    When you load the classes, make sure you use the "-resolve" flag, since
    this forces "validation" of the classes as they are loaded.
    You don't say what database version you are using, but you should look
    at the "Java Developer's Guide" (if you haven't already done so). It
    is available from here:
    http://tahiti.oracle.com
    If the "invalid" classes are those that get loaded as part of the
    database installation process, then you may need to re-install java
    in the database. This usually means executing the "initjvm.sql" script.
    Again, there are more details in the documentation available from
    the above-mentioned URL.
    Hope this has helped you.
    Good Luck,
    Avi.

  • 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

  • ADF error at 10.1.3.1 Invalid class: oracle.jbo.ApplicationModule

    Hi,
    I need some help. I'm a novice jdeveloper user, but I have managed to build a small appilcation for a client, with use of ADF. When I try to run it at the applications server, it can't find the page, and have this error in the application.log:
    07/01/23 09:15:58.698 rtvview: Servlet error
    oracle.classloader.util.AnnotatedLinkageError: Class oracle/jbo/ApplicationModule violates loader constraints
    Invalid class: oracle.jbo.ApplicationModule
    Loader: adf.oracle.domain:10.1.3.1
    Code-Source: /t02dat/iast_r3/midtier/BC4J/lib/adfm.jar
    Configuration: <code-source> in /t02dat/iast_r3/midtier/j2ee/home/config/server.xml
    Dependent class: oracle.jbo.uicli.mom.JUApplicationDefImpl
    Loader: adf.oracle.domain:10.1.3.1
    Code-Source: /t02dat/iast_r3/midtier/BC4J/lib/adfm.jar
    Configuration: <code-source> in /t02dat/iast_r3/midtier/j2ee/home/config/server.xml
    Does anyone have an idea?
    Versions:
    Jdeveloper 10.1.3.1
    Application Server 10.1.3.1.0
    Thanks
    Jorn
    It worked when I tried to deploy the application thru jdeveloper server connection. Does anyone know why it's working now?
    Message was edited by:
    user527535

    I've managed to eliminate the JBO-35007 errors through the use of the Refresh and RefreshCondition tags. The problem I have now is that I do most of my testing in Firefox (latest release) and it seems to be caching pages even though I have caching turned off. For instance we have different menu options based on a user's privileges. If I log out and log in as someone else who has different privileges the previous user's options are still displayed. If I click on them it then refreshes the page and the new user's options are displayed. This is also fixed by manually refreshing the page. I do not encounter this problem at all with IE, only firefox. Any thoughts here?

  • Delphi 3 or Delphi XE gives Invalid class string error

    I have Delphi 3 and a runtime error occurs when I RUN this project. No build errors...
    The form appears correctly and I put the path to the GroupWise domain directory :
    F:\opt\novell\groupwise\mail\dom1
    I click on the CONNECT button and the error is :
    "Project admin_api.exe raised an exception class EOleSysError with message 'Invalid class string'. Process stopped. Use Step or Run to Continue"
    For Delphi XE the error is only "Invalid class string".
    What am I doing wrong ?
    Thank You
    Have downloaded the same GroupWise Administrative Object API code
    https://www.novell.com/developer/ndk...bject_api.html
    unit App_obj;
    interface
    uses
    Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    StdCtrls, OleAuto, Ole2;
    type
    TForm1 = class(TForm)
    Button1: TButton;
    Label6: TLabel;
    UserID: TEdit;
    Label7: TLabel;
    LastName: TEdit;
    Label8: TLabel;
    FirstName: TEdit;
    UserDistinguishedName: TEdit;
    Label10: TLabel;
    SystemInfo: TGroupBox;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    SystemDescription: TEdit;
    SystemDistinguishedName: TEdit;
    SystemLastModifiedBy: TEdit;
    ConnectedDomainName: TEdit;
    SystemObjectID: TEdit;
    PostOfficeList: TComboBox;
    Label11: TLabel;
    Label9: TLabel;
    UserContext: TEdit;
    Label12: TLabel;
    Label13: TLabel;
    Label14: TLabel;
    Label15: TLabel;
    Label16: TLabel;
    DomainPath: TEdit;
    Button2: TButton;
    procedure Initialize(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    private
    { Private declarations }
    public
    { Public declarations }
    end;
    var
    Form1: TForm1;
    vSystem:variant;
    vDomain:variant;
    const
    ADMIN_NAME = 'Admin';
    sDOT = '.';
    implementation
    {$R *.DFM}
    procedure TForm1.Initialize(Sender: TObject);
    begin
    //Initialize controls
    DomainPath.Text:='';
    SystemDescription.Text:='';
    SystemDistinguishedName.Text:='';
    SystemLastModifiedBy.Text:='';
    ConnectedDomainName.Text:='';
    SystemObjectID.Text:='';
    UserID.Text:='';
    LastName.Text:='';
    FirstName.Text:='';
    UserDistinguishedName.Text:='';
    UserContext.Text:='';
    UserID.SetFocus;
    end;
    procedure TForm1.Button1Click(Sender: TObject);
    var
    vUsers:variant;
    vUser:variant;
    stemp:string;
    idotpos:integer;
    SelectedPO:string;
    sAdmin:string;
    begin
    //Get Selected PostOffice
    SelectedPO:=PostOfficeList.Items[PostOfficeList.ItemIndex];
    //Get Users Object
    vUsers:=vDomain.Users;
    //Find Admin user object
    vUser:=vUsers.Item(ADMIN_NAME,SelectedPO,Connected DomainName.Text);
    If UserContext.Text = '' then begin
    //Get Admin Context and use as Default
    sAdmin:=vUser.NetID;
    idotpos:=Pos(sDOT,sAdmin);
    stemp:=Copy(sAdmin,idotpos,256); //Copy everything after first dot include dot
    UserContext.Text:=stemp;
    end else begin
    //Use context string
    stemp:=UserContext.Text;
    end;
    //Make Distinguished name by adding UserID and admin context
    stemp:=UserID.Text+stemp;
    //Display User distinguished name
    UserDistinguishedName.Text:=stemp;
    //Add user
    vUser:=vUsers.Add(UserID.Text,LastName.Text,stemp,
    '',SelectedPO);
    //Set User first name
    vUser.GivenName:=FirstName.Text;
    //Commit User first name to system
    vUser.Commit;
    end;
    procedure TForm1.Button2Click(Sender: TObject);
    var
    vPostOffice:variant;
    vPostOffices:variant;
    vPOIterator:variant;
    begin
    //Get GroupWise Admin Object and connect to it
    if(DomainPath.Text = '') then begin
    ShowMessage('You must enter a valid Domain Path. Then press Login');
    exit;
    end;
    vSystem:=CreateOleObject('NovellGroupWareAdmin');
    vSystem.Connect(DomainPath.Text);
    //Get the connected Domain
    vDomain:=vSystem.ConnectedDomain;
    //List some Domain properties
    SystemDescription.Text:=vDomain.Description;
    SystemDistinguishedName.Text:=vDomain.Distinguishe dName;
    SystemLastModifiedBy.Text:=vDomain.LastModifiedBy;
    ConnectedDomainName.Text:=vDomain.Name;
    SystemObjectID.Text:=vDomain.ObjectID;
    //Initialize controls
    UserID.Text:='';
    LastName.Text:='';
    FirstName.Text:='';
    UserDistinguishedName.Text:='';
    UserContext.Text:='';
    UserID.SetFocus;
    //Get list of PostOffices for connected Domain
    vPostOffices:=vDomain.PostOffices;
    vPOIterator:=vPostOffices.CreateIterator;
    vPostOffice:=vPOIterator.Next;
    PostOfficeList.Clear;
    While( (NOT VarIsNULL(vPostOffice)) And (NOT varisempty(vPostOffice))) do begin
    PostOfficeList.Items.Add(vPostOffice.Name);
    vPostOffice:=vPOIterator.Next;
    end;
    //Set index to first item in list
    PostOfficeList.ItemIndex:=0;
    end;
    end.

    On 9/24/2013 10:46 PM, bperez wrote:
    >
    > I have Delphi 3 and a runtime error occurs when I RUN this project. No
    > build errors...
    >
    > The form appears correctly and I put the path to the GroupWise domain
    > directory :
    >
    > F:\opt\novell\groupwise\mail\dom1
    >
    > I click on the CONNECT button and the error is :
    >
    > "Project admin_api.exe raised an exception class EOleSysError with
    > message 'Invalid class string'. Process stopped. Use Step or Run to
    > Continue"
    >
    > For Delphi XE the error is only "Invalid class string".
    >
    > What am I doing wrong ?
    >
    > Thank You
    >
    > Have downloaded the same GroupWise Administrative Object API code
    > https://www.novell.com/developer/ndk...bject_api.html
    >
    > {/************************************************** *************************
    >
    > ************************************************** **************************/}
    > unit App_obj;
    >
    > interface
    >
    > uses
    > Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
    > Dialogs,
    > StdCtrls, OleAuto, Ole2;
    >
    > type
    > TForm1 = class(TForm)
    > Button1: TButton;
    > Label6: TLabel;
    > UserID: TEdit;
    > Label7: TLabel;
    > LastName: TEdit;
    > Label8: TLabel;
    > FirstName: TEdit;
    > UserDistinguishedName: TEdit;
    > Label10: TLabel;
    > SystemInfo: TGroupBox;
    > Label1: TLabel;
    > Label2: TLabel;
    > Label3: TLabel;
    > Label4: TLabel;
    > Label5: TLabel;
    > SystemDescription: TEdit;
    > SystemDistinguishedName: TEdit;
    > SystemLastModifiedBy: TEdit;
    > ConnectedDomainName: TEdit;
    > SystemObjectID: TEdit;
    > PostOfficeList: TComboBox;
    > Label11: TLabel;
    > Label9: TLabel;
    > UserContext: TEdit;
    > Label12: TLabel;
    > Label13: TLabel;
    > Label14: TLabel;
    > Label15: TLabel;
    > Label16: TLabel;
    > DomainPath: TEdit;
    > Button2: TButton;
    > procedure Initialize(Sender: TObject);
    > procedure Button1Click(Sender: TObject);
    > procedure Button2Click(Sender: TObject);
    > private
    > { Private declarations }
    > public
    > { Public declarations }
    > end;
    >
    > var
    > Form1: TForm1;
    > vSystem:variant;
    > vDomain:variant;
    >
    > const
    > ADMIN_NAME = 'Admin';
    > sDOT = '.';
    >
    > implementation
    >
    > {$R *.DFM}
    >
    > procedure TForm1.Initialize(Sender: TObject);
    > begin
    > //Initialize controls
    > DomainPath.Text:='';
    > SystemDescription.Text:='';
    > SystemDistinguishedName.Text:='';
    > SystemLastModifiedBy.Text:='';
    > ConnectedDomainName.Text:='';
    > SystemObjectID.Text:='';
    >
    > UserID.Text:='';
    > LastName.Text:='';
    > FirstName.Text:='';
    > UserDistinguishedName.Text:='';
    > UserContext.Text:='';
    > UserID.SetFocus;
    >
    > end;
    >
    > procedure TForm1.Button1Click(Sender: TObject);
    > var
    > vUsers:variant;
    > vUser:variant;
    > stemp:string;
    > idotpos:integer;
    > SelectedPO:string;
    > sAdmin:string;
    > begin
    > //Get Selected PostOffice
    > SelectedPO:=PostOfficeList.Items[PostOfficeList.ItemIndex];
    >
    > //Get Users Object
    > vUsers:=vDomain.Users;
    >
    > //Find Admin user object
    > vUser:=vUsers.Item(ADMIN_NAME,SelectedPO,Connected DomainName.Text);
    >
    > If UserContext.Text = '' then begin
    >
    > //Get Admin Context and use as Default
    > sAdmin:=vUser.NetID;
    > idotpos:=Pos(sDOT,sAdmin);
    > stemp:=Copy(sAdmin,idotpos,256); //Copy everything after first dot
    > include dot
    > UserContext.Text:=stemp;
    >
    > end else begin
    > //Use context string
    > stemp:=UserContext.Text;
    > end;
    >
    > //Make Distinguished name by adding UserID and admin context
    > stemp:=UserID.Text+stemp;
    >
    > //Display User distinguished name
    > UserDistinguishedName.Text:=stemp;
    >
    > //Add user
    > vUser:=vUsers.Add(UserID.Text,LastName.Text,stemp,
    > '',SelectedPO);
    >
    > //Set User first name
    > vUser.GivenName:=FirstName.Text;
    >
    > //Commit User first name to system
    > vUser.Commit;
    > end;
    >
    >
    >
    > procedure TForm1.Button2Click(Sender: TObject);
    > var
    > vPostOffice:variant;
    > vPostOffices:variant;
    > vPOIterator:variant;
    >
    > begin
    > //Get GroupWise Admin Object and connect to it
    > if(DomainPath.Text = '') then begin
    > ShowMessage('You must enter a valid Domain Path. Then press
    > Login');
    > exit;
    > end;
    > vSystem:=CreateOleObject('NovellGroupWareAdmin');
    >
    >
    > vSystem.Connect(DomainPath.Text);
    > //Get the connected Domain
    > vDomain:=vSystem.ConnectedDomain;
    >
    > //List some Domain properties
    > SystemDescription.Text:=vDomain.Description;
    > SystemDistinguishedName.Text:=vDomain.Distinguishe dName;
    > SystemLastModifiedBy.Text:=vDomain.LastModifiedBy;
    > ConnectedDomainName.Text:=vDomain.Name;
    > SystemObjectID.Text:=vDomain.ObjectID;
    >
    > //Initialize controls
    > UserID.Text:='';
    > LastName.Text:='';
    > FirstName.Text:='';
    > UserDistinguishedName.Text:='';
    > UserContext.Text:='';
    > UserID.SetFocus;
    >
    > //Get list of PostOffices for connected Domain
    > vPostOffices:=vDomain.PostOffices;
    > vPOIterator:=vPostOffices.CreateIterator;
    > vPostOffice:=vPOIterator.Next;
    > PostOfficeList.Clear;
    > While( (NOT VarIsNULL(vPostOffice)) And (NOT
    > varisempty(vPostOffice))) do begin
    > PostOfficeList.Items.Add(vPostOffice.Name);
    > vPostOffice:=vPOIterator.Next;
    > end;
    >
    > //Set index to first item in list
    > PostOfficeList.ItemIndex:=0;
    > end;
    >
    > end.
    >
    >
    gw client installed? Novell client installed?

  • SSRS 2008 - Invalid Class

    Dear all,
    I have install SQL 2008 in a new machine with Reporting Services 2008.
    When I go to 'Reporting Services Configuration Manager', I can see the default server name, the report server instance not auto detects the 'ReportServer' database that available in the database.
    When I click 'Find', it prompt out 'Invalid Class' warning message.
    May I know what is the problem and how can I solve it?
    Thanks.
    Regards,
    Sim

    Hi Sim,
    From your description, the Reporting Services Configuration Manager can’t find the instance name automatically. And after clicking “Find”, the error “Invalid Class” occurs.
    I assume a detailed error like “Cannot connect to WMI provider” occurred at the same time. If so, the issue happens when some of the WMI classes are not properly registered during installation.
    Please follow these steps to solve the issue:
    1.       Open the SQL Server Report Server folder.
    <Install Driver>:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer
    2.       Open the “bin” folder.
    3.       Copy and rename the file “reportingservices.mof”
    4.       Register the file using the following command
    Mofcomp <Install Driver>:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\bin\reportingservices.mof
    After doing the steps above, we should connect to the Reporting Services well.
    If the solution above does not above, could you please help to collect the following information?
    1.       Could you connect to SQL Server Configuration Manager?
    2.       The logs of SQL Server Reporting Services.
    3.       Does the Reporting Services windows service work fine?
    4.       The more detailed error message.
    5.       Any more information.
    If there is anything unclear, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • SQL Server Configuration Manager – Cannot connect to WMI provider – Invalid class [0x80041010]

    look at this post am getting the same
    http://social.msdn.microsoft.com/Forums/en-US/sqlkjmanageability/thread/4c8ca86c-105f-4f0a-ac18-6e33dda2bc46
    but when I tried the solution given there , It is not working
    the error I am getting is mofcomp is not recognized as internal or external command
    I tried in  C:\program files\Microsoft sql server\90\shared  and in Windows\system32
    I am getting the same error

    Hi sql393,
    Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 servers with SQL Server Configuration Manager. Invalid class [0x80041010].
    The solution is to go to a command prompt and then run mofcomp.
     C:\Program Files\Microsoft SQL Server\90\Shared>mofcomp "C:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof"
    For more information, please refer to
    http://blogs.msdn.com/b/echarran/archive/2006/01/03/509061.aspx
    http://msmvps.com/blogs/martinpoon/archive/2009/11/27/sql-server-configuration-manager-cannot-connect-to-wmi-provider-invalid-class-0x80041010.aspx.
    Thanks,
    Maggie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • Invalid class file format... major.minor version '49.0' is too recent ...

    I am using the Eclipse 3.1 and Oracel BPEL designer 0.9.13
    After I created a new BPEL process (named: trybpel), I got the following output in the console:
    uildfile: D:\eclipse\workspace\trybpel\build.xml
    main:
    [bpelc] &#27491;&#22312;&#39564;&#35777; "D:\eclipse\workspace\trybpel\trybpel.bpel" ...
    [bpelc] error: Invalid class file format in D:\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand.
    [bpelc] error: Class java.lang.Object not found in class com.collaxa.cube.engine.core.BaseCubeProcess.
    [bpelc] 2 errors
    BUILD FAILED: D:\eclipse\workspace\trybpel\build.xml:28: ORABPEL-01005
    Total time: 8 seconds
    I am puzzled with the information in bold. Would anyone tell me how to fix this problem? Thank you very much.

    the same error ORABPEL-01005, but not the same error message,
    Errors occurred when compile the bpel process using bpel designer for Eclipse:
    (com.oracle.bpel.designer_0.9.13)
    using PM: bpel_jboss_101200
    More error infomation following:
    Buildfile: E:\OraBpelDEclipse3.2\workspace\AboutTest\build.xml
    main:
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:835: Invalid expression statement.
    [bpelc] retun true;
    [bpelc] ^
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:835: ';' expected.
    [bpelc] retun true;
    [bpelc] ^
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:208: Method setPartneLinkBinding(com.collaxa.cube.rm.suitcase.PartnerLinkBindingDescriptor) not found in class com.collaxa.cube.engine.types.bpel.CXPartnerLink.
    [bpelc] __pl.setPartneLinkBinding(getProcessDescriptor().getPartnerLinkBindings().getPartnerLinkBinding(__pl.getName()));
    [bpelc] ^
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:584: Undefined variable: __ctx
    [bpelc] __setOutgoingLinks(__sc, __ctx);
    [bpelc] ^
    [bpelc] 4 errors
    BUILD FAILED
    E:\OraBpelDEclipse3.2\workspace\AboutTest\build.xml:28: ORABPEL-01005
    Error in java files auto-generated when compiling ,why?
    Thanks!

  • BindingException - Invalid Class Received

    Hello friends -
    I'm currently getting the following error at servicegen ant time:
    weblogic.xml.schema.binding.BindingExceptio
    n: Invalid class received: interface java.util.Enumeration loaded from file:/C:/bea/jdk1
    41_05/jre/lib/rt.jar!/java/util/Enumeration.class. All classes that will be serialized
    or deserialized must be non-interface, non-abstract classes that provide a public default constructor
    I've done some reading, but most of what I find seems to indicate that this is an issue with wanting to return an unserializable object type from a web service. In my case, I simply want to use a Properties object inside of my web service to retrieve values that would be useful to change without a recompilation. My input and output do not include Enumeration type objects. If I modify my methods to use hardcoded values instead of opening a file using Properties, servicegen will compile the web service fine.
    I've also seen some postings indicating this could be a classpath related issue, but have yet to make progress on that end either.
    Is it impossible to use / reference any object which does not implement serializable within a web service, even if your input or return types do not utilize these objects?
    Any and all guidance is appreciated.
    Thanks!
    cm

    I think it is too late to respond but this is what i relize at this point.I am getting the same error but with java.util.Map the reason is these are not supported data types by servicegen so you need to write a data type.Please let me know if you resolved this issue if so How?

Maybe you are looking for

  • Crashes on Startup and to the best of my knowledge, unfixable.

    Its a random chance at the start of a random day that it crashes on startup, freeze then crash. The only plugins i have installed are Java and Shockwave flash. I tried every method possible to the best of my knowledge but nothing worked. Eventually i

  • Regarding the delivery date in sales order

    Hai when we give the inhouse production time in material master and the create a sales order whenever we give the quantity the delivery date does not change according to the quantity ex :- when i give the inhouse time as 2 days for producing a single

  • CUP Risk Analysis results are not shown, continues processing request

    We have several users that complain the risk analysis in CUP never finishes. Requests do not contain risks or huge amount of risks which could explain a long runtime. With one user we checked, the user is never getting the risk analysis result on his

  • How to remove Safari 5 from pc with xp.....add/remove does not work

    Looking for help removing Safari 5 from my PC using XP. Add/Remove program will not uninstall it.

  • Expedite adding borders?

    I want to add plain white 300 pixel borders to some photos without losing any of the image, so I'm using canvas resize in Elements one at a time, then back to Lightroom for the next, etc. Is there any way I can expedite this, by making some kind of p