Complex Urgent Issue with insertRowAtRangeIndex

Hi,
I have an advanced table based on a VO and EO. I have a footer on that table which has an Add Row button. That Add Row button calls a method in the AM which basically inserts a new row into the VO and hence it appears in the table. The code for that method in the AM is pasted below.
Now this table and Add Row button etc. were already existing. My job was to add a new detail table to this table. I followed the instructions in the dev guide and was able to successfully add a detail table to this table. I also had to initialize some rows in the detail table when the user clicks the above add rows button.
In the below code, getBtvlPosSupplierPlantAddressesVO is my VO for the main table.
getAsiSupplierAddressOpCosVO2 is my VO for the detail table. "AsiSupplierAddressOpCosVO2" is the View Instance which is connected to BtvlPosSupplierPlantAddressesVO through a View Link.
getAsiPosSupplierOpCosVO1 is my VO from where I get the data to initialize the rows in AsiSupplierAddressOpCosVO2.
I am getting the following error on the statement - plantAddressVO.insertRowAtRangeIndex(plantAddressVO.getFetchedRowCount(), plantAddressVORow);
oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value 3 for rangeIndex passed to method ViewRowSetIteratorImpl.insertRowAtRangeIndex. Explanation: index outside range
Now the main table property of "Records Displayed" is 2, hence I am getting the above error when I am trying to add THIRD row using the Add Rows button.
If I change the "Records Displayed" property to 5, then I will get this error when I try to add Row number 6.
PLEASE PLEASE HELP. I HAVE NO CLUE WHY THIS IS HAPPENING. I AM TIRED OF DEBUGGING!
**********Extra Info - May not be relevant to the Issue ****************
For new rows in AsiSupplierAddressOpCosVO2, I have put status as STATUS_NEW because the detail table has a checkbox and if I don't do STATUS_NEW for the rows, then only the rows for which user clicks on the checkbox will be stored in the DB. I wanted all rows to be stored, for consistency purpose.
**********Extra Info - May not be relevant to the Issue ****************
public void addPlant(Number suppRegId)
BtvlPosSupplierAddressesVOImpl plantAddressVO = getBtvlPosSupplierPlantAddressesVO();
plantAddressVO.setMaxFetchSize(0);
BtvlPosSupplierAddressesVORowImpl plantAddressVORow = (BtvlPosSupplierAddressesVORowImpl)plantAddressVO.createRow();
plantAddressVORow.setAddressId(getOADBTransaction().getSequenceValue("btvl.btvl_pos_supp_address_id_SEQ"));
plantAddressVORow.setAddressType("PLANT");
plantAddressVORow.setSupplierRegId(suppRegId);
plantAddressVO.insertRowAtRangeIndex(plantAddressVO.getFetchedRowCount(), plantAddressVORow);
AsiSupplierAddressOpCosVOImpl addressOpCosVO = (AsiSupplierAddressOpCosVOImpl)this.getAsiSupplierAddressOpCosVO2();
addressOpCosVO.executeQuery();
AsiPosSupplierOpCosVOImpl suppOpCosVO = (AsiPosSupplierOpCosVOImpl)this.getAsiPosSupplierOpCosVO1();
int rowCount = suppOpCosVO.getRowCount();
RowSetIterator SupplOpCoListIter = suppOpCosVO.createRowSetIterator("SupplOpCoListIter");
AsiPosSupplierOpCosVORowImpl OpCoRow = null;
if(rowCount > 0)
SupplOpCoListIter.setRangeStart(0);
SupplOpCoListIter.setRangeSize(rowCount);
for(int i = 0; i < rowCount; i++)
OpCoRow = (AsiPosSupplierOpCosVORowImpl)SupplOpCoListIter.getRowAtRangeIndex(i);
AsiSupplierAddressOpCosVORowImpl addressOpCoRow = (AsiSupplierAddressOpCosVORowImpl)addressOpCosVO.createRow();
addressOpCoRow.setSuppAddrOpcoId(getOADBTransaction().getSequenceValue("BTVL.ASI_SUPP_ADDR_OPCO_ID_S"));
addressOpCoRow.setAddressId(plantAddressVORow.getAddressId());
String OpCoCode = OpCoRow.getSupplierOpcoCode();
String OpCoName = OpCoRow.getSupplierOpcoName();
addressOpCoRow.setSupplierOpcoCode(OpCoCode);
addressOpCoRow.setSupplierOpcoName(OpCoName);
addressOpCoRow.setNewRowState(Row.STATUS_NEW);
addressOpCosVO.insertRow(addressOpCoRow);
SupplOpCoListIter.closeRowSetIterator();
plantAddressVORow.setNewRowState(Row.STATUS_INITIALIZED);
}

