Getting Null while trying to printhe column value entered in advanced table

Hi All
I am developing a OAF data entry form, which has advanced table region with LOV for each column.
I have to validate the data entered in form. So initially I am trying to capture the values entered in form. I have written following code in CO.
if(pageContext.getParameter("Save")!=null)
// OAApplicationModule am = pageContext.getApplicationModule(webBean);
String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
int j = vo.getFetchedRowCount();
System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
this Retuns 1
String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
System.out.println("Value: "+a);
This returning null
I tried folleowing code also
if(pageContext.getParameter("Save")!=null)
// OAApplicationModule am = pageContext.getApplicationModule(webBean);
String[] as = null;
String[] vNumber = null;
String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
int j = vo.getFetchedRowCount();
try
System.out.println("abouce try");
vo.reset();
if (vo.getFetchedRowCount() > 0)
System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
int i = 0;
as = new String[j];
vNumber = new String[j];
while (vo.hasNext())
vo.next();
System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
vNumber[i] = String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ProductGroup")).concat(String.valueOf(""));
System.out.println("Output"+as[i] +vNumber);
i++;
//System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
//String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
//String b=(String)vo.getCurrentRow().getAttribute("Configuration");
//System.out.println("Value: "+a);
//System.out.println("Value1: "+b);
am.save(pageContext);
}catch (Exception exception)
throw new OAException("unable to print the records",OAException.WARNING);
Still the output retuning null
abouce try
Fetched row count 1
Inisde the do while loop0
Outputnullnull
But records are saved successfully
Can someone assist why it is printing null for column Configuration?
Thanks in advance.
Srini
Edited by: user608535 on Jan 30, 2013 11:53 PM
Edited by: user608535 on Jan 31, 2013 1:10 AM

Hi All
I am developing a OAF data entry form, which has advanced table region with LOV for each column.
I have to validate the data entered in form. So initially I am trying to capture the values entered in form. I have written following code in CO.
if(pageContext.getParameter("Save")!=null)
// OAApplicationModule am = pageContext.getApplicationModule(webBean);
String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
int j = vo.getFetchedRowCount();
System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
this Retuns 1
String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
System.out.println("Value: "+a);
This returning null
I tried folleowing code also
if(pageContext.getParameter("Save")!=null)
// OAApplicationModule am = pageContext.getApplicationModule(webBean);
String[] as = null;
String[] vNumber = null;
String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
OAViewObject vo = (OAViewObject)am.findViewObject("GlobalSourcingMatrixVO1");
int j = vo.getFetchedRowCount();
try
System.out.println("abouce try");
vo.reset();
if (vo.getFetchedRowCount() > 0)
System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
int i = 0;
as = new String[j];
vNumber = new String[j];
while (vo.hasNext())
vo.next();
System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
vNumber[i] = String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ProductGroup")).concat(String.valueOf(""));
System.out.println("Output"+as[i] +vNumber);
i++;
//System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
//String a=String.valueOf(vo.getCurrentRow().getAttribute("Configuration")).concat(String.valueOf(""));
//String b=(String)vo.getCurrentRow().getAttribute("Configuration");
//System.out.println("Value: "+a);
//System.out.println("Value1: "+b);
am.save(pageContext);
}catch (Exception exception)
throw new OAException("unable to print the records",OAException.WARNING);
Still the output retuning null
abouce try
Fetched row count 1
Inisde the do while loop0
Outputnullnull
But records are saved successfully
Can someone assist why it is printing null for column Configuration?
Thanks in advance.
Srini
Edited by: user608535 on Jan 30, 2013 11:53 PM
Edited by: user608535 on Jan 31, 2013 1:10 AM

