CAF entity coupled with application service activation problem

Hi Experts,
I have an existing CAF entity service to which i had added an additional attribute.
I have the assosiated application application setdataservice,which has a custom method to add data to the entity service (mass upload).
In the custom method i have added the code to set data for the addtional attribute.
I had generated the project and build the dc locally,
The buid is fine with no error's .
But when I activate the request the activity fails with "cannot resolve symbol" for the new method even though the local build is sucessful.
Any idea why this is occuring,
ERROR: /NWDI/usr/sap/DIP/JC37/j2ee/cluster/server0/temp/CBS/c6/.B/28783/DCs/spe.com/portal/prc_core/ejbmodule/_comp/ejbModule/com/spe/portal/prc_core/appsrv/setdataservice/SetDataServiceBean.java:3434: cannot resolve symbol [javac] ERROR: symbol : method setFixPromvalue (double) [javac] ERROR: location: class com.spe.portal.prc_core.besrv.int_promocodes.Int_PromoCodes [javac] ERROR: promoCode.setFixPromvalue(fixPromValue); [javac] ERROR: ^ [javac] 1 error Error: /NWDI/usr/sap/DIP/JC37/j2ee/cluster/server0/temp/CBS/c6/.B/28783/DCs/spe.com/portal/prc_core/ejbmodule/_comp/gen/default/logs/build.xml:111: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112) at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61) at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213) at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190) at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66) at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48) 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.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350) at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:102) at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:76) at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58) at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723) at com.sap.tc.devconf.impl.DCProxy.make

