Exception setting the property 'dbcFile' on the DataSource. Exception:

Hello,
I just upgraded 12.1.3. and I could not see my loging page(Non SSL)
oracle.oc4j.sql.DataSourceException: Exception setting the property 'dbcFile' on the DataSource. Exception: java.lang.reflect.InvocationTar
getException
Any one had this problem before or had some experience, Please share some info
Thanks
Prince

Prince,
oracle.oc4j.sql.DataSourceException: Exception setting the property 'dbcFile' on the DataSource. Exception: java.lang.reflect.InvocationTar
getException
Any one had this problem before or had some experience, Please share some info Please see these docs.
How to Configure OTA For XML Gateway in Release 12 [ID 418926.1]
Oracle E-Business Suite Integrated SOA Gateway Troubleshooting Guide, Release 12 [ID 726414.1]
Cannot Start OXTA After Upgrade To R12.1.x [ID 1087499.1]
OXTA Not Starting In R12 [ID 1267410.1]
Troubleshooting and Known Issues for EBS SOA Suite Deployment in R12.1.1 [ID 797596.1]
Thanks,
Hussein

Similar Messages

  • Can I set the Datasource/Conn-pool credential programmatically ?

    Hi all,
    Within our ADF BC + Faces application, we use Crystal Report for our reporting solution.
    Crystal use different db connection from one used by the ADF BC. so I create a Datasource in OAS, to be used only by Crystal Report.
    Here is my problem :
    We also use VPD. So I have requirement to login as DifferentUser to make the VPD run correctly.
    How can I programmatically set the username and password of the datasource/conn-pool based on who is logging in to the application ?
    Thank you for your help,
    xtanto

    Good question; I don't know the answer. Try a post in the Identity Management section.
    Perhaps something with Enterprise Authentication may help.

  • Changing the datasource of a Crystal Report to a Oracle DB using TNS

    I have a problem trying to change the datasource of a crystal report. In the new connection I want to connect to a Oracle DB using TNS.
    Without TNS it's finally working flawlessly with the following code:
         private static void switch_tables(DatabaseController databaseController) throws ReportSDKException {
              // Declare the new connection properties that report's datasource will be switched to.
              final String DBUSERNAME = "user";
              final String DBPASSWORD = "secret";
              final String SERVERNAME = "jdbc:oracle:thin:@1.1.1.1:mysid";
              final String URI = "!oracle.jdbc.OracleDriver!jdbc:oracle:thin:{userid}/{password}@1.1.1.1:mysid";
              final String DATABASE_NAME = "mysid";
              final String DATABASE_DLL = "crdb_jdbc.dll";
              final String SCHEMA_NAME = "SCHEMA.";
              // Obtain collection of tables from this database controller.
              Tables tables = databaseController.getDatabase().getTables();
              // Set the datasource for all main report tables.
              for (int i = 0; i < tables.size(); i++) {
                   ITable table = tables.getTable(i);
                   // Keep existing name and alias.
                   table.setName(table.getName());
                   table.setAlias(table.getAlias());
                   // Change properties that are different from the original datasource.
                   table.setQualifiedName(SCHEMA_NAME + table.getName());
                   // Change connection information properties.
                   IConnectionInfo connectionInfo = table.getConnectionInfo();
                   // Set new table connection property attributes.
                   PropertyBag propertyBag = new PropertyBag();
                   propertyBag.put("Trusted_Connection", "false");
                   propertyBag.put("Server Name", SERVERNAME); //Optional property.
                   propertyBag.put("Connection String", URI);
                   propertyBag.put("Database Name", DATABASE_NAME);
                   propertyBag.put("Server Type", "JDBC (JNDI)");
                   propertyBag.put("URI", URI);
                   propertyBag.put("Use JDBC", "true");
                   propertyBag.put("Database DLL", DATABASE_DLL);
                   connectionInfo.setAttributes(propertyBag);
                   // Set database username and password.
                   // NOTE: Even if these the username and password properties don't change when switching databases, the
                   // database password is not saved in the report and must be set at runtime if the database is secured.
                   connectionInfo.setUserName(DBUSERNAME);
                   connectionInfo.setPassword(DBPASSWORD);
                   connectionInfo.setKind(ConnectionInfoKind.SQL);
                   table.setConnectionInfo(connectionInfo);
                   // Update old table in the report with the new table.
                   databaseController.setTableLocation(table, tables.getTable(i));
    I just call this method with the DatabaseController from a ReportClientDocument instance.
    How do I need to change the connectionInfo to do the connection using TNS?

    Please re-post if this is still an issue but first update to CR4E 2 and retest

  • Why do I have to set the PrincipalName property on my discovered ApplicationComponent instances?

    In the simple example below I define three classes:
    MyComputerRoleClass (with base Microsoft.Windows.ComputerRole)
    MyLocalApplicationClass (with base Microsoft.Windows.LocalApplication)
    MyApplicationComponentClass (with base Microsoft.Windows.ApplicationComponent)
    As well as a hosting relationship
    MyLocalApplicationClassHostsMyApplicationComponentClass
    that let's MyLocalApplicationClass host MyApplicationComponentClasses.
    In a timed PowerShell discovery targeting the RootManagementServer (Root Management Server Emulator) I create
    1 MyComputerRoleClass instance
    1 MyLocalApplicationClass instance and 
    2 MyApplicationComponentClass instances hosted on the instance of MyLocalApplicationClass
    By setting the PrincipalName property for the instances of MyComputerRoleClass
    and MyLocalApplicationClass I implicitly create hosting relationship instances of
    Microsoft.Windows.ComputerHostsComputerRole and Microsoft.Windows.ComputerHostsLocalApplication
    respectively.
    But why do I have to set PrincipalName on instances of MyApplicationComponentClass as well? If I don't I'll get this error:
    Microsoft.EnterpriseManagement.Common.DiscoveryDataMissingKeyException,Missing key in the discovery data item.
    Key property name: Microsoft.Windows.Computer.PrincipalName
    Here my discovery script:
    param($sourceId,$managedEntityId)
    $api = new-object -comObject "MOM.ScriptAPI"
    $api.LogScriptEvent('DiscoverClassesAndRelationships.ps1', 1001, 0, "Discovery started (12)")
    $discoveryData = $api.CreateDiscoveryData(0,$sourceId,$managedEntityId)
    $computer = 'SomeServer.SomeDomain'
    $myComputerRoleClass = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyComputerRoleClass']$")
    $myComputerRoleClass.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyComputerRoleClass instance on $computer")
    $myComputerRoleClass.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer)
    $discoveryData.AddInstance($myComputerRoleClass)
    $myLocalApplicationClass = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClass']$")
    $myLocalApplicationClass.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyLocalApplicationClass instance on $computer")
    $myLocalApplicationClass.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer)
    $discoveryData.AddInstance($myLocalApplicationClass)
    $myApplicationComponentClass1 = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']$")
    $myApplicationComponentClass1.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyApplicationComponentClass instance")
    $myApplicationComponentClass1.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer) # Why is this needed
    $myApplicationComponentClass1.AddProperty("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']/Name$", "Number 1")
    $discoveryData.AddInstance($myApplicationComponentClass1)
    $myApplicationComponentClass2 = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']$")
    $myApplicationComponentClass2.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyApplicationComponentClass instance")
    $myApplicationComponentClass2.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer) # Why is this needed
    $myApplicationComponentClass2.AddProperty("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']/Name$", "Number 2")
    $discoveryData.AddInstance($myApplicationComponentClass2)
    $relationshipInstance1 = $discoveryData.CreateRelationshipInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass']$")
    $relationshipInstance1.Source = $myLocalApplicationClass
    $relationshipInstance1.Target = $myApplicationComponentClass1
    $discoveryData.AddInstance($relationshipInstance1)
    $relationshipInstance2 = $discoveryData.CreateRelationshipInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass']$")
    $relationshipInstance2.Source = $myLocalApplicationClass
    $relationshipInstance2.Target = $myApplicationComponentClass2
    $discoveryData.AddInstance($relationshipInstance2)
    $api.LogScriptEvent('DiscoverClassesAndRelationships.ps1', 1002, 0, "Discovery ended - data returned now")
    #$api.return($discoveryData)
    $discoveryData
    Here my classes and relationships:
    <TypeDefinitions>
    <EntityTypes>
    <ClassTypes>
    <ClassType ID="MyDiscoveryDemoManagementPack.MyComputerRoleClass" Base="Windows!Microsoft.Windows.ComputerRole" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false"/>
    <ClassType ID="MyDiscoveryDemoManagementPack.MyLocalApplicationClass" Base="Windows!Microsoft.Windows.LocalApplication" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false"/>
    <ClassType ID="MyDiscoveryDemoManagementPack.MyApplicationComponentClass" Base="Windows!Microsoft.Windows.ApplicationComponent" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false">
    <Property Key="true" ID="Name" Type="string"/>
    </ClassType>
    </ClassTypes>
    <RelationshipTypes>
    <RelationshipType ID="MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass" Base="System!System.Hosting" Abstract="false" Accessibility="Internal">
    <Source ID="Source" Type="MyDiscoveryDemoManagementPack.MyLocalApplicationClass"/>
    <Target ID="Target" Type="MyDiscoveryDemoManagementPack.MyApplicationComponentClass"/>
    </RelationshipType>
    </RelationshipTypes>
    </EntityTypes>
    </TypeDefinitions>
    For anyone who would like to try this out, the complete management pack (you need to change $computer = 'SomeServer.SomeDomain' to match some managed computer in your system):
    <?xml version="1.0" encoding="utf-8"?>
    <ManagementPack SchemaVersion="2.0" ContentReadable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Manifest>
    <Identity>
    <ID>MyDiscoveryDemoManagementPack</ID>
    <Version>1.0.0.28</Version>
    </Identity>
    <Name>MyDiscoveryDemoManagementPack</Name>
    <References>
    <Reference Alias="SC">
    <ID>Microsoft.SystemCenter.Library</ID>
    <Version>7.0.8433.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="Windows">
    <ID>Microsoft.Windows.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    <Reference Alias="System">
    <ID>System.Library</ID>
    <Version>7.5.8501.0</Version>
    <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
    </Reference>
    </References>
    </Manifest>
    <TypeDefinitions>
    <EntityTypes>
    <ClassTypes>
    <ClassType ID="MyDiscoveryDemoManagementPack.MyComputerRoleClass" Base="Windows!Microsoft.Windows.ComputerRole" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false" />
    <ClassType ID="MyDiscoveryDemoManagementPack.MyLocalApplicationClass" Base="Windows!Microsoft.Windows.LocalApplication" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false" />
    <ClassType ID="MyDiscoveryDemoManagementPack.MyApplicationComponentClass" Base="Windows!Microsoft.Windows.ApplicationComponent" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false">
    <Property Key="true" ID="Name" Type="string" />
    </ClassType>
    </ClassTypes>
    <RelationshipTypes>
    <RelationshipType ID="MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass" Base="System!System.Hosting" Abstract="false" Accessibility="Internal">
    <Source ID="Source" Type="MyDiscoveryDemoManagementPack.MyLocalApplicationClass" />
    <Target ID="Target" Type="MyDiscoveryDemoManagementPack.MyApplicationComponentClass" />
    </RelationshipType>
    </RelationshipTypes>
    </EntityTypes>
    </TypeDefinitions>
    <Monitoring>
    <Discoveries>
    <Discovery ID="MyDiscoveryDemoManagementPack.MyDiscovery" Target="SC!Microsoft.SystemCenter.RootManagementServer" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
    <Category>Discovery</Category>
    <DiscoveryTypes>
    <DiscoveryClass TypeID="MyDiscoveryDemoManagementPack.MyComputerRoleClass" />
    <DiscoveryClass TypeID="MyDiscoveryDemoManagementPack.MyLocalApplicationClass" />
    <DiscoveryClass TypeID="MyDiscoveryDemoManagementPack.MyApplicationComponentClass" />
    <DiscoveryRelationship TypeID="MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass" />
    </DiscoveryTypes>
    <DataSource ID="DS" TypeID="Windows!Microsoft.Windows.TimedPowerShell.DiscoveryProvider">
    <IntervalSeconds>300</IntervalSeconds>
    <SyncTime />
    <ScriptName>DiscoverClassesAndRelationships.ps1</ScriptName>
    <ScriptBody><![CDATA[param($sourceId,$managedEntityId)
    $api = new-object -comObject "MOM.ScriptAPI"
    $api.LogScriptEvent('DiscoverClassesAndRelationships.ps1', 1001, 0, "Discovery started (12)")
    $discoveryData = $api.CreateDiscoveryData(0,$sourceId,$managedEntityId)
    $computer = 'SomeServer.SomeDomain'
    $myComputerRoleClass = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyComputerRoleClass']$")
    $myComputerRoleClass.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyComputerRoleClass instance on $computer")
    $myComputerRoleClass.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer)
    $discoveryData.AddInstance($myComputerRoleClass)
    $myLocalApplicationClass = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClass']$")
    $myLocalApplicationClass.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyLocalApplicationClass instance on $computer")
    $myLocalApplicationClass.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer)
    $discoveryData.AddInstance($myLocalApplicationClass)
    $myApplicationComponentClass1 = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']$")
    $myApplicationComponentClass1.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyApplicationComponentClass instance")
    $myApplicationComponentClass1.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer) # Why is this needed
    $myApplicationComponentClass1.AddProperty("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']/Name$", "Number 1")
    $discoveryData.AddInstance($myApplicationComponentClass1)
    $myApplicationComponentClass2 = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']$")
    $myApplicationComponentClass2.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyApplicationComponentClass instance")
    $myApplicationComponentClass2.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer) # Why is this needed
    $myApplicationComponentClass2.AddProperty("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']/Name$", "Number 2")
    $discoveryData.AddInstance($myApplicationComponentClass2)
    $relationshipInstance1 = $discoveryData.CreateRelationshipInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass']$")
    $relationshipInstance1.Source = $myLocalApplicationClass
    $relationshipInstance1.Target = $myApplicationComponentClass1
    $discoveryData.AddInstance($relationshipInstance1)
    $relationshipInstance2 = $discoveryData.CreateRelationshipInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass']$")
    $relationshipInstance2.Source = $myLocalApplicationClass
    $relationshipInstance2.Target = $myApplicationComponentClass2
    $discoveryData.AddInstance($relationshipInstance2)
    $api.LogScriptEvent('DiscoverClassesAndRelationships.ps1', 1002, 0, "Discovery ended - data returned now")
    #$api.return($discoveryData)
    $discoveryData]]></ScriptBody>
    <Parameters>
    <Parameter>
    <Name>sourceId</Name>
    <Value>$MPElement$</Value>
    </Parameter>
    <Parameter>
    <Name>managedEntityId</Name>
    <Value>$Target/Id$</Value>
    </Parameter>
    </Parameters>
    <TimeoutSeconds>120</TimeoutSeconds>
    </DataSource>
    </Discovery>
    </Discoveries>
    </Monitoring>
    <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
    <DisplayStrings>
    <DisplayString ElementID="MyDiscoveryDemoManagementPack.MyComputerRoleClass">
    <Name>A demo Computer Role (base Microsoft.Windows.ComputerRole)</Name>
    <Description></Description>
    </DisplayString>
    <DisplayString ElementID="MyDiscoveryDemoManagementPack.MyLocalApplicationClass">
    <Name>A demo Local Application (base Microsoft.Windows.LocalApplication)</Name>
    <Description></Description>
    </DisplayString>
    <DisplayString ElementID="MyDiscoveryDemoManagementPack.MyApplicationComponentClass">
    <Name>A demo Application Component (base Microsoft.Windows.ApplicationComponent)</Name>
    <Description></Description>
    </DisplayString>
    <DisplayString ElementID="MyDiscoveryDemoManagementPack.MyDiscovery">
    <Name>My Demo Discovery</Name>
    <Description>Script based discovey of all demo classes and relationships in this demo. To run at the Root Management Server Simulator</Description>
    </DisplayString>
    </DisplayStrings>
    <KnowledgeArticles></KnowledgeArticles>
    </LanguagePack>
    </LanguagePacks>
    </ManagementPack>

    According to
    System Center Authoring Hub:
    "Any key properties of the class being discovered and the key properties of any of its parents must be provided. Values for other properties are optional. In this example [as well as mine], the class being discovered is hosted by Windows Computer
    and the key property of that class is added to the instance."
    http://social.technet.microsoft.com/wiki/contents/articles/14261.operations-manager-management-pack-authoring-discovery-scripts.aspx
    So that's why :-)
    Michael

  • How to set the cardinality property as 1..n for a dynamically created node

    Hi...everybody
        I am creating Dropdown by index UI element and the
    context atrributes dynamically.To bind multiple data to a dropdown
    the cardinality property of the node should be 0..n or 1..n,
    But i could not set the property of the dynamically created context node to 0..n ...
    can any body suggest me..
    I implemented the following code in WDDoModify View
    IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDNodeInfo node = wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,
              null,null);
    IWDAttributeInfo strinfo=node.addAttribute("Value","ddic:com.sap.dictionary.string");
    dbyindex.bindTexts(strinfo);
    tc.addChild(dbyindex);
    I could successfully display one value in the drop down,by adding the following code before the line tc.addchild(dbyindex);
    IWDNode node1=wdContext.getChildNode("DynamicNode",0);
    IWDNodeElement nodeElement=node1.createElement();
    nodeElement.setAttributeValue("Value","Hello");
    node1.addElement(nodeElement);
    but when
    i am trying to bind multiple values i am getting Exception ,,,,

    hi
    you are getting the exception because of cardinality property.
    i.e   true,false and
    you are trying to add morethan one element.
    so,if you want to add morethan one than one element you have to set the cardinality property to true,true (or) false,true.
    In your code do the following modification for changing the cardinality.
    For 0..n -->false,true
          1..n-->true,true
    IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDNodeInfo node = wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,
    null,null);
    IWDAttributeInfo strinfo=node.addAttribute("Value","ddic:com.sap.dictionary.string");
    dbyindex.bindTexts(strinfo);
    tc.addChild(dbyindex);
    hope this will solve your problem.
    In addchild(..) the parameters are
    addChild("Name ,
                    Element class for model node ,
                    Is singleton? ,
                    Cardinality ,
                    Selection cardinality ,
                    Initialise lead selection? ,
                    Datatype ,
                    Supplier function ,
                     Disposer function);
    Regards
    sowmya

  • How do I create a session with the datasource set in code not sessions.xml

    I want to create a session where I specify the J2EE datasource name dynamically in code. Normally, I would hard-code a J2EE datasource name in sessions.xml e.g.
    <login>
    <datasource>jdbc/MyApplicationDS</datasource>
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    However, we don't want to use a hard-coded string "jdbc/MyApplicationDS". We want to be able to set this at runtime.
    I found this in the App Developer's Guide:
    Configuring an External Connection Pool in Java
    To configure the use of an external connection pool in Java:
    1. Configure the DataSource on the server.
    2. Configure the Login to specify a DataSource and the use of an external connection pool:
    login.setConnector(
    new JNDIConnector(new InitialContext(), "jdbc/MyApplicationDS"));
    login.setUsesExternalConnectionPooling(true);
    and this:
    Configuring Sessions with the sessions.xml File
    OracleAS TopLink provides two ways to preconfigure your sessions: you can export and compile Java source code from the OracleAS TopLink Mapping Workbench, or use the OracleAS TopLink Sessions Editor to build a session configuration file, the sessions.xml file.
    It seems like I should export and compile Java code that calls login.setConnector(), but I can't find out any information on how to do this. I looked at the MW user guide and I didn't see anything on this.
    I also found this by searching this discussion forum:
    To create a server session completely from code given a project you can use,
    project.getLogin().setConnector(new JNDIConnector(new InitialContext(), "your-datasource-url"));
    project.getLogin().setUserName("");
    project.getLogin().setPassword("");
    Server server = project.createServerSession();
    server.login();
    However, I don't know how to get the project.
    Thanks,
    Vicki

    If you are using a sessions.xml file, you can get your project from your session. Ensure that when you access your session from the SessionManager, that you do not have it login.
    Session session = SessionManager.getManager().getSession("my-session", false);
    session.getProject().setConnector(...);
    session.login();
    If not using a sessions.xml, you can either read your Project from the XMLProjectReader, or instantiate your Project class directly.

  • How to set the read only property for dynamic ALV column

    Hi All,
    I have built one dynamiv ALV and I have one name column inside that ALV for which I have to set read only property based on two column fields that exist in the same ALV,say IS_SP and IS_CORP of type boolean.
    If any one of the flag is 'X',i have to make that name column as display only and
    If both flag are not set,it should be displayed as ediatable column.
    I have written one method as INIT_ALV which gets called when ALV is loaded.
    Code is as  follows:
      lr_column_settings ?= wd_this->alv_all_roles.
      lt_columns = lr_column_settings->get_columns( ).
    LOOP AT lt_columns INTO ls_column.
    CASE ls_column-id.
       WHEN <NAMECOLUMN>. "name column which should be editable/display
    Create Input Field
            CREATE OBJECT lr_uie_input_field_ro
              EXPORTING
                value_fieldname = ls_column-id.
         ls_column-r_column->set_cell_editor( lr_uie_input_field_ro ).
        After this,I have to set the read only property based on IS_SP and IS_CORP values,
              CALL METHOD lr_uie_input_field_ro->set_read_only_fieldname
              EXPORTING
                *value = 'IS_SP' or 'IS_CORP'
    ENDLOOP.
    I dont want to use cell variants also.
    Help me to achieve this.
    Thanks and Regards,
    Divya

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • How to set the 'text' property of a 'Header' region dynamically?

    Hi,
    I have a requirement to display the 'text' property of a 'Header' region, based on a query.
    So I need to set the text property programatically in CO.
    Can I use setText("..") by getting the handler to the 'Header' region?
    If so, How to get the handler for the 'Header' region?
    Message was edited by:
    user594528

    How to get the handler for the 'Header' region to call the setText()?
    OAHeaderBean Header1 = (OAHeaderBean)...........................
    Header1.setText("....");

  • Problem in setting the target property to _SELF of LinkToURL UI Element

    Hi,
    I have a LinkToURL UI Element in my web page which has to open up another page in the same window.
    I tried setting the target property to _SELF, but it's not working.Instead the page is opened in a new child window.
    Please tell me whether to set any other property to get that.
    Thanks and Regards,
    Padma Usha.

    Hi,
    Please give the target value in lowercase "_self".
    Regards, Anilkumar

  • Set the default value in selectonechoice using bindings property

    Hi,
    I have a question to ask about selectonechoice.  I have scanned the forum but I just cant get this to work by myself.
    My business service is a web service.
    Use Case:
    From the web service data control, I should display a drop down of all available options but I should be able to filter the list of selectItems shown in the dropdown.
    After the data is filtered, the drop down should display the first item in the list.
    so this is what I did.  I drag the iterator in my data control as selectOneChoice.
    <af:selectOneChoice value="#{bindings.codeList.inputValue}"
                      label="Code">
        <f:selectItems value="#{pageFlowScope.codeList.items}"
                       id="si3"/>
    </af:selectOneChoice>
    ...but I cannot include all the data returned by the web service so I used the logic below to filter my data with the assistance of a managed bean.
    <af:selectOneChoice value="#{bindings.codeList.inputValue}"
                      label="Code">
        <f:selectItems value="#{pageFlowScope.myBean.codeTemplates}"
                       id="si3"/>
    </af:selectOneChoice>
    public class MyBean{
        private List<SelectItem> codeList;
        public List<SelectItem> getCodeTemplates(){
            if(codeList==null){
                codeList = new ArrayList<SelectItem>();
                    More Codes and logic..access the iterator and filter the data
                    Data below comes from the web service data control..
                    codeList.add(new SelectItem("90", "Crew"));
                    codeList.add(new SelectItem("91", "Manager"));
                    codeList.add(new SelectItem("94", "Staff"));
                //set the value to the first item in the list
                getBindings().setValue("#{bindings.codeList.inputValue}", 90);
            return codeList;
    My problem is that on first load of the page, I am encountering this problem.
    Could not find selected item matching value "90"  in RichSelectOneChoice.
    I know I can used the value property of my selectonechoice into my managed bean but I dont want to do that for now.
    I have set the valuePassThru property also but it does not help also.  The unselectedLabel is of no use since I dont want that to reflect at all.
    I am just not sure why I cannot set the value of my bindings given the code snippet above.
    #{bindings.codeList.inputValue} is a listBinding defined in my page definition.
    Any hints?

    Hi Frank,
    FrankNimphius wrote:
    Hi,
    did you ensure 90 is in the list and that its of the same data type?
    Frank
    Yes, I haved checked it.  To verify, I set the valuePassThru property to true and then in the generated markup, I used firebug to verify if the value is indeed set to 90.
    If I set the valuePassThru to false then the index value 0,1,2...n is assigned.
    I am doing this during onload operation and using lazy loading of the list.  I have set the immediate attribute as well but still not successful.
    JDEV 11G 11.1.1.7

  • Setting the editable property of a datagrid column dynamically

    Hi,
    Im trying to set the editable property and renderer is editable property for a datagrid column to false on the creation complete event of the datagrid.But It does not work.While visible property works.why doesnt the editable property work.The particular column has a renderer which is a text box.and the editable property is set to false initially.Any Suggestions or ideas on how to achieve this will be of great help.

    Eu tenho vontade de estar devidamente por dentro de tudo isso.

  • Hi how to set the visible property in oracle adf?

    Hi,
    I am new to oracle adf in my application one of the field is id and it is sequence generated value Whenever I entered remaining values and click on save then only it has to display with sequence generated value before saving it has to be in hide mode. Can any one help me how the approach is.

    As there are three ways through which you may pass a message to B2B, so there are three ways to set Action name property.
    If you are using SCA/Fabric then set below properties -
    b2b.fileName
    b2b.contentType
    If you are using JCA JMS adapter, then set below property -
    jca.jms.JMSProperty.ACTION_NAME
    If you are using JCA AQ adapter then set -
    ACTION_NAME
    Regards,
    Anuj

  • Is there a property to set the position of a table-scrollbar to the begining?

    Hello,
    i have a VI which displays a table and the table gets data from time to time.
    Are there any properties that i can use to set the scrollbar at the right side to the beginning of the table?
    The scrollbar stays always at the last position.
    Thx for your help.

    The property is "Index values"
    Message Edité par chilly charly le 11-08-2007 04:03 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Example_BD.png ‏1 KB

  • How do i set the scheduler schedule property to run at 6am & 9pm daily?

    How do i set the scheduler's schedule property to run at 6am & 9pm daily?
    Do I have to use a PeriodicSchedule ?
    Edited by: DivyaR on May 19, 2013 11:10 PM

    Use the Calendar schedule. set the schedule property as following in your scheduler
    schedule=calendar * * * * 6,21 0
    The value of 6,21 specifies that its going to run once at 6AM and other time at 9PM everyday.
    Thanks

  • How do I configure the mixed signal graph property node to set the plot names

    I have a mixed signal graph displaying digital and analog data in two groups.
    I would like to programmatically set the names of individual plots i.e. rather that the digital graph displaying 'Digital 0->Line 0'  I would like to set it to 'Signal 1'  in the vi.
    How do I do this?
    Probably via the property node but I cant get this to work without errors?  (i.e. i cant find the right combination of node arguments to set.)
    Also,  I can set the names of the plots of the component waveforms programmatically, but when I bundle the plots together to form the mixed signal graph, the plot names are reset to the mixed signal graph default values. Can this behaviour be turned off?

    What are you doing? You need to select the plot first and then set the name, like this:
    Attachments:
    Mixed Signal Graph_BD.png ‏1 KB

Maybe you are looking for