EP server is getting restarted becauses of Web Dynpro java code

Hi All,
  Node strucure is
   -->Prospect(Value Node)
      -->Opportunity(Value Node)
          --> Opportunity ID(Value attr)
  -->ProspectID(Value attr)
  -->Prospect Name(Value Attr)
          int nProspectOppNodeSize = wdContext.nodeZopportunity().size();
          IPrivateStaffingView.IProspectNodeElement eleProspect;
          IPrivateStaffingView.IOpportunityNodeElement eleOpportunity;
          wdContext.nodeZopportunity().moveFirst();
          for(int i=0;i<nProspectOppNodeSize;i++)
               eleProspect = wdContext.nodeProspectNode().createProspectNodeElement();
               wdContext.nodeProspectNode().addElement(eleProspect);
               eleProspect.setProspectID(wdContext.currentZopportunityElement().getProspect_Id());
               eleProspect.setProspectName(wdContext.currentZopportunityElement().getProspect_Name());
               String strCurrentProspectID =  wdContext.currentZopportunityElement().getProspect_Id();
               while(strCurrentProspectID.equalsIgnoreCase(wdContext.currentZopportunityElement().getProspect_Id()))
                    eleOpportunity = wdContext.nodeOpportunityNode().createOpportunityNodeElement();
                    wdContext.nodeOpportunityNode().addElement(eleOpportunity);
                    eleOpportunity.setOpportunityID(wdContext.currentOpportunityNodeElement().getOpportunityID());
               wdContext.nodeZopportunity().moveNext();
               wdContext.nodeZopportunity().moveNext();
     wdContext.nodeZopportunity().moveFirst();
     int nProspect = -1;
     for(int i=0; i<wdContext.nodeZopportunity().size(); i++)
          if(wdContext.currentDisplReq_Zsr_MasterElement().getProspect_Id().equalsIgnoreCase(wdContext.currentProspectNodeElement().getProspectID()))
               nProspect = i;
          wdContext.nodeProspectNode().moveNext();
     wdContext.nodeProspectNode().moveTo(nProspect);
Please help

Hello,
  I think the problem is that you are not controlling the end of this bucle:
    String strCurrentProspectID =  wdContext.currentZopportunityElement().getProspect_Id();
    while(strCurrentProspectID .equalsIgnoreCase(wdContext
                                            .currentZopportunityElement().getProspect_Id()))
       wdContext.nodeZopportunity().moveNext(); 
you can do something like:
   int count = 0;
   int num_ele = number of elements of node Zopportunity
   while (<b>count<num_ele</b> && strCurrentProspectID .equalsIgnoreCase(wdContext
                                            .currentZopportunityElement().getProspect_Id()))
    wdContext.nodeZopportunity().moveNext(); 
    <b>count++;</b>

