Creating instances programatically

Hi,
I would like to create some instances with addinstance when a pdf is opened (without user interaction). I´m using this code at the layout ready event of the main form object. However, the cursor starts blinking as it was in a loop...
form1.P1.ItemSet.instanceManager.addInstance();
Thank you

Layout ready occurs after the layout manager determines the layout of the form. Adding an instance forces the layout manager to recalculate the layout of the form, causing layout ready event to occur. Etc etc, you're in an infinite loop. Try moving your script to doc:ready.
Chris
Adobe Enterprise Developer Support

Similar Messages

  • Trying to access methods from a .class file by creating instance of class

    Hey all,
    I'm hoping you can help. I've been given a file "Input.class" with methods such as readInt(), readString(), etc. I have tried creating instances of this class to make use of it, but I receive the error "cannot find symbol : class Input".
    If you could help at all, I would greatly appreciate it.
    Here's my code. The first is the base program, the second is the driver.
    import java.util.*;
    public class CarObject
         private String makeType = "";
         private String modelType = "";
         private int yearOfRelease = 0;
         private double numOfMiles = 0.0;
         public void setFilmTitle(String make)
              makeType = make;
         public void setMediaType(String model)
              modelType = model;
         public void setYearOfRelease(int year)
              yearOfRelease = year;
         public void setNumOfMiles(double miles)
              numOfMiles = miles;
         public String getMakeType()
              return makeType;
         public String getModelType()
              return modelType;
         public int getYearOfRelease()
              return yearOfRelease;
         public double getNumOfMiles()
              return numOfMiles;
    The program is used by a rental car company and the object takes on desired attributes.
    import java.util.*;
    public class TestCarObject
         static Scanner keyboard = new Scanner(System.in);
         public static void main(String[] args)
              System.out.println("Please answer the following questions regarding your rental car order.");
              Input carinput = new Input();
              String makeType = carinput.readString("Enter your desired make of car: ");          
              String modelType = carinput.readString("Enter your desired model of car: ");
              int yearOfRelease = carinput.readInt("Enter the oldest acceptable year of release to rent: ");
              double numOfMiles = carinput.readDouble("Enter the highest acceptable number of miles: ");
              System.out.println("Make: " + makeType);
              System.out.println("Model: " + makeType);
              System.out.println("Year: " + makeType);
              System.out.println("Mileage: " + makeType);
    }

    No, I don't know the package name....Is there a way
    to import the Input.class by itself without importing
    the entire packge?
    I tried extending the driver program too...It didn't
    work either...
    Message was edited by:
    BoxMan56How do you know you have a class called Input.class ?
    You got a jar file which contains it ? or just a simple .class file ?
    You have to set the classpath in either case.
    But for the former, you should also need to explicitly telling which package containing the class file you looking for (i.e. Input.class)
    e.g. java.util.Vector which is a class called Vector inside java.util package.
    You don't have to import the whole package, but you should tell which package this class belongs to.

  • How to Create Instances in the Transient Root Node and Sub Nodes from Root Node Query Method ?

    Hi All,
    I am Creating a BOPF BO with 3 Nodes,
    Node 1) ROOT -- > contains a query,
    using Root Node I have created Search UIBB Configuration in FBI.
    In testing -- > when i enter Data in the Search Criteria Fields am able to get the details in to the query method
    from Imporing parameter : 'IT_SELECTION_PARAMETERS'.
    HERE I am fetching data from a standard table and trying to fill the data in the Node : 'MNR_SEARCH_RESULT'.
    How to Append data to the Sub node 'MNR_SEARCH_RESULT' when there is no Node instance created in the ROOT Node ?
    For This  I have created an instance in the ROOT Node and Using that I tried to create Instance in the Sub Node 'MNR_SEARCH_RESULT'.
    Below is my code which i have placed in the Query method ..
    DATA : LR_DATA TYPE REF TO ZBO_S_ROOT1.
    DATA : LR_SEARCH_RES TYPE REF TO ZBO_S_MNR_SEARCH_RESULT.
    DATA : LO_CI_SERVICE_MANAGER TYPE REF TO /BOBF/IF_TRA_SERVICE_MANAGER,
            LO_TRANSACTION_MANAGER TYPE REF TO /BOBF/IF_TRA_TRANSACTION_MGR.
       LO_CI_SERVICE_MANAGER = /BOBF/CL_TRA_SERV_MGR_FACTORY=>GET_SERVICE_MANAGER( IV_BO_KEY = ZIF_BO_TEST_PO_C=>SC_BO_KEY ).
       LO_TRANSACTION_MANAGER = /BOBF/CL_TRA_TRANS_MGR_FACTORY=>GET_TRANSACTION_MANAGER( ).
    CREATE DATA LR_DATA.
    LR_DATA->KEY = LO_CI_SERVICE_MANAGER->GET_NEW_KEY( ).
    LR_DATA->ROOT_KEY   = IS_CTX-ROOT_NODE_KEY.
    LR_DATA->PIPO_MAT_ID = '100100'.
    LR_DATA->PIPO_MAT_DESC = 'MATERIAL'.
    LR_DATA->PIPO_SPRAS = 'E'.
    LR_DATA->PIPO_MATL_TYPE = 'ZPMI'.
    LR_DATA->PIPO_MATL_GROUP = 'ZKK'.
         DATA lt_mod      TYPE /bobf/t_frw_modification.
         DATA lo_change   TYPE REF TO /bobf/if_tra_change.
         DATA lo_message  TYPE REF TO /bobf/if_frw_message.
         FIELD-SYMBOLS: <ls_mod> LIKE LINE OF lt_mod.
        APPEND INITIAL LINE TO lt_mod ASSIGNING <ls_mod> .
        <ls_mod>-node        =   ZIF_BO_TEST_PO_C=>sc_node-ROOT.
        <ls_mod>-change_mode = /bobf/if_frw_c=>sc_modify_create.
        <ls_mod>-key         = LR_DATA->KEY.
        <ls_mod>-data        = LR_DATA.
    DATA : LT_CHG_FIELDS TYPE /BOBF/T_FRW_NAME.
    DATA : LS_CHG_FIELDS LIKE LINE OF LT_CHG_FIELDS.
    DATA : LV_KEY TYPE /BOBF/CONF_KEY.
    CALL METHOD IO_MODIFY->CREATE
       EXPORTING
         IV_NODE            = ZIF_BO_TEST_PO_C=>sc_node-ROOT
         IV_KEY             = LR_DATA->KEY
         IS_DATA            = LR_DATA
         IV_ROOT_KEY        = IS_CTX-ROOT_NODE_KEY
       IMPORTING
         EV_KEY             = LV_KEY .
    CREATE DATA LR_SEARCH_RES.
    LR_SEARCH_RES->KEY           = LO_CI_SERVICE_MANAGER->GET_NEW_KEY( )..
    LR_SEARCH_RES->PARENT_KEY    = LV_KEY.
    LR_SEARCH_RES->ROOT_KEY    = LV_KEY.
    LR_SEARCH_RES->MATNR    = '123'.
    LR_SEARCH_RES->ERSDA    = SY-DATUM.
    LR_SEARCH_RES->ERNAM    = SY-UNAME.
    **LR_SEARCH_RES->LAEDA    = .
    **LR_SEARCH_RES->AENAM    = .
    **LR_SEARCH_RES->VPSTA    = .
    *LR_SEARCH_RES->LVORM    = .
    LR_SEARCH_RES->MTART    = 'ZPI'.
    LR_SEARCH_RES->MBRSH    = 'ZTP' .
    LR_SEARCH_RES->MATKL    = 'MAT'.
    **LR_SEARCH_RES->BISMT    = ''
    **LR_SEARCH_RES->MEINS    =
    CALL METHOD io_modify->create
               EXPORTING
                 iv_node            = ZIF_BO_TEST_PO_C=>sc_node-MNR_SEARCH_RESULT
                 is_data            = LR_SEARCH_RES
                 iv_assoc_key       = ZIF_BO_TEST_PO_C=>sc_association-root-MNR_SEARCH_RESULT
                 iv_source_node_key = ZIF_BO_TEST_PO_C=>sc_node-root
                 iv_source_key      = LV_KEY
                 iv_root_key        = LV_KEY.
    I am Unable to set data to the Node . I did not get any error message or Dump while executing . when i tried to retrive data I got the details from the node but am unable to view those details in the FBI UI and BOBT UI while testing .
    Please provide your valuable Suggestions.
    Thanks in Adv.
    Thanks ,
    Kranthi Kumar M.

    Hi Kranthi,
    For your requirement you need only two nodes. Root Node and Result node. Use the same structure for both.
    To create Instance while search.
    Create Query method with input type which has the required fields for selection criteria.
    Fetch the data and create instance in the root node.
    Pass the new instance key as exporting parameter form Query Method.
    To Move data from ROOT to Result.
    Create a action at root node.
    Write a code to create new entries in Result node.
    Then configure the Search UIBB and display result in List UIBB. Add button and assign the action MOVE_MAT_2_RESULT.
    Create another List uibb to display data from Result node.
    Connect the UIBBs using wire schema. SEARCH -> LIST(ROOT) ---> LIST(RESULT).
    Give src node association for ROOT to RESULT Configuration.
    Regards,
    Sunil

  • Error creating instances in Business Process Workspace

    i have the following error:
    oracle.bpm.web.exception.WapiOperationException: Error creating instance for target process Serv_M/Proj_V!76.0*/EV.
    Caused by: BPM-70204
    Exception
    exception.70204.type: error
    exception.70204.severity: 2
    exception.70204.name: Error creating process instance.
    exception.70204.description: Error creating instance for target process Serv_M/Proj_V!76.0*/EV.
    exception.70204.fix: Verify server log to find the problem cause.
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at oracle.bpm.services.instancemanagement.ejb.InstanceManagementServiceBean_sqa2w0_IInstanceManagementServiceRemoteImpl_1036_WLStub.createProcessInstanceTask(Unknown Source)
    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:597)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    at $Proxy413.createProcessInstanceTask(Unknown Source)
    at oracle.bpm.papi.ora.util.ApplicationExecution11G.beginExecution(ApplicationExecution11G.java:50)
    ... 101 more
    Caused by: ORABPEL-02023
    Cannot activate block.
    failure to activate the block "EV" for the instance "30037"; exception reported is: .
    This error contained the exceptions thrown by the underlying routing system.
    Contact Oracle Support Services. Provide the error message, the composite source and the exception trace in the log files (with logging level set to debug mode).
    Help me please!
    Regards

    Hi Chris
    If you are trying to create a LOV and use that as a parameter, then you need to create LOV as Dynamic Cascading values. Once created then you can use that LOV in the Crystal Reports.    
    This is the best way to get dynamic cascading prompts in Crystal reports.
    Please refer to Business View Admin guide for more information.
    Hope this helps!!
    Regards
    Sourashree

  • Error Installing OFM 11.1.1.1 Creating Instance AS

    HI.
    I have a problem installing OFM11g 11.1.1.1 in Windows XP 32 bits.
    The problem is that in the step 12 of 13, when is "Creating instance AS", the installation crash.
    In the log file, the error is:
    opmnctl start: opmn failed to start.
    "C:\Oracle\Middleware\as_1\opmn\bin\opmn.exe" -M: unexpected exit: code 0
    java.lang.Exception: oracle.as.provisioning.exception.ASProvisioningException
         at oracle.as.install.classic.ca.standard.InstanceProvisioningTask.doExecute(InstanceProvisioningTask.java:218)
         at oracle.as.install.classic.ca.standard.StandaloneTool.execute(StandaloneTool.java:50)
         at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
         at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:126)
         at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
         at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
         at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
         at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
         at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
         at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:82)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.as.provisioning.exception.ASProvisioningException
         at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:876)
         at oracle.as.install.classic.ca.standard.InstanceProvisioningTask.doExecute(InstanceProvisioningTask.java:214)
         ... 12 more
    Caused by: oracle.as.provisioning.engine.CfgWorkflowException
         at oracle.as.provisioning.engine.Engine.processEventResponse(Engine.java:596)
         at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstance(ASInstanceProv.java:175)
         at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstanceAndComponents(ASInstanceProv.java:114)
         at oracle.as.provisioning.engine.WorkFlowExecutor._createASInstancesAndComponents(WorkFlowExecutor.java:521)
         at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:437)
         at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:870)
         ... 13 more
    Caused by: oracle.as.provisioning.util.ConfigException:
    Error al crear la instancia de AS asinst_1.
    Cause:
    Fallo en la operación interna: Error in starting opmn server
    Operation aborted because of a system call failure or internal error
    Action:
    Consulte los logs para obtener más información.
         at oracle.as.provisioning.util.ConfigException.createConfigException(ConfigException.java:123)
         at oracle.as.provisioning.fmwadmin.ASInstanceProv._createInstance(ASInstanceProv.java:306)
         at oracle.as.provisioning.fmwadmin.ASInstanceProv.createInstance(ASInstanceProv.java:163)
         ... 17 more
    Caused by: oracle.as.management.opmn.optic.OpticException: Error in starting opmn server
    Operation aborted because of a system call failure or internal error
         at oracle.as.management.opmn.optic.OpmnAdmin.executeCommand(OpmnAdmin.java:255)
         at oracle.as.management.opmn.optic.OpmnAdmin.startOpmnServer(OpmnAdmin.java:87)
         at oracle.as.provisioning.fmwadmin.ASInstanceProv._createInstance(ASInstanceProv.java:251)
         ... 18 more
    progress in calculate progress4
    I don´t any idea what is the problem.
    Thanks.

    Hi Adama,
    you can check the install log first (under Program Files\Oracle\Inventory\Logs) ,If log file appears "PermGen space" error ,then you try to change MEM_ARGS to -Xms512m unger \MidXXX\wlserver_10.3\common\bin\CommEnv.cmd
    Good Luck
    Allen

  • Using Class and Constructor to create instances on the fly

    hi,
    i want to be able to create instances of classes as specified by the user of my application. i hold the class names as String objects in a LinkedList, check to see if the named class exists and then try and create an instance of it as follows.
    the problem im having is that the classes i want to create are held in a directory lower down the directory hierarchy than where the i called this code from.
    ie. the classes are held in "eccs/model/behaviours" but the VM looks for them in the eccs directory.
    i cannot move the desired classes to this folder for other reasons and if i try to give the Path name to Class.forName() it will not find them. instead i think it looks for a class called "eccs/model/behaviours/x" in the eccs dir and not navigate to the eccs/model/behaviours dir for the class x.
    any ideas please? heres my code for ye to look at in case im not making any sense:)
    //iterator is the Iterator of the LinkedList that holds all the names of the
    //classes we want to create.
    //while there is another element in the list.
    while(iterator.hasNext())
    //get the name of the class to create from the list.
    String className = (String) iterator.next();
    //check to see if the file exists.
    if(!doesFileExist(className))
    System.out.println("File cannot be found!");
    //breake the loop and move onto the next element in the list.
    continue;
    //create an empty class.
    Class dynamicClass = Class.forName(className);
    //get the default constructor of the class.
    Constructor constructor = dynamicClass.getConstructor(new Class[] {});
    //create an instance of the desired class.
    Behaviour beh = (Behaviour) constructor.newInstance(new Object[] {});
    private boolean doesFileExist(String fileName)
    //append .class to the file name.
    fileName += ".class";
    //get the file.
    File file = new File(fileName);
    //check if it exists.
    if(file.exists())
    return true;
    else
    return false;
    }

    ok ive changed it now to "eccs.model.behaviours" and it seems to work:) many thanks!!!
    by the following you mean that instead of using the method "doesFileExist(fileName)" i just catch the exception and throw it to something like the System.out.println() ?
    Why don't you simply try to call Class.forName() and catch the exception if it doesn't exist? Because as soon as you package up your class files in a jar file (which you should) your approach won't work at all.i dont think il be creating a JAR file as i want the user to be able to create his/her own classes and add them to the directory to be used in the application. is this the correct way to do this??
    again many thanks for ye're help:)

  • Why cannot create instance to an abstract class?

    Dear Developers....
    abstract class can create be its own constructor but why they didn't create object

    We cann't create an object for abstract class
    because they have abstract methods which depends on
    its subclass for its implementation. if it is
    possible to create the object for abstract class
    means then you can call a method which has no
    implementation(abstract methods) which is a illegal
    one thats what the ruleWhat about classes with no abstract members?
    public abstract class A {}No danger of accessing anything illegal here.
    The rule is far more simple. By declaring a class as abstract, the creator defines that no instances of this class may exist. Period. If you could create instances, the class wouldn't be abstract anymore, per definition. It's like asking why a green light doesn't shine red. If it would, it wouldn't be green anymore.

  • Can anyone explain how to create lov programatically?

    Hi to all,
    Can anyone explain to me how to create lov programatically?.
    Actually i created a region and items usig code and i want to know how to create lov and mapping also.
    Suppose anyone knows plz let me know. its urgent one.
    Thanks in Advance.
    by
    senthur

    Hi,
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean); OAMessageLovInputBean lovInput =
    (OAMessageLovInputBean)createWebBean(pageContext, LOV_TEXT, null,"inputTest");
    webBean.addIndexedChild(lovInput);
    // Specify the path to the base page.
    lovInput.setAttributeValue(REGION_CODE, "/oracle/apps/dem/webui/Basic");
    // Specify the application id of the base page.
    lovInput.setAttributeValue(REGION_APPLICATION_ID, new Integer(20001));
    // Specify the LOV region definition.
    lovInput.setLovRegion("/oracle/apps/fnd/framework/toolbox/tutorial/webui/EmployeesLovRN", 0);
    // Validation should be enabled for LOVs unless it's essential for the field to allow a partial value (in a "Search" region, for example).
    lovInput.setUnvalidated(false);
    // Configure the LOV mappings.
    // Note that you must call this method after you add the messageLovInput item
    // to the web bean hierarchy.
    lovInput.addLovRelations(pageContext, "inputTest", // base page item
    "Empname", // lov item
    LOV_RESULT, // direction
    LOV_REQUIRED_NO);
    lovInput.addLovRelations(pageContext, "inputTest", // base page item
    "Empname", // lov item
    LOV_CRITERIA, // direction
    LOV_REQUIRED_NO);
    Read more in Dev Guide. Chapter List of Values & Search forums.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Creating iViews Programatically

    Hi all,
    I have got a requirement to create iviews programatically.
    The detailed requirement is :
    Intially an excel file which is placed in clients pc will have all the information related to the kind of iViews required, like the name, properties, PCD , of which type etc., Now from portal we need to have the facility to access this excel file and read the information mentioned and create appropriate iViews.
    If anyone has already implemented such a kind of requirement or has got any bit of idea on the same can pls share.
    Thanks In Advance,
    Vipin.

    Hi Vipin,
    You could instead create an excel sheet with macros which use the data in the excel sheet to create an XML file and then upload that file into the portal to create PCD Content.
    Refer to this document, it talks about "How to Automate Content Creation via XML (XML Content and Actions) (NW 7.0)"
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207a2141-c870-2910-e080-90c920b24f47
    Thanks,
    GLM

  • Creating instances of Document subclass

    I have two new classed, one extends Document (call it CustomDoc) and the other extends Folder (call it CustomFolder).
    Is there any way to use the iFS webui to create these instead of the standard Document and Folder objects?

    Do you want all iFS Files to be stored as an instance of Custom-Doc, or only certain kinds of file. In order to redirect a particular kind of file (identified by it's file extension) to a custom content type you can use the ClassSelectionParser.
    See attached an example that maps BMP, JPG and TIF to the SimpleImage type.
    <?xml version="1.0" standalone="yes"?>
    <OBJECTLIST>
    <PROPERTYBUNDLE>
    <UPDATE RefType="valuedefault">ParserLookupByFileExtension</UPDATE>
    <PROPERTIES>
    <PROPERTY ACTION="add">
    <NAME>tif</NAME>
    <VALUE DataType="String">oracle.ifs.beans.parsers.ClassSelectionParser</VALUE>
    </PROPERTY>
    <PROPERTY ACTION="add">
    <NAME>bmp</NAME>
    <VALUE DataType="String">oracle.ifs.beans.parsers.ClassSelectionParser</VALUE>
    </PROPERTY>
    <PROPERTY ACTION="add">
    <NAME>jpg</NAME>
    <VALUE DataType="String">oracle.ifs.beans.parsers.ClassSelectionParser</VALUE>
    </PROPERTY>
    </PROPERTIES>
    </PROPERTYBUNDLE>
    <PROPERTYBUNDLE>
    <UPDATE RefType="valuedefault">IFS.PARSER.ObjectTypeLookupByFileExtension</UPDATE>
    <PROPERTIES>
    <PROPERTY ACTION="add">
    <NAME>tif</NAME>
    <VALUE DataType="String">SimpleImage</VALUE>
    </PROPERTY>
    <PROPERTY ACTION="add">
    <NAME>jpg</NAME>
    <VALUE DataType="String">SimpleImage</VALUE>
    </PROPERTY>
    <PROPERTY ACTION="add">
    <NAME>bmp</NAME>
    <VALUE DataType="String">SimpleImage</VALUE>
    </PROPERTY>
    </PROPERTIES>
    </PROPERTYBUNDLE>
    </OBJECTLIST>
    I do not know of any way to create instances of custom folders except via XML, or the API,
    Here is an example of how to create an an instance of a custom folder using an XML file
    <PressReleaseFolder>
    <NAME>Oracle8i Press Release</NAME>
    <FOLDERPATH>/PublishedPressReleases</FOLDERPATH>
    <ACL reftype="name" classname="SystemAccessControlList">LockedContent</ACL>
    </PressReleaseFolder>
    null

  • Using PAPI to create instance on Enterpise

    Hi.
    I have deployed my process on Enterprise edition with weblogic and oracle.
    I need to know all the libraries required for writing PAPI program to create instance.
    Also anything i should take care of while writing the java program to create instance using PAPI.
    Like. do i need to have weblogic.jar in the classpath. or any other jars.
    Regards
    Right Chord

    Thanks,
    Maybe I didn't explain exactly what I was expecting with the standby database, these steps are what I did, to resolve the issue
    ENABLE THE STANDBY DATABASE TO STARTUP FROM SPFILE
    Step 1: create a newly spfile from the current pfile
    SQL> CREATE SPFILE='C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\SPFILEORCL.ORA' FROM PFILE='C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\INITORCL.ORA';
    Step 2: Rename the INITORCL.ORA TO SAVE_DATE_INITORCL.ORA
    Example: the C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\INITORCL.ORA became
    C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\SAVE_24072007_INITORCL.ORA
    Step 3: delete the former sid created
    C:\ORADIM -delete -sid orcl
    Instance deleted.
    Step 3: Change the Oracle service to start when the OS start
    C:\ ORADIM -new -sid ORCL -SRVC OracleServiceORCL -STARTMODE auto -SRVCSTART system -SPFILE
    Instance created.
    Now When I shutdown the whole system and start it up, the standby database startup. the only thing is that the standby database startup a read-only mode, defautl with oracle 10g this is fine for me, because the MRP is stopped but the log shipping is not stopped.
    So eventhough the system admin shutdown the database server at OS level without letting me know, tha standby should continue receiving archived log files.
    I'll just need to monitore the lop apply process and start it to apply archived log files received
    Thanks

  • Creating instances in Java Papi

    Hi all,
    Actually,I am a newbie to aqualogic bpm.I have written a papi code in java to get process instances directly from studio workspace.Now, I want to crate process instances in java papi code itself and then getting those instances.I don't know how to do that.Can anybody help please?

    Hi Dan,
    That's pretty good but it is exposing all methods and that's a WSDL file.. Here is some PAPI-WS code that somebody on some other thread put up.. But it does not work properly.. Do you know what files to import to the JAVA project to make it to work?
    import java.net.MalformedURLException;
    import java.rmi.RemoteException;
    import javax.xml.rpc.ServiceException;
    import com.bea.albpm.PapiWebService.OperationException;
    public class CreateInstances {
    public static void main(String[] args) throws MalformedURLException, ServiceException, OperationException, RemoteException {
    java.net.URL url = null;
    org.apache.axis.EngineConfiguration config = null;
    com.bea.albpm.PapiWebService.PapiWebServicePortBindingStub binding = null;
    com.bea.albpm.PapiWebService.InstanceInfoBean value = null;
    //String processId = "/Proceso1";
    //String processId = "/ActividadesExternas";
    String processId = "/PAPIWS";
    String argumentsSetName = "BeginIn";
    //Binding
    //url = new java.net.URL("http", "localhost", 8686, "/papiws/PapiWebServiceEndpoint");
    url = new java.net.URL("http", "localhost", 8585, "/papiws/PapiWebServiceEndpoint");
    config = new org.apache.axis.configuration.FileProvider("client_deploy.wsdd");
    binding = (com.bea.albpm.PapiWebService.PapiWebServicePortBindingStub) new com.bea.albpm.PapiWebService.PapiWebService_ServiceLocator(config).getPapiWebServicePort(url);
    binding.setTimeout(60000);
    //Arguments
    com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry argumentsBeanArgumentsEntry[] = new com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry[1];
    argumentsBeanArgumentsEntry[0] = new com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry();
    argumentsBeanArgumentsEntry[0].setKey("entradaArg");
    argumentsBeanArgumentsEntry[0].setValue("Instancia creada de forma externa mediante PAPI-WS 2.0");
    com.bea.albpm.PapiWebService.ArgumentsBean argumentsBean = new com.bea.albpm.PapiWebService.ArgumentsBean(argumentsBeanArgumentsEntry);
    com.bea.albpm.PapiWebService.holders.ArgumentsBeanHolder argumentsBeanHolder = new com.bea.albpm.PapiWebService.holders.ArgumentsBeanHolder(argumentsBean);
    //Create instance
    value = binding.processCreateInstance(processId, argumentsSetName, argumentsBeanHolder);
    System.out.println("Created instance -> InstanceInfo.id = " + value.getId());
    Edited by: user8752903 on Oct 28, 2009 8:49 AM

  • TimeOutException - unable to create instance - after installing patch set.

    Hi,
    We have Oracle 9iAS 9.0.2 (Release 2) running on Windows 2000 Server.
    We are running EJB's on the server, these include Entity and Session Beans.
    Last week on 13-March 2003 (Thrusday) we installed a PatchSet downloaded from "metalink.oracle.com".
    NAME: PatchSet 1 for Windows NT
    After installation we faced the following problem :
    1. Initial (first time) when an Entity Bean is called for a specific Primary Key, we are able to get the instance of the Bean.
    2. However for subsequent request to the same Bean, it is unable to create or find an instance for the Bean, throwing the following error :
    "TimeOutException" - "unable to create instance"
    3. Though Step 1 and Step 2 are repeated on restarting OC4J_HOME.
    We then uninstalled the Oracle 9iAS and reinstalled it without the PatchSet. On doing so, the above error did not occur.

    Badrul,
    Try setting max-instances=0 for your EJB in the orion-ejb-jar.xml.
    regards
    Debu

  • OBIEE 11.1.1.7 is Failing at creating instance step on libclntsh.so

    This is OBIEE 11.1.1.7 installtion on AIX6.1...initial reesponse with Oracle is cheikg xlC and Java versions...and I updated to correct versions as per their notes...
    H4A12[obia] /obia_apps > lslpp -l xlC*
    Fileset Level State Description
    Path: /usr/lib/objrepos
    xlC.aix61.rte 11.1.0.4 COMMITTED XL C/C++ Runtime for AIX 6.1
    xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
    xlC.rte 11.1.0.4 COMMITTED XL C/C++ Runtime
    xlC.sup.aix50.rte 9.0.0.1 COMMITTED XL C/C++ Runtime for AIX 5.2
    H4A12[obia] /obia_apps > java -version
    java version "1.7.0"
    Java(TM) SE Runtime Environment (build pap6470sr4fp1-20130325_01(SR4 FP1))
    IBM J9 VM (build 2.6, JRE 1.7.0 AIX ppc64-64 Compressed References 20130306_140761 (JIT enabled, AOT enabled)
    J9VM - R26_Java726_SR4_FP1_20130306_1011_B140761
    JIT - r11.b03_20130131_32403ifx1
    GC - R26_Java726_SR4_FP1_20130306_1011_B140761_CMPRSS
    J9CL - 20130306_140761)
    JCL - 20130315_01 based on Oracle 7u13-b08
    H4A12[obia] /obia_apps >
    This is from logs:
    Could not load program sawserver:
    Could not load module /obia_apps/midware/Oracle_BI1/bifoundation/web/bin/libsaworacorefacade643r.so.
    Dependent module libclntsh.so could not be loaded.
    Could not load module libclntsh.so.
    System error: No such file or directory
    Could not load module sawserver.
    Dependent module /obia_apps/midware/Oracle_BI1/bifoundation/web/bin/libsaworacorefacade643r.so could not be loaded.
    Could not load module .
    During the install I did get error messages for libclntsh.so and libclntsh.a when doing the enterprise install...but I continue with it and and duirngthe configuration stage it failed at creating instance throwing the above error.
    Any suggestions f=greatly appreciated

    Hi RM
    but $ORACLE_HOME is set by OBIEE11.1.1.7 installation right??...you can see in the $LIBPATH you will see Oracle clint libs
    this is my env...
    H4A12[obia] /obia_apps/oraInventory/logs > set
    AIXTHREAD_COND_DEBUG=OFF
    AIXTHREAD_GUARDPAGES=4
    AIXTHREAD_MNRATIO=1:1
    AIXTHREAD_MUTEX_DEBUG=OFF
    AIXTHREAD_RWLOCK_DEBUG=OFF
    AIXTHREAD_SCOPE=S
    AUTHSTATE=compat
    DISPLAY=10.50.6.157:0
    DISPLAYNAME=H4A12
    EDITOR=/usr/bin/vi
    ERRNO=0
    ESPAGENTDIR=/share2/esp_agent/bin
    FCEDIT=/usr/bin/ed
    HISTCONTROL=ignoredups
    HISTFILE=/home/obiagrp/obia/.sh_hist-ggolkond
    HISTFILESIZE=2000
    HISTSIZE=2000
    HOME=/home/obiagrp/obia
    HOSTNAME=H4A12
    IFS='
    INFA_DOMAINS_FILE=/obia_apps/Informatica/9.0.1/domains.infa
    INFA_HOME=/obia_apps/Informatica/9.0.1
    JAVA_HOME=/usr/java7_64/jre/bin
    LANG=C
    LC_ALL=C
    LC__FASTMSG=true
    LIBPATH=/oracle/app/oracle/product/11.1.jan10/lib:/usr/java7_64/jre/bin:/usr/java7_64/jre/bin/classic:/usr/lib:/lib
    LINENO=1
    LOCPATH=/usr/lib/nls/loc
    LOGFILE=/dev/null
    LOGIN=obia
    LOGNAME=obia
    MAIL=/usr/spool/mail/obia
    MAILCHECK=600
    MAILMSG='[YOU HAVE NEW MAIL]'
    MANPATH='${MANPATH}:/opt/ibm/director/man'
    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
    NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15
    ODMDIR=/etc/objrepos
    OLDPWD=/obia_apps/oraInventory
    OPTIND=1
    PATH=/usr/java7_64/jre/bin:/usr/java7_64/jre/bin/bin::/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/obiagrp/obia/bin:/usr/bin/X11:/usr/java7_64/bin:/usr/java7_64/jre/bin:/usr/local/bin/xlc:/sbin:.:/usr/local/bin
    PPID=12517554
    PS1='$HOSTNAME[$LOGNAME] $PWD > '
    PS2='> '
    PS3='#? '
    PS4='+ '
    PWD=/obia_apps/oraInventory/logs
    RANDOM=7478
    SAVEHIST=2000
    SECONDS=11916
    SHELL=/usr/bin/ksh
    TERM=xterm
    TERM_DEFAULT=lft
    TMOUT=3600
    TMP=/obia_apps/tmp
    TMPDIR=/obia_apps/tmp
    TZ=EST5EDT
    USER=obia
    _=oraInstall2013-04-25_08-24-30AM.out
    Thanks

  • Creating instances using a string identifier

    Is there a way to create an instance of a class given it's
    class name as a string( for example). I know I could do it simply
    by using conditional logic, but I'd like this to be extensible and
    don't want to have to keep adding conditions as the system grows.
    In other languages I've used, this is possible in many ways
    and was wondering if there is a way to do this in AS 3.0
    Thanks.

    Thanks for the heads up Ed!
    One way to be ableto get around your issue (not that this
    exists in AS 3.0) is to be able to "register" a class so the
    compiler/linker can link it into the swf and you get compile time
    checking.
    This is the way Delphi allows for this. The C# complier is
    kind of in between in that you are still liable to get a runtime
    error in the case that you creat an instance of a class using (say)
    Activator.CreateInstance() which is the equivalent.
    One way to get around this in AS 3.0 (I think) would be to
    simply declare a variables of the types you intend to create
    instances of dynamically. This should force the linker to link in
    the class definition.
    Of course in both C# and Delphi you can create instances of
    classes unknown to you at complie time. From the looks of it, AS
    3.0 can't do this.

Maybe you are looking for

  • TS1424 Game and developer wrong on email invoice

    I recently purchased an app upgrade and also downloaded a few free apps on the same day.  I got the billing email and it was for the right amount but the game was wrong.  It said I had been billed for one of the free games which had a different devel

  • Help : input level too low in Logic from studioKonnekt 48

    I tried to record and use some voice microphone and some guitars (telecatser, some preamplified acoustic flattop, some archtops with humbucker or P90...)with Logic and SK 48 TC near. If the voice setting with the gain trim at 12 were OK or even tooo

  • How to add the task bar containing some icons in to CM01 program

    hi there Gurus, i checked the program CM01, and found that all are include programs. now i would like to add some icons insides, such as sort, sum up etc. how could i do that?  please some one guide me. thanks

  • Photoshop CC no longer recognizes my Epson 1400 after update.

    I installed the most recent creative cloud update and now I whenever I try to print from Photoshop with my Epson Stylus Photo 1400 I get this message:"There was an error opening your printer. Printing functions will not be available until you have se

  • Password unknown

    HI, I just bought a macbook air. While setting it up, I should have done something wrong. As a consequence, I have a macbook air with an unknown password. How can I reset it even if it erase all datas ? Thanks for your support. JEFF