Hi again,
I've deleted the two methods (or just commented them) I had and have readded them by choosing the Override Method option in the Source menu of JDeveloper 10.1.3. I've addet the methods prepareForActivation and prepareForPassivation too.
When I execute the application, with breakpoints into the four methods (I attach the code below), I see that it prepares for pasivation and pasivates. When I do any action, I see it prepares for activation, but the method activateState is never reached.
I have no other overriden methods in the class. Any idea of why the activateState doesn't execute?
Thanks,
Carles Biosca
BBR Ingeniería de Servicios
   protected void activateState(Element element) {
       super.activateState(element);
   protected void passivateState(Document document, Element element) {
       super.passivateState(document, element);
   protected void prepareForActivation(Element element) {
       super.prepareForActivation(element);
   protected void prepareForPassivation(Document document, Element element) {
       super.prepareForPassivation(document, element);
   }Message was edited by:
cbios

Similar Messages

  • Working with Application Service

    hi 
                     i have been working  CAF some time ,  and iam facing problem
             when  iam working with Application Service in CAF  , 
                               while using the entity service
           CURD operations in the  Application service .
                 can any one please  send me a simple scenario   for working with     
             Application Service using Entity Service Curd operations .
            and  a  simple  Query  ,  is the create  operation  entity service  is used for
                      inserting  .

    Hello Murali,
      Yes you would use the create operation to insert a new object of your entity. there are tutorials that will show this in detail
    SAP Composite Application Framework - CAF Tutorial Center [original link is broken]
    The steps you need to do are the following
    1. Define your entity as a dependency in your application service.
    2. create an operation on the application service
    3. you will get a handle to the entities operation by simple calling the this.getxxxService() where xxx is the name of your entity.
    Hope that helps
    Abdul
    Message was edited by:
            Abdul Razack

  • Work with Application Services in CAF

    Hi.
    I have a composite application en NWD 7.3, my project has a little custom Framework which implements basic operations (CRUD) , the methods of these operations are exposed as web services. Also the project has some external services.
    My question is: Can I make an Application Service in which I could call an external service and the data obtained from this external service save them calling any web service from my custom Framework?
    The Custom Framework isn't in the same CAF Development Component.
    Thanks in Advance.
    Regards

    Hi,
    Please check note 1004108.
    Methods of Application and/or Entity Services (Business Objects) of CAF of SAP NetWeaver CE 7.1 cannot be exposed in document style, only RPC/literal is possible. Sorry.
    It's a restriction that is planned to be solved in one of the next releases.
    Regards,
       Jan

  • Can you help me with FontExplorer font activation problems?

    Anyone know how to solve a font activation problem I am having with FontExplorer 4.2? I am on a new mac with new fonts, I am using Maverick with Adobe CS6. With my new mac I bought the latest version of FontExporer Pro X 4.2. This program is having trouble with font activation in all my Adoble suite apps including Indesign. Here is what I am seeing:
    1. The font activates, but the Adobe app does not recognize that it is active. If I go back to Font Explorer and deactivate manually, then re-activate manually. The adobe app might then recognize it. Sometimes it still doesn't. But this does not stay permanently, as soon as I do a restart I have to go through this process again. I see this more often with the User system fonts, but a few times with my regular fonts.
    2. Other times, such as in Indesign, I go to open the file and the file stalls and doesn’t progress while it is trying to activate the fonts.
    3. Another time I have seen after an illustrator file is opened the fonts aren't recognized as being opened and the text goes blank on the page.
    4. In all adobe apps, if I go to use "replace font" on the missing fonts (even though they are turned on) the "replace font" menu only shows the basic system fonts, it won't show me the other fonts turned on.
    I have seen these issues with both formerly created files and fresh new files.
    I have tried the following based on feedback from Font Explorer staff:
    Refresh your Spotlight database
    1. Quit all applications other than FontExplorer X
    2. Choose Tools > Refresh Spotlight Database
    Clean your font caches
    1. Quit all applications other than FontExplorer X 2. Choose Tools > Clean Application Font Caches (check all available checkboxes)
    3. Choose Tools > Clean System Font Caches (requires restart)
    Still after trying this multiple times, the errors continue and even get more random.
    I have also tried this based on their feedback:
    go to FONTEXPLORER X PRO -> PREFERENCES -> ADVANCED and make sure that "Automatically deactivate fonts which have not been activated by the system" is NOT set to never.
    Then click on TOOLS and clean all font caches. Then reboot the system.
    The auto-activation is using a new Apple technology (called Core Text), which unfortunately does not work correctly with some of the Adobe and Quark applications when keeping the fonts permanently activated. We are currently working on an update, and the next version of FontExplorer X Pro will fix this issue.
    This has also not work. Can anyone help me?

    Here is the official work-around for this problem.
    1. Locate "FontExplorer X Pro.app" in Applications
    2. Right-click on "FontExplorer X Pro.app" and select "Show Package Contents"
    3. Navigate to /Contents/Helpers/
    4. Double-click "FontExplorerXLauncher-3.app" or right-click and "Open" to launch it manually. This is needed only once, afterwards the plugins will work normally.
    Please make sure you open the version with the "-3" suffix, the other one does not fix the problem.

  • Web Service Activity problem

    Hi,
    I want used the "Invoke Web Service" activity but my "WSDL URL" don't work.
    However, when I put my url (http://172.31.194.112:8080/contactRH/services/ContactRHAccess?wsdl) on IE, I can read my web service.
    I think that don't work because this url have a bad type.
    So, how can I load my web Service ?
    Thanks

    Hi,
    Thanks,I have found the problem (type="xsd:string" and not type="xsd:String").
    But, if I try to use an internet webservice (http://www.webservicex.net:85/LloydsRiskCodeService.asmx?wsdl or
    http://api.google.com/GoogleSearch.wsdl) that doesn't work (connection timed out :connect or connection reset).
    But if I use this web service on my computer, that work.(C:\...\name.wsdl).
    So, when I say "that work" that mean my WSDL URL is loaded.
    Is it normal?
    Thanks.

  • Service Activity Problem

    Dear Experts..
    Here we are making a service activity in which we are not giving any limits ..we put gross price directly in this activity u2026.here we are not putting any cost element u2026even no cost element is given to the activity at detaild screen u2026u2026when I am looking the detail screen  in CN23 Detail->service a cost element is thereu2026.can you tell me please from where this is coming u2026u2026in network profile no cost element is assignd to the particular
    Service Activity
    Thanks

    Dear,
    IT is come from Service Master - Valuation class Or Service Group of PO OR from Project.
    Chekc all three detail.
    1) Service Master - AC03.
    2) Service PO - ME23N.
    3) Project - CJ20N.
    Regards,
    Mahesh Wagh.

  • Service Activation problem

    I have been on the phone with AT&T for 4 1/2 hours now - really. The rep seems to be going through screen after screen of questions, repeatedly asking me for the same info: SSN, birthdate, driver's license, etc. He is "starting to freak out" in his words. Anyone know how to get out of the "loop" in the software and what he might need to do to get this phone activated? Any help is welcome!

    In case anyone else is having this problem, they had me go back to the AT&T store and get a new SIM card. We also ported over my number from Verizon at the store to yet a third SIM card so that I would be an "existing" AT&T customer. Then I went back online with my iPhone with the new SIM card in it and registered with no problems whatsoever. It was a shame that I spent a total of 9 hours on the phone with AT&T before they were able to even tell me what to do, but fortunately that nightmare is over and I hope this helps someone else end their own problem.

  • Call external service in a Application service created from ES

    Hi Experts
    I have the follow situation:
    I've modeled a new service in Enterprise Service Builder. This service i'll implement in caf application. In the method create by application i'll call one method of external service.
    I imported this modeled service in Create Web Service Provider option in external package, select the Enterprise Service Repository source option and choice the respective Service Interface.
    In this moment the caf created a new application service, with methods of modeled service. That's all right.
    Now i import a external service of esworkplace. All the step are ok. But the problem is going to next step.
    I need to call this imported service in the method of application service. I know 3 way to do this:
    1. Mapping the external service with this application service. In this case i have a problem - the method of external service is expose as web service, and i don't want this. Just the method of modeled service must be expose.
    2. Create another application service, map the external service with this application service, and create a depency between this application service and the application service created by modeled service. I think this work fine and resolve the problem of expose the method of external service. However i think this isn't a good way to do.
    3. Instantiate the service class of exernal service. From this class i can call the method of external service in application service. But now i have another problem. If i see the implementation of this class, it have a static block which call a URL class, and pass as parameter a wsdl file located in one directory of my computer like
    url = new java.net.URL("file:/D:/SAP7110Workspace.jdi/LocalDevelopment/CRVP/demo.sap.com//ejbmodule/
    _comp/tmp/0/EJB/src/META-INF/xml/ext/rootwsdl_WorkCentreSimpleByPlantQueryResponse_InService.wsdl");
    when execute the application in the server it don't find this file and i give one error.
    I think the best way to do is the 3° way. But why did the caf generate the URL with My computer directory instead of in directory of application? There are some solution to this problem?
    I've change this line manualy, but all the time when i generate the project, i need change this code again.
    Regards
    Marcos

    Hi,
    You may consume external service via JNDI
    Context context = new InitialContext();
    <JNDI OBJECT> local = (<CAST JNDI OBJECT>)context.lookup("<JNDI OBJECT>");
    //Call the method
    If you are using CE 7.11, go to NWA -> Problem Management -> JNDI browser  > ..... -> ObjectName for <JNDI OBJECT>
    - julius

  • Web Dynpro access Application Services directly?

    We're looking at implementing some processes using Guide Procedures, and I have a question about design 'style'.
    I'm creating a data layer using Entity Services.  The entity services will be utilized by the Application Services to create a business layer.  How to do this is clear, and straightforward.
    However, where I have a question is how the automatically generated Web Dynpro application (or any other Web Dynpro application, for that matter) can interact with Application Services.  I've seen sample applications where the Web Dynpro application interacts with application services via mapping from the Web Dynpro interface layer through the GP Runtime - from my perspective, this looks like a good way to deal with a small amount of data being passed between the steps in the GP.
    The primary Web Dynpro application will let the user interact with the data, massaging it until it's in a form where the next person needs to deal with it.  I was thinking of having the Web Dynpro application interact with the Application Services layer directly to move data from the database to the web dynpro application, and back again.  The only thing that would be passed between the steps in the GP would be the guid of the primary data structure.  I would also expose a method of the Application Service as a CO which would take the guid and return the entire business object, so viewing screens could be constructed - as well, PDF's could be generated, and so on.
    Is this considered bad form in a GP, specifically accessing Application Services directly, instead of through a step in the GP?  I understand that what I want to do ties the Web Dynpro application directly to the Application Services layer, but my thinking is that the CO that encompasses the Web Dynpro should be 'atomic', in that all operations related to that specific step should be contained in a single CO.  In other words, the action of creating the business object, fiddling with it, an then submitting it upstream should be contained in one CO.
    Comments, suggestions?

    Hi,
          In the Composite Application Framework scenario, you first create the Business Entities. These act as data holder. To fill the data within these entities the Application services are created. These application services are later exposed as a webservice and deployed.
                   These webservices can contain different methods along with the CRUD operations depending on the Process Flow and Design implemented. We can import the webservices as a model in the WebDynPro Component. The UI elements of the Views can be binded to the Model. So when we execute the model methods the data gets entered into the Business objects.
                   This WebDynPro component should be a callable object ( It requires some Dependencies to be added to the WebDynPro Component ). So that you can have Input/Output parameters and ResultStates. These parameters are useful if you have to pass some parameters from one view to other within the same component. So this WebDynPro Callable object includes the Application service calls and also the passing of data through the GP Input/Output Structures.
                   These callable objects are then included within the Process.
      This is how I think a Composite Application must be designed.

  • Problem when creating CAF Entity Service finder Methods

    Guys,
    Can any one please suggest me appropriatly to the below problem.
    I am using NWDS 7.06. I have no problem when creating CAF project, Application Service and Entity Service even.
    But in the Entity Service:
    1. Add a string or longtext attribute.
    2. try to create a custom finder method in operations tab, during that operation i am  not finding the attribute which i have created in step1.
    That means i am not able to create the my own finder methods with parameters.
    I was able to do that in some version long ago but i have forgotten that NWDS version.
    summary of Problem Is: " Cannot create custom methods with custom parameters in Entity Service"
    Can you please suggest me the right version or a solution to this problem on urgent basis please.
    I promise you that i will give you full points to you who ever gives me the right solution.
    Please mail your suggestions to [email protected]

    Guys,
    I have solved the problem successfully. Thanks for your attention.

  • Problems updating Entity services or application services

    Hello all,
    I'm working with SAP Netweaver Developer Studio creating a new CAF application.
    First all, I import the SAP Entreprise Service, then I model the entity service, I expose my application Service as a Web Service and finally I deploy it and test it.
    However, when I try to edit my entity service (for instance, including a new attribute) or application service (for instance, changing the bussiness logic code) and I redeploy it, the Web Service Navigator doesn't update the changes.
    So, sadly I must start again configuring the entity and application service.
    Any idea??
    Thanks,

    everytime you change the signature (structure of input/output) of the entity or application service, the change is not automatically propagated to the web service definition. you have to delete manually the web service configuration for the entity or application service or recreate it. you can call it a bug or a feature. it's up to you.

  • I think pesimo customer service three days, I'm looking for someone I can ayudr activation problem with my CC and can not find anyone who can help me.

    I think pesimo customer service three days, I'm looking for someone I can ayudr activation problem with my CC and can not find anyone who can help me.

    Online Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • Sharing CAF Entity/Application Service to Other CAF Project ?

    Hello,
    Currently we don't have NWDI in place and only doing local development;
    ie, using local DC's. Now we'd like to contain all CAF Entity Services
    and related Application Services in one CAF Project (CAF_BASE) and
    create other CAF Project (CAF_APP) to refer to these exposed
    Entity/App Services.
    I tried to add all entities of types [Common Model] and [Java Package Tree]
    to one Public Part  (PP01) in DC of Project CAF_BASE. In DC of Project
    CAF_APP, I included PP01 as a used DC.
    Still those Entity/App Services in CAF_BASE are not shown in CAF_APP.
    Is this by design or I did it the wrong way ?
    Ying-Jie Chen

    Hi Francesco,
    From SAP Help (see URL below),
    http://help.sap.com/saphelp_nw2004s/helpdata/en/32/07c93f26903a1ce10000000a114084/content.htm
    A statement is specified :
    >>> Start-of-SAP-Help
    Restrictions for Relations
    The following restrictions apply for relations between entity services:
         Relations between entity services can only be unidirectional. A bidirectional relation has to be modeled as two unidirectional relations.
         Entity services can only refer to (relations and inheritance):
          Other entity services of the same project
          Core entity services
         Entity services can only reference other entity services.
    <<< End-of-SAP-Help
    It says that a entity service can only refer to other entity services in the
    same project so there is no way for us to share entity services between
    projects.
    FYI,
    Ying-Jie Chen

  • CAF  entity and application service

    hi
              when we are importing RFC or Webservice  for  external service 
               can we use application service directly  instead of  entity service
                   is it possible to use only  external service and  without entity  service  .

    Hi
    Yes you can do that.
    Entity Service is Used to Store the Persisitant data relavent to the Business Object.
    Application Service is used to Manipulate the Entity Service.
    Regards,
    Rajendra

  • Working with the line item table in CAF application service

    Hello SDNs,
    I am trying to retrive a value from the Nested list of one of my application service.
    for example,  suppose i have 2 operations in a application service, 1, calls the BAPI_PO_GETDETAIL1 based on the PO number given it returns the POItem, POServices tables.
    2, operation accepts itemno and PO number as a input, and inside calls the 1st operation and wants deal with the POItem and POServices tables which of type standard BAPI classes nested under the main structure created in application service.
    For example, i want to compare the item number given as input with the item numbers in the Item table, which is a output of 1st operation .
    How to get the itemnumber from the POItem table, as this is a nested structure under POOut(defined in AS level) and how to compare this.
    i have written the code as follows but it is returning the error. Can any look into this and suggest me.
    public com.xxx.demo.goodsnserviceack.types.POProcessOut getPOServices(@javax.jws.WebParam(name="PONumber")
    *     java.lang.String PONumber, @javax.jws.WebParam(name="POItem")*
    *     java.lang.String POItem) {*
    // POProcessOut is a output node of current operation
    *          POProcessOut PPO= new POProcessOut();*
    //POHeader details is the nested structure under POProcessOut
    *          POHeaderdetails header=new POHeaderdetails();*     
    //POOutDetails is the output structure of 1st operation     
    *          POOutDetails pt=new POOutDetails();*
    *          try{
    //calling the first operation          *
    *          pt= executeBAPIPOGetDetail(PONumber,"X","X");*
    *          //setting header details*
    *          header.setPO_NUMBER(pt.getPOHeader().getPO_NUMBER());*
    *          header.setVendor(pt.getPOHeader().getVENDOR());*
    *          header.setCOMP_CODE(pt.getPOHeader().getCOMP_CODE());*
    *          header.setSTATUS(pt.getPOHeader().getSTATUS());*
    *          PPO.setPOHeaderdetails(header);*
    *     //comparing the POItem number from POItem table and input of current operation
                       List<BAPIMEPOITEM> itemlist= pt.getPOItem();*
    *          while(itemlist.isEmpty()==false){*
    *          String itemnum= itemlist.get(0).getPO_ITEM();*
    *          if(itemnum.equals(POItem))*
    *               PPO.setItemno(itemnum);*
    *          catch(CAFServiceException e){*
    *               e.printStackTrace();*
    *          return PPO;*
    Your inputs will be appreciated.
    Thanks,
    Sireesha.

    Have you accessed the external webservice in this way:
    EJBLocalHome localHome = HomeFactory.getInstance().getLocalHome("localejbs/sap.com/comptest/ACCRJAVAWSVI__DOCUMENT");
    Method m = localHome.getClass().getMethod("create", new Class[]{});
    ACCRJAVAWSVI__DOCUMENTLocal srv = (ACCRJAVAWSVI__DOCUMENTLocal)m.invoke(localHome, new Object[] {});
    srv.validateLogin(input) ;
    Aliaksei

Maybe you are looking for