GetString issue

Hi,
We are experiencing some strange behaviour with the JDBC getString method on Jdeveloper 10g (I'll also post in the Jdeveloper forum).
getString is returning the hex representation of the string when it is executing in the OC4J container, but returns the correct data when it executes in the internal Jdeveloper java machine ie when we run the class without startinbg the Web App in the oc4j container.
Anyone experienced this?
Thanks,
Tom

Thanks for the reply.
I am still encountering the issue after checking the classpath both in the IDE debugger and the oc4j container via a java call: System.getProperty("java.class.path").
This returns a classpath that contains:
C:\Jdev905\j2ee\home\../../jdbc/lib/nls_charset12.jar;
What is interesting however is that the JDBC doc states:
The Thin driver obtains language and territory settings (NLS_LANGUAGE and NLS_TERRITORY) from the Java locale in the JVM user.language property.
When I probe the properties:
Properties properties = System.getProperties();
I see a user.language property (set to "en") in the IDE BUT NOT in the oc4j container.
Is this the cause of the conversion to (or lack of conversion from) hex in the OC4J container?
By the way my JDBC version is 9.0.1.4.0 using:
DatabaseMetaData meta = con.getMetaData();
System.out.println("JDBC driver version is " + meta.getDriverVersion());
.. and I'm running on Windows 2000.
Any help is appreciated!
Tom

Similar Messages

  • String allocation in ResultSet::getString() issue

    Hi all :)
    I have been learning the basics of OCCI and I am having a
    problem with Debug mode in MSVC. When I retrieve a string from
    ResultSet::getString, and the string goes out of scope, I get an
    assert about an invalid heap pointer.
    I think that somehow the ResultSet object is setting the pointer
    inside of the string object in a way which would circumvent the
    list of allocations on the debug heap. So that when the string
    destructor is called, it tries to free the internal pointer, and
    asserts.
    Everything works correctly in Release mode.
    Is there any suggested way of handling this? Or is there a debug
    version of the OCCI?
    Here is the simplistic offending code:
    while (rs->next())
    string username = rs->getString(1);
    string passwd = rs->getString(2);
    } <--- asserts here
    Any help would be great :)
    Thanks,
    Gerald Fishel

    OCCI has multiple copies of libraries that work with different compiler versions. Please make sure you are using the appropriate version of dll. You can search for this topic on OCCI forum.
    C++ Call Interface (OCCI)

  • URGENT !( jdbc query problem)

    Hi Forum
    i made an application which run on JRun server.
    In many of my jsps i used sql query like this:
    " select id, name, rollno from student where add = 'jj';"
    and retrieve the record from resultset like this:
    rs.getString("id");
    rs.getString("name");
    rs.getString("rollno");
    I got no error.
    BUT WHEN I RETRIEVE THE RECORDS LIKE THIS
    rs.getString("name");
    rs.getString("id");
    rs.getString("rollno");
    i got the error:
    java.sql.SQLException: [Oracle][ODBC]Invalid column number <1>.
    I can not understand what is the problem ?
    all the datatypes are correct.
    all coding is correct.
    and everything is correct.
    pls help me & suggest a solution.
    is there any problem of jdbc API OR of JRUN SERVER SETTINGS?
    thanks
    mail me at [email protected]
    Arvind Goel

    Here is a part of my code in which i got error:
    (all variables are defined)
    It is the working code. BUT when i change the sequence of retrieving fields as i select then problem occurs.
    pls help me, i need it urgently.
    if(st.equals("YES")){
              rs=stmt.executeQuery("select r.na_WPN, m.MK_WPN, m.tp_WPN, m.REC_NO, m.ISSUED, r.dte_del, r.ps from amm_issue r,armentry m where r.ent_srno=m.srno and r.ps='"+username+"' and m.issued='YES' ");
         else if(st.equals("NO")){
                        rs=stmt.executeQuery("select r.na_WPN, m.MK_WPN, m.tp_WPN, m.REC_NO, m.ISSUED, r.dte_del, r.ps from amm_issue r,armentry m where r.ent_srno=m.srno and r.ps='"+username+"' and m.issued='NO' ");
         else if(st.equals("BOTH")){
              rs=stmt.executeQuery("select r.na_WPN, m.MK_WPN, m.tp_WPN, m.REC_NO, m.ISSUED, r.dte_del, r.ps from amm_issue r,armentry m where r.ent_srno=m.srno and r.ps='"+username+"'");
    while(rs.next())
         String tp_wpn=rs.getString("na_WPN");
         String mk_wpn=rs.getString("MK_WPN");
         String no_wpn=rs.getString("tp_WPN");
         String rec_no=rs.getString("REC_NO");
         String issued=rs.getString("ISSUED");
         dte_del          =rs.getString("dte_del");
         ps=     rs.getString("ps");
              if(i==0){
              out.println("<tr><th>Police Station </th> <th>Type of Weapon</th><th>Make of Weapon</th><th>No of Weapon</th><th>Recipt No</th><th>Issued Status</th><th>Date of Receiving");
              }i++;
              out.println("<TR><td>"+ps+" <td>"+no_wpn+"      <td>"+mk_wpn+"</td> <td>"+tp_wpn+"</td> <td> "+rec_no+"</td><td>"+issued+"<td><center>"+dte_del+" </td>");
    thanx
    Arvind

  • Issue in RFCLookup UDF

    Hi All,
    Requesting your help in fixing an UDF issue.
    This UDF is to check for a table entry and if not found it will create an alert with some source values.
    Now the problem is, alert mails are getting created but the values are not getting passed.
    Here is the source code:
    AbstractTrace trace;
    trace = container.getTrace();
    MappingTrace trace1;
    trace1 = container.getTrace();
    Object cachedValue = null;
    String result = null;
    String sender = null;
    String receiver = null;
    //Check if source is null or blank. If so then pass blank value to target 
    if(((sourceValue1.trim()).equals("")) ||  ((sourceValue2.trim()).equals("")) || ((sourceValue3.trim()).equals("")))
      result="";
    else
                                 Map map = container.getTransformationParameters();
    //Sender System name which is the same as the Sender Business System name in Integration Directory
    sender = (String) map.get(StreamTransformationConstants.SENDER_SYSTEM);
    //Receiver System name which is the same as the Receiver Business System name in Integration Directory
    receiver = (String) map.get(StreamTransformationConstants.RECEIVER_SYSTEM);
    // Parameter for cache value. A semicolon is used as a separator between keys
    String CONTAINER_PARAMETER = subCat.trim() + UDFReader.getString("PARAMETER_DELIMETER") +sourceValue1.trim() + UDFReader.getString("PARAMETER_DELIMETER") +sourceValue2.trim() + UDFReader.getString("PARAMETER_DELIMETER") +sourceValue3.trim();
    trace1.addWarning("CONTAINER PARAMETER: " + CONTAINER_PARAMETER + "\n");
    trace.addDebugMessage(UDFReader.getString("CACHE_CONTAINER_PARAMETER_TEXT") + CONTAINER_PARAMETER);
    // Retrieve cached value
    cachedValue = container.getParameter(CONTAINER_PARAMETER);
    if(cachedValue!=null)
      // Cached value found
      result = cachedValue.toString();
      trace.addDebugMessage(UDFReader.getString("CACHE_RESULT_TEXT") + result);
    else
      // Cached value not present. Fetch value from database
      // Build key column names array to be passed to java class
      String keyColNames[] =new String[6];
      keyColNames[0]=UDFReader.getString("SAP_SYSTEM_COLUMN_NAME");
      keyColNames[1]=UDFReader.getString("LEGACY_SYSTEM_COLUMN_NAME");
      keyColNames[2]=UDFReader.getString("SUBCATEGORY_COLUMN_NAME");
      keyColNames[3]=sourceField1;
      keyColNames[4]=sourceField2;
      keyColNames[5]=sourceField3;
      trace1.addWarning("KeyColNames" + keyColNames[0] + "\n" + keyColNames[1] + "\n" + keyColNames[2] + "\n" + keyColNames[3] + "\n" + keyColNames[4] + "\n" + keyColNames[5] + "\n");
      // Build key column values array to be passed to java class
      String keyColValues[] = new String[6];
       //Check whether sender system is SAP or Legacy
                             if(sourceField1.startsWith(UDFReader.getString("SAP_SYSTEM_PREFIX")))
       //Sender system is SAP
       keyColValues[0]=sender;
       //Receiver system is Legacy
       keyColValues[1]=receiver;
                             else
       //Receiver system is SAP    
       keyColValues[0]=receiver;
       //Sender system is Legacy
       keyColValues[1]=sender;
      keyColValues[2]=subCat.trim();
      keyColValues[3]=sourceValue1.trim();
      keyColValues[4]=sourceValue2.trim();
      keyColValues[5]=sourceValue3.trim();
      // Fetch result using java class
      result=RfcLookupHandler.RFCLookup(table,keyColNames, 
    keyColValues,targetField,trace);
    trace1.addWarning("Result:" + result);
      if(!result.equals(RfcLookupHandler.VALNOTFOUND))
       // Record found in database
       container.setParameter(CONTAINER_PARAMETER,result);
      else
       // Record not found in database
                                              //Autogenerated message id generated at runtime
       String msgId = (String) map.get ( StreamTransformationConstants.MESSAGE_ID);
       //Dynamic alert message details-Trigerred through RFC SALERT_CREATE
       String element[] = new String[9];
       String tabIndex[] = new String[9];
       String elementLength[] = new String[9];
       String type[] = new String[9];
       String value[] = new String[9];
       //Container names for alert message
       element[0] = UDFReader.getString("CONTAINER_NAME_MESSAGE_ID");
       element[1] =UDFReader.getString("CONTAINER_NAME_INTERFACE_NAME");
       element[2] =UDFReader.getString("CONTAINER_NAME_OBJECT_TYPE");
            //element[2]="SAP_MAT_NO";
       element[3] =UDFReader.getString("CONTAINER_NAME_OBJECT_TYPE"); ;
       element[4] =UDFReader.getString("CONTAINER_NAME_OBJECT_TYPE");
            //element[4]="PLANT";
       element[5] = UDFReader.getString("CONTAINER_NAME_OBJECT_VALUE");
       element[6] = UDFReader.getString("CONTAINER_NAME_OBJECT_VALUE");
       element[7] =UDFReader.getString("CONTAINER_NAME_OBJECT_VALUE");
       element[8] ="TABLE";
       trace1.addWarning("Warning: \n" + element[0]  + "\n" + element[1]  + "\n" + element[2]  + "\n" + element[3]  + "\n" + element[4]  + "\n" + element[5]  + "\n" + element[6]  + "\n" + element[7]  + "\n" + element[8]);
       //Tab index of container variables in alert message
       tabIndex[0] = "000001";
       tabIndex[1] = "000002";
       tabIndex[2] = "000003";
       tabIndex[3] = "000004";  
       tabIndex[4] = "000005";  
       tabIndex[5] = "000006";  
       tabIndex[6] = "000007";  
       tabIndex[7] = "000008";
       tabIndex[8] = "000009";
       //Length of containers
       elementLength[0] = elementLength[1] = elementLength[2] =elementLength[3] = elementLength[4] = elementLength[5] = elementLength[6] =  elementLength[7]=elementLength[8]=UDFReader.getString("CONTAINER_VALUE_LENGTH");
       //Data type of containers
       type[0] = type[1] = type[2]  = type[3] = type[4]=type[5]  = type[6]  =type[7]  ="C";
       //Values supplied to containers
       value[0] =msgId;
       value[1] =interfaceName;
       value[2] =  sourceField1;
       value[3] = UDFReader.getString("MESSAGE_SEPARATOR_HYPHEN") + sourceValue1.trim();
       value[4] = UDFReader.getString("MESSAGE_SEPARATOR_COMMA")  + sourceField2;
       value[5] = UDFReader.getString("MESSAGE_SEPARATOR_HYPHEN") + sourceValue2.trim();
       value[6] = UDFReader.getString("MESSAGE_SEPARATOR_COMMA")  + sourceField3;
       value[7] = UDFReader.getString("MESSAGE_SEPARATOR_HYPHEN") + sourceValue3.trim();
       value[8] =table;
    trace1.addWarning("Table: "+table);
       // Check error handling flag
       if(errorHandlingFlag.equalsIgnoreCase("E"))
       //Throw Error and generate alert message
       trace.addInfo(UDFReader.getString("NO_RESULT_FLAG_E_TRACE"));
    trace1.addWarning("Error Flag: E");
    for (int i=0; i<9; i++){
    trace1.addWarning("Parameters["+i+"]: " +value[i]);
       result = SUPPRESS;
       RfcAlertHandler.RFCAlert(alertCat,element,tabIndex,elementLength,type,value,trace);
       throw new ValueMappingException(UDFReader.getString("NO_RESULT_FLAG_E_EXCEPTION"));
       else if(errorHandlingFlag.equalsIgnoreCase("N"))
        //Pass 'NA' value to target
        result=UDFReader.getString("NO_RESULT_FLAG_N_VALUE_PASSED");
        trace.addInfo(UDFReader.getString("NO_RESULT_FLAG_N_TRACE"));
    trace1.addWarning("Error Flag: N");
       else if(errorHandlingFlag.equalsIgnoreCase("B"))
        //Pass blank value to target
        result="";
        trace.addInfo(UDFReader.getString("NO_RESULT_FLAG_B_TRACE"));
    trace1.addWarning("Error Flag: B");
       else
        //Incorrect Error Handling Flag
        trace.addInfo(UDFReader.getString("INCORRECT_FLAG_TRACE"));
    trace1.addWarning("Error Flag: INCORRECT");
        result = SUPPRESS;
        throw new ValueMappingException(UDFReader.getString("INCORRECT_FLAG_EXCEPTION"));
    return result;
    Can someone check where could be the problem?
    Thanks,
    Glory.

    What is RfcLookupHandler? And where is RFC channel settings?

  • Problem with getString() in OCCI

    /* <br>
    My name is Chandra, <br>
    I am facing a problem in retriving many records from a table using OCCI <br>
    I am using VC6.0 in WindowXP - SP2 with Oracle 10G client <br>
    <br>
    Here is my Example <br>
    I have no issue with the program when there are 10 records in emp table <br>
    where as I am getting an error when there are 20 records. <br>
    Code is executing till the end <br>
    it also printed Finished Printing which is in main <br>
    and gave the following error <br>
    <br>
    ERROR::: <br>
    1.exe has encountered a problem and needs to close. <br>
    we are sorry for the inconvenience <br>
    Error Signature is saying that it happend with Mod Name ntdll.dll and <br>
    ModVer: 5.1.2600.2180 and Offset:00010fc2 <br>
    When I tried by modifying line <br>
    emp1.ename     = rs->getString(1); <br>
    to <br>
    emp1[i].ename     = "Chandra"; <br>
    it is working Perfectly <br>
    Please advice what is wrong with getString(1); <br>
    Is there any other function which I can use to store the value of ename into a string? <br>
    If there is please advice me how to use. <br>
    Thanks a lot for your support <br>
    Regards, <br>
    Chandra. <br>
    */ <br>
    <b>
    #include <iostream> <br>
    #include <occi.h> <br>
    #include <stdio.h> <br>
    using     namespace oracle::occi; <br>
    using     namespace std; <br>
    int          numberofrecords; <br>
    struct emp <br>
    { <br>
         string     ename; <br>
         int     age; <br>
         int     year; <br>
    }emp1[50]; <br>
    <br>
    void empselect() <br>
    { <br>
         string     user = "scott"; <br>
         string     pass = "tiger"; <br>
         string     osid = ""; <br>
         Environment* env = Environment::createEnvironment(Environment::DEFAULT); <br>
         printf("Environment is Set \n"); <br>
         int ret = 0; <br>
         int i=1; <br>
         try <br>
         { <br>
              printf("Creating the Connection\n"); <br>
              Connection *con = env->createConnection(user, pass, osid); <br>
              printf("\n"); <br>
              cout << "Connection Established - Connected as " << user << "/" << osid << "." << endl; <br>
              cout << "Creating Statement" << endl; <br>
              Statement stmt     = con->createStatement("select from emp"); <br>
              cout << "Executing Query" << endl; <br>
              ResultSet *rs     = stmt->executeQuery(); <br>
              while (rs->next()) <br>
              { <br>
                   emp1[i].ename     = rs->getString(1); <br>
                   emp1[i].age     = rs->getNumber(2); <br>
                   emp1[i].year     = rs->getNumber(3); <br>
                   i++; <br>
              } <br>
              numberofrecords = i; <br>
              printf("Out of while loop \n"); <br>
              stmt->closeResultSet(rs); <br>
              cout << "Closing connection." << endl; <br>
              env->terminateConnection(con); <br>
         } <br>
         catch (SQLException ea) <br>
         { <br>
              cout <<"Inside Exception - OBULA\n"; <br>
              cerr << "Can’t connect: " << ea.what(); <br>
              ret = 1; <br>
         } <br>
         cout << "Before Termination" << endl; <br>
         Environment::terminateEnvironment(env); <br>
         cout <<"Terminated \n"; <br>
    } <br>
    <br>
    void main() <br>
    { <br>
         int j; <br>
         cout << "Calling justlasd \n"; <br>
         empselect(); <br>
         cout<<"Priniting Results\n"; <br>
         for(j=0;j<numberofrecords;j++) <br>
              cout << "emp - "<< emp1[j].ename << "\tage - "<< emp1[j].age << "\t - " << emp1[j].year << endl; <br>
         cout <<"Finished printing"; <br>
    }</b>

    Hey guys try dis code........i too had the same problem soo i hav solved tht in dis way.....
    #ifndef DllExport
    #define DllExport     __declspec( dllexport )
    #endif
    #include <iostream.h>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    typedef struct DllExport MultisiteTableRecord
    unsigned int ReqID; //will point to table 1
    } MultisiteTableRecord;
    typedef OCCI_STD_NAMESPACE::vector<string> cols;
    typedef struct DllExport RowType : public MultisiteTableRecord
         int id;
    string name;
    } RowList;
    enum
    ID = 1,
    NAME,
    class demo{
    public:
    Environment* env ;     
         Connection* conn;
         Statement* stmt;
         ResultSet *rs;
         list<RowList> row1;
    int main( )
         demo *d = new demo;
         try{          
              d->env = Environment::createEnvironment(Environment::OBJECT);          
              d->conn = d->env->createConnection( "infodba", "infodba","tceng" );          
              cout << "Environment and Connection created" << endl;     
              string sqlQuery = "SELECT id,name FROM demo ";          
              d->stmt = d->conn->createStatement(sqlQuery);
              d->rs = d->stmt->executeQuery ();
              int row =1 ;
              ResultSet::Status status;
              while((status = d->rs->next()) == (ResultSet::DATA_AVAILABLE))
                   RowList r;
                   r.id = d->rs->getInt(ID);
                   r.name = d->rs->getString(2);
                   d->row1.push_back(r);
              list<RowList>::iterator i;
              for (i = d->row1.begin(); i != d->row1.end(); i++){
                        cout<<i->name.c_str()<<endl;
                        cout<<i->id<<endl;
    cout << "we" ;
              d->stmt->closeResultSet(d->rs);//to free resources
         d->conn->terminateStatement(d->stmt);
         d->env->terminateConnection(d->conn);
         Environment::terminateEnvironment(d->env);
              cout << "Closing connection." << endl;
         catch(int error){
    cout << "hi" ;
              cout << error;
              return 0;
    }

  • Issue in setting custom registry in WAS 6.1

    Hi,
    I am trying to setup agent on WAS 6.1 as per the documentation :- http://docs.sun.com/app/docs/doc/820-3675/gcann?a=view
    And i am getting an error while trying to set the Custom Registry of WebSphere Application Server 6.1.
    The error on my WAS Admin console comes when i try to click the ok button in the standalone custom registry window.
    Error on console is as :-
    'SECJ7339E: Exception raised while validating admin name'
    My server logs are as : -
    [9/15/08 18:11:08:884 IST] 00000026 SystemErr     R Caused by: java.lang.RuntimeException: Exception caught in AmWebsphereManager initializer: Failed to obtain service instance com.sun.identity.agents.websphere.AmRealmUserRegistry
    at com.sun.identity.agents.websphere.AmWebsphereManager.<clinit>(AmWebsphereManager.java:170)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    at com.sun.identity.agents.websphere.AmAgentUserRegistry.getRealmUserRegistry(AmAgentUserRegistry.java:228)
    at com.sun.identity.agents.websphere.AmAgentUserRegistry.getUsers(AmAgentUserRegistry.java:107)
    at com.ibm.ws.security.registry.UserRegistryImpl.getUsers(UserRegistryImpl.java:382)
    at com.ibm.ws.security.core.SecurityAdmin.getUsers(SecurityAdmin.java:702)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [9/15/08 18:11:08:884 IST] 00000026 SystemErr     R  at com.sun.identity.agents.websphere.AmWebsphereManager.<clinit>(AmWebsphereManager.java:170)
    [9/15/08 18:11:08:884 IST] 00000026 SystemErr     R  at java.lang.J9VMInternals.initializeImpl(Native Method)
    [9/15/08 18:11:08:900 IST] 00000026 SystemErr     R  at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    [9/15/08 18:11:08:900 IST] 00000026 SystemErr     R  ... 65 moreMy amAgent Logs are as : -
    ERROR: AmAgentLog: Unable to create AmAgentRemoteLog instance, will attempt to use local logging only.
    [AgentException Stack]
    com.sun.identity.agents.arch.AgentException: Unable to load IAmAgentRemoteLog: com.sun.identity.agents.log.AmAgentRemoteLog
    at com.sun.identity.agents.arch.ServiceFactory.getAmAgentRemoteLog(ServiceFactory.java:306)
    at com.sun.identity.agents.log.AmAgentLog.initialize(AmAgentLog.java:70)
    [AgentException Stack]
    com.sun.identity.agents.arch.AgentException: Failed to initialize AmAgentRemoteLog instance
    at com.sun.identity.agents.log.AmAgentRemoteLog.initialize(AmAgentRemoteLog.java:74)
    at com.sun.identity.agents.arch.ServiceFactory.getAmAgentRemoteLog(ServiceFactory.java:304)
    at com.sun.identity.agents.log.AmAgentLog.initialize(AmAgentLog.java:70)
    at com.sun.identity.agents.arch.ServiceFactory.getAmAgentLog(ServiceFactory.java:289)
    at com.sun.identity.agents.log.AmAgentLogManager.<init>(AmAgentLogManager.java:66)
    at com.sun.identity.agents.log.AmAgentLogManager.<clinit>(AmAgentLogManager.java:180)My amSMS logs are as : -
    09/15/2008 06:11:08:509 PM IST: Thread[WebContainer : 2,5,main]
    ERROR: SMSJAXRPCObject:getRootSuffix:Exception:
    java.rmi.RemoteException: no-server-found
    at com.sun.identity.jaxrpc.SOAPClient.getValidURL(SOAPClient.java:195)
    at com.sun.identity.jaxrpc.SOAPClient.call(SOAPClient.java:313)
    at com.sun.identity.jaxrpc.SOAPClient.send(SOAPClient.java:481)
    at com.sun.identity.jaxrpc.SOAPClient.send(SOAPClient.java:467)
    at com.sun.identity.sm.jaxrpc.SMSJAXRPCObject.getRootSuffix(SMSJAXRPCObject.java:393)
    at com.sun.identity.sm.SMSEntry.<clinit>(SMSEntry.java:272)
    09/15/2008 06:11:08:619 PM IST: Thread[WebContainer : 2,5,main]
    ERROR: ServiceManager::isRealmEnabled unable to initialize
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key loginError
    at java.util.ResourceBundle.getObject(ResourceBundle.java:342)
    at java.util.ResourceBundle.getString(ResourceBundle.java:302)
    at com.sun.identity.authentication.spi.AuthLoginException.getLocalMessage(AuthLoginException.java:280)
    at com.sun.identity.authentication.spi.AuthLoginException.getLocalMessage(AuthLoginException.java:291)
    at com.sun.identity.authentication.spi.AuthLoginException.fetchStackTrace(AuthLoginException.java:309)
    at com.sun.identity.authentication.spi.AuthLoginException.printStackTrace(AuthLoginException.java:259)My amWebSphere logs are as : -
    09/15/2008 06:11:08:728 PM IST: Thread[WebContainer : 2,5,main]
    ERROR: AmWebsphereManager initialization failed
    [AgentException Stack]
    com.sun.identity.agents.arch.AgentException: Failed to obtain service instance com.sun.identity.agents.websphere.AmRealmUserRegistry
    at com.sun.identity.agents.websphere.AmWebsphereServiceFactory.getAmRealmUserRegistry(AmWebsphereServiceFactory.java:87)
    at com.sun.identity.agents.websphere.AmWebsphereManager.<init>(AmWebsphereManager.java:63)
    at com.sun.identity.agents.websphere.AmWebsphereManager.<clinit>(AmWebsphereManager.java:165)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key loginError
    at java.util.ResourceBundle.getObject(ResourceBundle.java:342)
    at java.util.ResourceBundle.getString(ResourceBundle.java:302)
    at com.sun.identity.authentication.spi.AuthLoginException.getLocalMessage(AuthLoginException.java:280)
    at com.sun.identity.authentication.spi.AuthLoginException.getLocalMessage(AuthLoginException.java:291)
    at com.sun.identity.authentication.spi.AuthLoginException.fetchStackTrace(AuthLoginException.java:309)
    at com.sun.identity.authentication.spi.AuthLoginException.printStackTrace(AuthLoginException.java:259)
    at com.sun.identity.util.impl.DebugImpl.writeIt(DebugImpl.java:218)
    at com.sun.identity.util.impl.DebugImpl.writeIt(DebugImpl.java:206)
    at com.sun.identity.util.impl.DebugImpl.record(DebugImpl.java:199)
    at com.sun.identity.util.impl.DebugImpl.error(DebugImpl.java:192)
    at com.iplanet.am.util.Debug.error(Debug.java:536)
    at com.sun.identity.agents.arch.Module.logError(Module.java:239)Please suggest what the issue can be ?
    I have a windows XP Professional OS, AM server on WAS 6.1.0.2 (in RAD) and AM agent on WAS 6.1.0.2 (in RAD).
    thanks,
    Nimish Gupta

    After following the steps for 'Supplemental Instructions for Installing and Configuring Policy Agent 2.2–01 for IBM WebSphere Application Server' at the url, ' http://docs.sun.com/app/docs/doc/819-2796/gggvb?a=view ' , I was able to get rid of the logs errors mentioned above.
    However I am still not able to customize my registry in WAS 6.1. I get a different error this time as : -
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R javax.management.RuntimeErrorException: Error occured in RequiredModelMBean while trying to invoke operation getUsers
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1110)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1055)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.security.admintask.ValidateAdminName.afterStepsExecuted(ValidateAdminName.java:560)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.executeReal(AbstractTaskCommand.java:640)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.execute(AbstractTaskCommand.java:595)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.security.UserRegistryDetailActionGen.validateAdminId(UserRegistryDetailActionGen.java:262)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.security.UserRegistryDetailActionGen.processAdminId(UserRegistryDetailActionGen.java:240)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.security.CustomUserRegistryDetailAction.execute(CustomUserRegistryDetailAction.java:177)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:371)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:229)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
    [9/16/08 17:49:35:766 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R Caused by: java.lang.NoClassDefFoundError: com.iplanet.ums.Guid
         at java.lang.J9VMInternals.verifyImpl(Native Method)
         at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
         at com.iplanet.am.sdk.common.DCTreeServicesHelper.<clinit>(DCTreeServicesHelper.java:66)
         at java.lang.J9VMInternals.initializeImpl(Native Method)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:144)
         at com.iplanet.am.sdk.remote.RemoteServicesImpl.<init>(RemoteServicesImpl.java:95)
         at com.iplanet.am.sdk.remote.CachedRemoteServicesImpl.<init>(CachedRemoteServicesImpl.java:115)
         at com.iplanet.am.sdk.remote.CachedRemoteServicesImpl.getInstance(CachedRemoteServicesImpl.java:137)
         at com.iplanet.am.sdk.remote.RemoteServicesFactory.<clinit>(RemoteServicesFactory.java:87)
         at java.lang.J9VMInternals.initializeImpl(Native Method)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
         at com.iplanet.am.sdk.remote.RemoteServicesProviderImpl.getDirectoryServicesImpl(RemoteServicesProviderImpl.java:54)
         at com.iplanet.am.sdk.AMDirectoryAccessFactory.instantiateImpls(AMDirectoryAccessFactory.java:132)
         at com.iplanet.am.sdk.AMDirectoryAccessFactory.initialize(AMDirectoryAccessFactory.java:105)
         at com.iplanet.am.sdk.AMDirectoryAccessFactory.getDirectoryServices(AMDirectoryAccessFactory.java:191)
         at com.sun.identity.idm.IdServicesFactory.initialize(IdServicesFactory.java:127)
         at com.sun.identity.idm.IdServicesFactory.getDataStoreServices(IdServicesFactory.java:179)
         at com.sun.identity.idm.AMIdentityRepository.searchIdentities(AMIdentityRepository.java:210)
         at com.sun.identity.agents.websphere.AmRealmUserRegistry.getUsers(AmRealmUserRegistry.java:174)
         at com.sun.identity.agents.websphere.AmAgentUserRegistry.getUsers(AmAgentUserRegistry.java:107)
         at com.ibm.ws.security.registry.UserRegistryImpl.getUsers(UserRegistryImpl.java:382)
         at com.ibm.ws.security.core.SecurityAdmin.getUsers(SecurityAdmin.java:702)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
         at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
         at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
         at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
         at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1055)
         at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
         at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948)
         at com.ibm.ws.security.admintask.ValidateAdminName.afterStepsExecuted(ValidateAdminName.java:560)
         at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.executeReal(AbstractTaskCommand.java:640)
         at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.execute(AbstractTaskCommand.java:595)
         at com.ibm.ws.console.security.UserRegistryDetailActionGen.validateAdminId(UserRegistryDetailActionGen.java:262)
         at com.ibm.ws.console.security.UserRegistryDetailActionGen.processAdminId(UserRegistryDetailActionGen.java:240)
         at com.ibm.ws.console.security.CustomUserRegistryDetailAction.execute(CustomUserRegistryDetailAction.java:177)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
         at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:371)
         at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:229)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
         at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.verifyImpl(Native Method)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.common.DCTreeServicesHelper.<clinit>(DCTreeServicesHelper.java:66)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initializeImpl(Native Method)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    [9/16/08 17:49:35:782 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initialize(J9VMInternals.java:144)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.RemoteServicesImpl.<init>(RemoteServicesImpl.java:95)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.CachedRemoteServicesImpl.<init>(CachedRemoteServicesImpl.java:115)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.CachedRemoteServicesImpl.getInstance(CachedRemoteServicesImpl.java:137)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.RemoteServicesFactory.<clinit>(RemoteServicesFactory.java:87)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initializeImpl(Native Method)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.remote.RemoteServicesProviderImpl.getDirectoryServicesImpl(RemoteServicesProviderImpl.java:54)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.AMDirectoryAccessFactory.instantiateImpls(AMDirectoryAccessFactory.java:132)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.AMDirectoryAccessFactory.initialize(AMDirectoryAccessFactory.java:105)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.iplanet.am.sdk.AMDirectoryAccessFactory.getDirectoryServices(AMDirectoryAccessFactory.java:191)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.idm.IdServicesFactory.initialize(IdServicesFactory.java:127)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.idm.IdServicesFactory.getDataStoreServices(IdServicesFactory.java:179)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.idm.AMIdentityRepository.searchIdentities(AMIdentityRepository.java:210)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.agents.websphere.AmRealmUserRegistry.getUsers(AmRealmUserRegistry.java:174)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.sun.identity.agents.websphere.AmAgentUserRegistry.getUsers(AmAgentUserRegistry.java:107)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.ibm.ws.security.registry.UserRegistryImpl.getUsers(UserRegistryImpl.java:382)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at com.ibm.ws.security.core.SecurityAdmin.getUsers(SecurityAdmin.java:702)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at java.lang.reflect.Method.invoke(Method.java:615)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at java.lang.reflect.Method.invoke(Method.java:615)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
    [9/16/08 17:49:35:798 IST] 0000002b SystemErr     R      ... 50 more

  • Workspace Login issue with IR

    I installed IR services and workspace connected with oracle database.
    EPM system version is 11.1.1.3
    When I created a new user provisioned with IR administrator role, I could only login once.
    If I log off and relogin, workspace prompt that "adf.jsp" error "CDS.mode not found".
    Anyone who can help me? Thanks.
    I found that when I logined with a new user, a user perference file has been created in security, when relogin next time following error prompted.
    Error Loading Adf 'http://hyperion:19000/workspace/browse/dyn?page=/modules/com/hyperion/tools/cds/repository/bpm/mode/Adf.jsp&instance=16&serverName=Workspace&bpmDesignerInstallerRelativeUri=%2Fwebstart%2Fstartup.jsp&jawsScriptInstallerRelativeUri=%2FAccessibilityIRScripts%2FAccessibilityIRScriptsSetup.exe&resizeContentInterval=2000' for module with id : cds.mode
    There was some communication error. Response is : http://hyperion:19000/workspace/browse/dyn <?xml version="1.0" encoding="UTF-8"?>
    <Application>
    <BpmModule id="cds.mode">
    <BpmContent/>
    </BpmModule>
    <Resources>
    <Script><![CDATA[
    BpmImport("com.hyperion.tools.cds.HSRoleVars");
    var rRoleVars = com.hyperion.tools.cds.HSRoleVars;
    rRoleVars.addRole(0, false);
    rRoleVars.addRole(1, false);
    rRoleVars.addRole(2, false);
    rRoleVars.addRole(3, false);
    rRoleVars.addRole(4, true);
    rRoleVars.addRole(5, true);
    rRoleVars.addRole(6, false);
    rRoleVars.addRole(7, false);
    rRoleVars.addRole(8, false);
    rRoleVars.addRole(9, false);
    rRoleVars.addRole(10, false);
    rRoleVars.addRole(11, true);
    rRoleVars.addRole(12, true);
    rRoleVars.addRole(13, true);
    rRoleVars.addRole(14, true);
    rRoleVars.addRole(15, false);
    rRoleVars.addRole(16, false);
    rRoleVars.addRole(17, false);
    rRoleVars.addRole(18, false);
    rRoleVars.addRole(19, false);
    rRoleVars.addRole(20, false);
    rRoleVars.addRole(21, true);
    rRoleVars.addRole(22, true);
    rRoleVars.addRole(23, true);
    rRoleVars.addRole(24, true);
    rRoleVars.addRole(25, true);
    rRoleVars.addRole(26, false);
    rRoleVars.addRole(27, false);
    rRoleVars.addRole(28, false);
    rRoleVars.addRole(29, true);
    rRoleVars.addRole(30, true);
    rRoleVars.addRole(31, true);
    rRoleVars.addRole(32, false);
    rRoleVars.addRole(33, true);
    rRoleVars.addRole(34, true);
    rRoleVars.addRole(35, false);
    rRoleVars.addRole(36, false);
    rRoleVars.addRole(37, false);
    BpmImport("com.hyperion.tools.cds.util.HSConstants");
    BpmImport("com.hyperion.tools.cds.bindows.HSBaseContainerHandler");
    * Handler associated with the open Application module
    com.hyperion.tools.cds.repository.bpm.mode.Handler = function()
    if (_biInPrototype)
    return;
    com.hyperion.tools.cds.bindows.HSBaseContainerHandler.call(this);
    BpmImport("com.hyperion.tools.cds.util.HSCallback");
    BpmImport("com.hyperion.tools.cds.data.HSNetwork");
    BpmImport("com.hyperion.tools.cds.data.HSNode");
    BpmImport("com.hyperion.tools.cds.data.HSNodeType");
    BpmImport("com.hyperion.tools.cds.CDSCommand");
    BpmImport("com.hyperion.tools.cds.repository.HSFileDialog");
    BpmExtend(com.hyperion.tools.cds.repository.bpm.mode.Handler, com.hyperion.tools.cds.bindows.HSBaseContainerHandler, "com.hyperion.tools.cds.repository.bpm.mode.Handler");
    c.ENUMERATEDAPPS_LIST = new Array();
    c.ENUMERATEDAPPS_MENUDATA = new Array();
    c.NAVIGATEID_MAPPINGS = {'exploreanotation':'bpm.mnit_ToolsViewerAnotationExplorer','answers':'bpm.mnit_ToolsViewerAnswers','dashboards':'bpm.mnit_ToolsViewerDashboards','delivers':'bpm.mnit_ToolsViewerDelivers','publisher':'bpm.mnit_ToolsViewerPublisher','scorecards':'bpm.mnit_ToolsViewerScorecards','metrics':'bpm.mnit_ToolsViewerMetrics','adminGeneral':'bpm.mnit_ToolsAdministerGeneral','adminAuthProperties':'bpm.mnit_ToolsAdministerAuthProperties','adminUserManagement':'bpm.mnit_ToolsAdministerUserManagement','adminPhysicalResources':'bpm.mnit_ToolsAdministerPhysicalResources','adminMimeTypes':'bpm.mnit_ToolsAdministerMimeTypes','adminNotifications':'bpm.mnit_ToolsAdministerNotifications','adminSmartcuts':'bpm.mnit_ToolsAdministerSmartcuts','adminRowLevelSecurity':'bpm.mnit_ToolsAdministerRowLevelSecurity','adminUsageTracking':'bpm.mnit_ToolsAdministerUsageTracking','adminEventTracking':'bpm.mnit_ToolsAdministerEventTracking','adminDimLibrary':'bpm.mnit_ToolsAdministerDimLibrary','adminAppLibrary':'bpm.mnit_ToolsAdministerAppLibrary','adminDataSync':'bpm.mnit_ToolsAdministerDataSync','adminAppUpgrade':'bpm.mnit_ToolsAdministerAppUpgrade','batchScheduler':'bpm.mnit_ToolsScheduleBatchScheduler','viewjob':'bpm.mnit_ToolsScheduleViewJobStatus','viewjob':'bpm.mnit_ToolsScheduleViewJobStatus','manageevents':'bpm.mnit_ToolsScheduleManageEvents','showparameters':'bpm.mnit_ToolsScheduleShowParameters','jobnotifications':'bpm.mnit_ToolsScheduleJobNotifications','jobqueue':'bpm.mnit_ToolsScheduleJobQueue','consolidate':'bpm.mnit_ToolsScheduleConsolidatedJobStatusList','schedJobConsole':'bpm.mnit_ToolsScheduleJobConsole','syncMetadata':'bpm.mnit_ToolsChangeManagementSynchronizeMetadata','datamodelUpdates':'bpm.mnit_ToolsChangeManagementDataModelUpdates','javascriptUpdates':'bpm.mnit_ToolsChangeManagementJavascriptUpdates','genericUpdates':'bpm.mnit_ToolsChangeManagementGenericUpdates','showTaskList':'bpm.mnit_ToolsChangeManagementShowTaskList','taskStatus':'bpm.mnit_ToolsChangeManagementShowTaskStatus','ioc':'bpm.mnit_ToolsChangeManagementShowImpactOfChange','adminConsolidationSystemMessages':'bpm.mnit_AdminConsolidationSystemMessages','adminConsolidationUsersOnSystem':'bpm.mnit_AdminConsolidationUsersOnSystem','adminConsolidationManageServersAndApp':'bpm.mnit_AdminConsolidationManageServersAndApp','adminClassicAppsConsolidation':'bpm.mnit_AdminClassicAppsConsolidation','adminClassicAppsPlanning':'bpm.mnit_AdminClassicAppsPlanning','adminChangeOwner':'bpm.mnit_ToolsAdministerChangeOwner'} ;
    * Initialize default values for member variables.
    p.initializeDefaults = function()
    com.hyperion.tools.cds.bindows.HSBaseContainerHandler.prototype._initializeDefaults.call(this);
    if (0)
    this._rstTabAlignment = bpm.common.StartupContainerHandler.TAB_ALIGNMENT_TOP;
    else
    this._rstTabAlignment = bpm.common.StartupContainerHandler.TAB_ALIGNMENT_BOTTOM;
    this._iResizeContentInterval =
    2000;
    var rstContextPath = gContextManager.getContext(this.getModule().getContext()).getPath();
    // Remove last backslash.
    this._rstContextPath = rstContextPath.substring(0, rstContextPath.length - 1);
    this._rCdsStringBundle = BpmStringBundle.getStringBundle("cds");
    this.newDocCount = 0;
    if (false)
    this.getModule().getConfig()['bpm.logoff'] = 'false';
    bpm.common.Utils.setUser("test");
    com.hyperion.tools.cds.rNetwork = new com.hyperion.tools.cds.data.HSNetwork();
    com.hyperion.tools.cds.rNetwork.addServer(
    "Workspace",
    gModuleManager.getStartupContextPath(),
    null,
    new com.hyperion.tools.cds.util.HSCallback(
    function(rThrowable)
    bpm.common.MessageDialog.showDetailsDialog(
    rThrowable.getMessageChain(),
    rThrowable.getDetailChain(),
    null,
    BiOptionPane.getImageFromOptionType("error"));
    null,
    null),
    new com.hyperion.tools.cds.util.HSCallback(
    function(rstMessage, rLogger)
    if (rLogger.isDebug())
    rLogger.debug(rstMessage);
    null,
    bpm.common.Logger.getLogger("com.hyperion.tools.cds.data")));
    this._rstSelectedTheme = "BpmTadpole";
    * Initialize default values for member variables.
    p.initializeActions = function()
    com.hyperion.tools.cds.bindows.HSBaseContainerHandler.prototype._initializeActions.call(this);
    var rModule = this.getModule();
    var rContent = rModule.getContent();
    var actionBar = rModule.getActionBarDef();
    actionBar.setId("cds.mode.actionBar");
    var cmds = this.getModule().getCommands();
    var cmdNewDoc = new BpmCommand();
    cmdNewDoc.setId("cds.mode.cmdNewDoc");
    cmdNewDoc.setEnabled(true);
    cmdNewDoc.setParentModule(this.getModule());
    cmds.add(cmdNewDoc);
    var cmdNewPP = new BpmCommand();
    cmdNewPP.setId("cds.mode.cmdNewPP");
    cmdNewPP.setEnabled(true);
    cmdNewPP.setParentModule(this.getModule());
    cmds.add(cmdNewPP);
    var cmdNewWP = new BpmCommand();
    cmdNewWP.setId("cds.mode.cmdNewWP");
    cmdNewWP.setEnabled(true);
    cmdNewWP.setParentModule(this.getModule());
    cmds.add(cmdNewWP);
    var cmdOpenDoc = new BpmCommand();
    cmdOpenDoc.setId("cds.mode.cmdOpenDoc");
    cmdOpenDoc.setEnabled(true);
    cmdOpenDoc.setParentModule(this.getModule());
    cmds.add(cmdOpenDoc);
    var cmdSubscriptions = new BpmCommand();
    cmdSubscriptions.setId("cds.mode.cmdSubscriptions");
    cmdSubscriptions.setEnabled(true);
    cmdSubscriptions.setParentModule(this.getModule());
    cmds.add(cmdSubscriptions);
    var cmdManagePersonalPages = new BpmCommand();
    cmdManagePersonalPages.setId("cds.mode.cmdManagePersonalPages");
    cmdManagePersonalPages.setEnabled(true);
    cmdManagePersonalPages.setParentModule(this.getModule());
    cmds.add(cmdManagePersonalPages);
    var toolBar = new BpmToolBar();
    toolBar.setId("cds.mode.tlb");
    this.getModule().setToolBarDef(toolBar);
    var rToolBarButtonHome = new BiToolBarButton();
    rToolBarButtonHome.setId("cds.mode.tlbt_Home");
    rToolBarButtonHome.setToolTipText("Home");
    rToolBarButtonHome.setEnabled(true);
    rToolBarButtonHome.setIcon(new BiImage(this._rstContextPath + "/images/com/hyperion/tools/cds/repository/bpm/TB_Home.gif"));
    toolBar.add(rToolBarButtonHome);
    var newDocButton = new BiToolBarButton();
    newDocButton.setId("cds.mode.tlbt_NewDoc");
    newDocButton.setToolTipText("New Document");
    newDocButton.setEnabled(true);
    newDocButton.setIcon(new BiImage(this._rstContextPath + "/images/com/hyperion/tools/cds/repository/bpm/TB_New.gif"));
    newDocButton.setCommand(cmdNewDoc);
    toolBar.add(newDocButton);
    var openButton = new BiToolBarButton();
    openButton.setId("cds.mode.tlbt_Open");
    openButton.setToolTipText("Open Document");
    openButton.setEnabled(true);
    openButton.setIcon(new BiImage(this._rstContextPath + "/images/com/hyperion/tools/cds/repository/bpm/TB_Open.gif"));
    openButton.setCommand(cmdOpenDoc);
    toolBar.add(openButton);
    var explorerModeButton = new BiToolBarButton();
    explorerModeButton.setId("cds.mode.tlbt_ExploreMode");
    explorerModeButton.setEnabled(true);
    explorerModeButton.setText("Explore");
    explorerModeButton.setToolTipText("Explore");
    explorerModeButton.setIcon(new BiImage(this._rstContextPath + "/images/com/hyperion/tools/cds/repository/bpm/TB_Explore.gif"));
    toolBar.add(explorerModeButton);
    var rstPath = gModuleManager.getStartupContextPath();var rItem = null;var rNavMenu = application.getComponentById(bpm.common.Constants.MENU_ID_NAV);var rMenuButton = null;var rMenu0=rNavMenu;rItem = new BpmMenuItem();rItem.setId('bpm.mnit_NavWorkspacePages');rItem.setText('Workspace Pages\nw');rMenu0.add(rItem);var rMenu1 = new BpmMenu();rMenu1.setId('bpm.mnu_NavWorkspacePages');rItem.setSubMenu(rMenu1);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_NavWorkspacePagesPersonal');rItem.setText('My Workspace Pages\nm');rMenu1.add(rItem);var rMenu2 = new BpmMenu();rMenu2.setId('bpm.mnu_NavWorkspacePagesPersonal');rItem.setSubMenu(rMenu2);var rNavWorkspacePagesPersonalSubMenu=rMenu2;rMenu2.addEventListener(bpm.common.Constants.EVENT_BEFORESHOW,this._buildWorkspacePagesSubMenu,this);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_NavWorkspacePagesCorporate');rItem.setText('Shared Workspace Pages\ns');rMenu1.add(rItem);var rMenu2 = new BpmMenu();rMenu2.setId('bpm.mnu_NavWorkspacePagesCorporate');rItem.setSubMenu(rMenu2);var rNavWorkspacePagesCorporateSubMenu=rMenu2;rMenu2.addEventListener(bpm.common.Constants.EVENT_BEFORESHOW,this._buildWorkspacePagesSubMenu,this);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsViewerExplorer');rItem.setText('Explore\ne');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ExploreMode.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu0.add(rItem);rItem = new BpmMenuSeparator();rItem.setId('bpm.mnit_Nav_Separator2');rMenu0.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdminister');rItem.setText('Administer\na');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerMode.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu0.add(rItem);var rMenu1 = new BpmMenu();rMenu1.setId('bpm.mnu_ToolsAdminister');rItem.setSubMenu(rMenu1);var administerSubMenu=rMenu1;rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerGeneral');rItem.setText('General\ng');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeGeneral.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerAuthProperties');rItem.setText('Authentication\na');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeAuthentication.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerUserManagement');rItem.setText('Shared Services Console\ns');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeUserManagement.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);var rUserManagementMenu=rItem;rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerLaunchCMC');rItem.setText('Configuration Console\nf');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeLaunchCMC.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsViewerAnotationExplorer');rItem.setText('Annotations\ni');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ExploreMode.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerPhysicalResources');rItem.setText('Physical Resources\nh');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModePhysicalResources.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerMimeTypes');rItem.setText('Mime Types\ny');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeMimeTypes.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerNotifications');rItem.setText('Notifications\nn');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeNotifications.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerRowLevelSecurity');rItem.setText('Row Level Security\nr');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeRowLevelSecurity.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerUsageTracking');rItem.setText('Usage Tracking\nu');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeUsageTracking.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerEventTracking');rItem.setText('Event Tracking\ne');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeEventTracking.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerChangeOwner');rItem.setText('Change Ownership\nw');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_AdministerModeChangeOwner.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuSeparator();rItem.setId('bpm.mnit_CalcMgrSeparator');rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdministerCalculationManager');rItem.setText(BpmStringBundle.getString('calcmgr-global','MItem_CalculationManager'));rItem.setIcon(new BiImage(rstPath + '/../calcmgr/themes/common/images/CT_AdminCalcManager.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rItem.setBefore('bpm.mnit_ToolsAdministerAppUpgrade');rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsSchedule');rItem.setText('Schedule\ns');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ScheduleMode.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu0.add(rItem);var rMenu1 = new BpmMenu();rMenu1.setId('bpm.mnu_ToolsSchedule');rItem.setSubMenu(rMenu1);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsScheduleJobQueue');rItem.setText('Job Queue\nq');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ScheduleModeJobsQueue.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsScheduleJobNotifications');rItem.setText('Job Notifications\no');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ScheduleModeJobNotifications.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsScheduleShowParameters');rItem.setText('Show Parameters\ns');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ScheduleModeShowParameters.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsScheduleViewJobStatus');rItem.setText('Jobs Running\nj');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ScheduleModeJobsRunning.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsScheduleManageEvents');rItem.setText('Manage Events\na');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ScheduleModeManageEvents.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsScheduleConsolidatedJobStatusList');rItem.setText('Consolidated Job Status\nc');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ScheduleModeConsolidatedJobStatusList.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuSeparator();rItem.setId('bpm.mnit_Nav_Separator3');rMenu0.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_IManager');rItem.setText('Impact Manager\ni');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ChangeManagementMode.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rItem.setBefore('bpm.mnit_Nav_Separator3');rMenu0.add(rItem);var rMenu1 = new BpmMenu();rMenu1.setId('bpm.mnu_IManager');rItem.setSubMenu(rMenu1);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsChangeManagementSynchronizeMetadata');rItem.setText('Synchronize Metadata\ns');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ChangeManagementModeSynchronizeMetadata.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsChangeManagementDataModelUpdates');rItem.setText('Update Data Models\nd');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ChangeManagementModeDataModelUpdate.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsChangeManagementJavascriptUpdates');rItem.setText('JavaScript Update\nj');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ChangeManagementModeJavascriptUpdates.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsChangeManagementGenericUpdates');rItem.setText('Custom Update\nc');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ChangeManagementModeGenericUpdates.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsChangeManagementShowTaskStatus');rItem.setText('Show Task Status\nt');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ChangeManagementModeJobStatus.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsChangeManagementShowTaskList');rItem.setText('Manage Task List\nm');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ChangeManagementModeShowTaskList.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsChangeManagementShowImpactOfChange');rItem.setText('Show Impact of Change\ni');rItem.setIcon(new BiImage(rstPath + '/images/com/hyperion/tools/cds/repository/bpm/CT_ChangeManagementModeImpactOfChange.gif',com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_WIDTH,com.hyperion.tools.cds.repository.bpm.mode.Handler.MENU_IMAGE_HEIGHT));rMenu1.add(rItem);rMenuButton = new BpmMenuButton();rMenuButton.setId('bpm.mnbt_File');actionBar.add(rMenuButton);var rMenu0 = new BpmMenu();rMenu0.setId('bpm.mnu_File');rMenuButton.setSubMenu(rMenu0);rMenu0.addEventListener(bpm.common.Constants.EVENT_BEFORESHOW,this.displayFileNewMenu,this);rMenu0.setBefore('bpm.mnit_FileClose');rItem = new BpmMenuItem();rItem.setId('bpm.mnit_FileNew');rItem.setText('New\nn');rMenu0.add(rItem);var rMenu1 = new BpmMenu();rMenu1.setId('bpm.mnu_New');rItem.setSubMenu(rMenu1);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_FileNewDocument');rItem.setText('Document...\nd\nCtrl+N');rItem.setCommand(cmdNewDoc);rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_FileNewPP');rItem.setText('Personal Page...\np\nCtrl+Shift+P');rItem.setCommand(cmdNewPP);rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_WorkspacePage');rItem.setText('Workspace Page...\nw\nCtrl+Shift+W');rItem.setCommand(cmdNewWP);rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_FileOpen');rItem.setText('Open\no');rMenu0.add(rItem);var rMenu1 = new BpmMenu();rMenu1.setId('bpm.mnu_Open');rItem.setSubMenu(rMenu1);rMenu1.addEventListener(bpm.common.Constants.EVENT_BEFORESHOW,this.onActionFavoritesOpen,this);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_FileOpenDocument');rItem.setText('Document...\nd\nCtrl+O');rItem.setCommand(cmdOpenDoc);rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsWorkspacePages');rItem.setText('Workspace Pages\nw');rMenu1.add(rItem);var rOpenWorkspacePagesMenuItem=rItem;var rMenu2 = new BpmMenu();rMenu2.setId('bpm.mnu_ToolsWorkspacePages');rItem.setSubMenu(rMenu2);var rOpenWorkspacePagesSubMenu=rMenu2;rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsWorkspacePagesPersonal');rItem.setText('My Workspace Pages\nm');rMenu2.add(rItem);var rOpenWorkspacePagesPersonalMenuItem=rItem;var rMenu3 = new BpmMenu();rMenu3.setId('bpm.mnu_ToolsWorkspacePagesPersonal');rItem.setSubMenu(rMenu3);var rOpenWorkspacePagesPersonalSubMenu=rMenu3;rMenu3.addEventListener(bpm.common.Constants.EVENT_BEFORESHOW,this._buildWorkspacePagesSubMenu,this);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsWorkspacePagesCorporate');rItem.setText('Shared Workspace Pages\ns');rMenu2.add(rItem);var rMenu3 = new BpmMenu();rMenu3.setId('bpm.mnu_ToolsWorkspacePagesCorporate');rItem.setSubMenu(rMenu3);var rOpenWorkspacePagesCorporateSubMenu=rMenu3;rMenu3.addEventListener(bpm.common.Constants.EVENT_BEFORESHOW,this._buildWorkspacePagesSubMenu,this);rItem = new BpmMenuSeparator();rItem.setId('bpm.mnit_FileURLLauncherSeparator');rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_File_URLLauncher');rItem.setText('URL...\nu');rMenu1.add(rItem);rMenuButton = new BpmMenuButton();rMenuButton.setId('bpm.mnbt_Favorites');rMenuButton.setText('Favorites\nr');rMenuButton.setBefore('bpm.mnbt_Help');actionBar.add(rMenuButton);var rMenu0 = new BpmMenu();rMenu0.setId('bpm.mnu_Favorites');rMenuButton.setSubMenu(rMenu0);rMenu0.addEventListener(bpm.common.Constants.EVENT_BEFORESHOW,this.onActionFavorites,this);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_FavoriteAdd');rItem.setText('Add to Favorites\na');rMenu0.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_FavoritesManager');rItem.setText('Manage Favorites...\nf');rMenu0.add(rItem);rItem = new BpmMenuSeparator();rItem.setId('bpm.sep_FavoritesManager');rMenu0.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsPersonalizeSubscriptions');rItem.setText('Show Subscribed Items\ns');rItem.setCommand(cmdSubscriptions);rMenu0.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsPersonalizeManagePages');rItem.setText('Manage Personal Pages\nm');rItem.setCommand(cmdManagePersonalPages);rMenu0.add(rItem);rItem = new BpmMenuSeparator();rItem.setId('bpm.sep_FavoritesManager2');rMenu0.add(rItem);rMenuButton = new BpmMenuButton();rMenuButton.setId('bpm.mnbt_Tools');rMenuButton.setText('Tools\nt');rMenuButton.setBefore('bpm.mnbt_Help');actionBar.add(rMenuButton);var rMenu0 = new BpmMenu();rMenu0.setId('bpm.mnu_Tools');rMenuButton.setSubMenu(rMenu0);rItem = new BpmMenuItem();rItem.setId('bpm.mnit_ToolsAdvancedSearch');rItem.setText('Advanced Search...\na');rMenu0.add(rItem);rItem = new BpmMenuSeparator();rItem.setId('bpm.mnit_ToolsLinksSeparator');rMenu0.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnu_ToolsInstall');rItem.setText('Install\ni');rMenu0.add(rItem);var rMenu1 = new BpmMenu();rMenu1.setId('bpm.mnu_ToolsInstall');rItem.setSubMenu(rMenu1);rItem = new BpmMenuItem();rItem.setId('bpm.mnu_ToolsInstallQueryAndReportingClient');rItem.setText('Interactive Reporting Web Client\ni');rMenu1.add(rItem);rItem = new BpmMenuItem();rItem.setId('bpm.mnu_ToolsInstallSmartView');rItem.setText('Smart View\ns');rMenu1.add(rItem);this._rNavAppMenuItemHashtable = new Object();this._rNavAppMenuHashtable = new Object();rNavWorkspacePagesPersonalSubMenu.setUserData(new Array(rNavWorkspacePagesPersonalSubMenu, this._loadWorkspacePagesPersonalList));rNavWorkspacePagesCorporateSubMenu.setUserData(new Array(rNavWorkspacePagesCorporateSubMenu, this._loadWorkspacePagesCorporateList));application.getAdf().getXmlResourceParser()._addObject(administerSubMenu, bpm.common.Constants.MENU_ID_TOOLS_ADMINISTER);application.getAdf().getXmlResourceParser()._addObject(rUserManagementMenu, bpm.common.Constants.MENUITEM_ID_NAV_ADMINISTER_USER_MANAGEMENT);rUserManagementMenu.setEnabled(com.hyperion.tools.cds.HSRoleVars.hasRole(com.hyperion.tools.cds.HSRoleVars.ROLE_CAN_PROVISION_USERS));rNavMenu.add(this.createOpenItemsMenuItem());this.createOpenI

    It sounds like a issue with FireFox and Workspace.
    LiveCycle Workspace 9.0 - End User Issues
    ** New for LiveCycle ES2 SP1 ** Problem logging into Workspace 9.0 using Firefox 3.6.x in Windows
    When you log into Workspace 9.0 using the Firefox 3.6.x web browser in Windows, you are unable to enter text in the User ID or Password fields. The current workaround is to select another window (or empty area on the desktop), reselect the web browser to reset the focus, and then enter text in the User ID or Password fields.
    You can see it in the release notes at http://help.adobe.com/en_US/livecycle/9.0/releasenotes.html#EndUserIssues.
    Hope that helps!
    ...Gil

  • Issue with setting float point in Textfield

    hi
    i have an issue with float input in a textfield.
    what i want to do is.
    when the user start typing numerics it should accept from right hand side and keep appending value from right hand side.
    for ex
    if i want to enter 123.45
    user starts entering
    1 then it should display as 0.01
    2 then it should display as 0.12
    3 then it should display as 1.23
    4 then it should display as 12.34
    5 then it should display as 123.45
    to achive this i have written the code as below
    public class Test{
         public static void main(String[] a){
         try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    } catch (Exception evt) {}
    DecimalFormat format = new DecimalFormat();
    format.setGroupingUsed(true);
    format.setGroupingSize(3);
    format.setParseIntegerOnly(false);
    JFrame f = new JFrame("Numeric Text Field Example");
    final DecimalFormateGen tf = new DecimalFormateGen(10, format);
    // tf.setValue((double) 123456.789);
    tf.setHorizontalAlignment(SwingConstants.RIGHT);
    JLabel lbl = new JLabel("Type a number: ");
    f.getContentPane().add(tf, "East");
    f.getContentPane().add(lbl, "West");
    tf.addKeyListener(new KeyAdapter(){
         public void keyReleased(KeyEvent ke){
              char ch = ke.getKeyChar();
              char key;
              int finalres =0;
              String str,str1 = null,str2 =null,str3 = null,str4= null;
              if(ke.getKeyChar() == KeyEvent.VK_0 || ke.getKeyChar() == KeyEvent.VK_0 ||
                        ke.getKeyChar() == KeyEvent.VK_0 || ke.getKeyChar() == KeyEvent.VK_1 || ke.getKeyChar() == KeyEvent.VK_2 ||
                             ke.getKeyChar() == KeyEvent.VK_3 || ke.getKeyChar() == KeyEvent.VK_4 || ke.getKeyChar() == KeyEvent.VK_5 ||
                             ke.getKeyChar() == KeyEvent.VK_6 || ke.getKeyChar() == KeyEvent.VK_7 || ke.getKeyChar() == KeyEvent.VK_8 ||
                             ke.getKeyChar() == KeyEvent.VK_9 ){
                   double value1 = Double.parseDouble(tf.getText());
                   int position = tf.getCaretPosition();
                   if(tf.getText().length() == 1){
                        if(tf.getText() != null || tf.getText() != ""){
                        value1 = value1 / 100;
                        tf.setText(String.valueOf(value1));
                   /*else if(tf.getText().length() == 3){
                        str = tf.getText();
                        for(int i=0;i<str.length();i++){
                             if(str.charAt(i) == '.'){
                                  str1 = str.substring(0,i);
                                  str2 = str.substring(i+1,str.length()-1);
                                  break;
                        key = ke.getKeyChar();
                        finalres = calculate.calculate1(str2,key);
                        str3 = merge.merge1(str1,finalres);
                        tf.setText(str3);
                        System.out.println(key);
                        System.out.println(str1);
                        System.out.println(str2);
                   else{
                        value1 = Float.parseFloat(tf.getText());
                        value1 = value1*10;
                        tf.setText(String.valueOf(value1));
    tf.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    try {
    tf.normalize();
    Long l = tf.getLongValue();
    System.out.println("Value is (Long)" + l);
    } catch (ParseException e1) {
    try {
    Double d = tf.getDoubleValue();
    System.out.println("Value is (Double)" + d);
    } catch (ParseException e2) {
    System.out.println(e2);
    f.pack();
    f.setVisible(true);
    import javax.swing.JTextField;
    * Created on May 25, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    * @author jagjeevanreddyg
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.text.DecimalFormat;
    import java.text.ParseException;
    import java.text.ParsePosition;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.UIManager;
    import javax.swing.text.AbstractDocument;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.Document;
    import javax.swing.text.PlainDocument;
    import javax.swing.text.AbstractDocument.Content;
    public class DecimalFormateGen extends JTextField implements
    NumericPlainDocument.InsertErrorListener {
         public DecimalFormateGen() {
         this(null, 0, null);
         public DecimalFormateGen(String text, int columns, DecimalFormat format) {
         super(null, text, columns);
         NumericPlainDocument numericDoc = (NumericPlainDocument) getDocument();
         if (format != null) {
         numericDoc.setFormat(format);
         numericDoc.addInsertErrorListener(this);
         public DecimalFormateGen(int columns, DecimalFormat format) {
         this(null, columns, format);
         public DecimalFormateGen(String text) {
         this(text, 0, null);
         public DecimalFormateGen(String text, int columns) {
         this(text, columns, null);
         public void setFormat(DecimalFormat format) {
         ((NumericPlainDocument) getDocument()).setFormat(format);
         public DecimalFormat getFormat() {
         return ((NumericPlainDocument) getDocument()).getFormat();
         public void formatChanged() {
         // Notify change of format attributes.
         setFormat(getFormat());
         // Methods to get the field value
         public Long getLongValue() throws ParseException {
         return ((NumericPlainDocument) getDocument()).getLongValue();
         public Double getDoubleValue() throws ParseException {
         return ((NumericPlainDocument) getDocument()).getDoubleValue();
         public Number getNumberValue() throws ParseException {
         return ((NumericPlainDocument) getDocument()).getNumberValue();
         // Methods to install numeric values
         public void setValue(Number number) {
         setText(getFormat().format(number));
         public void setValue(long l) {
         setText(getFormat().format(l));
         public void setValue(double d) {
         setText(getFormat().format(d));
         public void normalize() throws ParseException {
         // format the value according to the format string
         setText(getFormat().format(getNumberValue()));
         // Override to handle insertion error
         public void insertFailed(NumericPlainDocument doc, int offset, String str,
         AttributeSet a) {
         // By default, just beep
         Toolkit.getDefaultToolkit().beep();
         // Method to create default model
         protected Document createDefaultModel() {
         return new NumericPlainDocument();
         // Test code
         public static void main(String[] args) {
         try {
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
         } catch (Exception evt) {}
         DecimalFormat format = new DecimalFormat("#,###.###");
         format.setGroupingUsed(true);
         format.setGroupingSize(3);
         format.setParseIntegerOnly(false);
         JFrame f = new JFrame("Numeric Text Field Example");
         final DecimalFormateGen tf = new DecimalFormateGen(10, format);
         tf.setValue((double) 123456.789);
         JLabel lbl = new JLabel("Type a number: ");
         f.getContentPane().add(tf, "East");
         f.getContentPane().add(lbl, "West");
         tf.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent evt) {
         try {
         tf.normalize();
         Long l = tf.getLongValue();
         System.out.println("Value is (Long)" + l);
         } catch (ParseException e1) {
         try {
         Double d = tf.getDoubleValue();
         System.out.println("Value is (Double)" + d);
         } catch (ParseException e2) {
         System.out.println(e2);
         f.pack();
         f.setVisible(true);
         class NumericPlainDocument extends PlainDocument {
         public NumericPlainDocument() {
         setFormat(null);
         public NumericPlainDocument(DecimalFormat format) {
         setFormat(format);
         public NumericPlainDocument(AbstractDocument.Content content,
         DecimalFormat format) {
         super(content);
         setFormat(format);
         try {
         format
         .parseObject(content.getString(0, content.length()), parsePos);
         } catch (Exception e) {
         throw new IllegalArgumentException(
         "Initial content not a valid number");
         if (parsePos.getIndex() != content.length() - 1) {
         throw new IllegalArgumentException(
         "Initial content not a valid number");
         public void setFormat(DecimalFormat fmt) {
         this.format = fmt != null ? fmt : (DecimalFormat) defaultFormat.clone();
         decimalSeparator = format.getDecimalFormatSymbols()
         .getDecimalSeparator();
         groupingSeparator = format.getDecimalFormatSymbols()
         .getGroupingSeparator();
         positivePrefix = format.getPositivePrefix();
         positivePrefixLen = positivePrefix.length();
         negativePrefix = format.getNegativePrefix();
         negativePrefixLen = negativePrefix.length();
         positiveSuffix = format.getPositiveSuffix();
         positiveSuffixLen = positiveSuffix.length();
         negativeSuffix = format.getNegativeSuffix();
         negativeSuffixLen = negativeSuffix.length();
         public DecimalFormat getFormat() {
         return format;
         public Number getNumberValue() throws ParseException {
         try {
         String content = getText(0, getLength());
         parsePos.setIndex(0);
         Number result = format.parse(content, parsePos);
         if (parsePos.getIndex() != getLength()) {
         throw new ParseException("Not a valid number: " + content, 0);
         return result;
         } catch (BadLocationException e) {
         throw new ParseException("Not a valid number", 0);
         public Long getLongValue() throws ParseException {
         Number result = getNumberValue();
         if ((result instanceof Long) == false) {
         throw new ParseException("Not a valid long", 0);
         return (Long) result;
         public Double getDoubleValue() throws ParseException {
         Number result = getNumberValue();
         if ((result instanceof Long) == false
         && (result instanceof Double) == false) {
         throw new ParseException("Not a valid double", 0);
         if (result instanceof Long) {
         result = new Double(result.doubleValue());
         return (Double) result;
         public void insertString(int offset, String str, AttributeSet a)
         throws BadLocationException {
         if (str == null || str.length() == 0) {
         return;
         Content content = getContent();
         int length = content.length();
         int originalLength = length;
         parsePos.setIndex(0);
         // Create the result of inserting the new data,
         // but ignore the trailing newline
         String targetString = content.getString(0, offset) + str
         + content.getString(offset, length - offset - 1);
         // Parse the input string and check for errors
         do {
         boolean gotPositive = targetString.startsWith(positivePrefix);
         boolean gotNegative = targetString.startsWith(negativePrefix);
         length = targetString.length();
         // If we have a valid prefix, the parse fails if the
         // suffix is not present and the error is reported
         // at index 0. So, we need to add the appropriate
         // suffix if it is not present at this point.
         if (gotPositive == true || gotNegative == true) {
         String suffix;
         int suffixLength;
         int prefixLength;
         if (gotPositive == true && gotNegative == true) {
         // This happens if one is the leading part of
         // the other - e.g. if one is "(" and the other "(("
         if (positivePrefixLen > negativePrefixLen) {
         gotNegative = false;
         } else {
         gotPositive = false;
         if (gotPositive == true) {
         suffix = positiveSuffix;
         suffixLength = positiveSuffixLen;
         prefixLength = positivePrefixLen;
         } else {
         // Must have the negative prefix
         suffix = negativeSuffix;
         suffixLength = negativeSuffixLen;
         prefixLength = negativePrefixLen;
         // If the string consists of the prefix alone,
         // do nothing, or the result won't parse.
         if (length == prefixLength) {
         break;
         // We can't just add the suffix, because part of it
         // may already be there. For example, suppose the
         // negative prefix is "(" and the negative suffix is
         // "$)". If the user has typed "(345$", then it is not
         // correct to add "$)". Instead, only the missing part
         // should be added, in this case ")".
         if (targetString.endsWith(suffix) == false) {
         int i;
         for (i = suffixLength - 1; i > 0; i--) {
         if (targetString
         .regionMatches(length - i, suffix, 0, i)) {
         targetString += suffix.substring(i);
         break;
         if (i == 0) {
         // None of the suffix was present
         targetString += suffix;
         length = targetString.length();
         format.parse(targetString, parsePos);
         int endIndex = parsePos.getIndex();
         if (endIndex == length) {
         break; // Number is acceptable
         // Parse ended early
         // Since incomplete numbers don't always parse, try
         // to work out what went wrong.
         // First check for an incomplete positive prefix
         if (positivePrefixLen > 0 && endIndex < positivePrefixLen
         && length <= positivePrefixLen
         && targetString.regionMatches(0, positivePrefix, 0, length)) {
         break; // Accept for now
         // Next check for an incomplete negative prefix
         if (negativePrefixLen > 0 && endIndex < negativePrefixLen
         && length <= negativePrefixLen
         && targetString.regionMatches(0, negativePrefix, 0, length)) {
         break; // Accept for now
         // Allow a number that ends with the group
         // or decimal separator, if these are in use
         char lastChar = targetString.charAt(originalLength - 1);
         int decimalIndex = targetString.indexOf(decimalSeparator);
         if (format.isGroupingUsed() && lastChar == groupingSeparator
         && decimalIndex == -1) {
         // Allow a "," but only in integer part
         break;
         if (format.isParseIntegerOnly() == false
         && lastChar == decimalSeparator
         && decimalIndex == originalLength - 1) {
         // Allow a ".", but only one
         break;
         // No more corrections to make: must be an error
         if (errorListener != null) {
         errorListener.insertFailed(this, offset, str, a);
         return;
         } while (true == false);
         // Finally, add to the model
         super.insertString(offset, str, a);
         public void addInsertErrorListener(InsertErrorListener l) {
         if (errorListener == null) {
         errorListener = l;
         return;
         throw new IllegalArgumentException(
         "InsertErrorListener already registered");
         public void removeInsertErrorListener(InsertErrorListener l) {
         if (errorListener == l) {
         errorListener = null;
         public interface InsertErrorListener {
         public abstract void insertFailed(NumericPlainDocument doc, int offset,
         String str, AttributeSet a);
         protected InsertErrorListener errorListener;
         protected DecimalFormat format;
         protected char decimalSeparator;
         protected char groupingSeparator;
         protected String positivePrefix;
         protected String negativePrefix;
         protected int positivePrefixLen;
         protected int negativePrefixLen;
         protected String positiveSuffix;
         protected String negativeSuffix;
         protected int positiveSuffixLen;
         protected int negativeSuffixLen;
         protected ParsePosition parsePos = new ParsePosition(0);
         protected static DecimalFormat defaultFormat = new DecimalFormat();
    this is not working as desired pls help me.
    can we use this code and get the desired result or is there any other way to do this.
    it is very urgent for me pls help immediately
    thanks in advance

    Hi camickr
    i learned how to format the code now, and u also responded for my testarea problem , iam very much thankful to u, and now i repeat the same problem what i have with a text field.
    actually i have window with a textfield on it and while end user starts entering data in it , it should be have as follows
    when the user start typing numerics it should accept from right hand side and keep appending value from right hand side.
    first the default value should be as 0.00 and as the user starts entering
    then it is as follows
    for ex
    if i want to enter 123.45
    user starts entering
    1 then it should display as 0.01
    2 then it should display as 0.12
    3 then it should display as 1.23
    4 then it should display as 12.34
    5 then it should display as 123.45
    i hope u will give me quick reply because this is very hard time for me.

  • Issues while configuring java application using JDO with MS JDBC Driver 1.0

    We are in the process of configuring our java application with the production version of SQL Server 2005 Java Database Connectivity (JDBC) Driver 1.0. We are facing issues getting it to work with Sun App Server using JDO concept.
    After creating the data store, adding the JDBC driver to the application server classpath through console and also copying the driver into the lib directory, we are still getting the below error.
    Following is the stack trace encountered while running the application
    [#|2006-02-15T10:21:25.493+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=30;|JDO74010: Bean 'InventoryEJB' method ejbFindAllInventoryItems: problems running JDOQL query.
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
    NestedException: java.sql.SQLException: Error in allocating a connection. Cause: javax.transaction.SystemException
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.initializeSQLStoreManager(SQLPersistenceManagerFactory.java:870)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:786)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:673)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:849)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:681)
         at com.sun.j2ee.blueprints.supplier.inventory.ejb.InventoryEJB1142755294_ConcreteImpl.jdoGetPersistenceManager(InventoryEJB1142755294_ConcreteImpl.java:530)
         at com.sun.j2ee.blueprints.supplier.inventory.ejb.InventoryEJB1142755294_ConcreteImpl.ejbFindAllInventoryItems(InventoryEJB1142755294_ConcreteImpl.java:146)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:147)
         at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:185)
         at $Proxy164.findAllInventoryItems(Unknown Source)
         at com.sun.j2ee.blueprints.supplier.inventory.web.DisplayInventoryBean.getInventory(Unknown Source)
         at org.apache.jsp.displayinventory_jsp._jspService(displayinventory_jsp.java:119)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
         at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
         at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
         at com.sun.j2ee.blueprints.supplier.inventory.web.RcvrRequestProcessor.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Can anyone help me on this issue?
    Regards,
    Bindu

    I have already tried this before and this not work too, but strange that even if I use JDBC:ODBC bridge driver, the return value for output parameters are not correct, that is, only return the value that I input but not the value after executed in the procedure....
    The code that I used with JDBC:ODBC bridge is as follow:
    public static void main(String[] args) {
    String url = "jdbc:odbc:;DRIVER=SQL Server;Persist Security Info=False;database=db;Server=sql;uid=sa;pwd=pwd";
              Connection con;
              ResultSet rs = null;
    CallableStatement callS = null;
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              } catch(java.lang.ClassNotFoundException e) {
                   System.err.print("ClassNotFoundException: ");
                   System.err.println(e.getMessage());
              try {
                   con=DriverManager.getConnection(url);
    callS = con.prepareCall("{ call dbo.CpJavaTest (?)}");
    callS.registerOutParameter(1, Types.INTEGER);
    callS.execute();
    rs=callS.getResultSet();
    int ret = callS.getInt(1);
    System.out.println("return value : " + ret);
                   while (rs.next()) {
                        String f1 = rs.getString(4);
                        String f2 = rs.getString(5);
                        System.out.println(f1 + " " + f2);
              } catch(SQLException ex) {
                   System.out.println("SQLException: " + ex.getMessage());
    The value of the output parameter is same as what I inputed! Hope any one can teach me how to correct it...
    Thank you very much!

  • Issue while selecting XMLType column in Oracle 10G

    HI All.
         We are trying to get some value from XML Type column and it works fine with Oracle 11g, we are trying the same with Oracle 10g but it fails with below  stack Trace . looking at the stack Trace we feel it is the issue with ODP.net ,
    we have below oracle Versions installed in our Server .
    Oracle Data Access Components    ---  10.2.0.2.21
    Oracle Database 10g Release 2 Patch Set 3  --- 10.2.0.4.0
    Kindly let us know if it is specific to any ODP.net issue, or anyone has some sought of work around to resolve this issue .
    -----------Stack Trace --------------------------------------------------------
    Message: Exception has been thrown by the target of an invocation.
    StackTrace:    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at System.Web.Services.Protocols.WebServiceHandler.Invoke()
       at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
       at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
       at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
       at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
       at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
       at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
       at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
    InnerException: System.AccessViolationException
    Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    StackTrace:    at Oracle.DataAccess.Types.OpsXmlStream.GetValueBuffer(IntPtr opsConCtx, IntPtr opsErrCtx, IntPtr opsXmlTypeCtx, IntPtr& opsXmlStreamValueBuffer, Int32& numCharsInBuffer)
       at Oracle.DataAccess.Client.OracleDataReader.GetString(Int32 i)
       at Oracle.DataAccess.Client.OracleDataReader.GetValue(Int32 i)
       at Oracle.DataAccess.Client.OracleCommand.ExecuteScalar()
       at ProVation.DataAccess.CProvDatabase.GetScalar(SQLText& sql, Object& returnval, String& user)
       at ProVation.DataAccess.CProvDatabase.GetScalar(SQLText& sql, String& returnval, String defaultvalue, String& user)
       at ProVation.BusinessRules.ConfigsBR.GetDocumentXML(String specialty, Boolean isProvationXML, Boolean isEdit)
       at ProVation.BusinessRules.ConfigsBR.GetTreeXML(String terminal, String site, String speciality, DataSet& ds, DataSet& dsXML)
       at WKOSAWS.GetTreeXML(String terminal, String key, String strSpeciality, String strSite, DataSet& dsSpeciality) in c:\inetpub\wwwroot\WKOSAWS\App_Code\WKOSAWS.cs:line 207
    Thanks in Advance
    Suren

    Thanks Alex .
    We will try to Install ODP.NET 11.2 Release 5 and proceed further .
    Thanks,
    Suren

  • SQL query issue

    I am attempting to connect to a Progress database using JDBC and am having a few issues with my SQL statement. The code concerned looks like this:
    // Get a statement from the connection
    Statement stmt = conn.createStatement() ;
    // Execute the query
    ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust" ) ;
    // Loop through the result set
    while( rs.next() )
    System.out.println( rs.getString( "cust-code" ) ) ;
    That works just fine. Prints out each of the cust-code values. My issue comes when I try to refine the query to be:
    ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust WHERE cust.Cust-code='100001-0'" ) ;
    or even
    ResultSet rs = stmt.executeQuery( "SELECT Cust-code FROM pub.cust" ) ;
    Both of these give me an error saying Column not found/specified.
    if I wrap Cust-code in single quotes, the script prints Cust-code on each line, not the value for it. If I escape Cust-code like Cust\-code, I get an Illegal escape character. Any ideas?

    I have never used Progress, but maybe you have to fully qualify the field names like this:
    ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust WHERE pub.cust.Cust-code='100001-0'" ) ;
    ResultSet rs = stmt.executeQuery( "SELECT pub.cust.Cust-code FROM pub.cust" ) ;Just a thought.

  • Issue with RFClookup in PI 7.3

    Hi all,
        I'm doing up gradation from PI7.0 to PI 7.3 and I'm facing below  issues in 7.3 however it was successful in 7.0. issues are mentioned below.
    1. while testing at message mapping getting the below error and it is the same when I checked the RFC channel under CC monitoring.
       Error during lookup - Exception during processing the payload. Error when calling an adapter by using the communication channel RFC_RCV_VMLookUp (Party: , Service: ValueMappingLookup, Object ID: 12fc6a60da95345f99d4a4f0143e76c4) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.adapter.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declaration(2)'.
    *2. when I checked the display queue of the RFClookup field in MM its getting below java syntax errors and even the namespaces/libraries(errors which mentioned below) are defined in the import section.*
    Java Area import, Line 8:
    package com.aii.valuemapping.rfc.alert does not exist import com.aii.valuemapping.rfc.alert.*; ^
    Java Area import, Line 9:
    package com.aii.valuemapping.rfc.lookup does not exist import com.aii.valuemapping.rfc.lookup.*; ^
    Function RFCLookup_Mandatory, Line 25:
    cannot find symbol symbol  : variable UDFReader location: class com.sap.xi.tf._CustomerSpecification_TO_CustomerSpecification_GV_      element[0] =UDFReader.getString("CONTAINER_NAME_MESSAGE_ID");
       there is no issues with 7.0 for same thing  and its success however in 7.3 getting these. Please suggest.
    rgds,
    venkat

    Hi Inaki,
    I have not got PI 7.3 upgraded yet due to other issues here.
    Though I am getting error doing RFCLookup in PI 7.3 message mapping.
    I get this when I run the map locally/ end-end.
    The parameters are specified correctly in message map signature and in Operation mapping.
    There are no issues with the Cache as well.
    Still getting the error.
    Error says:
    Caused by: com.sap.aii.mapping.lookup.LookupException: Connection to system RUNTIME using application RUNTIME lost. Detailed information: Error accessing "http://shcgbth2dsu12.gb.spire.ads:50000/run/system/int?container=web" with user "PIREP<system_Id>". Response code is 403, response message is "Forbidden"
    Please let me know how can I solve it..
    Thanks
    Shaily

  • Issue in pagination

    Hi,
    We have a table which is showing 10 records at a time. We have a single selection associated with this table. On page load, 10 records will be displayed and the first record will be selected.
    When i click on say 4th record, we are doing firePartialAction(RuleSelect) and capturing that event. This selection of 4th records works fine i.e. when i select 4th record, page starts loading and once the page loads 4th record is selected.
    Now suppose if i Click on NEXT(10-20) records. Next 10 records(11-20) are displayed and 11th record which will be the first record of the second page will get selected once that event(GOTO) ends. We are capturing this event as well.
    Now if on the second page i try to select some other record, say 15th record i.e 5th record of the second page,the page starts loading and it navigates to the last set of record of the table ie. If total number of records are 35 in that table, on selection of 15th record, it will display me records from 30-35 instead of displaying 15th record as selected.
    My ques is when the firePartialAction(RuleSelect) works fine on the First page of the table i.e. for records(1-10), then why on selection of 15th record after pagination, its showing me the last set of records.
    Please let me, how i can fix this issue.
    I tried putting vo.reset() in some of the places, but its showing me some absurd output.
    Thanks in advance
    Saurabh

    hi,
    The table associated with RuleHeaderDetails is causing the Issue. PFB the code which gets fired on selection of RadioButton on the table.
    Controller Code
    ===============
    if ("RuleSelect".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    numRuleID = (Number)am.invokeMethod("getSelectedRule");
    if("N".equals(ChangesCheck))
    ChangesCheck = (String)am.invokeMethod("CheckPriorityChanges");
    numRuleID = (Number)am.invokeMethod("getSelectHeaderRowEvent");
    if (!(numRuleID.intValue() == 0))
    Serializable[] parameters = { numRuleID.toString() };
    String strCount = (String)am.invokeMethod("initHeaderDetails", parameters);
    AM Code
    =======
    public String CheckPriorityChanges()
    OAViewObject vo = (OAViewObject)findViewObject("RuleHdrDetailsVO1");
    if(!vo.isPreparedForExecution())
    return "N";
    Row rowHdr1 = vo.first();
    int iTest = 0;
    String returnStatus = "N";
    Number numPriorityValue = new Number(0);
    Number numRuleId = null;
    while(rowHdr1 != null)
    numPriorityValue = (Number)rowHdr1.getAttribute("RulePriority");
    numRuleId = (Number)rowHdr1.getAttribute("RuleId");
    if(numPriorityValue == null)
    numPriorityValue = new Number(0);
    OADBTransaction txn = (OADBTransaction)getDBTransaction();
    CallableStatement cs = txn.createCallableStatement("Test", 1);
    String procCall = "begin utilities_pkg.check_rule_priority_p("+
    "p_out_v_return_status => :1,"+
    "p_in_n_rule_id => :2,"+
    "p_in_n_rule_priority => :3); end;";
    cs = txn.createCallableStatement(procCall, 1);
    try
    cs.registerOutParameter(1,Types.VARCHAR);
    cs.setInt(2,numRuleId.intValue());
    cs.setInt(3,numPriorityValue.intValue());
    cs.execute();
    returnStatus = cs.getString(1);
    catch(Exception excp)
    System.out.println("Exception - "+excp.getMessage());
    if("Y".equals(returnStatus))
    break;
    vo.setCurrentRow(rowHdr1);
    rowHdr1 = vo.next();
    vo.reset();
    return returnStatus;
    public Number getSelectHeaderRowEvent()
    Number ReturnValue = new Number(0);
    OAViewObject vo = (OAViewObject)findViewObject("RuleHdrDetailsVO1");
    OARow row = (OARow)vo.getFirstFilteredRow("Select","Y");
    if (row == null)
    RuleDefnDetailsVOImpl vo2 = getRuleDefnDetailsVO1();
    vo2.setWhereClauseParams(null);
    vo2.setWhereClauseParam(0,"0");
    vo2.setMaxFetchSize(-1);
    vo2.executeQuery();
    return ReturnValue;
    if (row != null)
    System.out.println("In here");
    vo.setCurrentRow(row);
    return ReturnValue;
    } // getSelectHeaderRowEvent()
    public String initHeaderDetails(String RuleID)
    String strRuleStatus = "";
    RuleHdrPopUpVOImpl Hdrvo = getRuleHdrPopUpVO1();
    Hdrvo.setWhereClauseParams(null);
    Hdrvo.setWhereClauseParam(0,RuleID);
    Hdrvo.setMaxFetchSize(-1);
    Hdrvo.executeQuery();
    OARow hdrRow = (OARow)Hdrvo.first();
    gstrRuleName = (String)hdrRow.getAttribute("RuleName");
    OAViewObject voRulHdr = (OAViewObject)findViewObject("RuleHdrDetailsVO1");
    OARow rowRulHdr = (OARow)voRulHdr.first();
    int iCount = 1;
    while (!(rowRulHdr.getAttribute("RuleId").equals(RuleID)))
    iCount++;
    rowRulHdr = (OARow)voRulHdr.next();
    voRulHdr.setCurrentRow(rowRulHdr);
    voRulHdr.reset();
    return strCount;
    Thanks
    Saurabh

  • Oracle 8i jdbc/Tomcat connection issues

    Tomcat 4.1.8
    Oracle 8i JDBC Driver
    I have been able to create the DataSource as a global resource and as a local resource inside the context of the application.
    The code hangs when it attempts to create a connection. I have been able to connect to the database and perform the necessary query in a standalone application to ensure that I actually can connect.
    JSP Code:
    <html>
    <head>
    <title>VTW App</title>
    </head>
    <body>
    <%
    vtw.VTWApp tst = new vtw.VTWApp();
    tst.init();
    %>
    <h2>Results</h2>
    <%= tst.getList() %>
    </body>
    </html>
    Java Code (Class called by JSP):
    package vtw;
    import javax.naming.*;
    import javax.sql.*;
    import java.sql.*;
    public class VTWApp {
    String list = "EMPTY";
    public void init() {
    try{
    Context ctx = new InitialContext();
    if(ctx == null )
    throw new Exception("Boom - No Context");
    System.out.println("Context Created ...");
    DataSource ds =
    (DataSource)ctx.lookup(
    "java:comp/env/jdbc/oracleDB");
    if (ds != null) {
              System.out.println("DataSource Created ...");
    Connection conn = ds.getConnection();
    System.out.println("Connection Pulled");
    if(conn != null) {
                   System.out.println("Connection Good");
                   Statement st = conn.createStatement();
                   String query = "";
                   query += "select grpid, to_char(min(dtlastendtime),'mm-dd-yyyy hh24:mi:ss') ";
                   query += "from calc_table where equipmentsernum in (";
                   query += "'888000','888001'";
                   query += ") group by grpid";
                   ResultSet rs = st.executeQuery(query);
                   if(rs != null) {
                        list = "";
                        while(rs.next()) {
                             list += (rs.getString(1) + "," + rs.getString(2));
                   rs.close();
                   conn.close();
                   System.out.println("Connection Closed");
              } else {
                   System.out.println("Connection Not Established");
    }catch(Exception e) {
    e.printStackTrace();
    public String getList() { return list; }
    }

    I figured out the issue ...
    In the server.xml file the resource & resource params needed to be modified..
    1. Set type to oracle.jdbc.pool.OracleDataSource
    2. Set factory to oracle.jdbc.pool.OracleDataSourceFactory
    3. In the Java code cast the context lookup to an OracleDataSource instead of a java.sql.DataSource
    Oracles DataSource does not subclass the jdbc DataSource for its OracleDataSource class everything works fine now.
    <Resource name="jdbc/mydb" scope="Shareable" type="oracle.jdbc.pool.OracleDataSource"/>
    <ResourceParams name="jdbc/mydb">
    <parameter>
    <name>validationQuery</name>
    <value></value>
    </parameter>
                   <parameter>
                        <name>factory</name>
                        <value>oracle.jdbc.pool.OracleDataSourceFactory</value>
                   </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
         <name>url</name>
         <value>jdbc:oracle:thin:@server.company.com:1521:dbname</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>guest</value>
    </parameter>
                   <parameter>
                        <name>maxWait</name>
                        <value>10000</value>
                   </parameter>
                   <parameter>
                        <name>maxActive</name>
                        <value>100</value>
                   </parameter>
    <parameter>
    <name>user</name>
    <value>guest</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>

  • 3 SQL Developer Issues

    SQL Developer 1.1.2.25 Build MAIN-25.79
    Java 1.5.0_11
    Issue 1:
         The version in the about box lists '(null) Version 1.1.2.25'
    Issue 2:
         Right-clicking on a cell in the results window yields the following exception in the console:
    java.lang.IndexOutOfBoundsException: out of bounds: dataSize: 1912 offset: 904 length: 1104
    at oracle.javatools.buffer.GapArrayTextBuffer.checkOffsets(GapArrayTextBuffer.java:506)
    at oracle.javatools.buffer.GapArrayTextBuffer.getStringImpl(GapArrayTextBuffer.java:209)
    at oracle.javatools.buffer.AbstractTextBuffer.getString(AbstractTextBuffer.java:343)
    at oracle.ide.model.TextNode$TextBufferWrapper.getString(TextNode.java:1743)
    at oracle.javatools.editor.BasicDocument.getText(BasicDocument.java:679)
    at oracle.dbdev.oviewer.base.PopupDescribe.menuWillShow(PopupDescribe.java:197)
    at oracle.ide.controller.ContextMenu.callMenuWillShow(ContextMenu.java:489)
    at oracle.ide.controller.ContextMenu.prepareShow(ContextMenu.java:265)
    at oracle.ide.controller.ContextMenu.show(ContextMenu.java:229)
    at oracle.dbtools.sqlworksheet.sqlview.SqlEditorMainPanel._tryContextMenu(SqlEditorMainPanel.java:1262)
    at oracle.dbtools.sqlworksheet.sqlview.SqlEditorMainPanel.access$1900(SqlEditorMainPanel.java:161)
    at oracle.dbtools.sqlworksheet.sqlview.SqlEditorMainPanel$SqlEditorHandler.mouseReleased(SqlEditorMainPanel.java:1959)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
    at java.awt.Component.processMouseEvent(Component.java:5501)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5266)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3968)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1778)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Issue 3:
         After issue 2 occurs, selecting Export from the context menu causes the application to freeze with no further exceptions.
    Notes:
    I am able to reproduce this every time for a specific long-running query which completes normally after 260-290 seconds. I cannot reproduce this issue for queries which complete rapidly (i.e. select * from table).

    On Issue 1:
    As MRM has said, this was posted several times for 1.1.2 and I noticed the (null) in the Help -> About window with 1.1.2. I have now upgraded to 1.1.3 via check for updates and I don't get the (null) anymore, so I would guess that you are still on 1.1.2. Note that my Help -> About shows Version 1.1.2.25.79, with the 1.1.3.27.66 version only appearing in the Extension tab.
    On Issue 3:
    1.1.3.27.66 (as per Extensions) runs queries twice to export - once to show the data in the Results (ie 1st 260-290 seconds) and once again when exporting (ie 2nd 260-290 seconds).
    1.1.2.25.79 (as per Extensions) runs queries three times to export - once to show the data in the Results (ie 1st 260-290 seconds), once as part of opening the Export dialog (ie 2nd 260-290 seconds) and once again when exporting (ie 3rd 260-290 seconds).
    This means that if you are really still on 1.1.2 it will take up to 5 minutes for the Export dialog to appear :(

Maybe you are looking for