Creating Object using Class.forName vs new

Hello,
Is there any difference between:
Class c = Class.forName("Foo");
Foo foo = (Foo) c.newInstance();
and
Foo foo = new Foo();
Thanks.

Simple search brings this:
http://forum.java.sun.com/thread.jspa?forumID=31&threadID=614699

Similar Messages

  • Instantiating object using Class.forName()

    What is the difference between instantiating using Class.forName() method and instantiating using the new operator?

    The difference is that you can use the new operator to instantiate an object, but you can't do it using Class.forName().
    But seriously folks...
    Presumably you're talking about Class.newInstance()--which often appears right on the heels of Class.forName().
    New gives you compile-time checks you don't get with Class.forName(). If it compiles with new, then you know the constructor in question exists on the class in question.
    With Class.newInstance() (and it's cousin (also called newInstance, I think) in the Constructor class), you can't be sure until you actually execute it whether that constructor even exists.
    New requires you to know the class at compile time. NewInstance lets you defer the specific class until runtime.
    New is simpler and more direct.
    (Did I just do your homwork for you? Hope not.)

  • How to create an object of our own class by using Class.forName()??

    how to create an object of our own class by using Class.forName()??
    plzz anser my qustion soon..

    Class.forName does not create an object. It returns a reference to the Class object that describes the metadata for the class in question--what methods and fields it has, etc.
    To create an object--regardless of whether it's your class or some other class--you could call newInstance on the Class object returned from Class.forName, BUT only if that class has a no-arg constructor that you want to call.
    Class<MyClass> clazz = Class.forName("com.mycompany.MyClass");
    MyClass mine = clazz.newInstance();If you want to use a constructor that takes parameters, you'll have to use java.lang.reflect.Constructor.
    Google for java reflection tutorial for more details.
    BUT reflection is often abused, and often employe when not needed. Why is it that you think you need this?

  • Database connectivity without using Class.forName()

    Hi,
    Can anyone please tell how we can connect to a database without in java without using the Class.forName() method , and then how the database driver gets loaded.
    Regards,
    Tanmoy

    Hi,
    I recently wrote code that connects to a database without using Class.forName() in order to be compatible with Microsoft's JVM. I read about it here:
    http://www.idssoftware.com/faq-e.html#E1
    Basically, you create a new Driver object and use its connect method.
    Here's what my particular code ended up being:
    String url = "jdbc:mysql://localhost:3306/test?user=root&password=mypass";
    Driver drv = new org.gjt.mm.mysql.Driver();
    Connection con = drv.connect(url,null);

  • Is there any Similar between Class.forName() and new operator ???

    Plz tel me is there any Similar between Class.forName() and new operator ??? i have been asked this ques in interview

    You probably should have used the other thread:
    http://forum.java.sun.com/thread.jspa?threadID=792678
    To add a little confusion to the matter...Class objects are in fact objects. They're objects representing classes. So, in a sense, I guess, you could say they're similar -- in each you get an object. But in practice Class objects and all other objects should be considered semantically different unless you're doing some pretty unusual stuff. Also Class.forName is more of a factory method than a constructor.

  • ClassNotFoundException when using Class.forName(), thx

    in a study app, i try to use Class.forName() to load any class then get its properties (fields, methods etc. vs reflect).
    the (Frame based) app is in directory:
    c:\app\StudyApp.class
    there is a "Open class" button on the app, click the button, i use FileChooser to open any class file.
    i.e. open a class (assume it is not packaged)
    d:\dir\TheClass.class
    coding in StudyApp.java is:
    Class cls=Class.forName("TheClass");
    now a ClassNotFoundException throws when call Class.forName() above.
    it is easy to understand why throw the exception because i never tell where the class is. it is in directory
    d:\dir
    my question is: how to tell VM the directory.
    the directory d:\dir can not be applied to -classpath when run java.exe StudyApp, because the directory is random one at run-time.
    i tried to change System property (i.e. "java.class.path", 'user.dir" etc. none of them can fix the problem.
    thanks in advance for any help

    This probably does a lot more than you need:
    import java.util.*;
    import java.io.*;
    import java.util.jar.*;
    import java.lang.*;
    public class ClassFileFinder extends ClassLoader
         List cpath = new LinkedList();
         void addFile(File f) {
              if(f.isDirectory() || (f.isFile() && f.canRead() &&
                                          f.getName().endsWith(".jar")))
                   cpath.add(f);
         public byte[] classData(String className)  {
              String cname = className.replace('.', File.separatorChar) + ".class";
              Iterator it = cpath.iterator();
              while(it.hasNext()) {
                   File f = (File)it.next();
                   try {
                        if(f.isDirectory()) {
                             File cFile = new File(f, cname);
                             if(cFile.isFile()) {
                                  byte[] buf = new byte[(int)cFile.length()];
                                  InputStream in = new FileInputStream(cFile);
                                  int off  = 0, l;
                                  while((l = in.read(buf, off, buf.length - off)) > 0) {
                                       off += l;
                                       if(off >= buf.length) break;
                                  in.read(buf);
                                  in.close();
                                  return buf;
                        } else if (f.isFile()) {
                             JarFile jar = new JarFile(f);
                             JarEntry ent = jar.getJarEntry(cname);
                             if(ent != null) {
                                  byte[] buf = new byte[(int)ent.getSize()];
                                  int off = 0, l;
                                  InputStream in = jar.getInputStream(ent);
                                  while((l = in.read(buf, off, buf.length - off)) > 0) {
                                       off += l;
                                       if(off >= buf.length) break;
                                  in.close();
                                  return buf;
                   } catch (IOException e) {
              return null;          
         public Class findClass(String className) throws ClassNotFoundException{
              byte[] data = classData(className);
              if(data == null)
                   return getParent().loadClass(className);
              else
                   return defineClass(className,data,0, data.length);
    }Create an instance, Add directories and/or jar files with addFile then loadClass the class you want.

  • Diffrence between Class.forName() and new Operator

    What is diffrence between class.forName() and new operator.Please tell in much detail.
    Also about classloader.loadclass.
    Suppose the class that we are tring to load with the help of class.forname is not compiled. Again if I make changes at runtime to that class will that get reflected.

    What is diffrence between class.forName() and new
    operator.Please tell in much detail.Class.forName loads a class. The new operator creates a new instance. Apple trees and apples.
    Also about classloader.loadclass.Read the API.
    Suppose the class that we are tring to load with the
    help of class.forname is not compiled.Then you can't load it and get an exception. Read the API.
    Again if I
    make changes at runtime to that class will that get
    reflected.Depends on the changes and when exactly you do them.

  • Overview of Leave --- CREATE OBJECT: The class  was not found., error key:

    Dear Gurus,
    Iam facing this problem that, when i try to open the Leave Overview from the leave request screen. it gives the dump with message
    CREATE OBJECT: The class  was not found., error key: RFC_ERROR_SYSTEM_FAILURE   
    this also creates a dump in the back end.
    The same dump is appearing when i try to view the Check Documents for the same employee from PTARQ.
    Thanks in advance
    Ramnath

    Hi ,
    please find the following solution .it will definitely work .
    If you leave configuration is done.
    There was an incorrect data in your system. To do these please follow following process.
    delete this request using
    PTARQ> Delete documents (RPTARQDBDEl)
    Please read the report documentation before
    deleting the request but it should be safe as it is
    a development system.
    Please delete this with the above information or delete all
    the records for the approver.
    After this,, there will be some incorrect workitem in approver inbox.
    You need to clear that also by Tcode - SWWL.
    ALSO check the leave request workflow of that employee and if there is any error workflow lying in the workflow delete the leave request (which was created with error) Note down the id initiater ( which had error) and in the Test Environment for Leave request (PTARQ) gave the PERNR and delete the documents ( give the id iniater in the document status ).
    To check the error work flow go to SWIA and check for that Workflow (Leave) raised by the PERNR at that duration ( check in IT2001 for the duration) and give it here.
    After deleting it check in the portal for the leave request if any error is occuring when trying to apply for leave.

  • Why use Class.forName() ?

    Why is it always adviced to use Class.forName( nameOfTheDriver ). Why dont we simply import the driver via the import statement ?
    Please note that this topic is part of a bigger topic I published in Java programming about difficulties I had importing driver. See:
    http://forums.java.sun.com/thread.jsp?forum=31&thread=147534
    for more details.

    Because using an import statement only tells the compiler about the driver. Class.forName() actually loads the driver when the program runs, which is what you want to happen.

  • How to use class.forName

    I am trying to use Class.forName() from a string which is passed to me as argument.
    Class batchClass = Class.forName(args[1]);
    A jar file contains the class file for the string received above and I have this jar file in the manifest of my executable jar.
    I get a class not found exception when I run my executable jar
    Can some body give pointers..what could possibly be the issue.
    The jar file is in my classpath
    run script
    #!/bin/csh
    java -jar -DDBPROVIDER=NO -DDBUS_ROOT=$DBUS_ROOT -DVTNAME=$VTNAME ./jar/IntraDayDepotPositionBatch.jar MagellanStart IntraDayDepotPositionBatch INPUTFILE LOGFILE
    Exception
    Magellan program starting - program class IntraDayDepotPositionBatch
    Cannot find program class - IntraDayDepotPositionBatch
    IntraDayDepotPositionBatch
    java.lang.ClassNotFoundException: IntraDayDepotPositionBatch
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.db.mmrepo.app.IntraDayDepotPositionBatch.MagellanStart.main(Unknown Source)
    Thanks for your time and feedback on this

    actually i tried both...with package name and without package name..
    nothing worked...
    my manifest file also contains the path to the package..so does the classpath

  • CREATE OBJECT: The class CL_HRPA_INFOTYPE_0006_IN was not found., error key

    Hi Experts,
        We are facing following problem in our ESS/MSS system. Request to suggest solution ASAP.
    We are having EP7 and ECC6
    *CREATE OBJECT: The class CL_HRPA_INFOTYPE_0006_IN was not found., error key: RFC_ERROR_SYSTEM_FAILURE*
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: CREATE OBJECT: The class CL_HRPA_INFOTYPE_0006_IN was not found., error key: RFC_ERROR_SYSTEM_FAILURE
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
         at com.sap.xss.hr.per.in.address.fc.FcPerAddressIN.readRecord(FcPerAddressIN.java:270)
         at com.sap.xss.hr.per.in.address.fc.wdp.InternalFcPerAddressIN.readRecord(InternalFcPerAddressIN.java:545)
         at com.sap.xss.hr.per.in.address.fc.FcPerAddressINInterface.readRecord(FcPerAddressINInterface.java:150)
         at com.sap.xss.hr.per.in.address.fc.wdp.InternalFcPerAddressINInterface.readRecord(InternalFcPerAddressINInterface.java:201)
         at com.sap.xss.hr.per.in.address.fc.wdp.InternalFcPerAddressINInterface$External.readRecord(InternalFcPerAddressINInterface.java:277)
         at com.sap.xss.hr.per.in.address.overview.VcPerAddressINOverview.onBeforeOutput(VcPerAddressINOverview.java:267)
         at com.sap.xss.hr.per.in.address.overview.wdp.InternalVcPerAddressINOverview.onBeforeOutput(InternalVcPerAddressINOverview.java:250)
         at com.sap.xss.hr.per.in.address.overview.VcPerAddressINOverviewInterface.onBeforeOutput(VcPerAddressINOverviewInterface.java:158)
         at com.sap.xss.hr.per.in.address.overview.wdp.InternalVcPerAddressINOverviewInterface.onBeforeOutput(InternalVcPerAddressINOverviewInterface.java:140)
         at com.sap.xss.hr.per.in.address.overview.wdp.InternalVcPerAddressINOverviewInterface$External.onBeforeOutput(InternalVcPerAddressINOverviewInterface.java:224)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:603)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:569)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1288)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
         at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
         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:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sap.aii.proxy.framework.core.BaseProxyException: CREATE OBJECT: The class CL_HRPA_INFOTYPE_0006_IN was not found., error key: RFC_ERROR_SYSTEM_FAILURE
         at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
         at com.sap.xss.hr.per.in.address.model.HRXSS_PER_P0006_IN.hrxss_Per_Read_P0006_In(HRXSS_PER_P0006_IN.java:218)
         at com.sap.xss.hr.per.in.address.model.Hrxss_Per_Read_P0006_In_Input.doExecute(Hrxss_Per_Read_P0006_In_Input.java:137)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
         ... 61 more
    Edited by: KISHOR PONKSHE on Nov 7, 2011 11:37 AM

    Hello Kishore,
    Please remove the entry from the table V_T582ITVCLAS related to  CL_HRPA_INFOTYPE_0006_IN
    Then check.
    Best Regards,
    Deepak.

  • Why can't i use class.forName(str) ?

    Heys all i have this piece of code which is working fine:
    *try {*
    java.lang.Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    *} catch (java.lang.ClassNotFoundException e) {*
    now the problem is that i was under the impression that i could use class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); but it wouldn't compile. does anyone know why is this so?

    Class.forName() says "call the static method forName() that is defined in java.lang.Class". It returns a reference to an instance of java.lang.Class.
    SomeClass.class is known as a class literal. It is not a member, not a field, not a method. It evaluates to a reference to an instance of java.lang.Class.
    You cannot do class.something().
    Edited by: jverd on Oct 26, 2010 9:46 AM

  • Need Help Loading Sqlbase Driver Using Class.forName(...

    I'm having trouble connecting to a Sqlbase database on my PC. The problem seems to be with loading the driver with the "Class.forName" method. My source code (listed below) is in the "C:\My Documents\java" folder. I installed the Sqlbase driver in "C:\com\centurasoft\java\sqlbase" folder. The driver installation modified my autoexec.bat file to include the line "SET CLASSPATH=C:\com\centurasoft\java\sqlbase".
    The epdmo database is in a folder on my D:\ drive.
    It seems to find the SqlbaseDriver.class file, but for some reason it can't load it. I would greatly appreciate any suggestions as to how I can fix this.
    With the line -- Class.forName("centura.java.sqlbase.SqlbaseDriver");
    The SqlbaseEx.java program will compile, but I get the following error
    when I try to run it:
    Exception in thread "main" java.lang.NoClassDefFoundError: SqlbaseDriver (wrong name: com/centurasoft/java/sqlbase/SqlbaseDriver)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    ... [several more lines like these]
    at SqlbaseEx.main(SqlbaseEx.java:25)
    With the line -- DriverManager.registerDriver(new SqlbaseDriver());
    The SqlbaseEx.java program will NOT compile. I get the following error:
    SqlbaseEx.java:21: cannot access SqlbaseDriver
    bad class file: C:\com\centurasoft\java\sqlbase\SqlbaseDriver.class
    class file contains wrong class: com.centurasoft.java.sqlbase.SqlbaseDriver
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    Also, does the line -- String url = "jdbc:sqlbase:epdmo";
    look OK? I've seen numerous examples and they all have some values separated by slashes //. Am I
    missing something here that will bite me when I get past this driver loading error?
    import java.sql.*;
    // Create the ...
    public class SqlbaseEx {
    public static void main(String args[]) {
    String url = "jdbc:sqlbase:epdmo";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME varchar(32), " +
    "SUP_ID int, " +
    "PRICE float, " +
    "SALES int, " +
    "TOTAL int)";
    Statement stmt;
    try {
    Class.forName("centura.java.sqlbase.SqlbaseDriver");
    // DriverManager.registerDriver(new SqlbaseDriver());
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url, "SYSADM", "SYSADM");
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());

    Thanks for the reply.
    Upon further testing, I think my original post was slightly incorrect: if I use either of the following lines --
    Class.forName("com.centurasoft.java.sqlbase.SqlbaseDriver");
    or
    Class.forName("centura.java.sqlbase.SqlbaseDriver");
    I get the following error at runtime:
    ClassNotFoundException: com.centurasoft.java.sqlbase.SqlbaseDriver
    or
    ClassNotFoundException: centura.java.sqlbase.SqlbaseDriver
    It is when I use the line -- Class.forName("SqlbaseDriver");
    that I get the long error message in my original post.
    I don't understand why it can't find/load the driver. I feel like I've covered all the bases -- I've tried numerous variations of the driver name in the Class.forName method, my classpath variable seems to be set correctly. Does it matter what folder I compile my program in? Right now, I've just been compiling it in the same folder as the driver file -- c:\com\centurasoft\java\sqlbase.

  • Error trying to create object of Class IUSer

    I am trying to put in a code that is based on Rle assignment for the user on the portal.
    i am trying to put this code
    IWDClientUser user = WDClientUser.getCurrentUser();
    IUser userID = user.getSAPUser();
    String Userrole=new String();
    for (Iterator iter = userID.getRoles(true); iter.hasNext();) {
    IRole role = UMFactory.getRoleFactory().getRole((String) iter.next());
    Userrole=role.getUniqueName();
    But there is an error in line IUser userID = user.getSAPUser();.
    when i say add imports it is not adding the packages required to cretae an object of this class.
    When i try to manually import
    com.sap.security.api.sda
    but am not able to.. any ideas how to acheive this and assist me if i am doing anything worng?
    regards
    Sam

    Austin,
    Sorry for asking the basic questions.This is what i am doing. I went to DC, right clicked on it and selected properties. Then select JAva build path opition and then select Libraries. There i click on Add External JARs and select com.sap.security.api.jar.
    and click ok.
    do i need to do anything else here.
    And when ever i come back after a while i see that the external
    Jar is missing. IT looks weird. I have to keep on importing the external JAr after every few operations.
    Not sure what the problem could be
    thanks a lto for your patience in helping me ou ton this issue
    Below is the erro rmessage i get when trying to activate
    Build number assigned: 165853
    Change request state from QUEUED to PROCESSING
    ACTIVATION request in Build Space "DJI_EMXSSTR_D" at Node ID: 37,961,750
         [id: 165,817; parentID: 0; type: 4]
         [options: FORCE ACTIVATE PREDECESSORS]
    REQUEST PROCESSING started at 2007-04-17 22:13:46.500 GMT
    ===== Pre-Processing =====
    Waiting 19 ms
    List of activities to be activated:
         1 activity in compartment "sap.com_SAP_ESS_1"
              ESS_lea_1005
                   [seq. no 272][created by RJOGAM at 2007-04-17 18:14:26.0][ID 06c9c16aed2511dbafd000306e5ddf50]
    Analyse dependencies to predecessor activities... started at 2007-04-17 22:13:47.253 GMT
    Analysing predecessors in compartment "sap.com_SAP_ESS_1"
         The following predecessor has to be added to request 165817:
              "XSS_lea_selectionlistview_1003"   [seq. no 271][created by RJOGAM at 4/17/07 1:34 PM][ID 53225486ec4c11db812200306e5ddf50]
    Analyse dependencies to predecessor activities... finished at 2007-04-17 22:13:47.434 GMT and took 181 ms
    Analyse activities... started at 2007-04-17 22:13:47.434 GMT
    Development line state verification started at 2007-04-17 22:13:47.509 GMT
    Verification of the development line [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/] SUCCEEDED
    Development line state verification finished at 2007-04-17 22:13:47.540 GMT and took 31 ms
    Cache verification, level 2 (Comparison of attributes) started at 2007-04-17 22:13:47.540 GMT
    Verification of the following object:
         [DC: sap.com/ess/lea, group: 0] SUCCEEDED
    Cache verification finished at 2007-04-17 22:13:47.617 GMT and took 77 ms
    Analyse dependencies to predecessor activities... finished at 2007-04-17 22:13:47.629 GMT and took 144 ms
              SKIP  : Development Component "sap.com/ess/lea"
         1 component to be build in compartment "sap.com_SAP_ESS_1"
    Analyse activities... finished at 2007-04-17 22:13:47.680 GMT and took 246 ms
    Calculate all combinations of components and variants to be built...
         "sap.com/ess/lea" variant "default"
    Prepare build environment in the file system... started at 2007-04-17 22:13:47.852 GMT
         Synchronize development configuration... finished at 2007-04-17 22:13:47.862 GMT and took 10 ms
         Synchronize component definitions... finished at 2007-04-17 22:13:47.883 GMT and took 20 ms
         Synchronize sources...
    Development line state verification started at 2007-04-17 22:13:47.970 GMT
    Verification of the development line [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/] SUCCEEDED
    Development line state verification finished at 2007-04-17 22:13:48.011 GMT and took 41 ms
    Cache verification, level 2 (Comparison of attributes) started at 2007-04-17 22:13:48.011 GMT
    Verification of the following object:
         [DC: sap.com/ess/lea, group: 1] FAILED
    Comparison of cache items on the paths:
         [/usr/sap/DJI/JC03/j2ee/cluster/server0/temp/CBS/33/.CACHE/1195/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdcontroller]
         [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdcontroller]
    on verification level 2 FAILED due to the following reason:
    Difference in attribute 'Timestamp' [Thu Mar 01 16:49:43 EST 2007][Thu Mar 01 16:49:44 EST 2007]
    Comparison of cache items on the paths:
         [/usr/sap/DJI/JC03/j2ee/cluster/server0/temp/CBS/33/.CACHE/1195/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdcontroller.xlf]
         [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdcontroller.xlf]
    on verification level 2 FAILED due to the following reason:
    Difference in attribute 'Timestamp' [Thu Mar 01 16:49:43 EST 2007][Thu Mar 01 16:49:44 EST 2007]
    Comparison of cache items on the paths:
         [/usr/sap/DJI/JC03/j2ee/cluster/server0/temp/CBS/33/.CACHE/1195/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdview]
         [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdview]
    on verification level 2 FAILED due to the following reason:
    Difference in attribute 'Timestamp' [Thu Mar 01 16:49:43 EST 2007][Thu Mar 01 16:49:44 EST 2007]
    Comparison of cache items on the paths:
         [/usr/sap/DJI/JC03/j2ee/cluster/server0/temp/CBS/33/.CACHE/1195/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdview.xlf]
         [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdview.xlf]
    on verification level 2 FAILED due to the following reason:
    Difference in attribute 'Timestamp' [Thu Mar 01 16:49:43 EST 2007][Thu Mar 01 16:49:44 EST 2007]
    Cache verification finished at 2007-04-17 22:13:54.824 GMT and took 6 s 813 ms
         Synchronize sources... finished at 2007-04-17 22:14:02.175 GMT and took 14 s 292 ms
         Synchronize used libraries...
              public part "default" of component "sap.com/tc/col/api" ... OK
                   [PP "default" of DC 226 variant "default"][SC 1196][last successful build: 162348]
              public part "default" of component "sap.com/tc/cmi" ... OK
                   [PP "default" of DC 217 variant "default"][SC 1196][last successful build: 164158]
              public part "default" of component "sap.com/tc/ddic/ddicruntime" ... OK
                   [PP "default" of DC 218 variant "default"][SC 1196][last successful build: 164158]
              public part "default" of component "sap.com/tc/wd/webdynpro" ... OK
                   [PP "default" of DC 196 variant "default"][SC 1192][last successful build: 162348]
              public part "default" of component "sap.com/tc/logging" ... OK
                   [PP "default" of DC 184 variant "default"][SC 1192][last successful build: 162348]
              public part "default" of component "sap.com/com.sap.aii.proxy.framework" ... OK
                   [PP "default" of DC 221 variant "default"][SC 1196][last successful build: 164158]
              public part "default" of component "sap.com/com.sap.aii.util.misc" ... OK
                   [PP "default" of DC 222 variant "default"][SC 1196][last successful build: 162348]
              public part "default" of component "sap.com/com.sap.mw.jco" ... OK
                   [PP "default" of DC 126 variant "default"][SC 1192][last successful build: 162348]
              public part "FloorplanManager" of component "sap.com/pcui_gp/xssfpm" ... OK
                   [PP "FloorplanManager" of DC 223 variant "default"][SC 1193][last successful build: 162556]
              public part "FloorplanManager" of component "sap.com/pcui_gp/xssfpm" ... OK
                   [PP "FloorplanManager" of DC 223 variant "default"][SC 1193][last successful build: 162556]
              public part "FloorplanManager" of component "sap.com/pcui_gp/xssfpm" ... OK
                   [PP "FloorplanManager" of DC 223 variant "default"][SC 1193][last successful build: 162556]
              public part "FloorplanManager" of component "sap.com/pcui_gp/xssfpm" ... OK
                   [PP "FloorplanManager" of DC 223 variant "default"][SC 1193][last successful build: 162556]
              public part "FPMUtils" of component "sap.com/pcui_gp/xssutils" ... OK
                   [PP "FPMUtils" of DC 224 variant "default"][SC 1193][last successful build: 162556]
              public part "FPMUtils" of component "sap.com/pcui_gp/xssutils" ... OK
                   [PP "FPMUtils" of DC 224 variant "default"][SC 1193][last successful build: 162556]
              public part "FPMUtils" of component "sap.com/pcui_gp/xssutils" ... OK
                   [PP "FPMUtils" of DC 224 variant "default"][SC 1193][last successful build: 162556]
              public part "FPMUtils" of component "sap.com/pcui_gp/xssutils" ... OK
                   [PP "FPMUtils" of DC 224 variant "default"][SC 1193][last successful build: 162556]
              public part "default" of component "sap.com/tc/ddic/metamodel/content" ... OK
                   [PP "default" of DC 219 variant "default"][SC 1196][last successful build: 162348]
              public part "default" of component "sap.com/tc/wdp/metamodel/content" ... OK
                   [PP "default" of DC 220 variant "default"][SC 1196][last successful build: 162348]
              public part "default" of component "sap.com/com.sap.exception" ... OK
                   [PP "default" of DC 123 variant "default"][SC 1192][last successful build: 162348]
              public part "default" of component "sap.com/com.sap.exception" ... OK
                   [PP "default" of DC 123 variant "default"][SC 1192][last successful build: 162348]
              public part "FcTmDataExchange" of component "sap.com/pcui_gp/tecl" ... OK
                   [PP "FcTmDataExchange" of DC 230 variant "default"][SC 1193][last successful build: 162556]
              public part "FcTmDataExchange" of component "sap.com/pcui_gp/tecl" ... OK
                   [PP "FcTmDataExchange" of DC 230 variant "default"][SC 1193][last successful build: 162556]
              public part "FcTmDataExchange" of component "sap.com/pcui_gp/tecl" ... OK
                   [PP "FcTmDataExchange" of DC 230 variant "default"][SC 1193][last successful build: 162556]
         Synchronize used libraries... finished at 2007-04-17 22:14:06.635 GMT and took 4 s 459 ms
    The source cache is in INCONSISTENT state for at least one of the request DCs. The build might produce incorrect results.
    Prepare build environment in the file system... finished at 2007-04-17 22:14:06.635 GMT and took 18 s 783 ms
    ===== Pre-Processing =====  finished at 2007-04-17 22:14:06.636 GMT and took 20 s 117 ms
    Waiting 33 ms
    ===== Processing =====
    BUILD DCs
         "sap.com/ess/lea" in variant "default"
              .. FAILURE: The build failed due to compilation errors. See build log for details. [result code: 202]
    ===== Processing =====  finished at 2007-04-17 22:16:01.800 GMT and took 1 m 55 s 131 ms
    ===== Post-Processing =====
    Waiting 12 ms
    Check whether build was successful for all required variants...
         "sap.com/ess/lea" in variant "default"   FAILED
    ===== Post-Processing =====  finished at 2007-04-17 22:16:01.815 GMT and took 3 ms
    Change request state from PROCESSING to FAILED
    ERROR! The following problem(s) occurred  during request processing:
    ERROR! The following error occurred during request processing:Activation FAILED due to build problems. See build logs for details.
    REQUEST PROCESSING finished at 2007-04-17 22:16:01.824 GMT and took 2 m 15 s 324 ms
    sam
    Message was edited by:
            sameer chilama
    Message was edited by:
            sameer chilama

  • Creating objects using reflection

    Hi,
    I need to construct a new instance using reflection and passing parameters. If the parameters are of primitive type ex. int, how can I pass them in the Class[] type of object

    Integer.TYPE, etc. are Class objects that represent the types of the primitives.

Maybe you are looking for

  • Wireless keyboard function keys don't work even though updated

    Hi, like i read in different threads, many others had this problem too. The function keys of my bluetooth keyboard (aluminium 2009) don't work even though i did firmware update for mighty mouse AND the keyboard firmware update. I also unset the optio

  • Unable to view this webcam in Safari

    Hi , Does anyone know why I am unable to view this webcam in Safari? http://www.cam1.carvoeiro.com/ It appears fine in Firefox & IE but I only really want one browser on my computer. Many thanks for any help on this on, Dave

  • AP PROCESS IN SAP AND ORGNIZATIONAL STRUCTURE FOR AP

    HI I FACED ONE INTERVIEW HE ASKED WHAT IS THE PROCESS FOR ACCOUNTS PAYABLE AND ORGANIZATION STRUCTURE AND WHAT IS THE INTEGRATION BETWEEN AP-MM

  • MIB in Solaris 8

    Hello, Our servers are currently monitored by a variety of services (HPOV, WUG, Netcool). There is no environmental monitoring currently performed. Environmental would include failed power supplies, hot of non-functioning fans, excessive chassis temp

  • Condition type value in Pricing

    Hi i've maintained my condition type selling price  in my pricing procedure and i've given the value in my conditon record for the same but it's not getting determined automatically in my sale order level but it takes the value manully in the sale or