Similar Messages

  • Any way to get HTTP header in web dynpro Java?

    Is there any way to get HTTP header in web dynpro java? This method gives me the params. Is params same as header? It doesn't have any way to retrieve header data. I am on NW 7.0.19
    WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("param");

    Dear Faraz,
    I'm afraid the code you've pasted is only to retrieve URL parameters.
    Have you tried this document to see if it offers any good hint:
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9]
    Not sure if you can process the HTTP header with a WD4J.
    An alternative could be to develop some Portal component in plain JAVA working as a proxy to call your WD4J afterwards.
    That portal component would process your HTTP header and forward any parameter to your WD4J.
    But this is me just guessing.
    Kind Regards
    /Ricardo

  • Web Dynpro Java code changes

    Hi,
    I need to put some validations in web dynpro java page which is "employee address page". I checked the BADI's but no badi exists which serve my purpsoe.
    Now I want to make the code change in web dynpro java. Pls answer the followng questions.
    1- I have installed NWDS on my local machine. Do i need to install NWDI also?
    2- How to import and export the required page and from where?
    3- How to modify the standard code, I mean in ECC we have enhancement and modification concept.
    Thanks,

    NWDI is a part of NWDS, So you would need both as mentioend
    NWDI - Netweaver Development Infrastructure is an SAP sytem for java development & change management. It's a repository for java code and change management system.
    NWDS is a developer tool to build applications similar to Eclipse. NWDS uses NWDI to check-in & check-out java code and move java changes to SAP runtime systems (like portal etc).
    Read the basics of NWDI and its utility in the below help document
    http://help.sap.com/saphelp_nwce72/helpdata/en/48/bc23b1a70a0611e10000000a42189b/frameset.htm
    Also go through how to import ESS configurations in NWDI
    ESS/MSS Customization – Make it Simple
    NWDI cookbook in SAP note : 872892
    The specified item was not found.
    Edited by: Siddharth Rajora on Nov 9, 2011 9:28 PM

  • No NWDI activity asked while modifying the Web Dynpro java code

    Hi,
    We have 2 team in our project, one offshore team and one onsite team. We have NWDI also in our landscape.
    I have created 1 project in my local NWDS from DTR using create project  option from NWDI track , when i do any modification in that web dynpro code once it appears in my local NWDS, its asking for the activity, all this is fine.
    But when my offshore team send me this project from offshore (offshore team also working on this project), i go to my local machine under C:\Documents and Settings\user\.dtc\0\DCs\xyz.org\.. (workspace, where all the project folders are created in my local machine ) and replaces the web dynpro project  (which i created using create project option from NWDI track ) with the project which offshore teams gave me  that is I copy paste the project folder I received from offshore team.
    I closed the NWDS and reopened NWDS, i did repair and reload also, but now when i try to do any code modification in that project its not asking any activity at all. So i want to know the reason why its not asking activity at all while modifying the code.
    if now i do any code changes, and since no activity is asked, it wont be transported to QA and Prd system.
    Can anyone have any suggestion on this..

    Hi GLM,
    I think you might be right that some files are in read as well as write mode. I went to my local machine and checked the project folder C:\Documents and Settings\user\.dtc\0\DCs\xyz.org\testproject\_comp\.dcdef  file , its not in read only mode, that is read only flag was not checked.
    I again checked the mode of .dcdef file in other web dynpro projects which are asking for the activity in all those projects mode of .dcdef was read only that is read only flad was checked in .dcdef file.  ( I am not sure is .dcdef file only giving this problem that si because of this file not in read only mode I am not asked for the activity)
    So could you plzz tell me how to make in read only. when ever i click the read only check box of .dcdef file and reload the project in my NWDS. that read only check box is getting removed. how to do this..
    regarding your query, landscape in offshore team and onsite team are different, client has not provided nay access to its landscape to ofshore team so offshore team can not check in / check out the code written by me and same applies to me I can not check in / check out the code written by offshore team , only option is offshore team do some changes in the code and send the project folder via email and I have to deploy in client landsacpe and do further modification.

  • Web Dynpro Java timesheet to Web Dynpro ABAP timesheet  what changes needs to be done from EP side

    Hi All,
    We are moving Web Dynpro Java timesheet to Web Dynpro ABAP timesheet.
    what changes needs to be done from EP side?
    I have made Web Dynpro ABAP iView calling Web Dynpro ABAP timesheet and linked it with page.
    But It is showing an error 'Web Dynpro Application CATDATARECORD does not exist'.
    Please suggest what other changes needs to be done.

    Hi Anurag,
    I have added new Web Dynpro ABAP iView to the same page in which Web Dynpro JAVA iview was added and made ABAP iview visible.
    And this page is already assigned to role.
    How should I link this ABAP iview so that it get replace by the Web Dynpro JAVA iview.
    And the  application name (CATDATARECORD) is correct and Web Dynpro JAVA is using the same application.
    But now we want new time timesheet for that what changes needs to be done?
    Please suggest.

  • Difference between web dynpro java and web dynpro abap

    Hi this is watson maureen,
                 I wnat to know what is  the difference between web dynpro java and web dynpro abap?
    thank
    maureen

    Hi watson,
    Go through these links, you will get the difference between web dynpro java and web dynpro abap
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0e4940c-035c-2b10-0b9d-eb8f99674f4e
    Web Dynpro: ABAP or Java?
    Regards
    Sreedhar.

  • Character encoding in Web Dynpro source code

    Hi all,
    I want to use special characters like "äüß" in Web Dynpro java code and can't find a possibility to specify the character encoding (ISO-8859-1) for Developer Studio Web Dynpro source editor.
    After rebuilding or compiling the code looks like "äüß".
    In the Java perspective source editor of eclipse/Developer Studio is a menu entry edit/encoding/... but not in Web Dynpro perspective.
    Does anybody know how to set encoding?
    Michael

    Hi Michael,
    Perhaps you can try converting your unicode characters to Java String literal with this web site  (http://www.snible.org/java2/uni2java.html).
    The characters that you supplied convert to "\u00E4\u00FC\u00DF", perhaps inserting that as the String will help.
    Best regards,
    Patrick.

  • Web Dynpro Java : Failed to get deployable object part info for component

    Currently we have a web dynpro java project which connects to the ABAP backend with Web Services. Everything seems fine, and when we transport to the production server via NWDI, we have the following error. Everytime we try to access the application , the error is occurred.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to get deployable object part info for component com.sie.attachmentcomp.AttachmentComp
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getComponentDeploymentDescription(ClientComponent.java:784)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:934)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:116)
    It is working properly in our development , and testing environment. Only production has this error. And one weird thing is that this particular error occurred only sometimes to some user. For example; I could not access to the application with this error yesterday but my friend can access. Today, I can access in the morning but my friend cannot. For another friend , Yesterday he can access by using IE but not by Firefox. But today Firefox is fine but not with IE. It seems crazy.
    For more information, in our J2EE engine for the production server, we have 3 server nodes (clusters). And we are not sure it is the source of the problem. Is there any solution , and any way to know from the application that we are on which server?
    We also go and check from the Content Administrator in Web Dynpro Console. Under our project name, in the list of Components, sometimes we can see AttachmentComp but sometimes not.
    Please help us as our project is about to go-live next week.
    Thanks,
    Yu

    Hi Meenge,
    Please check below document for finding root cause for "Failed to start deployable object part info for <development component> and application <application name>"
    http://help.sap.com/saphelp_nwce711core/helpdata/en/44/7716e1633a12d1e10000000a422035/frameset.htm
    OR http://help.sap.com/saphelp_nw04/helpdata/EN/f4/1a1041a0f6f16fe10000000a1550b0/frameset.htm
    Hope it helps
    Regards
    Arun

  • Date Column not getting sorted in a table in web Dynpro Java

    Hi All,
    I am facing an issue while sorting the date column in a table in my web dynpro java application.
    When the date is displayed in the sql format in tha table, I am able to sort the date column successfully but when we convert the date field from sql format to util format in our table and then sort it does not work.
    Kindly let us know the steps to be followed in this case to sort the date column of a table in Simple Date format as we do not want date in the sql format to be displayed.
    Thanks & Regards,
    Anurag

    Hi,
    You might want to check whether both your browser's language settings are identical. The browser language could also determine the date format.
    As a workaround, you could add an extra attribute to your context, and set the calculated property to 'true'.
    In your table, add a new column and bind to this new attribute, and hide your original date column
    If you sort using the date column that's hidden now, you could use the calculated field to fixed-format your date the way you prefer (by using the SimpleDateFormatter class for instance)
    Cheers,
    Robin

  • Accessing ABAP Functions in Web Dynpro Java

    Hi,
    I am trynig to do "Accessing ABAP Functions in Web Dynpro Java" this application, (which is the example application which i got from www.sdn.sap.com) but everything is fine no error also while dyploying.
    But it is not dysplaying the first page after i run the application i am getting plain web page ,without any content.
    Can any body help me.
    Regards,
    H.V.Swathi

    k.. now iam getting some error on page.
    I have embeded the two view in to window.
    But now after running the application i am getting connection error
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=jktr3 GROUP=SPACE R3NAME=R32 MSSERV=sapmsR32 PCS=1 ERROR Group SPACE not found TIME Fri Sep 26 15:05:59 2008 RELEASE 700 COMPONENT LG VERSION 5 RC -6 MODULE lgxx.c LINE 4288 DETAIL LgIGroupX COUNTER 1
        at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)
        at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:989)
        at com.sap.mw.jco.JCO$Client.connect(JCO.java:3193)
        at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:90)
        at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:122)
        ... 61 more
    Rgards,
    H.V.Swathi

  • Deploying problem of web dynpro java application

    Hi,
    I have a web dynpro java application with no problem about deploying.
    I copied this application with another name.
    I tryed new application to deploy but sdm aborted with error.
    Error
    19.Tem.2011 10:22:25 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : vserver0202
    SDM port : 52018
    URL to deploy : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
    Result
    => deployment aborted : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
    Aborted: development component 'HF_PERS_RAPOR_BUTCE'/'local'/'LOKAL'/'0.2011.07.19.10.22.15'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application local/HF_PERS_RAPOR_BUTCE.. Reason: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted

    Hi,
    Since the exception says "Are all referenced components deployed and available on the engine?"
    Check wether any DC is used as a used DC in the webdynpro component which you are deploying.
    If any used DC is available try to deploy that DC in the server and then deploy ur webdynpro application.
    If all reference DC's are avialable in server, still if you get this error try to rename the component and reload+rebuild the project and deploy it.
    Hope this helps you...
    Regards,
    Saleem Mohammad.

  • KM Permissions in Web Dynpro Java

    The error message: "Permission denied: uri=/kmfolder,
    permission=node_create_child, user=XXXXXX"
    Background:
    We are using a KM Windows repository to connect KM to a Windows shared
    folder over the network. Then we are using a Web Dynpro java
    application to write a file to the KM Folder, which is then mapped to
    that KM Windows repository.
    Security on the Windows shared folder is wide open. Everyone=Full
    Control, and Domain Users=Full control.
    Problem:
    When end users try to write the file to KM through the Web Dynpro app,
    they get the error:
    "Permission denied: uri=/kmfolder, permission=node_create_child,
    user=XXXXXX"
    But when we give them the Content Admin role, they are able to write
    the file just fine. For this reason, I do not believe there is a
    Windows permission issue.
    We have tried:
    -Explicitly setting User Mapping through User Admin -> Identity
    Management
    -Using a System Principle role with Full Access (Read, write, delete)
    -Duplicating the Content Admin role, removing the pages & iViews (so
    they can't view the Content Admin interface) and assigning this role to
    our test users.
    We have setup:
    Network path
    - ->jCIFS=True
    - ->Network path=
    <serv.host.com>\<sharename>
    - ->User=<domain>\<ADMIN User>
    KM Windows System Object
    - ->User Mapping=admin,user
    KM Windows System Landscape Definition
    CM Repository Manager
    - ->Prefix=/<sharename>
    - ->Persistance Mode=fsdb
    - ->Root directory=
    <serv.host.com>\<sharename>\root
    - ->Root directory for versions=
    <serv.host.com>\<sharename>\versions
    - ->Repository services=svc_acl
    - ->Security Manager=W2kSecurityManager
    - ->ACL Manager Cache=ca_rsrc_acl
    Edited by: Peter Speers on Apr 9, 2009 11:41 PM

    /thread/1302951 [original link is broken]

  • Web Service Consumption in Web Dynpro Java

    Hi,
    I'm using NetWeaver 2004s for Java. I have generated a Web Service out of a BAPI. I use that Web Service in a Web Dynpro Java Application as Model. Model generation works fine. But when I call the Web Service during execution of the corresponding Web Dynpro Application, I get the following Exception:
    "java.rmi.RemoteException: Service call exception; nested exception is: java.lang.Exception: Call to returned http code 500 with unacceptable content type (text/html; charset=iso-8859-1). <HTML> <HEAD> <TITLE>Unknown Host</TITLE> </HEAD> <BODY BGCOLOR="white" FGCOLOR="black"> <H1>Unknown Host</H1> <HR> <FONT FACE="Helvetica,Arial"><B> Description: Unable to locate the server named "<EM>us0308.wdf.sap.corp</EM>" --- the server does not have a DNS entry.  Perhaps there is a misspelling in the server name, or the server no longer exists.  Double-check the name and try again. </B></FONT> <HR> </BODY>"
    Testing the Web Service via transaction WSADMIN works fine. Can anybody give me an advise how to solve that problem?
    Thanks in advance!
    Regards,
    Frank

    Had Exactly same problem with authorization issues on the server hosting the webservices.
    Create a CPIC user Id on the server hosting the webservice. The user id should have authorization to execute the webservice.
    Create a webservice destination in VA for the said webservice using the user id
    1. Log on to the J2EE Engine as an administrator using the Visual Administrator.
    2. Expand -> Server ->Services.
    3. Select the Destinations service.
    4. Under Destinations, select HTTP and choose New
    You need to create two destinations one for matadata and another for execution data.
    Use the destinations while creating the WS model in NWDS.
    if you have issues importing the model using the URL, you can create the model using the WSDL and use the WS Destinations to execute it.
    I am following the same approach after i had faced similar issues with webservices on PI7.1 and Portal 7.0
    About the option to use _setusername, _set...., not all webservices come with the _set methods.
    and moreover if you do that, it would be more of hardcoding in the code, which should be avoided.
    Regards,
    Nitin
    Edited by: Nitin Mahajan on Jun 11, 2009 6:11 PM

  • Date format problem in web dynpro java

    Currently, the date format that gets displayed in our webdynpro java application is MMDDYYYY...i am assuming this is because the web dynpro application has language resource set to en_US as its Current locale in the web dynpro deployed content section.  Howver i want it to display as DDMMYYYY. I have changed the default properties in visual admin for web dynpro from en to en_GB however this has no impact what so ever as the current locale is always set to en_US even after the change so am wondering this property is hidden some where else.  Now the web dynpro i am talking about is a adobe portal application. Could you give me any pointers as to where else i can look for or how i can change the current locale properly ??
    Regards
    Kal

    The date format in the Web Dynpro Java Application depends upon locale. At runtime WDJ will do the following process to get the current locale for the date format to be determined.
    1. First the WDJ Application will check for the locale set for the user in UME.
    2. If there is no default locale in UME, then the it will check for the locale in the in the browser which in most cases by default is en-us.
    3. If not, then it will check for the sap.systemLocale in the Propertysheet default of Visual Admin
    4. If there no locale specified in Visual Admin, itu2019s taken from the WAS JVM
    Please check the below SAP Note
    http://help.sap.com/saphelp_nw04/helpdata/en/a0/58db515b95b64181ef0552dc1f5c50/frameset.htm
    Regards,
    Chandran S

  • File Visibility in uploading the file using web DynPro java

    hello,
    i have gone through the tutorial " uploading & downloading the file using web DynPro java".
    the upload functionalty is working fine. but i need to know thw path where these files are getting uploaded ??
    Waiting for the reply..
    Regards,
    Viren Gupta

    Hi Viren,
    Are you are refering to the below tutorial for upload and download:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f?QuickLink=index&overridelayout=true
    If yes, then answer is that the file is stored in the context of the application only as "com.sap.ide.webdynpro.uielement-definitions.Resource" object. Please read through the tutorial to understand the full process.
    WD doesn't really upload to server automatically unless there is any explicit code written. All it does is to store the file in a temp context which you can access and write your own code to store it in a particular location.
    Regards,
    Mahesh

Maybe you are looking for