CAF Application Service - can not delete record

Hello All. I have some problem.
Code:
    public java.util.List addGoodsItem(java.util.List inputGoodsItem) throws com.sap.caf.rt.exception.CAFDeleteException, com.sap.caf.rt.exception.ServiceException, com.sap.caf.rt.exception.CAFUpdateException, com.sap.caf.rt.exception.CAFFindException {
          java.util.List retValue;
          try {
//@@custom code start - addGoodsItem(java.util.List)
  retValue = new ArrayList();
  String temp = "";
  for (Iterator it = inputGoodsItem.iterator(); it.hasNext();)
     InputGoodsItem item = (InputGoodsItem) it.next();
     try {
           GoodsItemServiceLocal serv = this.getGoodsItemService();
           List iList = this.getGoodsItemService().getById(new QueryFilter(item.getId()));
           if (iList != null && iList.size() > 0)
            int size = iList.size();
            for (int i = 0; i < size; i++)
                 GoodsItem tmpItem = (GoodsItem) iList.get(0);
                 temp = "T2 [ " + i + "]";
                 iList.remove(tmpItem);
                 temp = "T3[" + i + "]";
                 temp += " class:" + tmpItem.getClass().getName();
                 temp += " id:" + tmpItem.getId() + " key [ " + tmpItem.getKey() + "]";
                 serv.delete(tmpItem);
                 temp = "T4 [ " + 5 + "]";
               catch (Exception e)
               retValue.add(item);
            InputGoodsItem i = new InputGoodsItem();
            i.setDescription(e.getClass().getName()
                                + "[" + temp + "]"
                                + " [" + e.getMessage() + "]");
                    retValue.add(i);
//@@custom code end - addGoodsItem(java.util.List)
             return retValue;
        } finally {.........}
in result i have this:
>com.sap.caf.rt.exception.CAFDeleteException[T3[0]
                        class:com.j.shell.besrv.goodsitem.GoodsItem id:ART00501
                        key[3332db84-1ae2-11df-a512-22348000c006]] [MMR object ID: GoodsItemService cannot be found]

Full log
Full Message Text
Caught com.sap.caf.rt.exception.DataAccessException: MMR object ID: GoodsItemService cannot be found
at com.sap.caf.rt.bol.da.jdo.JDODADataAccessService.remove(JDODADataAccessService.java:194)
at com.j.shell.besrv.goodsitem.GoodsItemServiceBean.delete(GoodsItemServiceBean.java:274)
at com.j.shell.besrv.goodsitem.GoodsItemServiceLocalLocalObjectImpl0_0.delete(GoodsItemServiceLocalLocalObjectImpl0_0.java:478)
at com.j.shell.appsrv.shellservice.ShellServiceBean.addGoodsItem(ShellServiceBean.java:639)
at com.j.shell.appsrv.shellservice.ShellServiceBean.addGoodsItem_R(ShellServiceBean.java:584)
at com.j.shell.appsrv.shellservice.ShellServiceObjectImpl0_0.addGoodsItem_R(ShellServiceObjectImpl0_0.java:971)
at com.j.shell.appsrv.shellservice.ShellService_Stub.addGoodsItem_R(ShellService_Stub.java:770)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)
at $Proxy247.addGoodsItem_R(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
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:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
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(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Caused by: com.sap.caf.rt.exception.DataAccessException: MMR object ID: GoodsItemService cannot be found
at com.sap.caf.rt.metamodel.MetaModel.getBusinessEntityInterface(MetaModel.java:193)
at com.sap.caf.rt.metamodel.MetaModel.getBusinessEntityInterface(MetaModel.java:80)
at com.sap.caf.rt.internal.bol.da.BEReferencesRemover.removeReferences(BEReferencesRemover.java:260)
at com.sap.caf.rt.bol.da.jdo.JDODADataAccessService.remove(JDODADataAccessService.java:175)
... 39 more

Similar Messages

  • We can not delete record by procedure

    Hi All,
    We can not delete record by procedure, please suggest us, our program is following:
    create or replace procedure pro_del (p_id IN employee.id%type)
    IS
    begin
    delete from employee
    where id = p_id;
    end;
    execute pro_del(01)
    your suggestion would be greatly appreciated.

    user13842301 wrote:
    Hi All,
    We can not delete record by procedure, please suggest us, our program is following:
    create or replace procedure pro_del (p_id IN employee.id%type)
    IS
    begin
    delete from employee
    where id = p_id;
    end;
    execute pro_del(01)
    your suggestion would be greatly appreciated.As you have not provided the sample data, I have created a sample dataset to demonstrate.
    SQL> select * from test;
            ID        SAL
             1       1000
             2       2000
             3       3000
             4       1000
    SQL> create or replace procedure pro_del (p_id IN test.id%TYPE)
      2  IS
      3  begin
      4  delete from test
      5  where id=p_id;
      6  COMMIT;
      7  END;
      8  .
    SQL> /
    Procedure created.
    SQL> exec pro_del(1);
    PL/SQL procedure successfully completed.
    SQL> select * from test;
            ID        SAL
             2       2000
             3       3000
             4       1000As you have not handled any exceptions in your pro_del procedure,probably you might be passing invalid id in procedure call
    Hope this helps
    Regards,
    Achyut

  • Can not delete record from the master block ,frm-40202 field must be entere

    hi ,
    i have built a form which contain master and details blocks
    the problem is
    when i try to delete a record from the master block it gives me new serial for the transaction and when i try to save it, it says
    >frm-40202 field must be entered
    where this field is required and i cant save it
    although in another form when i delete from the master it gives me the previous record and it works properly
    if any one has any ideas pls help me
    thank u
    ------- the master block has a trigger when-create-recoder
    Declare>v_dummy number;
    Begin
    Select nvl(max(ERNT_NO),0) + 1 >Into v_dummy
    From LM_RENT_EXPNMST >Where cmp_no = :LM_RENT_EXPNMST.cmp_no
    And brn_no = :LM_RENT_EXPNMST.brn_no>and fiscal_yr = :LM_RENT_EXPNMST.fiscal_yr;
    >:LM_RENT_EXPNMST.ERNT_NO := v_dummy;
    END;
    IF :PARAMETER.RNT_NO IS NOT NULL THEN
         :LM_RENT_EXPNMST.RNT_NO:=:PARAMETER.RNT_NO;
              :LM_RENT_EXPNMST.RNT_YR:=:PARAMETER.RNT_YR;
         :LM_RENT_EXPNMST.CUST_DESC:=:PARAMETER.RNT_ADESC;
    END IF;Edited by: ayadsufyan on May 8, 2013 2:03 PM

    If this is a FORMS question you should mark this one ANSWERED and repost your question in the FORMS forum
    Forms

  • CAF-Application Service not visible in GP

    Hi ,
    I've created a composite appliocatioon service which contains an entity service and an application service.
    After deploying, I also tested it successfully.
    Now I want to use this service in callable object in GP.
    But I'm not able to see the application service there.
    My application is visible there, but next two column(Service name and method name) remains blank.
    Wat I've read from tutorials is that only application service can be used in GP.
    It is showing service name and method name for caf.core and caf.tc,but not for my application.
    Can anybody tell me the reason what is the possible cause for that ?
    regards,
    Piyush

    Hi Dipankar,
    I have already tested the service by the procedure you have mentioned.It is working fine from service browser window.
    Is there anything else need to be done to  use that service in CAF GP(some configurations etc)?
    While creating CO, it is showing the service name and methods for caf.core but not for my Application.
    Regards,
    Piyush

  • Error in executing RFC or CAF Application Service

    Hello Everybody,
    I am creating course approval process, in which I am calling RFC for user info and after course approval, calling CAF application service to persist this data.
    But, both services are not working in process. I have tested callable objects for these services and tested successfully.
    But, when I am attaching it in the process then process can't go forward from this point.
    I have checked in Log viewer and found following error:
    Path to object does not exist at com.sap.caf.eu.gp.model.pfw.local, the whole lookup name is sap.com/com.sap.caf.eu.gp.model.pfw.local/GPUWLBridge.
    What should be the problem in this?
    If I remove these services then whole process works fine.
    Thanks in advance,
    Bhavik

    Hello All,
    Is there any concept like, I call perticular backgound object first time then I cannot call that object for some period of time?
    I am getting same error in calling RFC callable object as well as CAF service callable object.
    I can execute these callable objects in the process first time successfully. But, When I execute this process second time, these callable objects won't execute.
    I can execute same process after 3 to 4 hours successfully once.
    What should be the reason behind this?

  • Can not delete corrupted folder

    Hi there,
    I'm using SharePoint Foundation 2010 and am having problem with one of the site collections.
    It's a simple 'Team site'. The problem is that I can not delete the certain folder, which seems to be corrupted.
    Symptoms:
    if I try to delete it I receive error "Access Denied", even though I use farm admin account.
    if I try to 'Manage permissions', I receive error "Can not complete this action".
    if I try to 'Edit Properties' (rename library) I receive error "Access Denied".
    'View Properties' works good.
    Looking in WebDav, the folder doesn't exist.
    if I try to create a new folder with the same name within the same root library, I receive error that folder already exists.
    Steps taken:
    1. the entire site collection was backed up (using Backup-SPSite) and restored (Restore-SPSite) to the newly-created site collection within another Web App
    and content database - the corrupted folder was carried over and the issue remained the same.
    2. tried to use .NET methods to delete this folder but received error:
    $rabbit = Get-SPWeb "https://site1.sharepoint.local/BD"
    $damaged_folder = $rabbit.GetFolder("Services/Technical Team/Mit")
    attempted to delete:
    PS C:\Windows\system32> $damaged_folder.Delete()
    Exception calling "Delete" with "0" argument(s): "Cannot remove file "Mit". Error Code: 16389."
    attempted to move to Recycle Bin:
    PS C:\Windows\system32> $damaged_folder.Recycle()
    Exception calling "Recycle" with "0" argument(s): "Cannot remove file "Mit". Error Code: 16389."
    Looking at the properties of $damaged_folder, I've noticed that property 'EffectiveRawPermissions' was blank, while for the normal folder it was set to 'FullMask'
    I've tried to update it but received an error:
    PS C:\Windows\system32> $damaged_folder.EffectiveRawPermissions = "FullMask"
    "EffectiveRawPermissions" is a ReadOnly property.
    Any help is greatly appreciated!

    I am facing the same
    problem.
    I tried to delete the folder with a powershell command and with a console application. The result is :
    Exception calling "Delete" with "0" argument(s): "Cannot remove file "Folder". Error Code: 16389."
    At line:1 char:77
    + [Microsoft.SharePoint.SPSecurity]::RunWithElevatedPrivileges({$folder.Delete<<<< ()})
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException
    The last possibility it's maybe to remove lines on the database!
    Does anyone has triedthis solution?
    Thanks in adavance.

  • Can not delete a batch

    Hello,
    This is kinda weird.
    We have a couple of files that was submitted in the batch monitor and i can not delete it. It has an error that says" 3x HOST(machine.local) Unix command error: 133, var/tmp/tmp SSPyCb: line6: 495 trace/Bpt trap /Applications/Shake/shkbreakdown.app/Contents/MacOS/shkbreakdown -v ....x"
    I shutdown my "machine.local which is part of the render farm and I can still see this job processing.
    Any help is appreciated.
    thanks,
    Helmut

    Hello,
    I actually solved that problem by restarting all my render farm.
    But to answer your question, I have 7 render farms, I'm using clusters with 2 processors on each machine. 5 of the clusters are 10.4.2 tiger and the 2 are 10.4.4 Tiger server without any services open. 1 machine is set up as services and cluster controller, the rest is just Services only. We created a new account on each machine with the same name. We have a network drive that we mount for the render files. We use Ldap for our afp accounts. When we log on to the network drive, we only use 1 account for all 7 machines. So far everything is working using Maya and Shake. But the weird thing is that I have an extra cluster node that just gives me problems. Everytime we render something with that node on, it just gives me errors and would not render, if it's off I'm fine. It's on 10.4.4 server right now, I haven't done the reset on Apple Qmaster from the System Prefs, if the reset does not work, I'll install just the regular tiger system software.
    Hope this kinda helps.
    thanks,
    Helmut

  • Can not delete my account

    I can not delete my account because I do not have my registered email account anymore and I also forgot the skype password. What can I do to delete it?

    you can also find additional details here;
    Deleting Skype Accounts
    CONTACT SKYPE CUSTOMER SERVICE   |  HOW TO RECORD SKYPE VIDEO CALLS  | HOW TO HANDLE SUPICIOUS CALLS AND MESSAGES   |  WINDOWS PROBLEMS TROUBLESHOOTING   |  SKYPE DOWNLOAD LINKS  
    MORE TIPS, TRICKS AND UPDATES AT
    skypefordummies.blogspot.com

  • I can not delete my history and adding new bookmarks. Upgrading to later Firefox versions and/or re-installing didn't help. The address bar still shows the web addresses of old and whenever I make new bookmarks, it's always gone as if it was never made.

    I can not delete my history and adding new bookmarks.
    Upgrading to later Firefox versions and/or re-installing didn't rectify it either.
    The address bar still shows the web addresses of old and whenever I make new bookmarks, it's always gone as if it was never made.
    Also, I have noticed that every once in awhile you can not close tabs you've opened, either by pushing on the X button and/or clicking on the mouse to close it. Although closing the window and opening it again (without closing the Firefox application) seemed to rectify the problem in the short term, it's becoming quite annoying.
    == This happened ==
    Every time Firefox opened
    == the Firefox is being used

    I think I have a solution.
    First, download the add-on SQManager. This should be included with FireFox, it is really good.
    Look for the file '''moz_hosts''' in the folder '''places.sqlite'''.
    Don't delete the file, just delete the information in the file. My file has over 3600 websites, which go back years!! I did not know they were there, but I was frustrated about not being able to get rid of them. They popped up every time I used the address bar. Clearing my history would not get rid of them.
    This is where they are stored!! I found that by deleting the pesky web site from '''moz_hosts''', it does not appear in my address bar anymore!!!
    I think that if I just delete all the websites in moz_hosts....
    Wa-la...History Gone!!!
    As long as you don't delete the file, just empty it, FireFox won't know the difference. It will just keep adding websites to it until you empty it again.
    Why running "clear recent history" doesn't do this, I don't know. You are doing manually what "clear recent history" is not doing.
    Please tell me if you see any flaw in this.
    ''I think it's the solution we've all been looking for!''

  • Can not delete encrypted message in outlook 2013

    I have outlook 2013 connected to our internal exchange server 2013. We have Microsoft Certificate Authority (Active Directory Certificate Service) Server in our company. All users have User Certificate for sign and encrypt email. I received many encrypted
    message from other user in my company but I can not delete these message. when I was try to delete these message I receive "Unknown Error".

    Hi,
    For Encrypted emails, try Shift+Delete and choose Yes.
    Regards,
    Melon Chen
    TechNet Community Support

  • Purchase Requisition created from Maintenance Order can not deleted

    Hi Gurus,
    I've create a Maintenance Order for External Service (Control Key: PM02) and Purchase Requisition already created related to this Maintenance Order.
    But when I want to cancel/delete the Purchase Requisition, there is error message "This item is only deletable via the associated production order". So II can not delete the PR.
    Any solution for this problem ?
    Regards,
    Tri W

    Hi,
    If the PR has not been approved and no PO has been created yet, you have to delete the external service operation (PM02) in the work order. This should delete the Pruchase Requisitions.
    Regards,
    Joey

  • How can i delete Record when i click on Delete Link in a report

    hi,
    i have to create report
    select S_NO,BILL_NO,LED_NAME,PUR_LED,VAT,BILL_DATE,ST_GRP_UND,GODOWN_NAME,
    ITEM_NAME,UNIT,QTY,RATE,PER,DIS,AMOUNT,'Delete' from DUMY_AC_LED_PURASEI want to delete corressponding record when i click on Delete Link.
    Here S_NO is P.k.
    How can i delete Record when i click on Delete Link.

    Manoj,
    If something does not work then you should report back on the same thread so that there is continuity to the whole episode. Be as lucid as you can be so that people know whats the scenario. E.g. is not working is not enough. What happens? Does is show error , go blank, goes to another page... all that is important.
    Its for posterity, down the line others will also visit the thread (may be).
    Regards,

  • Unable to instantiate GP process from CAF application service

    Hi,
    I am trying to instantiate a process from my CAF application service as follows.
    IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate("7CE44BF090BF11D99817000D60B211F1",user);
    When the execution reaches this step, I am getting the following exception.
    com.sap.engine.frame.core.load.SAPClassNotFoundException
    I suspect that CAF runtime is not able to load GPProcessFactory class. Is there any settings that need to be done or I have to deploy something on the server?
    Please help.
    Thanks
    Raghav

    Hi Raghavendra,
    It seems you are using SPS7 !
    Check runtime reference for J2ee application in application-j2ee-engine.xml :
    <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">cafeugp~api</reference-target>
         </reference>
    Best regards,
    Aliaksei

  • Web Service and CAF Application Services - How to return a table

    Hello,
    I'd like to build a CAF Application Service and expose it as a Web Service. This service should return an array or table which I'd like to display in a Visual Composer model.
    I understand that there're limitations at CAF regarding supported data types.
    Does anyone know how to get a workaround?
    Any information is very appreciated.
    Kind regards
    Stefan

    Hi,
    You can return a list.
    The standard way to do this is you have to create a complex data type for response.
    Configure the cardinality of this data type to 1..n so as to accomodate a list.
    In your implementation add your list to this response message and return the list.
    This waly you can return collections.
    Hope it helps.
    Regards,
    Srinivasan Subbiah

  • Accessing CAF application service from outside

    Hi,
    Can CAF application service be called from outside the CAF? Example from a pure JSP page?
    Mayukh

    You can also call a CAF service via the EJB protocol from JSP.  Each CAF Service gets deployed as a Stateless Session bean.  You can view these in the IDE if you switch to the J2EE perspective in your CAF project.

Maybe you are looking for

  • Problem to upgrade Lightroom 5.2 to 5.3 in windows 8.1 pro

    I have problem to upgrade Lightroom 5.2 to 5.3. I have download and extrakt the down load file on desktop and started the installation  as administrator. The computer can not find the Adobe _Lightroom _x64.msi. Is it someone who can solve the problem

  • What Is a Tween Track?

    I opened an iMovie 6 reference movie in QT Pro to extract the audio track and saw several "tween" tracks in the Movie Properties window. Are these tween tracks needed in any way to extract the basic audio track? I am sick of waiting for iMovie to exp

  • How to obtain verify.pse in Portal 7.3

    In Portal 7.0, I can Download the verify.pse file from the SAP Enterprise Portal at System Administration o System Configuration o Keystore Administration. But anyone could tell me how to do this in Portal 7.3? Thanks very much.

  • Random display switching and weird behaviour. [Solved]

    Hey guys and girls Have had Arch running smoothly for a few months now and have avoided posting for minor issues, because your forums are so ace and have been able to find everything I need. Have to say out of all the distros that I've tried Arch sim

  • Netbeans - Enterprise project vs Web project

    This may seem like a kind of lame question, but having stuck with Vim for many months, Netbeans is my first venture into a proper IDE, and I want to make sure I become very familiar with it. Basically I was just wondering if someone could give me a m