Webdynpro Application hangs on executing query

I am  having strange issue with Webdynpro application running JDBC code. Webdynpro application hangs intermittently when it tries to run the below jdbc code .
This code is written on custom controller. We are using the SAPSR3DB datasource.  Do anybody  have any idea why this is happening . Thanks in advance
wdThis.wdGetAPI().getComponent().getMessageManager();
                                try {
                                                Connection conn;
                                                InitialContext ctx = new InitialContext();
                                                DataSource dataSource = (DataSource) ctx.lookup(readPropertyFile());
                                                conn = dataSource.getConnection();
                                                PreparedStatement stmt =
                                conn.prepareStatement(
                                                                                "insert into ZAE_PROD_GRtable(AUFNR,EXIDV_P,EXIDV_C,MATNR,WERKS,CHARG,VEMNG,VEMEH,CWMVEMNG,CWMVEMEH,STATUS,INDC) values(?,?,?,?,?,?,?,?,?,?,?,?)");
                                                stmt.setString(1, wdContext.currentContextElement().getAUFNR());
                                                stmt.setString(2, wdContext.currentHUDataElement().getEXIDVP());
                                                stmt.setString(3, wdContext.currentHUDataElement().getEXIDVC());
                                                stmt.setString(4, wdContext.currentOrderDataElement().getMATNR());
                                                stmt.setString(5, wdContext.currentOrderDataElement().getWERKS());
                                                stmt.setString(6, wdContext.currentOrderDataElement().getBATCH());
                                                stmt.setString(7, wdContext.currentHUDataElement().getVEMNGP());
                                                stmt.setString(8, wdContext.currentHUDataElement().getVEMEHP());
                                                stmt.setString(9, wdContext.currentHUDataElement().getVEMNGC());
                                                stmt.setString(10, wdContext.currentHUDataElement().getVEMEHC());
                                                stmt.setString(11, "1");
                                                stmt.setString(12, wdContext.currentContextElement().getHuIndicator));
                                                stmt.executeUpdate();
                                                stmt.close();
                                                conn.close();
                                } catch (SQLException ex) {
                                                msgMgr.reportException(ex.getLocalizedMessage() +";SQL State - " + ex.getSQLState(), true);
                                } catch (Exception ex) {
                                                msgMgr.reportException(ex.getLocalizedMessage(), true);
finally {
               try {
                    conn.close();
               } catch (Exception e) {
                    msgMgr.reportException(e.getLocalizedMessage(),true);

Hello,
There can be any issue, i dont see any compile time issue with your code, but you may wana do a simplistic query first.
First of all, the statement and conection close, do it in the finally block, untill unless you are reusing it.
other than this.
First, after connection, see if you are getting the connection or not.
conn = dataSource.getConnection();
//print the connection and check if the connection is fine.
comment remaining stuff in the loop.
In the second shot, run a simple query like select count(*) from TABLE ;
to see if the connection and execution is fine. this will make sure
Also, before you set the values into the statement using setString, print the values to check for correctness and not null.
btw, i found an extra ")" in your setString(12,.....) ;
stmt.setString(12, wdContext.currentContextElement().getHuIndicator));
What are you trying to close in your finally block when you have already closed the connection in the try.
try{
          stmt.close();
          conn.close();
     } catch (SQLException ex) {
          msgMgr.reportException(
               ex.getLocalizedMessage() + ";SQL State - " + ex.getSQLState(),
               true);
     } catch (Exception ex) {
          msgMgr.reportException(ex.getLocalizedMessage(), true);
     finally {
          try {
               conn.close();
          } catch (Exception e) {
               msgMgr.reportException(e.getLocalizedMessage(), true);
Remove it from try.
Regards,
Nitin
Edited by: Nitin Mahajan on Jun 16, 2009 6:20 PM
Edited by: Nitin Mahajan on Jun 16, 2009 6:21 PM
Edited by: Nitin Mahajan on Jun 16, 2009 6:22 PM

Similar Messages

  • Passing Parameters from Par component to WebDynpro Application

    Hi all,
    We have a created a WebDynPro and par application. Also we want to pass the parameters from Par component to WebDynPro Application. ( not in query string as application parameters property of webdynpro iView).
    Is it possible to do so? if yes then how?
    Please help us......
    Thanks and regards,
    Prath.

    Hi ,
    If the iviews are on the same page you can use portal eventing for that
    see the documents on portal eventing
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/_d-f/enterprise%20portal%20client.pdf">EPCF pdf</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/d3/3857422d095542e10000000a1550b0/frameset.htm">EPCF</a>
    Hope this helps you
    Regards
    Rohit

  • Runtime Error While executing the WebDynpro Application

    I am getting the Runtime Error While executing the WebDynpro Application. The error message is "TSV_TNEW_OCCURS_NO_ROLL_MEMORY".
    It says like "
    Short text
        No roll storage space of length 9728 available for OCCURS area.
    What happened?
        Each transaction requires some main memory space to process
        application data. If the operating system cannot provide any more
        space, the transaction is terminated.
    But while executing some other Web Dynpro Applications, i am not facing this problem.

    Generally this error is a result of an infinite loop on internal table or select endselect statement where by severs  temporary memory gets full. With no memory to insert new records in temporary memory system generates the dump.
    Check your application or ask basis consultant to look at the memory parameters in instance profile.
    Regards
    Rohit Chowdhary

  • Error while executing WebDynpro Application with Adobe interactive forms.

    I have created a webDynpro application which involves an adobe interactive form. When i deploy and run the application, i am able to deploy it on the J2EE engine on the EP server but while executing it, i get the following exception -
    <b>Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation. Request start time: Thu Oct 12 17:30:39 GMT+05:30 2006
        at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:486)
        at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
        at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
        at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
        at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
        ... 21 more</b>
    I would appreciate any help in this matter.
    Thanks...

    Hi,
    Check the note in this site...
    https://websmp204.sap-ag.de/notes
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Error Opening Reports (Cannot find Dimension Scenario, Error executing query: the member null doesn't exist in this application)

    Hello,
    two of our users get the following error message, when opening two specific reports:
    First Report: Cannot find Dimension Scenario.
    Second Report: Error executing query: the member null doesn't exist in this application.
    Other users can access these reports, and the same users where the problem occurs can access other reports in the same folder.
    I set the same rights for me, but i can access the reports without problems.
    Somebody encountered the same problem before?

    Hi there,
    I had the same issue a few weeks ago... not sure how it happened but it was related only with my username.
    In order to fix it:
    1. I created a report which does not require to select the scenario in advance. Try to use the default data-grid that you get when you first create a report for example.
    2. When the user runs the report, try to see if he can see the dimension. Do not use the missing dimension on rows or columns. If he can see the dimension, ask him to select one scenario. This will solve the issue.
    3. If he cannot see the dimension, try to change the layout of the report.
    Regards,
    Thanos

  • Error in executing 'HR_INFOTYPE_OPERATION' from webdynpro application

    Hi Experts,
    I am using FM 'HR_INFOTYPE_OPERATION' for infotype PA0034 operations. I have written below code in assistant class.
    when i execute the class method and pass the parameters this FM executing fine and creates record into pa0034. But when i execute the webdynpro application it is giving error "Invalid parameter EXCEPTION , value ".  Please Help me in solving this issue
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '0034'
        NUMBER                 = lv_pernr
        SUBTYPE                =  ls_p0034-subty
        OBJECTID               = ''
        LOCKINDICATOR          = ''
        VALIDITYEND            = ls_p0034-endda
        VALIDITYBEGIN          = ls_p0034-begda
      RECORDNUMBER           =
        RECORD                 = ls_p0034
        OPERATION              = 'INS'
        TCLAS                  = ' '
       DIALOG_MODE            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
       RETURN                 = ls_return
      KEY                    =
    Thanks
    Vijay

    Hi Vijay,
    So you are passing the values from the screen. So you must have binded the screen fields with the attributes, just make sure that they are of the same type as the importing parameters of the FM
    Regards
    Arjun

  • Execute query not workin on application server

    i have upgraded my form to 10.1.2.0.2 successfully and can host them using the application server ....
    in the form i have got various tab canvas,stacked canvas,contect canvas.....
    but my execute query function is not working ...dont know why

    @abdetu...
    hey buddy every thing is working fine now ....
    according to your suggestion i checked the errors...
    and found that some of the columns were not exported properly from the targer database ...
    after adding the database everything started to work perfectly fine
    once again thnx a lot for ur help and time

  • How to execute a workflow from a webdynpro application???

    hi friends....
    How to execute a workflow from a webdynpro application???
    we are using ep6, ecc5????

    If you want to start a workflow in the backend, you need to call a RFC that starts it.

  • How to Execute Webdynpro Applications

    Hi Gurus,
    Iam new to Webdynpro for ABAP . When iam executing Webdynpro Applications iam getting message like Service Connot Reached. Error no 403.
    I think my server need some setting, Please  solve my problem.
    Thank you.
    Regards
    Peram Srinivas

    go to start->run.. and type
    Ping <server domain name> -t and enter
    you can see the server round trip time
    if you dont't have domain name check out this
    http://help.sap.com/saphelp_nw04s/helpdata/en/67/be9442572e1231e10000000a1550b0/content.htm
    Abhi

  • Is it possible to execute a simple java webdynpro application without deploying?

    Hi,
    I am a beginner and just have created an elementary java webdynpro application that enables to switch between two views. When I tried to execute the application it prompts me to configure server settings(above screenshot).Is there a way to test the working of my app without deploying in server.
    regards,
    Ajeeth Kumar S

    Hi Jun Wu,
    Because without deploying, it doesn't allow me check how my java webdynpro application works!!
    I  need to execute my java web dynpro application and I dont have any access to SDM pins/passwords.
    Please share your valuable thoughts on the same.
    regards,
    Ajeeth Kumar S

  • User ID executing ABAP WebDynpro Application

    Hello,
    If we are running a ABAP WebDynpro application from a portal and we don´t want to create user ID both in portal and in SAP machine. Is it possible to have a system-user executing the applikation instead of the portal user ID ?
    Many users will run this web Dynpro report and it would help a lot if they only needed authorization to the portal and not to the SAP machine.
    Thanksful for your help.
    Best Regards
    Andreas

    Hi Andreas,
    it is absolutely possible to provide access to WDA applications from the portal using a specific generic user rather than a named SAP user. Within the SICF logon data tab for your application you can specify the user to be used.
    However, be careful with this approach as it may breach the terms of your SAP license agreement - generally all WDA should be via a named user. That said SAP are normally quite flexible about this sort of thing - but I would be approaching your SAP client manager to discuss the particular situation and if they would be happy for you to do this. Especially given the description of your requirement I would be especially vigilant with getting prior approval from SAP, as this does look like the sort of situation where they would normally be wanting you to pay license fees for those users.
    Good luck,
    Chris

  • Error while executing webdynpro application : he URL does not contain full

    Dear All,
    I had installed SAP in my system.But when I am testing webdynpro application I am getting the belwo error. Please let me knwo what setting I need to do to avoid this error.
    Error when processing your request
    What has happened?
    The URL http://hari:8000/sap/bc/webdynpro/sap/z_test_pg was not called due to an error.
    Note
    The following error text was processed in the system DEV : The URL does not contain full domain specification (hari statt hari.<domain>.<ext>).
    The error occurred on the application server HARI_DEV_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CHECK of program CX_FQDN=======================CP
    Method: LATE_CONSTRUCTOR of program CL_WDR_UCF====================CP
    Method: HANDLE_REQUEST of program CL_WDR_UCF====================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DEV in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server HARI_DEV_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server HARI_DEV_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 800 -u: SAPUSER -l: E -s: DEV -i: HARI_DEV_00 -w: 0 -d: 20080109 -t: 073032 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

    Hello,
    Little extract from the SAP online help :
    In Web Dynpro ABAP it is imperative that a client browser with a fully qualified domain name (FQDN) has access to the AS-ABAP. For this reason the full URL must be assigned to a Web Dynpro ABAP application when it is called. The URL must not be shortened (for instance, no domain specification).
    More info on how you should do this can be found here :
    [Click|http://help.sap.com/saphelp_nw70/helpdata/en/67/be9442572e1231e10000000a1550b0/content.htm]
    This will solve your problem.
    Success.
    Wim

  • Query regarding accessing of Webdynpro application from a non-SAP system.

    Hi,
      I have developed a webdynpro application and I want the users from non-SAP systems to access it from their browser. User will not have to enter the username and password of the SAP system. How will I achieve this? Any suggestions?

    Hi Anirban,
    you can assign a user in the service of your web dynpro application.
    Call transaction SICF and open the service to your web dynpro application.
    Within the tab "logon data" you can enter a user/password.
    You should not assign a dialoug user.
    For productive environment, have a look at all the other options like SSL
    and maybe you have to do some more configuration to make it secure!!!
    Keep in mind, that all "internet" users are working now with the same SAP user/authorization.
    Kind Regards,
    Andreas

  • Application hangs for non existing value

    Hi,
    At the DB level I tried to query non existing value from the table, query came out with "no rows selected" . But when I try to do the same from front end, application hangs! I just checked in the statspack report it shows like query is taking more cpu time to execute. what could be the reason for this?
    when I join the v$session,v$sql to get the currently running query on database, it shows the query which try to execute from the application as active.
    why it is hanging in application and why not in DB?
    can any one brief me on this regard? why does application hangs for non exsting value?
    With Regards
    Boo

    Hi,
    At the DB level I tried to query non existing value from the table, query came out with "no rows selected" . But when I try to do the same from front end, application hangs! I just checked in the statspack report it shows like query is taking more cpu time to execute. what could be the reason for this?
    when I join the v$session,v$sql to get the currently running query on database, it shows the query which try to execute from the application as active.
    why it is hanging in application and why not in DB?
    can any one brief me on this regard? why does application hangs for non exsting value?
    With Regards
    Boo

  • View hangs during executing

    I currently have a view set up and when I do an execute query on this view it works great, but only if I run the form standalone. As soon as I run through a menu it hangs forever. Any ideas?
    Please Help
    kjp

    Reinstalling Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion and click on the Continue button.
    Note: You can also re-download the Lion installer by opening the App Store application. Hold down the OPTION key and click on the Purchases icon in the toolbar. You should now see an active Install button to the right of your Lion purchase entry. There are situations in which this will not work. For example, if you are already booted into the Lion you originally purchased with your Apple ID or if an instance of the Lion installer is located anywhere on your computer.

Maybe you are looking for