Skip to Content

com.sap.caf.rt.exception.CAFDeleteException

I have created an entity service and have used Object Selector(Searchbar and List) and Object Editor UI pattern to Select and Edit objects.

Now when i am trying to delete some object i am gettign the following exception:

"The following exception occured while processing your request: com.sap.caf.rt.exception.CAFDeleteException"

Please suggest how to resolve the problem.

Message was edited by: Ashutosh Rastogi

Add a comment
10|10000 characters needed characters exceeded

Related questions

9 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 15, 2006 at 03:39 PM

    It seems problem with deployed metadata. So, try the following:

    1. Start SDM. Go to "Undeployment" tab.

    2. Select all the your custom composite projects and undeploy them. It's important to undeploy the <project_name>/metadata, but also undeploy another project stuff like dictionary, permissions, webdynpro ... Do NOT undeploy CAF related metadata applications.

    3. After that create a simple composite project with one business entity and deploy it(do not forget save all, regenerate all and build it). And check creation/deletion for this deployed entity in service browser. Also be sure that only your composite project is visible in service browser(except of caf.core and caf.tc). If some another project is available in service browser except of these(yours one, caf.core and caf.tc) it means that some project is not yet undeployed.

    If the problem will be reproduced again please provide your email - we will try to find the issue source in another way.

    Aliaksei

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 11:45 AM

    Hi Ashutosh,

    Firstly, try to delete an entry using Service Browser. If the same problem will be reproduced click the "!" image near the error message in order to check exception.

    Also, check server instance default log and put the exception to this thread.

    Aliaksei

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Aliaksei,

      Thanks for your response.

      I have tried out deleting the entry from the service browser ( delete button in List ).

      This is the same exception i have got after confirming the deletion.

      "The following exception occured while processing your request: com.sap.caf.rt.exception.CAFDeleteException"

      Ashutosh

      Message was edited by: Ashutosh Rastogi

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 12:16 PM

    So, click the "!" near the error message in service browser and copy exception to the thread.

    Aliaksei

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Aliaksei,

      I confused service browser with configuration browser. Just now i tried deleting the object using service browser and was able to delete it.

      Means, For me its working in service browser and throwing above mentioned error while deleting from Object Selector UI pattern.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 12:28 PM

    Then check the default trace log \usr\sap\<instance name>\JC<id>\j2ee\cluster\server0\log\defaultTrace.X.trc for exceptions and put related to "com.sap.caf.rt.exception.CAFDeleteException" exception to the thread.

    Aliaksei

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Aliaksei,

      I checked out the default trace at the server. Following is the trace

      #com.sap.edfsd.besrv.employee.EmployeeServiceBean#sap.com/edfsd#com.sap.edfsd.besrv.employee.EmployeeServiceBean.XAP:BO:sap.com/edfsd/Employee:delete(Employee)#Administrator#1498#SAP J2EE Engine JTA Transaction : [11fffffff22e5a00619]#AGRD50059472A_F30_301084250#Administrator#5b98a7d0626d11dbc5480010c6b7fd16#SAPEngine_Application_Thread[impl:3]_2##0#0#Path##Java###Caught #1#com.sap.caf.rt.exception.DataAccessException

      at com.sap.caf.rt.bol.da.jdo.JDODADataAccessService.remove(JDODADataAccessService.java:188)

      at com.sap.edfsd.besrv.employee.EmployeeServiceBean.delete(EmployeeServiceBean.java:272)

      at com.sap.edfsd.besrv.employee.EmployeeServiceLocalLocalObjectImpl0.delete(EmployeeServiceLocalLocalObjectImpl0.java:115)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.deleteDataObject(ServiceWrapper.java:222)

      at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.deleteDataObject(CAFServiceAccessBeanImpl.java:191)

      at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl20.deleteDataObject(CAFServiceAccessLocalLocalObjectImpl20.java:825)

      at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.deleteAspectRows(AspectServiceAccess.java:243)

      at com.sap.caf.rt.ui.cool.generic.Aspect.deleteRows(Aspect.java:1391)

      at com.sap.caf.rt.ui.cool.generic.Aspect.sendChanges(Aspect.java:1523)

      at com.sap.caf.ui.ptn.objectlist.ObjectListCC.deleteObject(ObjectListCC.java:1256)

      at com.sap.caf.ui.ptn.objectlist.wdp.InternalObjectListCC.deleteObject(InternalObjectListCC.java:381)

      at com.sap.caf.ui.ptn.objectlist.ui.ObjectListTableDisplay.onActionDeleteConfirmed(ObjectListTableDisplay.java:482)

      at com.sap.caf.ui.ptn.objectlist.ui.wdp.InternalObjectListTableDisplay.wdInvokeEventHandler(InternalObjectListTableDisplay.java:328)

      at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

      at com.sap.tc.webdynpro.clientserver.event.CustomEventProcessor.handleServerEvent(CustomEventProcessor.java:45)

      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleServiceEvent(WindowPhaseModel.java:361)

      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:128)

      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processPhaseLoop(WebDynproWindow.java:345)

      at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:152)

      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)

      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)

      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)

      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)

      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)

      at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

      at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

      at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

      at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

      at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

      at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

      at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

      at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

      at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

      at java.security.AccessController.doPrivileged(Native Method)

      at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

      at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

      Caused by: java.lang.NullPointerException

      at com.sap.caf.rt.internal.bol.da.BEReferencesRemover.removeReferences(BEReferencesRemover.java:275)

      at com.sap.caf.rt.bol.da.jdo.JDODADataAccessService.remove(JDODADataAccessService.java:161)

      ... 46 more

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 10:01 AM

    Hi Ashutosh,

    It seems that deployed CAF version is SP9 but not SP10. Or very old sp10.

    I recommend you to check version firsly and if it's SP9 migrate your CAF and engine version to SP10.

    If you have difficulties with deployed version determination just let me know.

    Best regards,

    Aliaksei

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 10:58 AM

    You need also migrate you engine to SP10 too, not only CAF. The SP levels must be the same for all components deployed on your server.

    I don't know exactly whether or not SP10 is available on market service place. Actually you need to bring up the question with project management.

    Aliaksei

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 15, 2006 at 10:00 AM

    Hi Aliaksei,

    Now i have the CAF SP 10. But Still I am facing the same problem . The stack trace from the service browser is as follows:

    com.sap.caf.rt.exception.CAFDeleteException

    at com.sap.ltadummy.besrv.country.CountryServiceBean.delete(CountryServiceBean.java:320)

    at com.sap.ltadummy.besrv.country.CountryServiceLocalLocalObjectImpl0_0.delete(CountryServiceLocalLocalObjectImpl0_0.java:115)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:324)

    at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.deleteDataObject(ServiceWrapper.java:222)

    at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.deleteDataObject(CAFServiceAccessBeanImpl.java:191)

    at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl2_0.deleteDataObject(CAFServiceAccessLocalLocalObjectImpl2_0.java:875)

    at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.deleteAspectRows(AspectServiceAccess.java:243)

    at com.sap.caf.rt.ui.cool.generic.Aspect.deleteRows(Aspect.java:1391)

    at com.sap.caf.rt.ui.cool.generic.Aspect.sendChanges(Aspect.java:1523)

    at com.sap.caf.rt.ui.cool.generic.ServiceModule.sendChanges(ServiceModule.java:298)

    at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.saveData(TableViewCC.java:379)

    at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.wdp.InternalTableViewCC.saveData(InternalTableViewCC.java:208)

    at com.sap.caf.ui.servicebrowser.components.visualizer.views.TableViewCV.onActionSave(TableViewCV.java:394)

    at com.sap.caf.ui.servicebrowser.components.visualizer.views.wdp.InternalTableViewCV.wdInvokeEventHandler(InternalTableViewCV.java:371)

    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)

    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)

    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)

    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)

    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)

    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)

    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)

    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)

    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:380)

    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:358)

    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:926)

    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:259)

    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)

    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

    at java.security.AccessController.doPrivileged(Native Method)

    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    Caused by: com.sap.caf.rt.exception.DataAccessException

    at com.sap.caf.rt.bol.da.jdo.JDODADataAccessService.remove(JDODADataAccessService.java:194)

    at com.sap.ltadummy.besrv.country.CountryServiceBean.delete(CountryServiceBean.java:314)

    ... 45 more

    Caused by: java.lang.NullPointerException

    at com.sap.caf.rt.internal.bol.da.BEReferencesRemover.initialize(BEReferencesRemover.java:115)

    at com.sap.caf.rt.internal.bol.da.BEReferencesRemover.getMetaInfo(BEReferencesRemover.java:213)

    at com.sap.caf.rt.internal.bol.da.BEReferencesRemover.removeReferences(BEReferencesRemover.java:242)

    at com.sap.caf.rt.bol.da.jdo.JDODADataAccessService.remove(JDODADataAccessService.java:175)

    ... 46 more

    Thanks in advance,

    Ashutosh Rastogi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 17, 2006 at 09:20 AM

    Hi Aliaksei,

    You are right, the problem was due to inconsistent metadata. It is working when i created a new entity in a new CAF project.

    Thanks

    Ashutosh Rastogi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 12:28 PM

    hi I m getting an UI pattern object selector login error while creating new configuration.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.