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?

Similar Messages

  • ASP Error message: Invalid class string

    Server object, ASP 0177 (0x800401F3)
    Invalid class string
    /asap/admin/insert.asp
    I have seen that the installation of MSXML 2.0 may be the solution to this error message I am getting. How do I go about installing this? I have downloaded and thought I installed, but still get this message. Anybody else seen this and know of possible solution?
    Please help...

    I just noticed the customer is on PL39 and the version I am on here is PL43.  Could that be presenting a problem?
    Thanks,
    EJD

  • Download Helper, even with paid converter upgrade, gives "Invalid Capture File" errors and will not record audio, with "File Creation Error - Unable to rename/copy audio file" Error.

    Download Helper Screen Capture worked to capture video if the default "no audio" option is active. But, no audio. The "speakers" or "microphone" audio options are confusing....the audio to be captured is from the video, so what do you choose? With either "speakers" or "microphone" selected, the captured file has poor audio and no video. Re-capture efforts (speakers) get "Invalid capture file error" and "File Creation error- Unable to rename/copy audio file"
    The paid upgrade of "Converter" doesn't work.
    Instructive documentation - not very good.
    Suggestions - Need time delay between initiation of "Record" and starting the video to be recorded.
    Could use timer tracking of the record process.
    Are there operating system limitations? (Have Windows XP Pro)

    That is an issue for the developer of that Download Helper.

  • Add mobile broadband profile using netsh gives "Invalid Profile XML" error

    We're trying to create an automated installation to upgrade to 8.1 Pro soon and since we have our own APN at our provider, we'd like to add this using a script. However when I try to add my XML profile using
    netsh mbn add profile interface="Mobile broadband" name="profile.xml"
    I receive the following error: Add Profile Failure: Invalid Profile XML.
    I've found some Windows 7 topics regarding this issue, pointing at the encoded Subscriber and ICC id's in these XML files. I have already found the unencoded values with
    netsh mbn show ready * and added them to the XML file, but still no dice :-(
    This is my XML file:
    <?xml version="1.0"?><MBNProfile xmlns="http://www.microsoft.com/networking/WWAN/profile/v1">
    <Name>My Company Name</Name>
    <IsDefault>true</IsDefault>
    <ProfileCreationType>UserProvisioned</ProfileCreationType>
    <SubscriberID>123451234512345</SubscriberID>
    <SimIccID>1234123412341234567</SimIccID>
    <HomeProviderName>vodafone NL</HomeProviderName>
    <ConnectionMode>auto-home</ConnectionMode>
    <Context>
    <AccessString>custom.provider.nl</AccessString>
    <UserLogonCred>
    <UserName>username</UserName>
    <Password>p4ssw0rd</Password>
    </UserLogonCred>
    <Compression>DISABLE</Compression>
    <AuthProtocol>NONE</AuthProtocol>
    </Context>
    <DisplayProviderName xmlns="http://www.microsoft.com/networking/WWAN/profile/v2">My Company Name</DisplayProviderName>
    </MBNProfile>
    I've removed all existing mobile broadband profiles from the system, netsh mbn show profiles
    shows an empty list so it's not a naming issue. I tried removing the XML version header from the file (a lot of examples of these XML files don't have it), leaving the Subscriber and/or ICC ID empty, removed them from the XML file but nothing seems to
    work.
    Does anyone have some other suggestions?

    Hi,
    I'm sorry for have no idea with your problem. Since those methods you tried but failed, in my opinion, it would be better to use Process Monitor to capture the trace of excuting this XML file.
    Start Process Monitor, close as much unrelated process as possible, then run command to enable this XML file.
    After error occures, stop capture.
    Process Monitor:http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    Roger Lu
    TechNet Community Support

  • Case Decode - invalid column name error

    select Workweek, max( decode( Type, T34, prct, null ) ) Bad,
                        max( decode( Type, T35, prct, null ) ) Repair,
                        max( decode( Type, T36, prct, null ) ) Good
    FROM
    (select Workweek, Type, round(ratio_to_report(sum(Testtime_in_Minutes)) over(partition by Workweek)*100,3) prct
    FROM
    (select ts.lot as Lot, ts.wafer_id as Wafer, dt.SORT_X as X, dt.SORT_Y as Y, ts.devrevstep as PRODUCT, ts.operation as OPERATION, dt.INTERFACE_BIN as INTERFACE_BIN, (dt.TEST_TIME)/60.0 as Testtime_in_Minutes,
    ts.TEST_END_DATE_TIME as Test_End_Time, ts.Program_Name, ts.test_end_work_week as Workweek,
    (CASE
    WHEN (dt.INTERFACE_BIN > 9 AND dt.INTERFACE_BIN < 15) THEN 'T34'
    WHEN (dt.INTERFACE_BIN =30 OR dt.INTERFACE_BIN =31 OR dt.INTERFACE_BIN = 32 OR dt.INTERFACE_BIN = 33) THEN 'T35'
         ELSE 'T36'
         END ) Type
    from a_testing_session ts, a_device_testing dt
    where ts.test_end_work_week >= 200715
    and (ts.devrevstep like '9600%')
    and dt.lao_start_ww = ts.test_end_work_week
    and dt.ts_id = ts.ts_id)
    GROUP BY Workweek, Type)
    This sql query above does not run properly, gives invalid column name error. However, the entire select statement surrounded by the () works. There must be an error in the first 4 lines someplace, but I do not see it.

    Assuming type is a string, I assume you meant
    MAX( DECODE( type, 'T34', prct, NULL )) Badwhere T34 is a string literal. Otherwise, you'd need to have columns named T34, T35, and T36 in your inner select.
    One note, though, it's probably a bad idea to have a column named Type. While it's legal to do so, TYPE is a keyword in SQL, so that name will at a minimum be confusing.
    Justin

  • 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 Class Name - jdk 1.1.7

    I have a class, TestABC which looks like the following...
    public class TestABC {
        public static void main(String[] args) {
            System.out.println("ABC");
    }Now I have compiled the source and tried running the following...
    C:\jdk1.1.7B\bin>java "C:\my stuff\classes\TestABC"
    Gives me, "Invalid class name 'C:\my stuff\classes\TestABC'
    I have also tried using TestABC.class (just in case) but no luck.
    any ideas???
    thanks

    well i have multiple JDK's installed, i.e. jdk 1.1.7
    , 1.4.2, and 1.5.0... i have 1.4.2 set in my class
    path, so how can i run jdk 1.1.7 from c:\my
    stuff\classes?you are mixing up PATH and CLASSPATH variables

  • 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?

  • 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

  • Find the Column Name which gives Invalid Number Error

    Hi,
    There are about 150 columns in a table and data to this table is from a external source like flat file. when these data are loaded to the table for a particular column it gives Invalid Number Error. So need to find for Which Numeric Column a String Value is about to be inserted.
    since we are sure not whether the proper Values are coming from Source in Front End we pass the Value within ' quotes.
    So how do we get the Column for which the error is raised :-)

    If you are using SQL*Loader, the log will tell you which row and column has the error.
    Otherwise you may need to code your own debugging statements.

  • 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.

  • 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

  • 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!

  • Can we give a class name by java keyword ?

    can we give a class name by java keyword ?e. can we create a class call "for" / "if" anyhow ? Is there some way to create such kind of classes .. Is is possible with some other java like language.. & if there is any language & how one can embed the script/language in java ..
    Please let me know
    Regards

    can we give a class name by java keyword ?e. can we
    create a class call "for" / "if" anyhow ? Is there
    some way to create such kind of classes .. Is is
    possible with some other java like language.. & if
    there is any language & how one can embed the
    script/language in java ..
    I give up - why would you want to?