Hi
Since you have added the detail table as routine customization than you also initialize the row as routine customization, as you said that the getAsiSupplierAddressOpCosVO2 is the VO for detail table than the row this VO is required to initialize, as Sumit advised already, you should go with addition of new code rather modifiying/using the existing code , you can give a try to below code after modifying it according to ur requirement
OAViewObject vo = (OAViewObject)findViewObject("AsiSupplierAddressOpCosVO2");
if(!vo.isPreparedForExecution())
vo.clearCache();
vo.executeQuery();
vo.last();
vo.next();
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState((byte)-1);
// than here you can set the default values
like row.setAttribute("ViewAttribute",vaue);
Thanks
Pratap

Similar Messages

  • Urgent issue with Intrastat

    Hi All, we  have  very  urgent issue  with  intrastat report ''VE01''.
    There  is  many documents  with error Log-''The statistical value of the document item is zero.''.
    The pricing  settings looks OK and its impossible  to
    correct  those  documents with error.
    Any Idee how I could  correct them for  them  to  get  the  green status?
    Points  will be added  if  helpful
    Thanks and regards
    Luis

    Hello Luis,
    please check the VBRP-BRTWR. If this fiels is zero then you get an entry in the incompletion log.
    the message could be also occur if the GRWR is zero.
    Please check your pricing setting.
    Hope this will help to solve the problem.
    I f you are satisfied with the answer, please don't forget to give Reward Points.
    regards
    Claudia

  • URGENT: Issue with hierarchy level keys and report drill down

    Hi,
    BASIC STRUCTURE:
    I have created a subject area with 3 facts (FACT_A, FACT_B, FACT_C) and 4 dimesnions (TIME_DIM,DIM_2,DIM_3,DIM_4). Each fact table also has additional aggregate tables aggregated along levels of the time dimension. Also our timw dimension has aggregated dimension tables like TIME_DIM_WEEK, TIME_DIM_MONTH, TIME_DIM_QUARTER and TIME_DIm_YEAR.
    GOAL:
    All 3 facts have the same measures M_1 and M_2 in them but may not have data for the same dimension values selected.
    For example
    For month JAN 2000 FACT_A.M1=100$ and no data exists for JAN 2000 in FACT_B and FACT_C. Then in the report
    for JAN2000 it should show FACT_A.M1= $100, FACT_B.M1 = 0 and FACT_C.M1 =0. In this case I should be able to drill down to the lowest level.
    ISSUE:
    The time dimension TIME_DIM has the following levels - Total -> Year -> Quarter -> Month -> Week -> Day
    However I am having an issue with drill down in the reports whenever I pull metrics from more than 1 fact at a time. I have defined the level keys but not sure if I need to do anything in addition since I am using aggregates.
    I have to fix this issue quickly. Please help me.

    Alastair,
    All the fact tables have aggregated facts as sources.
    I have checked the levels set for each of the sources to the time dimesnion table in BMM and they look okay. So the Time dim table in BMM has 4 source tables
    Time_Day (level set to day, table key is "day"),
    Time_month (level set to month, table key is "Fiscal_Month_Code"),
    Time_Quarter(level set to quarter, table key is "Fiscal_Quarter_Code") and
    Time_Year(level set to year, table key is :Fiscal_Year_Code").
    Note: No time week aggregate added as logical source.
    Again the time dim hierarchy based off of this table has levels: Total -> Year ->quarter -> Month -> week -> day
    The levels keys set for each level are
    Year -> Primary key is Year_Name (YYYY)(Checked as chronological key) and another key is Year_Num (YYYY)(Checked as chronological key)
    Quarter->Primary Key is Quarter_Name (YYYY Qn), another key is Quarter_Number (Format n where n can assum values 1,2,3,4). Both keys are set as chronological keys
    Month -> Primary key is Month_Name (MON YYYY), another key is Month_Num (Format n where n can assume values from 1 to 12) Both keys are set as chronological keys
    Week -> Primary Key is week name (YYYY Wk nn, where nn can have values from 1 to 53), another key is week num (nn, where nn can have values from 1 to 53)
    Day -> primary key set to day (date format)
    Issue1: When I try to drill to lower levels it throws out an error saying report cannot find any data because filters may be too restrictive even though I see data at higher level
    For ex: If I drill down to Year: 2010 and Qtr: 2010 Q2 and M1:$100 when I click on Qtr to drll to month level it throws me the error
    Issue2: when I add year and qtr colums to the report I see data as below which is incorrect
    Year_Name Qtr_Name data:FACTA_M1 Data: FactB_M1
    2009 2009 Q1 $10 $5
    2009 2009 Q2 $20 $80
    2009 2009 Q3 $20
    2009 2009 Q4 $30
    2010 2010 Q1 $100
    2010 Q2 $101
    2010 Q3 $102 $230
    2010 Q4 $103
    2011 Q1 $10
    In the above example year_name is not showing up for 2010 Q2 and after. However if I change the primary key for level 'Quarter' by having key consist of year name and quarter name instead of just quarter name the issue doesnt occur and drill down works great. The only issue is when I drill from qtr it first shows year name and quarter name instead of showing the next level which would be month name.
    Sorry about the long message but I thought you might notice something in how I have set up the keys.
    Thanks

  • Urgent : Issue with deleting Line Item in ME22N

    Hi all,
    I have an issue with deleting line item in ME22N for some Purchase Orders.
    When I try to delete the line item, a warning message comes up saying that " Quantity invoiced or delivered is less than the quantity ordered". And I am unable to proceed further and save the PO. Could anyone let me know as why this is happening?
    Thanks in advance.
    Regards,
    Adapala.

    Hi
    there is no need of group key.
    if any of these 3 are done, payment will be done in total.
    1.In setup all company codes for payment transactions , DESELECT seperate payment per business area check box
    2.In setup paying company codes for payment transactions , DESELECT seperate payment for each reference check box.
    3.In the Vendor Master got to payment transactions tab and below the payment method , there will be individual payment checkbox. DESELECT that check box.
    try again with first two with DESELECT options , i will check out with DME.
    Cheers

  • URGENT: issues with jump to targets

    Hey Guys,
    We have recently updated our BW system from 3.1c to 7.0. And now I am having problems with some of my queries. The major problem is for some of the queries I have jumps to other reports and when I try to execute these jumps I get an error saying "Variable I_CALDAY is incorrectly defined ". I have this issue with few queries all in one infoprovider.
    Guys, Any help in regard will be highly appreciated.
    Thanks and Regards,
    Meher

    Problem solved:
    We had to check the box which says "ready for input". This solved the issue as of now.

  • VERY URGENT: Issue with Reconciliation against SAP Enterprise Portal

    Hi,
    We are using IDM7.0 and we have SAP Enterprise Portal as a resource. The users in portal are from Active Directory.
    When I am doing full reconciliation against portal, it is processing only certain accounts. The reconcilaition policy is to link accounts. It is not linking teh accounts. Moreover, these accounts are not found in UNMATCHED accounts also. I don't have any account exclusion rules or something.
    I wrote a small code snippet, which does just a single account reconciliation of a particular user id. In this case the portal account is being reconciled and linked properly.
    Any ideas what the issue might be?
    And I have another question too.. in the schema attributes of the out-of-box SAP Portal resource adapter, I don't see any ammping entry for "accountId". Usually for other resource adapters there would be entry for accountId (e.g in AD, mapping is: accountId <---> sAMAccountName). In case of portal, do we need to explicitly set this mapping? If so what would be the right hand side name in the schema? Does the right hand side name changes from one deployment to the other? If so how to determine what attribute maps to accountId in our portal? Might this lack of accountId is causing the issue with the reconciliation?
    Any leads would be highly appreciated.
    Thanks,
    kIDMan.

    Thanks for the reply. I have already set up correlation rule, account linking options for different situations like FOUND, UNASSIGNED, UNMATACHED etc. If my linking configurtaion is not correct then the fetched accounts should be atleast in the account index with situation as UNMATCHED. But that is not the case.
    I am not sure if I made my problem difinition clear earlier. The problem I mentioned is not with "linking" of the accounts. The problem is IDM is detecting only some accounts. Among those set of accounts which IDM was able to fetch from portal during reconcilaition, it was able to successfully link the matching accounts to identities in IDM.
    My question is, why IDM is fetching only certain accounts and not all accounts from portal resource.
    As I mentioned earlier, when I run my code snippet to reconcile a single account, it reconciles successfully and links to user identity in IDM (if a matching idenity exists based on my correlation rule). But why the reconcilaition at the resource level is not able to fetch and reconcile teh same account.
    Regarding the accountId attribute in the attribute schema, neither the SUN documentation nor the resource adapter configuration tells about the name of the attribute on the portal side that it should match to.
    Thanks,
    kIDMan.

  • Urgent: Issue with the size of an xls file generated from a rtf template

    Hi all,
    I have a template.rtf
    In BI, when I get the file in excel format and save it, the size of the report is 32 MB. When I just "save as" the same report, without changing anything, the size of the report is 8 MB.
    Do you know how to get directly the report with the size 8 MB or would you have some guidelines to avoid this issue.
    Thank you in advance,
    Sonia.

    Thank you Kurz for your answer. I'm going to try to be more precise.
    Actually I'm not in EBS. I generate the output (xls format) direclty from BIP.
    The DB of my application can't be requested directly, then I use HTTP request.
    From BIP, I launch the report choosing excel as output - the template is an rtf template.
    I have been requested to open or save the xls file that I save (32 MB).
    I open the excel file, save it again and the size of the file is now 8 MB.
    Regards,
    Sonia.

  • Urgent: Issue with Java Embedding Activity

    Hi All,
    I wrote below code in Java Embedding activity and tried to pass an input paramter to String SR, but i am getting SCAC-50012 Error, some one please help me in this issue
    IAgileSession m_session = null;
    IAdmin admin = null;
    IAgileClass cls = null;
    String username="XXXX";
    String password="XXXXX";
    String URL="XXXXXXX";
    String sr=getVariableData("inputVariable","payload","/client:process/client:input");
    try {
    HashMap params = new HashMap();
    params.put(AgileSessionFactory.USERNAME, username);
    params.put(AgileSessionFactory.PASSWORD, password);
    AgileSessionFactory instance = AgileSessionFactory.getInstance(URL);
    m_session = instance.createSession(params);
    admin = m_session.getAdminInstance();
    cls = admin.getAgileClass( "ProblemReport" );
    IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", sr);
    psr.setValue(ServiceRequestConstants.ATT_COVER_PAGE_DESCRIPTION, "KB-Test-20121299");
    } catch (APIException e) {
    e.printStackTrace();
    } finally {
    m_session.close();
    Also, I imported all Jar and class files into BPEL.

    Hi,
    Now the it is compiling perfectly, but when i am passing input parameter in em it is failing at bpel process.
    This is the bpel code
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Tue Dec 11 13:59:57 EST 2012
    Author: *********************
    Type: BPEL 1.1 Process
    Purpose: One Way BPEL Process
    -->
    <process name="BPELProcess1"
    targetNamespace="http://xmlns.oracle.com/AgileTest/Testing123/BPELProcess1"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/AgileTest/Testing123/BPELProcess1"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpel2="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="bpelprocess1_client" partnerLinkType="client:BPELProcess1" myRole="BPELProcess1Provider"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    </copy>
    </assign>
    <bpelx:exec import="org.w3c.dom.Element"/>
    <bpelx:exec import="com.agile.api.APIException"/>
    <bpelx:exec import="com.agile.api.AgileSessionFactory"/>
    <bpelx:exec import="com.agile.api.IAdmin"/>
    <bpelx:exec import="com.agile.api.IAgileClass"/>
    <bpelx:exec import="oracle.xml.parser.v2.*"/>
    <bpelx:exec import="com.agile.api.IAgileSession"/>
    <bpelx:exec import="com.agile.api.IServiceRequest"/>
    <bpelx:exec import="com.agile.api.ServiceRequestConstants"/>
    <bpelx:exec import="java.util.HashMap"/>
    <bpelx:exec import="testing123.JavaAPITesting.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Encoder"/>
    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="java.lang.*"/>
    <bpelx:exec import="java.math.*"/>
    <bpelx:exec name="Java_Embedding1" version="1.5" language="java">
    <![CDATA[IAgileSession m_session = null;  
                IAdmin admin = null;  
                IAgileClass cls = null;   
                String username="****";
                String password="*******";
                String URL="*****************************************";
                String sr=(String)getVariableData("inputVariable","payload","/client:process/client:input"); 
                try { 
                        HashMap params = new HashMap(); 
                        params.put(AgileSessionFactory.USERNAME, username);
                        params.put(AgileSessionFactory.PASSWORD, password);
                        AgileSessionFactory instance = AgileSessionFactory.getInstance(URL);
                        m_session = instance.createSession(params); 
                        admin = m_session.getAdminInstance(); 
                        cls = admin.getAgileClass( "ProblemReport" ); 
                        IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", sr); 
                        psr.setValue(ServiceRequestConstants.ATT_COVER_PAGE_DESCRIPTION, "KB-Test-20121299"); 
                } catch (APIException e) { 
    e.printStackTrace();
    } finally { 
    m_session.close();
    }]]>
    </bpelx:exec>
    </sequence>
    </process>

  • Urgent :- Issue with deploying application in Oracle Application server

    Hello All,
    Hope all of you are doing good ! I am facing an issue relating to deploying applications using the Enterprise manager. When i deploy the war file using Deploy WAR file option in the OEM, i get the following error -
    Failed to deploy web application "gCube". Failed to deploy web application "gCube". . The configuration files for this OracleAS 10G instance are inconsistent with the
    configuration stored in the repository. In order to protect the repository,
    no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem is resolved. This condition arises when a prior operation was unsuccessful. The exception associated with this failed operation is:
    {0}
    . Please also check the logs located at
    ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
    the configuration files on disk. Some possible causes are:
    * permissions on files
    * file contention issues on Windows NT
    * internal Oracle error
    After resolving the problem that prevented DCM from updating the configuration
    files, you may use the dcmctl resyncInstance command to resolve the problem.
    Alternatively, you can stop and then restart the active dcmctl or EMD
    process and resyncInstance will automatically be performed.
    Root Cause: invalid stream header
    Resolution: . invalid stream header
    Please could you throw some light on this issue and also provide a resolution to fix this issue at the earliest ?
    Your help in this , will be greatly appreciated.
    Thanks and Regards,
    Ramanan.

    Hello All,
    Could anyone assist me with a fix for the problem ?
    Would appreciate it greatly.
    Thanks.

  • Urgent:Issue with HashMap while creating session in Java Embedding Activity

    Hi,
    I am unable to createsession() with the values from HashMap. following is the code in JEA
    IAgileSession m_session=null;
              IAdmin admin = null;
              IAgileClass cls = null;
              IAutoNumber[] numSources;
              String nextAutoNumber = null;
    try {
                   HashMap params = new HashMap();
                   params.put(AgileSessionFactory.USERNAME, "*********");
                   params.put(AgileSessionFactory.PASSWORD, "*******");
    int s= params.size();
    String y= (String)params.get(AgileSessionFactory.USERNAME);
    String z= (String)params.get(AgileSessionFactory.PASSWORD);
    addAuditTrailEntry("UserName " +y);  
    addAuditTrailEntry("Password " +z);  
    addAuditTrailEntry("Size is " +s);   
                   AgileSessionFactory instance = AgileSessionFactory.getInstance("******************************");
    addAuditTrailEntry("After instance object" +instance);
    m_session = instance.createSession(params);
    addAuditTrailEntry("" +m_session);
    addAuditTrailEntry("After instance object_Session");
                   admin = m_session.getAdminInstance();
                   cls = admin.getAgileClass( "ProblemReport" );
                   IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", "PR-9989909");     
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   m_session.close();
    In the above code it is working perfectly up to AgilSessionFactory instance, but after that when I am printing m_session ( i.e. addAuditTrailEntry("" +m_session);) it is returning null values instead of some session ID. I am also able to print AgilesessionFactoy instance ID correctly inside JEA, but only problem is with m_session. I tried with the same code in java client and it is working perfectly. Please some one help me in this issue.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I am unable to createsession() with the values from HashMap. following is the code in JEA
    IAgileSession m_session=null;
              IAdmin admin = null;
              IAgileClass cls = null;
              IAutoNumber[] numSources;
              String nextAutoNumber = null;
    try {
                   HashMap params = new HashMap();
                   params.put(AgileSessionFactory.USERNAME, "*********");
                   params.put(AgileSessionFactory.PASSWORD, "*******");
    int s= params.size();
    String y= (String)params.get(AgileSessionFactory.USERNAME);
    String z= (String)params.get(AgileSessionFactory.PASSWORD);
    addAuditTrailEntry("UserName " +y);  
    addAuditTrailEntry("Password " +z);  
    addAuditTrailEntry("Size is " +s);   
                   AgileSessionFactory instance = AgileSessionFactory.getInstance("******************************");
    addAuditTrailEntry("After instance object" +instance);
    m_session = instance.createSession(params);
    addAuditTrailEntry("" +m_session);
    addAuditTrailEntry("After instance object_Session");
                   admin = m_session.getAdminInstance();
                   cls = admin.getAgileClass( "ProblemReport" );
                   IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", "PR-9989909");     
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   m_session.close();
    In the above code it is working perfectly up to AgilSessionFactory instance, but after that when I am printing m_session ( i.e. addAuditTrailEntry("" +m_session);) it is returning null values instead of some session ID. I am also able to print AgilesessionFactoy instance ID correctly inside JEA, but only problem is with m_session. I tried with the same code in java client and it is working perfectly. Please some one help me in this issue.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • [Urgent] Issue with Selected rows in Advanced table

    [I have searched archive and found lots of mails on same issue but none were conclusive so i am asking this again]
    Hi All,
    I have created an advanced table and i want to have functionality of deleting selected rows.
    For implementation of this functionality, i have created a selectflag transient attribute [varchar2] and linked it to multiple select item of Advanced table but the table always returns null for selectflag attribute irrespective of row being selected or not.
    One thing i have noticed is that i can't supply 'checked value' and 'unchecked value' property in advanced table multiple select item. Is that the issue?
    Can anybody please guide, its quite urgent.
    Regards
    Lokesh

    Hi Reetesh,
    Thanks for the reply.
    Yes, you are right i am using same AM at 2 different places.
    Let me just elaborate a little about my implementation:
    I have a Page layout region and within this page layout, i have a query bean which performs results based search.
    Within this query bean, i have added an Advanced table within that query bean to display the results.
    Now coming to multiple AM issue:
    1. Page Layout region must have one AM or its an error.
    2. If i donot add an AM to advanced table, it doesn't return rows.
    So do i need to have 2 diferent AM's for this implementation?
    Regards
    Lokesh

  • Urgent: Issue with time out sql auzre

    We are trying to connect to our SQL AZURE databased (Northern Europe) we keep getting timeout error. Initially it was post-login phase error and now we keep getting 10600 error. We are on V12 version.
    Any ideas please?
    Here is the detail 
    An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
    Additional information: Connection Timeout Expired.  The timeout period elapsed during the post-login phase.  The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while
    attempting to create multiple active connections.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=303; handshake=922; [Login] initialization=0; authentication=0; [Post-Login] complete=13000;

    Resolved offline.
    In general, please follow best practices on the linked documentation page below with regards to connectivity issues :
    http://azure.microsoft.com/en-us/documentation/articles/sql-database-connect-central-recommendations/ .

  • Urgent-Issue with Technical Content.

    Hi experts,
    we have activated the technical content.Now we are Initilize and run deltas with Process Chain.
    Under one of the Infosource loading the datatarget(0BWTC_C02),i have the following standard delivered infopackages
    1) Delta - OLAP Transaction Data
    2) OLAP Transaction Data Initialization
    3) OLAP Transaction Data: Delta Initialization
    4) Transaction Data OLAP - Delta
    5) Transaction Data OLAP - Delta Initialization
    I have checked all these infopackages,i dont see any difference when i tried to compare the selection conditions and datatargets.
    Now my question is
    1) How do i select which infopackage should be in the process chains?
    2) Also do we need to create and delete indexes for the technical content cubes too?
    Please advise
    thanks in advance
    kiran

    Hi sunil,
    I appreciate your reply.
    Issue 1:My question was as i have 5 Standard infopackages with no differences.If you see my first posting.How should i consider which infopackage to choose for in my Process Chain?
    Ex: As i see 3 Init Infopackages witht he same name.How should choose which onfopackage to include for the process chain?
    Also i see 2 delta infopackages witht almost the similar name.How should i consider which infopackage to include for the process chain.
    Issue 2: I do understand that indexes are deleted before loading data for better loading performance and then indexes are created for reporting perfomances.
    But my question was do we have to create/delete indexes for Technical content too.What is the recommended solution?What are the Pros and Cons?
    Hope i am clear with my questions this time.
    thanks in advance
    kiran

  • Urgent::Issue with advanced tables....

    Hi
    i am new to OA framework
    i have view instance (associated with a custom table..i want to insert data into this table using advanced table)with X view attributes..
    among them one is primary key.i set that using a sequence value..
    rest all.. i made them as columns of an advanced table..
    two among the above are form values..
    now i added a footer for adding a row in advanced table region...
    when i click on the add another row ...i am getting this error...please check it...i am stuck here since long time..
    Error: Cannot Display Page
    You cannot complete this task because one of the following events caused a loss of page data:
    * Your login session has expired.
    * A system failure has occurred.

    i added this code in my controller....
    if ((tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))) {
    am.invokeMethod("createRecordInv");
    and in my am i wrote this..
    public void createRecordInv()
    try
    ARTransactionLineVOImpl vo = getARTransactionLineVO1();
    if (!vo.isPreparedForExecution())
    {   vo.executeQuery();     }
    if (vo != null)
    vo.setMaxFetchSize(0);
    ARTransactionLineVORowImpl row1 = ( ARTransactionLineVORowImpl)vo.createRow();
    if (vo.getFetchedRowCount() == 0)
    vo.insertRow(row1);
    else
    { vo.insertRowAtRangeIndex(vo.getFetchedRowCount(),row1); }
    row1.setNewRowState(row1.STATUS_INITIALIZED);
    OADBTransaction transaction = getOADBTransaction();
    Number CdArScheduleId = transaction.getSequenceValue("CLE_CD_CASH_DOC_AR_INVS_ALL_S");
    ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
    TransDetailsVORow.setCdArScheduleId(CdArScheduleId);
    catch(Exception ex)
    { ex.getMessage();  }
    i am getting NULL POINTER EXCEPTION.....
    i set some of the values in advanced table prgramatically later using PPR...
    is it ok....
    just look into this n let me know if im wrog some where....

  • Urgent :- Issue with OC4J component startup - Please help.

    Hello Oracle Gurus,
    We are facing a very strange problem with the startup of OC4J home and the component is not starting up.
    The application server we are using is Oracle 10G 9.0.4.
    Please could you guide me as to what could be wrong so that we could resolve this problem ?
    Thanks and Regards,
    Ramanan.
    We checked up the logs and we found the following errors -
    "06/05/09 14:38:19 Start process
    06/05/09 14:38:24 Warning: Error reading transaction-log file (/u01/gcube1/oracle/j2ee/home/persistence/home_default_island_1/transaction.state) for recovery: premature end of file
    06/05/09 14:38:24 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/05/09 14:38:24 Recovery completed, 0 connections committed and 0 rolled back...
    06/05/09 14:51:03 Start process
    06/05/09 14:51:12 Warning: Error reading transaction-log file (/u01/gcube1/oracle/j2ee/home/persistence/home_default_island_1/transaction.state) for recovery: premature end of file
    06/05/09 14:51:12 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/05/09 14:51:12 Recovery completed, 0 connections committed and 0 rolled back...
    06/05/09 14:56:11 Start process
    06/05/09 14:56:17 Warning: Error reading transaction-log file (/u01/gcube1/oracle/j2ee/home/persistence/home_default_island_1/transaction.state) for recovery: premature end of file
    06/05/09 14:56:17 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/05/09 14:56:17 Recovery completed, 0 connections committed and 0 rolled back..."

    Hello Deepak,
    Thanks very much for your prompt reply to my problem.
    I tried to do what you mentioned in your reply to me, but still could nt manage to get the OC4J component up and running. We suspect that it may be some installation issue and we are blowing up the existing installation to make a fresh one on a new machine.
    Will keep your suggestions in mind , they really help me out and am learning :-)
    Have a great day and thanks once again !
    Best Regards,
    Ramanan.

