Launch Configuration using CIO object

Hi,
I am trying to launch Configuration using CIO object.
plz find the code below, that am using.
===========START CODE==================
Context context = new CZWebAppsContext("hostName","portNumber","dbcFileName");
System.out.println("------------- Context object created ----------");
ConfigParameters cp = new ConfigParameters(79160);
System.out.println("------------- ConfigParameters object created ----------");
CIO cioObject = new CIO();
System.out.println("------------- CIO object created ----------");
Configuration config = cioObject.startConfiguration(cp,context);
System.out.println("------------- Configuration object created ----------");
IUserInterface ui = config.getUserInterface();
System.out.println("------------- UI object created ----------");
ui.navigateToScreen("Page-1");
System.out.println("------------- Page navigation ----------");
=============END CODE==================
am getting the following error after CIO object is created, while trying to start the configuration, at cioObject.startConfiguration(cp,context). The hostName, portNumber and dbcFileName are correctly provided.
============START LOG ====================
------------- Context object created ----------
------------- ConfigParameters object created ----------
------------- CIO object created ----------
java.lang.RuntimeException: Null JDBC Connection returned from connection pool.
Contents of CZWebAppsContext error stack: AOLJ_JAVA_EXCEPTION (MESSAGE=Not able to create new database connection. Cause:java.sql.SQLException: Io exception: The Network Adapter could not establish the connection)
SECURITY-No gateway reconnect
SYSTEM-ERROR (MESSAGE=Io exception: The Network Adapter could not establish the connection)
     at oracle.apps.cz.common.CZWebAppsContext.getJDBCConnection(CZWebAppsContext.java:116)
     at oracle.apps.cz.dio.DbTransaction.<init>(DbTransaction.java:61)
==============END LOG=======================
plz help me in finding the solution.
Regards,
Adarsh