Similar Messages

  • Getting error while trying to delete columns from form designer

    I Am trying to make last name a mandatory field.
    AD was not getting provisioned for users that i created.The system validation task was not getting completed.WHen i tried to save the process form it was showing that last name was a mandatory field.So i figured it out that my process form was not getting populated.
    i was trying to delete last name from the form version.But it was throwing an error code= DOBJ.SDC_CANNOT_DELETE_SRE_ENTRIES_EXIST
    So i am trying to create a new version of a form and delete some columns.But when im doing it it shows the following error :
    ERROR,15 Dec 2008 18:03:20,073,[XELLERATE.SERVER],Class/Method: tcSDC/hasPrePopulatedEntries Error :Sdk cannot drop, SRE entries Exist.
    Could you help as to how i can resolve this.

    You cannot delete a column, but you can hide it ;)
    In your case, you may follow these steps:
    1) Create a new form version.
    2) Go to the "Properties" tab in the form editor.
    3) Delete the "Required=true" property for the "Last Name" field.
    4) Add a new property to the "Last Name" field: select "Visbile Field" in the "Property Name" combo-box, and add "false" to the "Property Value". Save.
    5) Activate your version.
    Think again about hidding the "Last Name", because I think it's a mandatory value for AD user creation (i.e., AD won't let you create users if they don't have Last Name set). However, I'm not sure.
    Hope this help!

  • Sender RFC adapter Error- request was null while trying to extract it.

    Hi All,
    I  have a scenario running in Production(PI 7.0 system) where SAP ECC sends RFC request through sender RFC adapter. The scenario was working fine but now I am getting the below error in default trace and I couldn't see any error in communication channel monitoring.
    java.lang.Exception: RfcServer[BAS_ECC_RFC_Snd]1[AFSenderD] request was <null> while trying to extract it.
    I have gone through the below thread and performed a full cache refresh but it didn't help :  
    [NULL]
    I have gone through SAP note:730870 and I couldn't get any help on this error. Can you please suggest your ideas to solve this issue.
    Thanks & Regards,
    Laawanya

    Hi Lawanya,
    Check you RFC and input data , whether the RFC call is able to get the data from ECC or not.
    you can test the same RFC in ECC with input data and you can check whether the RFC in ECC is return the value or not.
    I gues in your case the RFC in ECC is not return any data  to PI.

  • Getting NameNotFoundException while trying to look up timer from startup cl

    Hi all,
    I am getting NameNotFoundException while trying to look up timer from startup class.
    I have configured commonj.timers.TimerManager in ejb-jar.xml of my MDB. I am using statrtup classes to initialize some static components immidiate to the MDB's active state. I have to initialize the timer manager object immidiate to the MDB's active state which is configured in ejb-jar.xml. I wrote this lookup logic in postStart() method of ApplicationLifecycleListener, The method getting called but the lookup logic getting failed, the same look up logic is working in MDB class (MDBTimer.java). I have tried different ways, I did’nt get solution, finally I am posting the problem here.
    Could any of weblogic experts please help out on this Issue?
    Here I am giving my code.
    weblogic-application.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-application
         xmlns="http://www.bea.com/ns/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd">
         <listener>
              <listener-class>my.examples.mdb.timer.TestApplicationListener</listener-class>
         </listener>     
    </weblogic-application>
    ejb-jar.xml
              <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
              http://java.sun.com/xml/ns/j2ee/ejb-jar_3_0.xsd"
                   version="3.0">
                   <enterprise-beans>
                        <message-driven>
                             <ejb-name>MyTimerMDB</ejb-name>
                             <ejb-class>my.examples.mdb.timer.MDBTimer
                             </ejb-class>
                             <resource-ref>
                                  <description>My Default Timer Manager</description>
                                  <res-ref-name>timer/MyDefaultTimer</res-ref-name>
                                  <res-type>commonj.timers.TimerManager</res-type>
                                  <res-auth>Container</res-auth>
                                  <res-sharing-scope>Unshareable</res-sharing-scope>
                             </resource-ref>
                        </message-driven>
                   </enterprise-beans>
              </ejb-jar>
    MDBTimer.java
    package my.examples.mdb.timer;
    import javax.ejb.MessageDriven;
    import javax.ejb.TransactionAttribute;
    import javax.ejb.TransactionAttributeType;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    import javax.jms.ObjectMessage;
    import commonj.timers.Timer;
    import commonj.timers.TimerManager;
    @MessageDriven(mappedName = "TEST_Q", name = "MyTimerMDB", activationConfig = {
              @javax.ejb.ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
              @javax.ejb.ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
              @javax.ejb.ActivationConfigProperty(propertyName = "transactionType", propertyValue = "Container"), })
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    public class MDBTimer implements MessageListener {
         public static TimerManager manager = null;
         @Override
         public void onMessage(Message arg0) {
              System.out.println("onMessage() method called...\n\n");
              if (arg0 instanceof ObjectMessage) {
                   ObjectMessage msg = (ObjectMessage) arg0;
                   try {
                        if (msg.getObject() instanceof String) {
                             Thread.sleep(1000);
                             System.out
                                       .println("Message received >> " + msg.getObject());
                   } catch (Exception e) {
                        e.printStackTrace();
              System.out.println("onMessage() method returned...\n\n");
              if(manager==null){
                   manager=MyUtil.getTimerManager();
    TestApplicationListener.java
    package my.examples.mdb.timer;
    import commonj.timers.TimerManager;
    import weblogic.application.ApplicationException;
    import weblogic.application.ApplicationLifecycleEvent;
    import weblogic.application.ApplicationLifecycleListener;
    public class TestApplicationListener extends ApplicationLifecycleListener {
         public void preStart(ApplicationLifecycleEvent evt)throws ApplicationException {
              String logStr = ">>>>TestApplicationListener.preStart()>>>>";
              System.out.println(logStr+"entered...");
              super.preStart(evt);
              System.out.println(logStr+"leveaing...");
         public void postStart(ApplicationLifecycleEvent evt)throws ApplicationException {
              String logStr = ">>>>TestApplicationListener.postStart()>>>>";
              System.out.println(logStr+"entered...");
              super.postStart(evt);
              TimerManager timerManager = MyUtil.getTimerManager();
              System.out.println(logStr+"Got timer manager ==> "+timerManager);
              System.out.println(logStr+"leveaing...");
         public void preStop(ApplicationLifecycleEvent evt)throws ApplicationException {
              String logStr = ">>>>TestApplicationListener.preStop()>>>>";
              System.out.println(logStr+"entered...");
              TimerManager timerManager = MyUtil.getTimerManager();
              System.out.println(logStr+"Got timer manager ==> "+timerManager);
              super.preStop(evt);
              System.out.println(logStr+"leveaing...");
         public void postStop(ApplicationLifecycleEvent evt) throws ApplicationException{
              String logStr = ">>>>TestApplicationListener.postStop()>>>>";
              System.out.println(logStr+"entered...");
              super.preStop(evt);
              System.out.println(logStr+"leveaing...");
    MyUtil.java
    package my.examples.mdb.timer;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import commonj.timers.TimerManager;
    public class MyUtil {
         public static TimerManager getTimerManager() {
              TimerManager timerManager = null;
              try {
                   InitialContext ctx = new InitialContext();
                   timerManager = (TimerManager) ctx
                             .lookup("java:comp/env/timer/MyDefaultTimer");
                   System.out
                             .println("@@@@@Looked-up using java:comp/env/timer/MyDefaultTimer : "
                                       + timerManager);
              } catch (NamingException e) {
                   e.printStackTrace();
              return timerManager;
    }

    Thaks for your valuble information. I tried as you suggested!!! But NO luck . Still I am getting the issue.
    I am using a class(TestApplicationListener) implements ApplicationLifecycleListener to listen my application.
    I have overriden the methods preStart(), postStart(), preStop() and postStop().
    Given following entries in weblogic-application.xml
    <listener>
              <listener-class>my.examples.mdb.timer.TestApplicationListener</listener-class>
    </listener>     
    Also given
    <ejb>
                   <start-mdbs-with-application>false</start-mdbs-with-application>
    </ejb>          As you suggested.
    If I try to look-up timer manager from postStart() method of TestApplicationListener then it is giving NameNotFoundException
    , same exception is giving in preStop() method.
    If it is problem with initialization; I think, it should not give problem with preStop() method. (Correct me if I am wrong)
    If I try to lookup the timer manager from onMessage() method of my MDB, It is not giving any problem.
    I didn’t understand the reason why it is happening.
    Note: All the life cycle methods (preStart(), postStart(), preStop() and postStop() ) are getting executed when I start/stop/redeploy my application from console.

  • Excel service and OWA - getting ERROR while trying to open/edit Excel documents

    Hi All,
    We have configured SharePoint 2013 with Excel Service and OWA (Office Web Apps).
    After configuring, we are able to view/edit Word or PowerPoint documents from the browser (as OWA is configured). But we are getting errors while trying to open/edit Excel documents.
    We are not able to view/edit the excel workbook from the browser (through OWA).
    To open the excel in the browser, decision has to be taken at the farm level on what to be used – Excel Service or OWA Server? Is it possible to do setting at site collection level?
    Error details are given below:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 3/25/2013 1:29:08 PM
    Event time (UTC): 3/25/2013 7:59:08 AM
    Event ID: fc2e0530f493493896e6c8b6297a0423
    Event sequence: 10
    Event occurrence: 3
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/2/ROOT/x-1-130086717598089315
        Trust level: Full
        Application Virtual Path: /x
        Application Path: C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\
        Machine name: VHYDMANTHSTP-02
    Process information:
        Process ID: 1252
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
        Exception type: ArgumentException
        Exception message: An entry with the same key already exists.
       at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Request information:
        Request URL:
    http://mysrevr/x/_layouts/xlpreview.aspx?ui=en-US&rs=en-US&WOPISrc=http://myservernames1/_vti_bin/wopi.ashx/files/f36d669ceb814d67bdad0e1e1f98e466&wdSmallView=1
        Request path: /x/_layouts/xlpreview.aspx
        User host address: 10.81.138.92
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE
    Thread information:
        Thread ID: 13
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    I have the same issue while opening the file , i have checked every thing twice. but unable to fix this thing . can any one help.
    One more thing which is i am wondering none of the MS representative replied on this post which is originally posted on March 27-2013.
    is microsoft alive??
    Imran Bashir Network Administrator MCP, JNCIA-EX,ER,JNIOUS +92-333-4330176

  • Getting error while trying to generate SNP PPM

    Hi Experts,
    I am getting error, while trying to generate SNP PPM fron PP/DS PPM. It says Set up matrix for resource in planning version is not define. But I checked that i havea set up matrix as well as setup group.
    Any help will be appreciated. Thanks In advance.
    Sani

    Hi Sani,
    Try running resource & ppds ppm consistency check against
    their respective transactions (/sapapo/res01 & /sapapo/scc_03)
    and check any inconsistencies found.
    Regards
    R. Senthil Mareeswaran.

  • Getting error while trying to bring datafile online.

    Hi,
    I am getting error while trying to bring datafile online.
    Can you please help me in this.
    SQL> alter database datafile 5 online;
    alter database datafile 5 online
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
    ORA-01110: data file 5: 'G:\ABC.DBF'
    Database is running in Archivelog mode.
    Even when i tried to take the whole database backup i got the following error.
    RMAN> backup database;
    Starting backup at 21-OCT-09
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=139 devtype=DISK
    could not read file header for datafile 5 error reason 4
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 10/21/2009 18:07:04
    RMAN-06056: could not access datafile 5
    Please help me to rectify this problem.
    Database is running in Archivelog mode.
    Database is 10.2.3.0

    Aman wrote:
    Hi,
    I am getting error while trying to bring datafile online.
    Can you please help me in this.
    SQL> alter database datafile 5 online;
    alter database datafile 5 online
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
    ORA-01110: data file 5: 'G:\ABC.DBF'
    Database is running in Archivelog mode.
    Even when i tried to take the whole database backup i got the following error.
    RMAN> backup database;
    Starting backup at 21-OCT-09
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=139 devtype=DISK
    could not read file header for datafile 5 error reason 4
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 10/21/2009 18:07:04
    RMAN-06056: could not access datafile 5
    Please help me to rectify this problem.
    Database is running in Archivelog mode.
    Database is 10.2.3.0Why are you taking the backup when the file is not there? Files don't go offline just like that so the bigger concern for you should be that how come without your knowledge( I hope so) , it went offline?
    The file is not physically there and as like Don asked, is the G drive actually is there even?
    Do you have backup of this file? Also confirm, you have all the archivelogs available?
    HTH
    Aman....

  • Getting Exception while trying to get Connection

    Getting Exception while trying to get Connection from Data Source in ejbCreate() for the First time when ejbCreate() is called.
    Thanks in Advance

    Hello Mallidi,
    And the exception is ?
    Cheers, Tsvetomir

  • Setting the header of a Column group in a Advanced table dynamically

    Hi All,
    There is a requirement to set the Header of a column group in a Advanced table dynamically by fetching the values from a view attribute.
    Code :
    OAAdvancedTableBean spiderTbl1 ;
    Problem:
    It is not able to set the value for the header inspite of getting the handle of the bean.
    Analysis:
    the same piece of code works for
    1) Setting the text of the advanced table
    2) Setting the header of a column in a column group
    Please let me know if there is anything more that needs to be done for setting the prompt of a column group header.
    Thanks in advance!

    I have posted it without giving the complete code by mistake. Below is the code:
    OAAdvancedTableBean spiderTbl1 ;
    OASortableHeaderBean spiderHdr1;
    spiderTbl1 = (OAAdvancedTableBean)webBean.findChildRecursive("SpiderCatTbl1RN");
    if (spiderTbl1!=null){
    spiderHdr1= (OASortableHeaderBean)spiderTbl1.findChildRecursive("AnalogHdr");
    if (spiderHdr1!=null) {
    spiderHdr1.setAttributeValue(OAWebBeanConstants.PROMPT_ATTR,
    new OADataBoundValueViewObject(spiderHdr1,
    "SpiderCategory1",
    "ProjRegPVO1"));
    }

  • Odata JDBC Service: getting NullPointerException: while trying to invoke the method

    Hi,
    I am testing OData, for that I followed the steps given in this tutorial:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/06/10/creating-an-odata-service-based-on-sap-gateway-soap-jdbc-and-jpa-data-sources-ba
    It wasn't working as it should, so to understand it better, I created a new project with Stock table only.
    Manually entered all it's properties and then deploy it.
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Where as I need to enter: org.apache.derby.jdbc.ClientDriver.
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    Issue 3:
    When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception.
    URL: http://localhost:8080/gateway/odata/sap/WSTest1;v=1
    Response:
    <?xml version="1.0" encoding="utf-8"?>
    <service xml:base="http://localhost:8080/gateway/odata/sap/WSTest1;v=1/" xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom">
      <workspace>
       <atom:title>Default</atom:title>
       <collection href="StockSet">
       <atom:title>StockSet</atom:title>
       </collection>
      </workspace>
    </service>
    Now I need to run StockSet, so next url to access the stock list,
    to get stocks:
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Now I get the following response:
        <?xml version="1.0" ?>
        <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
        <code>
        </code>
        <message xml:lang="en">java.lang.NullPointerException: while trying to invoke the method java.lang.Object.hashCode() of a null object loaded from local variable 'k'</message>
        </error>
    I am not able to figure out, why I am getting this error and how to fix it.
    All I want is to create a ODAta on ESPM_STOCK sample table given in example.
    Looking forward to hear from you.
    Thanks.

    Waqas Sadiq
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Are you working on SMP3.0 (lower version than SP03)?
    If yes, then there is character restriction in SMP3.0 (SP00, SP01), maximum length for a database driver is 25 characters.
    e.g. if driver name is oracle.jdbc.driver.OracleDriver but when you enter this, then you will see onlyoracle.jdbc.driver.Oracle
    Until unless we pass the correct driver value things will not work. there is a workaround for this. You create a desitnation with restricted character length.
    You would be seeing a property file for each created destination underC:\SAP\MobilePlatform3\Server\config_master\service.destinations\destinations
    Go there and open the created "OracleDB" and edit the "DriverName" to the full string:oracle.jdbc.driver.OracleDriver
    Please go through this blog for more understanding:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/01/09/how-to-connect-an-oracle-db-with-integration-gateway-in-smp3
    Note: seems this problem has been resolved in SMP3 SP03
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    I didnt find a way to test a destination. So you have to be sure about what all values you are entering.
    Once you are done with Destination creation, map it to the respective deployed service under "services" tab.
    Issue 3: When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception
    Make sure you have corrected "Database driver" name manually. And then check if you are facing same issue.
    Does this URL expect any input parameters?
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Regards,
    JK

  • Getting error while trying to open the b2b console

    Hi All,
    I have installed weblogic server 10..3.1.0 and SOA 11.1.1.1.0. After installation I started the admin server and managed servers. While trying to open b2b console after login I am getting the following error message
    access denied (oracle.security.jps.service.policystore.PolicyStoreAccessPermission context=APPLICATION,name=b2bui getApplicationPolicy)
    Can anyone suggest whst could be the issue with this.

    hi,
    Suppose if you are installing linux system...
    Once try to change the permissions to your specfied user!
    try this way may be your problem is solved!
    Regards,
    Bala satish Kamma
    Edited by: 932483 on Jun 11, 2012 7:02 PM

  • Getting error while trying to refresh EUL using adrfseul.sh

    I am getting the following error while trying to refresh EUL. I am using Discoverer
    10.2.0.2 with Oracle Applications 11.5.10.2 and following note id 313418.1 of metalink.
    You are running adrfseul, version 115.0
    Start of adrfseul session
    Date/time is Thu Feb 22 13:06:56 AST 2007
    Log file is refresh_eul_us_vis.log
    Command line arguments are
         "connect=sysadmin/sysadmin@vis"
         "resp=System Administrator"
         "gwyuid=APPLSYSPUB/PUB"
         "fndnam=APPS"
         "secgroup=Standard"
         "eulschema=EUL_US"
         "eulpassword=EUL_US"
         "twotask=VIS"
         "iashome=/oracle/BIHome_2"
         "logfile=refresh_eul_us_vis.log"
         "exedir=/oracle/BIToolsHome_1/bin"
    Testing connection to database using plus80 -s ...
    plus80: adrfseul.sh 612: not found
    Connection to database using plus80 -s is OK ...
    Extracting eul folder information ...
    plus80: adrfseul.sh 612: not found
    Unable to obtain folder information.
    The SQLPLUS session exited with status 127
    adrfseul is exiting with status 1
    End of adrfseul session
    Date/time is Thu Feb 22 13:06:56 AST 2007
    Anyone knows please help me to resolve this issue. Thanks in advance.
    Regards
    Muhammad Ali

    EUL_US is an Apps mode EUL and SYSADMIN user is the owner of all EUL content in Oracle Applications environments. The unix/linux bi tools can upgrade the EUL via
    $ORACLE_HOME/bin/eulapi -CONNECT eul_us/eul_us@vis -AUTO_UPGRADE
    Use the Windows bi tools to update and refresh EUL content or look at the following note:
    5712119 / 5258810 : Adrfseul.Sh Errors On New Installation Of Disco 10.1.2 & 11i
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=404398.1

  • Getting Error while trying to enter multiple records using PA70

    Hi all,
    While trying to enter multiple records for a custom infotype using transaction PA70,
    the system asked to provide details of the custom infotype in T588Q and T588r tables after giving the details i'm able to enter into the custom infotype screen but the Personnel number is defaultly taken as
    zero and im not able to change the value and if i click save after entering the other details it is throwing an error telling that Infotype doesnt exist.
    Please Help..
    Thanks & Regards,
    Kumar Madduru

    Hi,
    Let us know the detailed error text. Probably you haven't included the infotype to maintain in Fast Entry or doesn't have the authorization.
    Good Luck
    Om

  • Getting error while trying to edit locally  the document in KM of portal.

    Hi all
    we have configured  file server in km portal as fsdb mode in portal (ep 7  sp 14). We were able to edit locally the documents . But all of a sudden from some of the PCs  we are getting the following error while  trying to edit the documents.
    The download of the document failed .
    Is there any PC specific configuration required? For the same user  we are able to edit the documents from some PCs  but from another it is not working.
    Thannking you.
    Rajendra.

    Hi,
    You have to set your activex control properly. then only edit locally in KM will work.
    Also check the below wiki
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/KMC/HowtotroubleshootproblemswithLocalEditing
    Hope that helps
    Raghu

  • Getting error while trying to create the push certificate...

    I am getting the following error while trying to create a push certificate for the mdm from the apple site.
    Certificate Signature Verification failed because the signature  is invalid.
    I am mdm vendor as well as the customer. I did the following steps.
    openssl x509 -inform der -in mdm_identity.cer -out mdm.pem
    openssl x509 -inform der -in AppleWWDRCA.cer -out intermediate.pem
    openssl x509 -inform der -in AppleIncRootCertificate.cer -out root.pem
    openssl req -inform pem -outform der -in customer.csr -out customer.der
    created the plist_encoded file using a java program which uses the "SHA1WthRSA"
    When i tried to upload the plist_encoded file to the apple site (https://identity.apple.com/pushcert/), it creates a file with the following error
    {"ErrorCode":-80018,"ErrorMessage":"Certificate Signature Verification failed","ErrorDescription":"Certificate Signature Verification failed because the <a href=\"http://www.apple.com/business/mdm\" target=\"_blank\">signature<\/a> is invalid."}
    Any help would be greatly appreciated....

    Please see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
    Thanks,
    Hussein

Maybe you are looking for