Maybe you are looking for

  • Why is Ask Jeeves attached to my firefox browser and how can I remove it?

    Everytime I click on Firefox browser on my laptop, it is the Ask Jeeves search engine website that comes up with it. I do not want Ask Jeeves to appear with Firefox anymore. Thank you Emiade

  • Project 2010 Trial - Enterprise Global File permissions problem

    Hi, I recently installed Project 2010 Server Trial version. The web fronted work but when i try with Project 2010 Profesionnal client, i got this error message : "No permissions to read Project Server Enterprise Global File. The Project Server Enterp

  • Archived redo log size more less than online redo logs

    Hi, My database size around 27 GB and redo logs sizes are 50M. But archive log size 11M or 13M, and logs are switching every 5-10min. Why? Regards Azer Imamaliyev

  • Enhancement Spot(ES_CRM_RF_Q1O_FILTER )

    Hi Everyone, i need to implement ES_CRM_RF_Q1O_FILTER (enhancement spot) and the BADI within this enhancement spot- CRM_BADI_RF_Q1O_FILTER. After implementing the badi need to implement the interface method u2013 FILTER_RESULT . But unable to proceed

  • TS1292 iTunes card won't redeem.

    I'm having some trouble redeeming my iTunes card on my iPad. When I type the code in and click "redeem" or "next", nothing happens. I've double checked my Internet connection and the way I typed in the code, but both are fine. I've done everything I