Adarsh,
Looks like the parameters passed in the constructor call are not valid ones and hence the database connection is not getting done.
Context context = new CZWebAppsContext("hostName","portNumber","dbcFileName");
Check the above call carefully and its parameters. I guess the dbcFileName might be the reason as other 2 entries are pretty easy to know.
--Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Start Configuration Using CIO

    Hi,
    I am using CIO object to start a Configuration from OA Framework. below is the code followed by the error am encountering.
    ======= Start Code =========
    Context context = new CZWebAppsContext("HostName","Port","vis");
    System.out.println("------------- Context object created ----------");
    ConfigParameters cp = new ConfigParameters(79160); // 79160 is Model ID.
    System.out.println("------------- ConfigParameters object created ----------");
    CIO cioObject = new CIO();
    System.out.println("------------- CIO object created ----------");
    Calendar modelLookupDate = Calendar.getInstance(); // current date and time
    cp.setModelLookupDate(modelLookupDate);
    System.out.println("-------------Start CZ Libraries ----------");
    cioObject.checkForCZLibraries();
    System.out.println("------------- CZ Libraries ----------");
    Configuration config = cioObject.startConfiguration(cp,context);
    System.out.println("------------- Configuration object created ----------");
    ========= End Code ==========
    ====== Error Log =========
    oracle.apps.fnd.framework.OAException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.UnsatisfiedLinkError, msg=no czlce in java.library.path
    at oracle.apps.fnd.framework.OAException.wrapperException OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:864)
         at OAErrorPage.jspService(OAErrorPage.jsp:35)
    ======== Error Log =======
    Could any one plz help me in finding the solution?
    Regards,
    Adarsh

    Thanks Mukul. I got the session id.
    Could you help me with my next step.
    I need to launch the configurator UI to create new configurations and pass back the headerid and rev number to the current page.
    I am confused here and need some guidance.
    Should I follow Oracle® Configurator,Extensions and Interface Object Developer’s Guide Release 11i -->Example 5–1 Creating a Configuration Object (MyConfigCreator.java)
    or should I refer to chapter 9 Session Initialization, and initialize the cz's UI servlet.
    Actually I hardcoded the values in the initialize xml and was able to launch the particular UI which I had hardcoded. I do not know how to retrieve ui_def_id for the particular model name I enter in the form.It needs to be dynamic , than hardcoded.
    Here is what I did:
    <form action=................/CZInitialize.jsp method="post" id="test1" name="test1">
    <input type="hidden" name="XMLmsg" value='<initialize>
    <param name="database_id">skm123_dbc</param>
    <param name="user">test</param>
    <param name="pwd">1234abc</param>
    <param name="calling_application_id">708</param>
    <param name="responsibility_id">24190</param>
    <param name="ui_def_id">186540</param>
    <param name="ui_type">JRAD</param>
    Please Help.
    Thanks

  • Captivate 8 Continually Crashes: When trying to publish, When trying to use the Object Style Manager. Also it is blocked by Windows Firewall (adobecaptivatews) every time it launches. Working with Captivate App Packager the pane to import from Adobe Edge

    Captivate 8 Continually Crashes: When trying to publish, When trying to use the Object Style Manager. Also it is blocked by Windows Firewall (adobecaptivatews) every time it launches. Working with Captivate App Packager the pane to import from Adobe Edge is missing, so not clear how to import. Overall it seems unstable. Am I doing something wrong? Trying to evaluate before buying so working on a trial version (14 days left), but a bit concerned with Captivate 8 Performance. Please help! :-

    Hi Vikram and Lilybiri,
    Thanks for your responses :-)
    I'm working on Windows 8.1... I think that I may have found the issue... I was saving the file in a project directory rather than the default My Captivate Projects folder...
    Perhaps Captivate was struggling to find resources it needed?
    It hasn't crashed for a while now, though it is struggling - I'm working with a 54 slide PPT presentation that is linked and it takes a very long time to interact.
    Sometimes it says that I've removed slides, which I haven't?
    Best,
    Christy.

  • Launch orcale cz configurator using form personalization

    Hi All,
    We are trying to launch oracle cz configurator using form personalization ,can anyone tell me what are the paremters to be passed to the configuartor ,currently we are passing parameter from launch a function for a model as :
    ='database_id='||'dvoa083'||'&icx_seesion_ticket='||'F06E20B60E01E1F5DAC03223D56B3230'||'&ui_type='||'JRAD'||'&ui_def_id='||39980
    but the page is giving null pointer exception:-
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.cz.runtime.oa.server.CZApplicationModuleImpl.setPageController(CZApplicationModuleImpl.java:785)
         at oracle.apps.cz.runtime.oa.webui.AbstractMainPageController.processRequest(AbstractMainPageController.java:261)
         at oracle.apps.cz.runtime.oa.webui.MainPageController.processRequest(MainPageController.java:64)
    Regards,
    deb

    Can you post complete init message sent to the CZ Servlet URL? Can you try it in standalone mode? Can you try after clearing cache/cookies?

  • How to use a object(in MXML - in FLEX 4) in multiple way.

    This is my object in MXML:
    <mx1:Canvas id="menuElement" visible="true" rotationY="-15">
         <mx1:Canvas mask="{imageMask}">
              <mx1:Image id="menuImage" visible="true"/>
              <s:BorderContainer id="menuBackground" width="70" visible="true"  borderVisible="false">
                    <s:Label id="menuDescription" fontSize="30" fontWeight="bold" rotation="-90" />
                        <s:backgroundFill>
                             <s:LinearGradient rotation="90">
                                  <s:entries>
                                       <s:GradientEntry  id="backgroundColor" color="0x000010" alpha="0.6"/>
                                  </s:entries>
                             </s:LinearGradient>
                        </s:backgroundFill>
                   </s:BorderContainer>
              </mx1:Canvas>
         <mx1:Canvas id="imageMask" backgroundColor="#FF0000"/>
    </mx1:Canvas>
    I use this object (one time) with configuration in actionscript (positions, source of picture etc.) and I receive something like on a picture below:
    Now, I need to create 4 elements like below. I don't wan't to copy 4 times this block of program. Anybody have idea how can I make it and how can
    I recall of each element from actionscript?
    Regards

    if you run nw04s SP8, it's a limitation. you can create your own simple types and use them in your entities. but the custom data structures you create in the dictionary don't show in list of available structures when you want to create a new complex attribute

  • Re-using planning objects

    Hi SDN friends,
    I have an existing implementation configured.
    Now, there is a need to customise the loading for new companies.
    So, this means existing solution implemented already must not be changed.
    I think I will base on existing solution.
    Is it possible to create another set of bps customizing based on the existing solution and using the same planning objects? But existing customizing must not be changed or touched.
    for example, can i create another planning area using the same planning objects under existing planning area?
    Please advise me, thanks.
    Regards
    Sanjay

    Dear,
    if you want to create new one then solution given by Vlad Stulikov  is good.
    If you want to used existing objects only and only for reporting purpose, somewhere else, you can go for multiplanning are.
    hope this will help you.
    Regards
    Vinay

  • Attach doc from external content server- using Generic Object Service (GOS)

    Dear All,
    i have intergrated an external content server to SAP using SAP archive link. All the scanned document are there in Content server and corresponding entries are done in SAP.I can search and view document using tcode : OAAD
    Please tell me steps for "how to attach a document from external content server using Generic Object Service "
    Scenario is :  For example when we change any Master records or create a new PO, or do some financial transaction then i need to attach the supporting document which is there in my content server connected  to SAP.how do we manual attach a Document in SAP using GOS.
    Do we need to do some special configuration to use GOS .please give the steps from initial.
    Thanks
    sandeep

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • How to attach document using Generic Object Service

    Hi all,
    How can i create attachment to the parked invoice using Generic Object services? i want function modules which are used to do it.
    Actually I want to do this from the business object method. I am having word document as one of the workitem step. once i get this document I need to attach this document to the parked invoice so that users can see that document by view object list.
    Its urgent.
    thanks.

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • Can we control Work center group links using auth object UIU_COMP

    Hello All,
    We are running into an issue while doing our PFCG role configuration.
    I need to know if we can control Work center group links in a business role through auth object UIU_COMP.
    We can control Workcenter's but not 'Work Center Group Links'.
    Here is what we did:
    - We have a business role Z_RA_DEFAULT.
    - The Nav Bar Profile SRV-PRO for this business role has some work center group links that are checked in menu and visible.
    - I'm trying to find the values in the auth object UIU_COMP to restrict Work center group links.
    - Even though the values Work center group links are in menu and visible,
    I want to remove these Work center group links from the screen using the auth object.
    - If we remove the check from in menu and visible in the business role the Work center group links disapper from the screen.
    Right now this is only way we are able to controle Work center group links.
    Question:
    - Can I use UIU_COMP to restrict Work center group links?
    - any another auth object that controle Work center group links?
    - any document/ website / info  available which tells us what can we restrict with auth object UIU_COMP?
    - or any other way of doing this... like code change, user exit, ....?
    Really appreciate your help.
    Thanks,
    Nasir

    I am not sure if I have understood the issue correctly, but still what stops you from actually creating a clone business role to your existing business role and deactivating the in menu visible work center group links. Use this new business role for users who need to be prevented from viewing the work center groups links in question.
    If you are going to use authorization objects to control the visibility wont it impact all users (still defeating your original purpose?)
    Again apologies in case I have got the question wrong.

  • How can I launch configurator from host application in a specefic language.

    Hi,
    I want to access R12 configurator from a host application and I have no problems accessing it.
    But I want that the configurator should Launch in Japanese Language. Can I specify any XML parameter to the UIServlet to achieve this or is there any other Method?
    Thanks

    Per the "Deploying a User Interface that Supports MLS" section in Chapter 14 ("Multiple Language Support") of the Oracle Configurator Implementation Guide:
    "When a host application launches Oracle Configurator to configure an item, the language specified in the database ICX session ticket is passed to Oracle Configurator.  Oracle Configurator uses this information to determine which translated text to retrieve from the database and display in the UI."
    So essentially, Configurator will display the same language that the hosting application is displaying, the language the user has logged into EBS with.  (Of course, translated text will only appear in Configurator if you have supplied translations in the CZ_LOCALIZED_TEXTS table.)  If you need Configurator to display a different language than its hosting application, that would require a customization of the initialization string the hosting application sends to Configurator, specifying a different icx_session_ticket parameter value.
    Hope this helps.
    Eogan

  • Function module to get the configuration of Individual objects

    Hi all,
    Is there is any std function module to get the data of individual object configuration.
    In table COM_TA_R3_ID, I can able to get the PRODUCT_GUID (for material and serial number) and I dont know how to get the configuration of the product by using the PRODUCT_GUID.
    Pl  through some light on this.
    Regards
    A.Sureshbabu.

    Hi,
    You can get the item configuration using FM CRM_CONFIG_READ_OW.
    This is used to read the product configurations for IPC calls.
    Just pass the configured item guid and it will return the configuration data.
    Use FM CRM_PRODUCT_I_READ_OW to get the product configurations but this FM checks whether any item has this product guid.
    Regards,
    Arun Kumar
    Edited by: Arun Kumar on May 12, 2010 10:20 AM

  • Issue in using BAPI object in LSMW.

    Hi Friends,
    we are using BUS1506 business object(BAPI) to change settlement data(RESCSU) in LSMW.
    We have done the ALE configuration for this object, which is needed to create Inbound idoc.
    Here we are getting the error message as "Create a partner profile for message
    'BUS1506_CHANGE'
    Infact we have created the partner profile for "BUS1506_CHANGE" , But still this error is coming.
    Please lemme know if anybody has got experience in such scenarios.
    Regards.
    Santosh.
    00-45-50108553.

    Hi, I don't clear when the error message occur, but as I know in the BAPI-LSMW mode, the LSMW can only handle the IDOC send to local, not partner server.
    As the IDOC port of LSMW is a file port, so all the IDOC only can send to local.

  • Manage MSMQ is missing from Failover Cluster Manager when configured using powershell

    Hi,
    I am hoping someone would be able to help me as I have looked on the internet for an answer to this. We deploy a number of servers that are configured using Powershell. I am in the process of creating a clustered WIN2K8R2 cluster with MSMQ. I am able to
    do this successfully through the Failover Mgr with no issues.  In addition, I can do this via Powershell (code listed below) with one caveat.
    However, when I create the same exact MSMQ in Powershell, I am unable to right click on the MSMQ service to manage it as the "Manage MSMQ" is missing when I right click on it. The settings are the same, including dependencies. The only difference
    I have been able to find is the icon in the Failover Manager shows the Service as a Generic Service icon when created in Powershell, but when it is created in the GUI it shows up as the MSMQ icon. I was able to verify this in the registry in HKLM\Cluster\Groups\<GUID>\:
    GroupType HEX: 68 for msmq icon. When it is the Generic Service icon it is HEX: 270f. When I change it from 270f to 68, the icon changes in Failover Manager and I am able to open, but then I get an invalid handle and I am unable to manage it.
    This is causing an issue, because I want to automate this build and hand it over, but they would be unable to manage it except by programming which the operators are not ready for.
    Here is the code which I have created in Powershell:
        Write-host "Configuring MS MSMQ Cluster Failover..."
        $CluName = "Cluster Name"
        $ClsMSMQName = $CluName.Name + "MSMQ"
        $ClsMSMQResourceName = "MSMQ-" + $ClsMSMQName
        $Response = Read-host "Enter the IP Address of the Clustered MSMQ"
        $ClsIpRes = get-clusterresource "Cluster IP Address"
        $MSMQIpAddr = New-Object Microsoft.FailoverClusters.PowerShell.ClusterParameter $ipres,Address,$Response
        Add-ClusterServerRole -Name $ClsMSMQName -Storage "Cluster Disk" -StaticAddress $MSMQIpAddr.value
        # Add the MSMSMQ Service to the new Server Role
        Get-ClusterGroup $ClsMSMQName | Add-ClusterResource -Name $ClsMSMQResourceName -ResourceType "MSMQ"
        # Create Dependencies for the MSMQ group
        Add-ClusterResourceDependency $ClsMSMQResourceName $ClsMSMQName
        Add-ClusterResourceDependency $ClsMSMQResourceName "Cluster Disk"
        # Start MSMQ group
        Start-ClusterGroup $ClsMSMQName
    You would just have to change "Cluster Disk" and "Cluster Name".
    Thank you

    Hi,
    I am hoping someone would be able to help me as I have looked on the internet for an answer to this. We deploy a number of servers that are configured using Powershell. I am in the process of creating a clustered WIN2K8R2 cluster with MSMQ. I am able to
    do this successfully through the Failover Mgr with no issues.  In addition, I can do this via Powershell (code listed below) with one caveat.
    However, when I create the same exact MSMQ in Powershell, I am unable to right click on the MSMQ service to manage it as the "Manage MSMQ" is missing when I right click on it. The settings are the same, including dependencies. The only difference
    I have been able to find is the icon in the Failover Manager shows the Service as a Generic Service icon when created in Powershell, but when it is created in the GUI it shows up as the MSMQ icon. I was able to verify this in the registry in HKLM\Cluster\Groups\<GUID>\:
    GroupType HEX: 68 for msmq icon. When it is the Generic Service icon it is HEX: 270f. When I change it from 270f to 68, the icon changes in Failover Manager and I am able to open, but then I get an invalid handle and I am unable to manage it.
    This is causing an issue, because I want to automate this build and hand it over, but they would be unable to manage it except by programming which the operators are not ready for.
    Here is the code which I have created in Powershell:
        Write-host "Configuring MS MSMQ Cluster Failover..."
        $CluName = "Cluster Name"
        $ClsMSMQName = $CluName.Name + "MSMQ"
        $ClsMSMQResourceName = "MSMQ-" + $ClsMSMQName
        $Response = Read-host "Enter the IP Address of the Clustered MSMQ"
        $ClsIpRes = get-clusterresource "Cluster IP Address"
        $MSMQIpAddr = New-Object Microsoft.FailoverClusters.PowerShell.ClusterParameter $ipres,Address,$Response
        Add-ClusterServerRole -Name $ClsMSMQName -Storage "Cluster Disk" -StaticAddress $MSMQIpAddr.value
        # Add the MSMSMQ Service to the new Server Role
        Get-ClusterGroup $ClsMSMQName | Add-ClusterResource -Name $ClsMSMQResourceName -ResourceType "MSMQ"
        # Create Dependencies for the MSMQ group
        Add-ClusterResourceDependency $ClsMSMQResourceName $ClsMSMQName
        Add-ClusterResourceDependency $ClsMSMQResourceName "Cluster Disk"
        # Start MSMQ group
        Start-ClusterGroup $ClsMSMQName
    You would just have to change "Cluster Disk" and "Cluster Name".
    Thank you

  • System configuration using java

    Hi friends
    Can I get System configuration using java code.
    If yes plz suggest how.
    thanks in advance.. Anjana

    some bits and pieces are available see the details in
    System.getProperties():
    Properties sysProps  = System.getProperties();
    meration en       = sysProps.keys();
    while ( en.hasMoreElements() )
    //add the key=value pairs
    Object keyObj    = en.nextElement();
    String key       = ( String ) keyObj;
    Object valueObj  = sysProps.getProperty( key );
    System.out.println( key + " : " +
    + valueObj.toString());
    de]
    just an idea??YES, and also you can do
    System.getenv();but they also don't give all the info the OP was/is looking for.

  • Error: "No tab group defined for launch configuration type "

    Hi,
    When i try to run my application its showing an error,
    <b>No tab group defined for launch configuration type com.sap.ide.webdynpro.projectbrowser.launch.configtype</b>
    but when i run my application by rightclicking  on my application its working, instead if i use the tab on the upper panel of NWDS it throwing this error.
    how to rectify it?
    Thanks,
    Suresh

    Hi,
    Following is what I assume you are trying to do.
    1. You have a WebDynpro application which you want to deploy and run.
    2. You are able to run your WebDynpro application by rightclicking on the application and running it.
    3. You are not able to run the same application by clicking RUN option on the top.
    If my assumption is correct, then I suggest you to follow your second approach.
    If not, then please specify what kind of application you are trying to execute.
    Ashutosh

Maybe you are looking for

  • Vendor Outstanding

    Hi We need to see the vendor out standing. Is thr any t code or report will give vendor outstanding balace.? Vijay

  • Classpath in manifest

    I have a main.jar which has a ClassPath, eg Class-Path: one.jar two.jar .... And there is many jars. To avoid the problem of forgetting to add one to the classpath, in the event that I add another jar later, is it possible to do Class-Path: *.jar In

  • Starting a GP from a User Exit?

    Hi all, How do I start a GP from a user exit? The scenario is like this: when a notification is created in SAP (transaction QM01), it should trigger the GP. Thank you very much, Frederik-Jan

  • I am unable to forward pictures . the wording goes through but not the pictures

    When forwarding an email from someone the wording is transmitted but not the pictures. This is a new problem and I'm not sure what has happened == This happened == Every time Firefox opened

  • Question about auto spliting events?

    I was wondering if pictures are automatically split depending on photo date for photo files imported from HD opposed to from the camera? When I updated iphoto 8 from 7 (or 6 can't remember) I have some events that show multiple dates in an album when