ClassCastException error in Controller object

HI folks,
I'm getting this ClassCastException error in the controller I'm extending. Basically, I'm trying to access the row values of a table which is created as OATableLayout and OARowLayout. My repeated attempts to solve this has failed. I wonder if one of you experts can figure this out. Here is the relevant runtime error message:
## Detail 0 ##
java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.form.OAFormValueBean
     at oracle.cabo.ui.beans.layout.TableLayoutBean.getRowLayout(Unknown Source)
     at xbol.oracle.apps.hxc.selfservice.timecard.webui.XXTimecardCO.processFormRequest(XXTimecardCO.java:57)
The lines 56 & 57 is below:
OATableLayoutBean tableBean = (OATableLayoutBean)oawebbean.findChildRecursive("ConfigUIBean");
OARowLayoutBean rowBean = (OARowLayoutBean) tableBean.getRowLayout(0);
By the way, can I use TableLayoutBean instead of OATableLayoutBean, even though the original table was created as OATableLayout? The getRowLayout method is actually from TableLayoutBean.
Thanks

Let me try to start with the exception that you are getting.
The ClassCastException that you see in your first post is because the API call as below
OARowLayoutBean rowBean = (OARowLayoutBean) tableBean.getRowLayout(0);returns a FormValueBean and not a RowLayoutBean. This is the reason that you were getting this error.
I believe that the findChildRecursive(..) API exists in the Table Layout Bean. Please, check the javadoc
<JDEV_CLIENT_INSTALL_DIR>/jdevdoc/javadoc/fwk/oracle/apps/fnd/framework/webui/beans/layout/OATableLayoutBean.html#findChildRecursive(java.lang.String)
Can you please explain if you are still getting any errors even after the below code
OATableLayoutBean tableBean = (OATableLayoutBean)oawebbean.findChildRecursive("ConfigUIBean");
OARowLayoutBean rowBean = (OARowLayoutBean)tableBean.getIndexedChild(0);

