Not able to work with 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
Message was edited by:
chabhi

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 on this issue,,,,

Similar Messages

  • Not able to work with customized Java roles which were edited in ABAP stack

    Hello All,
    I am trying to copy standard roles into customized roles (i.e. Z roles) using PFCG in XI system. All ABAP based roles are working fine, but all JAVA based roles are not working. I generated profiles as well. And I check all the authorization objects in both standard and customized roles. Everything look same but customized roles are not working.
    And when I check the logs on JAVA stack I found the error which says " User XXXXXXXXXX IP address HTTP request processing failed. HTTP error [403] will be returned. The error is [You are not authorized to view the requested resource.No details available]."
    I thought there might be any Jco RFC connections missing between the stacks and I tried to check in Visual Admin, but I was not able to find much info regarding these roles.
    Am I missing anything or is there any other way for these roles to make customized roles.
    And can any one tell me how to run a trace for JAVA stack activitites as we do in ABAP using ST01. Any help will be rewarded. Thanks in advance.
    Regards,
    Farooq.

    Java roles work with influence of permissions in Application Server which we call actions in UME. As you are aware in PI user master record will be in ABAP stack. So the roles in ABAP stack will be having only RFC connections to JAVA stack for the specific JAVA based role. So you need to edit the permission on Java App Server. For that you need to log on to server through visual admin and then go to services and you will find the standard groups assigned to actions. But I don’t remember that under which service you will find them
    Under that service you will find some 200 actions. And you have to add the name of the custom created JAVA roles on ABAP to all those actions where you find the standard roles. And its a very very lengthy procedure. So SAP advice to go for customized ABAP roles and Standard JAVA roles.
    Hope this answer clears your query.
    Farooq.

  • Not able to work with multiple Databases using  oracle.jdbc.driver.OracleDr

    Hi all,
    I am using the following Oracle Driver in Weblogic 6.1 sp 4
    oracle.jdbc.driver.OracleDriver / jdbc:oracle:thin:
    Driver. I am not able to select rows from two different table, which resides in two different Databases.
    The Exception is :
    SQL Exception Connection has already been created in this tx context for pool named CDPool. Illegal attempt to create connection
    nother pool: MultiTransactionTest
    Start server side stack trace:
    java.sql.SQLException: Connection has already been created in this tx context for pool named CDPool. Illegal attempt to create c
    on from another pool: MultiTransactionTest
    at weblogic.jdbc.jts.Driver.getExistingConnection(Driver.java:288)
    at weblogic.jdbc.jts.Driver.connect(Driver.java:123)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:214)
    at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    Can any one help me to fix this issue?
    -Thanks & Regards,
    Shamil.S

    Shamil S wrote:
    Hi all,
    I am using the following Oracle Driver in Weblogic 6.1 sp 4
    oracle.jdbc.driver.OracleDriver / jdbc:oracle:thin:
    Driver. I am not able to select rows from two different table, which resides in two different Databases.
    The Exception is :
    SQL Exception Connection has already been created in this tx context for pool named CDPool. Illegal attempt to create connection
    nother pool: MultiTransactionTestHi. You can't domultiple DBMSes in one transaction unless you use an XA driver and
    an XA transaction. Your workarounds are:
    1 - Use an XA driver, datasource, and tx
    2 - If you're just reading, you can use non-transactional datasources. Do make sure you
    always close your connections...
    Joe
    >
    Start server side stack trace:
    java.sql.SQLException: Connection has already been created in this tx context for pool named CDPool. Illegal attempt to create c
    on from another pool: MultiTransactionTest
    at weblogic.jdbc.jts.Driver.getExistingConnection(Driver.java:288)
    at weblogic.jdbc.jts.Driver.connect(Driver.java:123)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:214)
    at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    End server side stack trace
    Can any one help me to fix this issue?
    -Thanks & Regards,
    Shamil.S

  • On my Iphone, i'm not able to purchase with itunes from the game clash of clans! I did it the first time, it worked, but now it wont work and says : contact support.

    i'm not able to purchase with itunes from the game clash of clans! I did it the first time, it worked, but now it wont work and says : contact support.

    What they mean is iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html

  • I double-click on event  to see all the photos in that event displayed, but all I get is 1 large photo on the edit page.  To see the photos in that event, I have to scroll.  Need to be able to work with all the photos in that event, not one at a time.

    I double-click on event  to see all the photos in that event displayed, but all I get is 1 large photo on the edit page.  To see the photos in that event, I have to scroll.  Need to be able to work with all the photos in that event, not one at a time.

    Maybe you need to adjust the zoom slider in the lower left corner of the window?
    Regards
    Léonie

  • Struts- not able to work on

    Dear sir,
    Sub: not able to work on "select option"
    This is Naveen.s working on struts ( new to struts )where i have to sumbit to my university .
    I have done a project where i have to maintain the list projects , programers, urgency of project etc., where i can edit and delete ( up to this i completed ) .
    Now , the query is i have to place the "select options" for the fields. and in the same page the list of data should be present so that i can select any one of the options fields and i should view the selected data only.
    I did not created any DynaAction Forms for this project with out using them can i do it
    I did using" TaskForms, TaskActions,Task .jsp".
    I am attaching my code .
    Please reply after receiving
    Advance Thanks for the cooperation and my carrier in IT field
    xml:-------------
    <form-beans>
    <form-bean name="loginForm"
    type="com.Iris.LoginForm" />
    <form-bean name="taskForm"
    type="com.Iris.TaskForm" />
    </form-beans>
    <global-forwards>
    <forward name="login" path="/login.jsp"/>
    </global-forwards>
    <action-mappings>
    <action path="/Login"
    type="com.Iris.LoginAction"
    validate="true"
    input="/login.jsp"
    name="loginForm"
    scope="request" >
    <forward name="success" path="/TaskList.do"/>
    </action>
    <action path="/TaskList"
    type="com.Iris.TaskListAction"
    scope="request" >
    <set-property property="loginRequired" value="true"/>
    <forward name="success" path="/tasklist.jsp"/>
    </action>
    listAction.java:--------------------------
    import javax.sql.DataSource;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.HashMap;
    import java.util.ArrayList;
    import java.util.*;
    import java.lang.*;
    public class TaskListAction extends Action {
    protected ArrayList getProj_tasks() {
    Task task = null;
         Task task1 = null;
    ArrayList proj_tasks = new ArrayList();
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
         ResultSet rs1 = null;
    java.util.Hashtable grouphash=new java.util.Hashtable();
    java.util.Hashtable statushash=new java.util.Hashtable();
    java.util.Hashtable taskhash=new java.util.Hashtable();
    java.util.Hashtable priorityhash=new java.util.Hashtable();
    java.util.Hashtable assignhash=new java.util.Hashtable();
    ServletContext context = servlet.getServletContext();
    DataSource dataSource = (DataSource)
    context.getAttribute(Action.DATA_SOURCE_KEY);
    try {
    conn = dataSource.getConnection();
    stmt = conn.createStatement();
         rs1 = stmt.executeQuery("select group_id,groupname from group_level order by groupname");
         while(rs1.next()){ 
              int i =rs1.getInt(1);Integer i1 = new Integer(i);
              String names =rs1.getString(2);
              System.out.print(i1);
              System.out.println(names);
              grouphash.put(i1,rs1.getString(2)); }
              System.out.println("This is from hashtable.."+grouphash);
                   task1= new Task();
                   task1.setGrouphash(grouphash);
                   proj_tasks.add(task1);
         rs1 = stmt.executeQuery("select status_id,statusname from Status_level order by statusname");
         while(rs1.next()){  statushash.put("statushashkey",rs1.getString(2)); }
         rs1 = stmt.executeQuery("select task_id,taskname from type_task order by taskname");
         while(rs1.next()){  taskhash.put("taskhashkey",rs1.getString(2)); }
         rs1 = stmt.executeQuery("select priority_id,priorityname from task_priorities order by priorityname");
         while(rs1.next()){  priorityhash.put("priorityhashkey",rs1.getString(2)); }
         rs1 = stmt.executeQuery("select assign_id,assignee from task_assigned order by assignee");
         while(rs1.next()){  assignhash.put("assignhashkey",rs1.getString(2)); }
    rs =
    stmt.executeQuery("select * from proj_tasks,group_level,Status_level,type_task,task_priorities,percentage,task_assigned where proj_tasks.group_id=group_level.group_id and proj_tasks.status_id=Status_level.status_id and proj_tasks.task_id=type_task.task_id and proj_tasks.priority_id=task_priorities.priority_id and proj_tasks.percen_id=percentage.percen_id and proj_tasks.assign_id=task_assigned.assign_id");
    while ( rs.next() ) {
    task= new Task();
              //task.setGrouphash(grouphash);
              //task.setNames(names);
    task.setSeq_id(new Integer(rs.getString("seq_id")));
    task.setPrjname(rs.getString("prjname"));
    task.setGroupname(rs.getString("groupname"));
    task.setGroup_id(new Integer(rs.getString("group_id")));
    task.setStatusname(rs.getString("statusname"));          
              task.setStatus_id(new Integer(rs.getString("status_id")));
    task.setTaskname(rs.getString("taskname"));          
              task.setTask_id(new Integer(rs.getString("task_id")));
    task.setPriorityname(rs.getString("priorityname"));          
              task.setPriority_id(new Integer(rs.getString("priority_id")));
    task.setEstimated_amount(new Integer(rs.getString("estimated_amount")));
    task.setPercentage_support(rs.getString("percentage_support"));          
              task.setPercen_id(new Integer(rs.getString("percen_id")));
              task.setDue_date(rs.getString("due_date"));
    task.setAssignee(rs.getString("assignee"));          
         task.setAssign_id(new Integer(rs.getString("assign_id")));
    proj_tasks.add(task);
    System.err.println("prjname : " + task.getPrjname()
    + " taskname : " + rs.getString("taskname")); } }
    catch (SQLException e) {      System.err.println(e.getMessage());    }
    finally {      if (rs != null) {        try {          rs.close();        }
    catch (SQLException sqle) {          System.err.println(sqle.getMessage());       }
    rs = null; } if (stmt != null) {        try {          stmt.close();        }
    catch (SQLException sqle) {     System.err.println(sqle.getMessage());        }
    stmt = null; } if (conn != null) {        try {          conn.close();        }
    catch (SQLException sqle) {    System.err.println(sqle.getMessage());        }
    conn = null; } }
    return proj_tasks; }
         public ActionForward perform(ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws IOException, ServletException {
              // Default target to success
    String target = new String("success");
    TaskActionMapping taskMapping =
    (TaskActionMapping)mapping;
    // Does this action require the user to login
    if (taskMapping.isLoginRequired() ) {
    HttpSession session = request.getSession();
    if ( session.getAttribute("USER") == null ) {
    // The user is not logged in
    target = new String("login");
    ActionErrors errors = new ActionErrors();
    errors.add(ActionErrors.GLOBAL_ERROR,
    new ActionError("errors.login.required"));
    // Report any errors we have discovered back to
    // the original form
    if (!errors.empty()) {          saveErrors(request, errors);        } } }
    ArrayList proj_tasks = null;
    proj_tasks = getProj_tasks();
    // Set the target to failure
    if ( proj_tasks == null ) {      target = new String("login");    }
    else {      request.setAttribute("proj_tasks", proj_tasks);    }
         // Forward to the appropriate View
         return (mapping.findForward(target));     }}
    .jsp:-------------------------------------------
    <table width="100%">
    <tr> <td width="15%"class="titreSection"><B>Incomplete Tasks�</B></td>
    <td width="85%" align="right">
    <font size="-1" face="arial"> Add New Task
    </font> </td> </tr>
    <tr> <td colspan="15"><hr></td> </tr> </table>
    <table> <tr> <td align="right" width="5%"></td>
    <td align="right" width="20%">i have to get hear-----------     </td>
    <td align="left" width="10%"> ---i have to get hear------------- </td>
    <td align="left" width="10%">---i have to get hear------------- </td>
    <td align="center" width="10%">---i have to get hear----------- </td>
    <td align="right" width="15%">�---i have to get hear------------- </td>
    <td align="right" width="20%">� ---i have to get hear------------- </td>
    <td width="10%">� <input type="submit" value="Filter"> </td>
    </tr> </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr align="left">
    <th><bean:message key="app.seq_id" /></th>
    <th><bean:message key="app.prjname" /></th>
              <th><bean:message key="app.groupname" /></th>
    <th><bean:message key="app.statusname" /></th>
    <th><bean:message key="app.taskname" /></th>
    <th><bean:message key="app.priorityname" /></th>
    <th><bean:message key="app.estimated_amount" /></th>
    <th><bean:message key="app.percentage_support" /></th>
    <th><bean:message key="app.due_date" /></th>
    <th><bean:message key="app.assignee" /></th>
    </tr> <!-- iterate over the results of the query -->
    <logic:iterate id="task" name="proj_tasks">
    <tr align="left">
    <td> <bean:write name="task" property="seq_id" />     </td>
    <td> <bean:write name="task" property="prjname" /> </td>
    <td> <bean:write name="task" property="groupname" /> </td>
    <td> <bean:write name="task" property="statusname" />     </td>
    <td> <bean:write name="task" property="taskname" />     </td>
    <td> <bean:write name="task" property="priorityname" />     </td>
    <td> <bean:write name="task" property="estimated_amount" /> </td>
    <td> <bean:write name="task" property="percentage_support" />     </td>
    <td> <bean:write name="task" property="due_date" />     </td>
    <td> <bean:write name="task" property="assignee" />     </td>
    <td> ">Edit</a>
    <a href="Delete.do?prjname=<bean:write name="task"property="prjname" />">Delete</a>
    </td></tr> </logic:iterate>
    <tr> <td colspan="14">     <hr>     </td> </tr> </table>
    </body></html>
    and java bean for above tags

    upload your fla onto some server and post a link.  maybe someone else can open it and resave it for you.

  • "This accessory is not made to work with iPhone"

    I have a first generation iphone. It recently started showing a message that reads:
    This accessory is not made to work with iPhone
    Would you like to turn on Airplane Mode to reduce audio interference?
    You will not be able to make call during this mode
    YES NO
    There is no accessory in the phone. Any thoughts on how to stop this behavior?
    I tried reloading the OS and it didn't help.

    I was having the same problem and it was draining my battery! After reading a couple of threads I was resigned to take my 1st gen iphone to the genius bar to see if they could do something. Before going to the bar I took off my pics, videos, movies, podcasts, and some applications in preparation for my visit. That night the problem stopped. This had been happening for about 3-4 weeks so I could replicate at will. After removing things from the phone when I tried to replicate the problem it would not happen. So I then started to re-sync things one at a time. After re-syncing everything but the applications I still could not replicate the problem. My feeling is that one of the applications, or combinations of, was causing the issue. I have not re-synced all the applications at this time because I am happy to have my phone back. Hope this helps.

  • Datareader is not able to connect with database-Urgent

    Hi All,
    All of a sudden the Datareader component in my ML experiment is not able to connect with database with the following error:
    [ModuleOutput] DllModuleHost Error: 1 : Program::Main encountered fatal exception: Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException: Error 0000: Internal error ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: The value's length for key 'password' exceeds it's limit of '128'.
    Module finished after a runtime of 00:00:00.2031339 with exit code -2
    Module failed due to negative exit code of -2
    It complains about the password being long-but the same credentials I have been using for the last 2 months and still able to use it to run sql queries on that same database using the management portal.
    It appears that Azure encrypts the password and that encrypted password is too long...just my guess after looking that the output.Inside Ml it just says as internal error
    Would appreciate if someone can point to the issue at the earliest...(There is a demo early next week)
    Subscription:Enterprise,
    LOCATION: East Asia
    Regards,
    Biswajit

    Hi,
    Please check this url:
    https://studio.azureml.net/Home/ViewWorkspace/bc85d4f81d2246c4b1430eb395229a3a?&hashSeg=#Workspaces/Experiments/Experiment/bc85d4f81d2246c4b1430eb395229a3a.f-id.11776ae4400f4c1aa9f58308c30810fa/ViewExperiment
    which is an experiment which I created doing save as of the experiment in which the data reader works.
    I stripped everything except the data reader and setup the rest of the components...I finally have to write the results back ,so also pulled a Writer component.
    Now,the data reader works fine..but the Writer fails:
    Error 0071: Incorrect username "acnadmin" or password is passed
    Strangely,its the same credentials set in the DataReader.
    Looks like all the DataInput/Output components created recently only have the problem.
    Once again,while the datareader in this case passes the password in plain text,the writer encrypts,hence fails.

  • I am not able to communicate with my instruments

    Hello,
    I am a graduate student in India. I
    am using NI PCI-GPIB card, which we bought nearly one year back. I am using
    LabVIEW 6i. For last two days I am not able to communicate with my
    instruments (Keithley DMM 196, Keithley current source 220, Lakshore
    temperature controller 93C).
    1. I started NI488.2 troubleshooting wizard. It says NI488.2 software
    presence verified, GPIB hardware presence verified,GPIB interfaces
    sequentially varified. This means Card is alright?
    2. I started MAX measurement and automation explorer. It lists GPIB0
    (PCI-GPIB) under 'devices and interfaces' folder. After selecting this, If
    I click at 'scan for instruments', 'Instruments not found' message
    appears.
    3. You may say that instru
    ments had problem. But the same instruments are
    working fine with another system with other card.
    4. I agin reinstalled PCI GPIB 488.2 driver from the CD. Now It is listing
    three instuments out of four. But the GPIB address for these instruments
    are
    not same as actual address. It also says instrument didn't reply for *IDN?
    query.
    5. Everything was working alright, this problem arose few days back
    suddenly.
    please help me

    Dear sir,
    Really something surprising. My instument is 'LakeShore DRC-93C'
    temperature controller. Probably bought around 7-8 years back.
    Here is the actual GPIB add & address read by MAX and correponding
    three NI-SPY log.
    actual GPIB add*****address read by MAX*****Max Capture(attached files)
    25***** 9*****capture_1
    21***** 5*****no file attached
    20***** 4*****capture_2
    17***** 1*****no file attached
    10***** instrument not found****capture_3
    7*****instrument not found*****no file attached
    for first four cases MAX showed 'instrument did not reply to *IDN? query?
    Same thing happened when I connected an Keithely Current Source.
    (only one instrument is connected,)
    actual GPIB add*****address read by MAX
    8*****instrument not found
    17***** 1
    25***** 9
    This means MAX is reading GPIB number 16 less than actual Number? Then I tried
    to write command at both GPIB address(actual and read by MAX) but both didn't work?
    What should I do next?
    with best regards
    Ram Shanker
    Attachments:
    Capture_1.spy ‏23 KB
    Capture_2.spy ‏23 KB
    Capture_3.spy ‏13 KB

  • After an recent OS7 update my iPad2 requested a restore which I did, at the end my iPad jumped into "communicating with iTune" but it never communicates. I restored 3 time alreaady and I am not able to communicate with iTune to be able to use my iPad

    After an recent OS7 update my iPad2 requested a restore which I did, at the end my iPad jumped into "communicating with iTune" but it never communicates. I restored 3 time alreaady and I am not able to communicate with iTune to be able to use my iPad which is my working tool.
    What should I do?

    Communicate with iTunes? What does this mean? Tell us what you are seeing on your screen and what you then try to do?

  • Is Photoshop CC able to work with Bridge CS6 or other CS6 applications ?

    Is Photoshop CC or any other CC application able to work with CS6 applications such as Bridge CS6?

    Asking in the specific forums will give you answers from users of those programs
    Not that Mylenium doesn't know, but this forum is not about using specific programs
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Working with Classes and Arrays

    hello to all,
    public class Store
    //private data
    private Person list[];
    private int count;
    private int maxSize;
    //constructor starts
    public Store(int max)
    count = Person.count(); //sets count to 0     
    maxSize = max;//maxSize is equals to max
    Person list[] = new Person[maxSize];
    }//end of store
    //constructor ends
    //accessor starts   
    public int getCount()
    for(int i=0; i<list.length; i++)
    int result = list;
    return result;
    }//returns the number of elements currently in store
    the code above is working with classes and some arrays
    what am trying to do is to display what the array holds
    and then i meet an error saying that
    INCOPATIBLE TYPES - FOUND PERSON BUT EXPECTED INT
    Please note that am new to this!
    Thank you in advanced!
    <img src="file:///C:/Documents%20and%20Settings/fh84/Desktop/untitled.JPG" alt="" />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    public class Store
        //private data
        private Person list[];
        private int count;
        private int maxSize;
    //constructor starts
        public Store(int max)
             count = Person.count(); //sets count to 0     
             maxSize = max;//maxSize is equals to max
            // Person list[] = new Person[maxSize];
             Person list[] = new Person[maxSize]; //set tne
        }//end of store
    //constructor ends
    //accessor starts  
        public int getCount()
            for(int i=0; i<list.length; i++)
                int  result = list;
    return result;
    am sending the code again                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Iphone 3g not able to Sync with Itunes

    Hello,
    I have iphone 3g with OS 2.2.1 and itunes 8.1
    I m not able to sync with i tunes.
    Whenever i connect phone, Itunes get hung .
    Sometimes it displays foll message:
    Itunes was unbale to connect iphone because it recieved an invalid response.
    If i restart and connect it gives
    Unable to Load Dataclas information for the iphone.Try reconnecting.
    I did every thing
    De-install,Re-install each and every thing based on suggestions at various places,still no use.
    Even tried Syncing with Other OS XP , same problem-> Itunes gets hanged.
    Im absolutely clueless about whats happened.
    Somehow i was able to update the OS to 2.2.1 .
    Dont know where the problem is....
    Can any problem with Hardware lead to Such error..If yes..What are the probable hardware reasone...
    Software wise i dont think anything is left unchecked,still any suggestions, help welcome..
    Im really in need to sort this out as cant sync anything..the phone is blank wiht complete HDD free....No use.....
    Please Please Please Help..!!!!!!!!!

    As I read you updated your iPhone to 2.2.1. That means that maybe this cause the problem.
    Sometimes when I connect my iPhone to iTunes I saw the message what says that "iTunes was unable to connect to the iPhone... " but if I reconnect my iPhone then iTunes recognize my phone and everything is OK.
    If the reconnecting does not help you then I advise that reset your iPhone with 'Erase All Data and Settings'. Settings > General > Reset > Erase All Data and Settings.
    If you reset your iPhone with 'Erase All Data and Settings' then your iPhone will delete your files and also the 2.2.1 software update and after that it will run with the original software what you bought with it.
    The reset takes approximately 2 hours. And this is delete everything from your iPhone.
    So, as it seems you can't back up your iPhone, that means everything what is on your iPhone will be deleted except if you don't have them on your computer.
    After you reseted your iPhone, try to connect with iTunes. If it won't works then try it on an another Mac or PC and if you can't sync your iPhone at all, you have to take your iPhone to your carrier for a service.
    Important note: After you reseted your iPhone, it will please that connect to iTunes to activate the phone. If you can't connect to iTunes your phone, you won't be able to use it!
    As you know, without activating you can't use the iPhone.
    If you can do the activation then you probably will be able to sync it.
    If you can't be without mobile phone and just the iPhone what you've then don't do that until you maybe could miss your phone (I mean if you iPhone have to be serviced).

  • Can't load class with Class.forName()

    Hi, can somebody help me with this problem. I have clas copiled with jdk 1.3.1 (I also test it with jdk 1.4.1). If I try to load a Class instance with Class.forName("package.app.MyClass)") I have a runtime exception:
    java.lang.ClassNotFoundException: com.unisys.ebs.all.ispecs.GD130IspecModel
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:115)
         at com.unisys.util.ObjectLoader.load(ObjectLoader.java:60)
         at com.unisys.jellybeans.IspecFactory.getIspec(IspecFactory.java:74)
         at com.unisys.jellybeans.LINCEnvironment.getIspec(LINCEnvironment.java:1012)
         at com.unisys.ebs.middleware.TestLinc.initConnection(TestLinc.java:52)
         at com.unisys.ebs.middleware.TestLinc.main(TestLinc.java:106)
    but if instead of this I instantiate the class calling the constructor and writing an import sentence, it works fine. I really need to instantiate this class via Class.forName because it extends a superclass and know the class to instantiate only at runtime. I will appreciate any help. Thanks.
    Pablo Antonioletti

    I removed the import in the file header and wrote this code:
    try{           
    ispecModel = new com.unisys.ebs.all.ispecs.GD130IspecModel();
    Class ispecClass = Class.forName("com.unisys.ebs.all.ispecs.GD130IspecModel.class");
    catch(Exception e)
    e.printStackTrace();
    the new sentence work fine, if write mor code I can access methods and members. When the runtime execute the Class.forName sentence the exception is thrown. I put all in the same file and class to avoid mistakes typing class path.
    This is very rare I never seen it before and I developed java application since five years ago.

  • Automation engine is unable to playback the test because it is not able to interact with the desktop : Unsing VS2012 on Remote Desktop, Window not Minimized

    Hi
    I am running these tests using VS2012 on a remote desktop. The session is alive when I try to run it. The Window is not minimized.
    The tests run fine on my own machine. The VM has test agent and controller installed on it, but I am not using them right now to run the tests. Do you know what setting on my machine might casue this issue ?
    Stack trace:
    Test Outcome: Failed
    Test Duration: 0:00:00.6287248
    Result Message: Error calling Initialization method for test class <TestClassName> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Automation engine is unable to playback the test because it is not able to interact with the
    desktop.  This could happen if the computer running the test is locked or it’s remote session window is minimized.
    Result StackTrace: 
    at Microsoft.VisualStudio.TestTools.UITesting.UITestLogGenerator.ExceptionRecorder(Exception exception, Boolean rethrow)
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.ThrowIfScreenLockedOrRemoteSessionMinimized()
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize()
       at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestExtensionExecution.BeforeTestInitialize(Object sender, BeforeTestInitializeEventArgs e)
       at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecution.RaiseBeforeTestInitialize(BeforeTestInitializeEventArgs args)
       at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.RunInitializeMethod()

    Hello,
    Thank you for your post.
    “The VM has test agent and controller installed on it, but I am not using them right now to run the tests.”
    In this case, how do you run the Coded UI test on the VM? You start the Coded UI test from your own machine and then open the remote desktop session to make the test run on VM?
    If yes, I am afraid that you can’t do like that. You need to use the test controller and the agent in order to run the test on the remote desktop. Or you create the app and do coded UI test against it on the VM completely.
    If I have misunderstood anything, please feel free to let me know.
    Best regards,
    Amanda Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for

  • Mountain Lion Recovery DVD - How can I make one, ML was installed on my iMac and BBP

    Mountain Lion Recovery DVD - How can I make one, ML was installed on my iMac and MBP when I purchased them. When I look at the App Store, it dose not show ML as purchased (to download again) - do I have to purchase it again to make a Recovery DVD? Th

  • Helper files crashing my computer

    My MacPro will get the spinning beachball, I'll open Activity Monitor and I'll either see iCalHelperApp or iChatHelperApp not responding. Once I force quit them the computer comes back to life. Is there a way to delete these files? Do I need them?

  • Restoring from back up

    if i have a copy of an old back up file from the mobilesync file in my computer, could i delete the one that is in the file now and replace with an old one to restore from?

  • Security Monitor Events display incorrect time

    I have a time issue between a 4240 sensor (5.0) and Security Monitor (2.1). The events in the sensor are correct but 7 hours off in Security Monitor, even though the VMS server understands the correct time (knows there are events in the last hour) bu

  • DBLink in VO Query

    Hi, I have a created a dblink that connects to R12 database. When i use the DBlink in VO in oaf it doesnt seem to be working on the server.However it is working on the local machine. Below is the details of the error. <!--StartFragment-->java.sql.SQL