Maybe you are looking for

  • AVI and JPEG will not play or render

    Ordinarily importing a jpg or avi file for use in a FCP project is a sure thing. But after easily importing some files from a disc, I could neither see the jpgs in my viewer, nor could I render the avi file in my timeline. These are graphics built in

  • Cannot edit text in Drawing Markup Text Box

    I cannot edit text in Drawing Markup Text Box after saving and closing the pdf file and then reopening it.  I go to add additional text in the Text Box, and nothing happens. Hope you can lend me a hand, Richard Adobe X Pro 10.1.4

  • Import dialog box displaying off screen

    When I'm in the office, I work in a dual-monitor environment. However, when working at home, I have only my laptop monitor. If I need to import something - html file, template file, etc. - the dialog box is displaying off screen. I've shut down and r

  • RFC as webservice and wild cards

    Hi experts, We have a custom RFC that fetches employee data based on import parameters like PERNR,FIRSTNAME,LASTNAME etc.This RFC is exposed as a WS by default(we are on ECC6.0) and is consumed by a non-SAP application. The problem is when the callin

  • Getting OSB Metrics

    Hi folks, While learning OSB, I'm trying to run ServiceStatisticsRetriever.java code sample from http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/app_jmx_monitoring.htm#CEGFFBFG. It only works if I use an account with admin privileges and I get