Similar Messages

  • ClassCastException error problem

    Hi all,
    I am relatively new to java and confused with the following problem. The below code compilers but returns a ClassCastException error when run.
    private List<TableOne> query = new ArrayList<TableOne>();
           private TableTwo tableTwo;
    //create an array of values
            for (Double value : array) {
              query = ..result from sql query (needs to be list using hibernate)
             for (TableOne queryValue :  query ) {
             //something
    public List<TableOne> getTableOne() {
            return query;
        public List getQuery()
            return this.Query;
               The ClassCastException error occurs on the second for loop? Is this because the wo objects are not of the same type? Any suggetions would be great, thanks in advance

    Hi,
    look, List<TableOne> should mean that You have a list of TableOne objects. It seems like logic mistake. In addition, You are already have instance of query why do You need to assign it once more?
    Now about ex. You sayed it is in the second loop and put almost nothing there. It seems like You have a mistake in //something ;)

  • ERROR - JBO-25005: Object name  for type View Object is invalid

    Hi All,
    I am getting this error "JBO-25005: Object name for type View Object is invalid" while executing my VO query in Controller code. Can any one please tell me the reason behind this error?
    I am creating a VO dynamically and .xml file of a VO is placed in a proper directly. Please let me know some inputs to resolve this.
    Thanks & Regards,
    -Abm

    I found the below explanation for the error mentioned. Check if your package name, Object names confirm to the standard specified
    JBO-25005: InvalidObjNameException
    Cause: An attempt has been made to associate a business component name with an object for which it is not valid.
    Action: The name should be a valid Java identifier with no spaces or punctuation. Names are of the format myProjectPackage.BusinessPackage.BusinessComponent

  • OrionRemoteException: Error (de-)serializing object

    Hi all,
    I am using Oracle Application Server 10g Release 1 and I am trying to deploy My Application on Oracle As. In My Application One EJB calling Another EJB. while calling time i am getting this exception.
    com.evermind.server.rmi.OrionRemoteException: Error (de-)serializing object:
    com.evermind.sql.OrclStatement
         at com.evermind.server.ejb.EJBUtils.cloneSerialize(EJBUtils.java:423)
         at com.evermind.server.ejb.EJBUtils.cloneObject(EJBUtils.java:396)
         at
    ISS_StatelessSessionBeanWrapper72.handleRequest(ISS_StatelessSessionBeanWrap
    per72.java:228)
         at com.dcons.iss.ejb.CountryBean.postRequest(CountryBean.java:183)
         at
    CountryRemote_StatelessSessionBeanWrapper70.postRequest(CountryRemote_Statel
    essSessionBeanWrapper70.java:101)
         at
    com.dcons.iss.ejb.MUTBFacadeBean.delegateRequest(MUTBFacadeBean.java:594)
         at
    MUTBFacadeRemote_StatelessSessionBeanWrapper0.delegateRequest(MUTBFacadeRemo
    te_StatelessSessionBeanWrapper0.java:102)
         at com.dcons.iss.BeanHandler.doPost(BeanHandler.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa
    tcher.java:765)
         at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq
    uestDispatcher.java:317)
         at
    com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDisp
    atcher.java:220)
         at com.dcons.iss.Controller.doPost(Controller.java:109)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa
    tcher.java:765)
         at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq
    uestDispatcher.java:317)
         at
    com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle
    r.java:790)
         at
    com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
         at
    com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
         at
    com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableRe
    sourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
         Nested exception is:
    java.io.NotSerializableException: com.evermind.sql.OrclStatement
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
         at com.evermind.server.ejb.EJBUtils.cloneSerialize(EJBUtils.java:409)
         at com.evermind.server.ejb.EJBUtils.cloneObject(EJBUtils.java:396)
         at
    ISS_StatelessSessionBeanWrapper72.handleRequest(ISS_StatelessSessionBeanWrap
    per72.java:228)
         at com.dcons.iss.ejb.CountryBean.postRequest(CountryBean.java:183)
         at
    CountryRemote_StatelessSessionBeanWrapper70.postRequest(CountryRemote_Statel
    essSessionBeanWrapper70.java:101)
         at
    com.dcons.iss.ejb.MUTBFacadeBean.delegateRequest(MUTBFacadeBean.java:594)
         at
    MUTBFacadeRemote_StatelessSessionBeanWrapper0.delegateRequest(MUTBFacadeRemo
    te_StatelessSessionBeanWrapper0.java:102)
         at com.dcons.iss.BeanHandler.doPost(BeanHandler.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa
    tcher.java:765)
         at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq
    uestDispatcher.java:317)
         at
    com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDisp
    atcher.java:220)
         at com.dcons.iss.Controller.doPost(Controller.java:109)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispa
    tcher.java:765)
         at
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletReq
    uestDispatcher.java:317)
         at
    com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle
    r.java:790)
         at
    com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
         at
    com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
         at
    com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableRe
    sourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Please help me to solve this issue.
    regards
    muruganandam.n

    Can't really say from the info provided, but it could be a classpath issue. Are you sure that the object that is being unmarshalled is on the classpath of the receiving VM? More info would be required before any more could be said.

  • Java.lang.ClassCastException: Cannot narrow remote object weblogic.rmi.inte

    Hi,
    I am trying to deploy ejb3.0 on weblogic 10 server. I am able to find the JNDI name of the stateless session bean correctly, but getting an exception while narrowing it down. My ejb3.0 client is a standalone java client. I am trying to access the stateless session ejb3.0 bean.Please help me. i have been trying it for many days.
    thanks in advance,
    Sanjeev
    [sanpraka@localhost certEjb]$ java -cp ./:/usr/weblogic/bea/wlserver_10.0/server/lib/weblogic.jar:/usr/weblogic/bea/wlserver_10.0/server/lib/wlclient.jar com.titan.clients.Client
    Object is weblogic.rmi.internal.BasicRemoteRef - hostID: '5337880647112897730S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:wl_server:examplesServer', oid: '302', channel: 'null'
    java.lang.ClassCastException: Cannot narrow remote object weblogic.rmi.internal.BasicRemoteRef - hostID: '5337880647112897730S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:wl_server:examplesServer', oid: '302', channel: 'null' to com.titan.travelagent.TravelAgentRemote
    at weblogic.corba.server.naming.ReferenceHelperImpl.narrow(ReferenceHelperImpl.java:206)
    at weblogic.rmi.extensions.PortableRemoteObject.narrow(PortableRemoteObject.java:88)
    at weblogic.iiop.PortableRemoteObjectDelegateImpl.narrow(PortableRemoteObjectDelegateImpl.java:32)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    at com.titan.clients.Client.main(Client.java:24)
    [sanpraka@localhost certEjb]$

    We have a similar problem. We have a web application (on server A) that invokes an EJB on a remote server (server B). This works fine, until we deploy another web application to server A at which point the existing web application starts to throw java.lang.ClassCastException when narrowing the remote EJB interface. The exception starts to be thrown at the moment the latter web application is deployed - start is not required.
    The latter web application contains (actually in APP-INF/lib) the old version of the EJB remote interface, that somehow gets to be loaded into the classpath of the existing web application. The solution is to delete the old version of the EJB remote interface from APP-INF/lib of the latter web application (we didn't need it anyway), but it would be interesting to know in which circumstances classes can get mixed between enterprise applications.
    I failed to reproduce the error in simple scenario, so this does not happen always.

  • Error in updating object SURVEY

    Hi Experts,
    The following error occurs not always but very rarely while updating the notes field or while saving an Activity.
    SAP Note
    The following error text was processed in the system P60:
    Error in updating object SURVEY
    The error occurred on the application server crmpcs2c_P60_09 and in the work process 6.
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was:
    Function: CRM_SURVEY_UPDATE_DY of program SAPLCRM_SURVEY_DU
    Form:CRM_SURVEY_UPDATE_DY of program SAPLCRM_SURVEY_DU
    Form:%_UPDATES_NO_UTASK of program SAPMSSY4
    Form: LOCAL_UPDATE_TASK of program SAPMSSY4
    START-OF-SELECTION of Program SAPMSSY4
    Could you help me in this regard.
    Thanks in Advance.
    I will reward full points to the expert.
    Regards,
    Madhura.

    Hi Gervase,
    No, but there was an associated dump in the transaction SM13.
    Here is the detail:
    Function Module: CRM_SURVEY_UPDATE_DU
    Status: Update was terminated
    Report: LCRM_SURVEY_DUU02
    Row: 94
    Error details   Class: CRM_ORDER_MISC Number: 002
    Error in updating object SURVEY
    Thanks in Advance.
    Regards,
    Gabriel.

  • "An error has occurred:Object reference not set to an instance of an object."

    This error message comes up with a user in InfoView.  The user schedules a report, updates parameters, and the report kicks off successfully.  But then a few minutes later, this error is received.    This occurs sporadically, regardless of the length of time of report or amount of data being retrieved.  Sometimes the report runs to completion.  Other times this error message occurs.
    Has anyone seen this before and have any thoughts?
    Thank you.
    “An error has occurred:Object reference not set to an instance of an object.”

    Are you able to replicate the issue both in Java and .NET InfoView?
    For .NET InfoView, sometimes the "An error has occurred: Object reference not set to an instance of an object" error shows up after the .NET Framework is upgraded to 2.0

  • Error  while migrating object from PI 7.0 to pi 7.1

    Hi All,
    I am migrating IR and ID object from PI 7.0  to PI 7.1 using file system.
    IR oject got imported sucessfully in ESR but ID after importing when i tried to activate the objects in change list i am facing the following error. Does anyone have any idea about the error.
    Internal error while checking object Communication Channel: | XIXREF_C | File_FileXref_Sender_XrefFlat_CC; see details++
    Attempt to access the 1 requested objects on 1 failed
    Detailed information:
    com.sap.aii.ib.core.roa.RoaObjectAccessException:
    Attempt to read object Adapter Metadata File | http://sap.com/xi/XI/System,
    type AdapterMetaData from application REPOSITORY on++
    system REPOSITORY failed. Object does not exist. Detailed
    informatio n: Software component version with key ID:
    b38bcd00e47111d7afacde420a1145a5 not found (ROA_MOA_NOTCOMPLETED)
    Thanks
    Kasturika Phukan

    Hi Kasturika,
    Check whether the metadata for the particular adapter in the BASIS SWCV exists or not.
    I hope you are refering to the following guide while transferring from PI 7.0 to PI 7.1
    [Move Scenarios from 7.0 to 7.1|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90baf3dd-dbf9-2b10-47aa-ac5f56bb5030]
    Regards,
    Gautam Purohit

  • Add ABAP program: validating package - error accessing shared objects-area

    When adding a new program or browsing the packages in eclipse i get an "error accessing shared objects-area".
    I can edit, save and run existing ABAP reports, however.
    There was a similar problem here, regarding database procedure proxies but the solution doesn't apply to my problem, i guess. The solution was about creating the shared memory area CL_RIS_SHM_AREA. I can't access the memory area and start the constructor, as it doesn't show up on the monitor.
    ADT 2.28
    Eclipse 4.3
    Netweaver 7.31 SP4 -> is this really compatible with ADT 2.28?
    Thanks in advance for helpful hints,
    Julian

    HI Julian,
    if the area doesn't show up in the monitor, please try to start the constructor in transaction SHMM on your own by selecting the icon 'Start Constructor' as shown in the screenshot.
    Choose CL_RIS_SHM_AREA as area, select 'Default Instance' and 'Dialog' as execution mode. Then press 'Create'. Either this works or the system will tell you the issue with the instance creation (e.g. insufficient shared objects memory - see the other solution description).
    Best regards, Sebastian

  • Error in editing Object Form

    Hi,
    After submitting the request for an application when i click on edit to make some changes in web console the form for editing pops out. When i change the field values and again submit am getting an error like 'Error in editing Object Form .After request is submitted, data canot be added, updated or deleted any further by the requestor'. This happens only for applications which are having a child form. Please let me know the solution for this issue. Thanks in advance.
    Regards,
    Durgaprasad

    I have given permission to all users in the object from. This problem is not happening for all applications. Only for applications which are having child form the problem is there. When i debugged the custom UI code the error displayed in console is 'Error in editing Object Form .After request is submitted, data canot be added, updated or deleted any further by the requestor'. Thanks.

  • Error "Invalid Report Object" when running any CR

    Hi, I have installed BO XI V3.1 and upgraded to 1.4 level.
    However when logged into the infoview app, if i browse to any 2008 report i have uploaded into the enterprise system and double click to run i get the error "Invalid Report Object".
    This is also true if i try to run any report in the Public Folders \ Report Samples folder.
    Nothing will display for me but they run fine in CR 2008, just not via the web tool.
    Any help on this will be much appreciated.
    C.

    Hi,
    Is this issue after you have upgraded to 1.4 or was this issue occurring before?
    Since the reports are running properly in the designer please try to do following steps:-
    1)  Open the report in the designer which is not working in enterprise
    2)  Refresh the report in CR designer
    3)  Save the report back to the enterprise and make sure save with data is checked.
    4)  Now open the report in the Enterprise and check it works or not.
    The reason of doing this is that to generate new PID's for the reports if after the upgrade the PID's have changed or has became corrupt.

  • How to fix the .pdf file with error "invalid annotation object"

    how to fix the .pdf file with error "invalid annotation object"

    As long as the PDF opens, then just try saving it to a new file name. There may be a preflight script that would help troubleshoot the issue.

  • Trex error: No embedded object found in document (Errorcode 14037)

    Hi,
    we have following problem with our crawler:
    in the crawler 50 % of documents are returning the error "No embedded object found in document (Errorcode 14037)" and are not displayed in the trex monitor. All other documents are indexed correctly an are in the trex monitor in "OK".
    We are on Stack 14 Patch 4.
    Regards,
    Gerhard

    Hi Gerhard,
    Typically, errors codes 14XXX are related to filter problems during the preprocessing of documents. Details about TREX error codes are explained in the help portal and in the note 898404.
    Unfortunatelly, filter problems could not be easily fixed. However, a good starting point would be to use a newer TREX release. If this doesnt help please open a Customer Message and attach documents, which causes the mentioned error. Please attach only not sensible documents!
    Kind regards,
    Roland

  • Error "Only edit objects from package /VIRSA/ZVIR in local requests"

    Hey, SAP gurus,
    After I applied OSS note 1149445 in our Dev box to fix the bug in program /VIRSA/ZVFAT, I had problem to realease the transport. I got the error u201COnly edit objects from package /VIRSA/ZVIR in local requestsu201D.
    u201CObjects in package /VIRSA/ZVIR cannot be edited in transportable Workbench requests in the current Dev system. The transport routes are configured such that objects from package /VIRSA/ZVIR can only be edited in local Workbench requests.u201D
    What can I do to release the transport and move it to our QA box?
    Thanks in advance!
    Fisher Li

    My co-worker and I followed SAP instruction on this one and solve the issue.
    We created a "transport of copies" by using Transaction SE01. Go to the request overview and choose Request/task -> Object list -> Include objects to include the "child transport number of my transport" in this "transport of copies". Add the target system and release the change request.
    Thanks!
    Fisher Li

  • Namespace deletion error for ghost objects

    Hi people.
    I need to remove a namespace in ESR.
    I have first deleted all objects and activated it and then I tried to remove the namespace from the Namespace Definition List.
    After removed the namespace item and saving the change, I receive the following error:
    Cannot save object Namespace Definition
    Namespace cannot be deleted since the software component version still contains objects in namespace http://www.sapcons.com/Edm_EE/
    Delete the objects first
    In fact, running the Export functionality and saving the summary result in a file I have a list of objects but, at this point, I don't know how to delete. Could be a cache problem? I cleaned all cache available in Administration web page but without result.
    Could someone help me?
    Ciao
    Nicola

    Double clicking the software component, delete all the namespaces present in the software component, and do not save it.
    Now delete all the default datatypes in all the namespaces present in the software component and now save the software component and activate the changes.
    Now double clicking the software component> Goto Software component version menu> from the drop down select the delete option. this will delete the software component from IR.
    Now goto SLD and select the software component and remove it.
    Then clear the SLD cache. Now the software component will be deleted.
    Also refer this blog:
    How to : Delete Software Component from Integration Builder

Maybe you are looking for