Unable to run Web App for the 2nd Time

Hi,
I am using Weblogic 8.1 sp5 as my deploying platform. Using the official tutorials, I am able to export my JSC2 web app into a WAR file that is deployable on my Weblogic server.
Upon running the application, it works perfectly. However, upon closing my browser and then restarting the browser, running the web app again yields exceptions, please refer to the bottom.
What am I doing wrong? I am suspecting the web-app wasn't detroyed properly when another instances of it is started...
Please advise.
Adams
Error 500--Internal Server Error
com.sun.rave.web.ui.appbase.ApplicationException: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Invalid parameter binding(s).
     at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(Ljavax/faces/context/FacesContext;)V(ViewHandlerImpl.java:601)
     at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(Ljavax/faces/context/FacesContext;Ljavax/faces/component/UIViewRoot;)V(ViewHandlerImpl.java:316)
     at com.sun.faces.lifecycle.RenderResponsePhase.execute(Ljavax/faces/context/FacesContext;)V(RenderResponsePhase.java:87)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(Ljavax/faces/event/PhaseId;Lcom/sun/faces/lifecycle/Phase;Ljavax/faces/context/FacesContext;)V(LifecycleImpl.java:221)
     at com.sun.faces.lifecycle.LifecycleImpl.render(Ljavax/faces/context/FacesContext;)V(LifecycleImpl.java:117)
     at javax.faces.webapp.FacesServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FacesServlet.java:198)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
     at weblogic.servlet.internal.TailFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(TailFilter.java:28)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:27)
     at com.sun.rave.web.ui.util.UploadFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(UploadFilter.java:194)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:27)
     at weblogic.servlet.internal.RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:326)
     at weblogic.servlet.jsp.PageContextImpl.forward(Ljava/lang/String;)V(PageContextImpl.java:150)
     at jsp_servlet.__jscreator_index._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(__jscreator_index.java:122)
     at weblogic.servlet.jsp.JspBase.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(JspBase.java:33)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(ServletStubImpl.java:348)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:6985)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)
     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:3892)
     at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.java:2766)
     at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
     at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
     at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
Caused by: java.lang.RuntimeException: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Invalid parameter binding(s).
     at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(Lcom/sun/data/provider/RowKey;)V(CachedRowSetDataProvider.java:343)
     at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(I)Z(CachedRowSetDataProvider.java:300)
     at com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount()I(CachedRowSetDataProvider.java:624)
     at com.sun.rave.web.ui.component.TableRowGroup.getRowKeys()[Lcom/sun/data/provider/RowKey;(TableRowGroup.java:806)
     at com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys()[Lcom/sun/data/provider/RowKey;(TableRowGroup.java:429)
     at com.sun.rave.web.ui.component.TableRowGroup.getRowCount()I(TableRowGroup.java:749)
     at com.sun.rave.web.ui.component.Table.getRowCount()I(Table.java:307)
     at com.sun.rave.web.ui.component.Table.getTableActionsTop()Ljavax/faces/component/UIComponent;(Table.java:539)
     at com.sun.rave.web.ui.renderer.TableRenderer.renderActionsTop(Ljavax/faces/context/FacesContext;Lcom/sun/rave/web/ui/component/Table;Ljavax/faces/context/ResponseWriter;)V(TableRenderer.java:257)
     at com.sun.rave.web.ui.renderer.TableRenderer.encodeBegin(Ljavax/faces/context/FacesContext;Ljavax/faces/component/UIComponent;)V(TableRenderer.java:124)
     at javax.faces.component.UIComponentBase.encodeBegin(Ljavax/faces/context/FacesContext;)V(UIComponentBase.java:683)
     at com.sun.rave.web.ui.component.Table.encodeBegin(Ljavax/faces/context/FacesContext;)V(Table.java:811)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(Ljavax/faces/component/UIComponent;Ljavax/faces/context/FacesContext;)V(RenderingUtilities.java:78)
     at com.sun.rave.web.ui.renderer.AbstractRenderer.encodeChildren(Ljavax/faces/context/FacesContext;Ljavax/faces/component/UIComponent;)V(AbstractRenderer.java:194)
     at javax.faces.component.UIComponentBase.encodeChildren(Ljavax/faces/context/FacesContext;)V(UIComponentBase.java:701)
     at javax.faces.webapp.UIComponentTag.encodeChildren()V(UIComponentTag.java:607)
     at javax.faces.webapp.UIComponentTag.doEndTag()I(UIComponentTag.java:544)
     at jsp_servlet.__vesselsmovements._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(__vesselsmovements.java:1060)
     at weblogic.servlet.jsp.JspBase.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(JspBase.java:33)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(ServletStubImpl.java:348)
     at weblogic.servlet.internal.RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:328)
     at com.sun.faces.context.ExternalContextImpl.dispatch(Ljava/lang/String;)V(ExternalContextImpl.java:322)
     at com.sun.faces.application.ViewHandlerImpl.renderView(Ljavax/faces/context/FacesContext;Ljavax/faces/component/UIViewRoot;)V(ViewHandlerImpl.java:130)
     at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(Ljavax/faces/context/FacesContext;Ljavax/faces/component/UIViewRoot;)V(ViewHandlerImpl.java:311)
     at com.sun.faces.lifecycle.RenderResponsePhase.execute(Ljavax/faces/context/FacesContext;)V(RenderResponsePhase.java:87)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(Ljavax/faces/event/PhaseId;Lcom/sun/faces/lifecycle/Phase;Ljavax/faces/context/FacesContext;)V(LifecycleImpl.java:221)
     at com.sun.faces.lifecycle.LifecycleImpl.render(Ljavax/faces/context/FacesContext;)V(LifecycleImpl.java:117)
     at javax.faces.webapp.FacesServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FacesServlet.java:198)
     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Invalid parameter binding(s).
     at com.microsoft.jdbc.base.BaseExceptions.createException(Ljava/lang/String;Ljava/lang/String;)Ljava/sql/SQLException;(Unknown Source)
     at com.microsoft.jdbc.base.BaseExceptions.getException(ILjava/lang/String;)Ljava/sql/SQLException;(Unknown Source)
     at com.microsoft.jdbc.base.BasePreparedStatement.validateParameters(Lcom/microsoft/jdbc/base/BaseParameters;)V(Unknown Source)
     at com.microsoft.jdbc.base.BasePreparedStatement.validateParameters()V(Unknown Source)
     at com.microsoft.jdbc.base.BasePreparedStatement.preImplExecute()V(Unknown Source)
     at com.microsoft.jdbc.base.BaseStatement.commonExecute()V(Unknown Source)
     at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal()Ljava/sql/ResultSet;(Unknown Source)
     at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery()Ljava/sql/ResultSet;(Unknown Source)
     at weblogic.jdbc.wrapper.PreparedStatement.executeQuery()Ljava/sql/ResultSet;(PreparedStatement.java:124)
     at com.sun.sql.rowset.internal.CachedRowSetXReader.readData(Ljavax/sql/RowSetInternal;)V(CachedRowSetXReader.java:193)
     at com.sun.sql.rowset.CachedRowSetXImpl.execute(Ljava/sql/Connection;)V(CachedRowSetXImpl.java:950)
     at com.sun.sql.rowset.CachedRowSetXImpl.execute()V(CachedRowSetXImpl.java:1410)
     at com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute()V(CachedRowSetDataProvider.java:1219)
     at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(Lcom/sun/data/provider/RowKey;)V(CachedRowSetDataProvider.java:329)
     at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(I)Z(CachedRowSetDataProvider.java:300)
     at com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount()I(CachedRowSetDataProvider.java:624)
     at com.sun.rave.web.ui.component.TableRowGroup.getRowKeys()[Lcom/sun/data/provider/RowKey;(TableRowGroup.java:806)
     at com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys()[Lcom/sun/data/provider/RowKey;(TableRowGroup.java:429)
     at com.sun.rave.web.ui.component.TableRowGroup.getRowCount()I(TableRowGroup.java:749)
     at com.sun.rave.web.ui.component.Table.getRowCount()I(Table.java:307)
     at com.sun.rave.web.ui.component.Table.getTableActionsTop()Ljavax/faces/component/UIComponent;(Table.java:539)
     at com.sun.rave.web.ui.renderer.TableRenderer.renderActionsTop(Ljavax/faces/context/FacesContext;Lcom/sun/rave/web/ui/component/Table;Ljavax/faces/context/ResponseWriter;)V(TableRenderer.java:257)
     at com.sun.rave.web.ui.renderer.TableRenderer.encodeBegin(Ljavax/faces/context/FacesContext;Ljavax/faces/component/UIComponent;)V(TableRenderer.java:124)
     at javax.faces.component.UIComponentBase.encodeBegin(Ljavax/faces/context/FacesContext;)V(UIComponentBase.java:683)
     at com.sun.rave.web.ui.component.Table.encodeBegin(Ljavax/faces/context/FacesContext;)V(Table.java:811)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(Ljavax/faces/component/UIComponent;Ljavax/faces/context/FacesContext;)V(RenderingUtilities.java:78)
     at com.sun.rave.web.ui.renderer.AbstractRenderer.encodeChildren(Ljavax/faces/context/FacesContext;Ljavax/faces/component/UIComponent;)V(AbstractRenderer.java:194)
     at javax.faces.component.UIComponentBase.encodeChildren(Ljavax/faces/context/FacesContext;)V(UIComponentBase.java:701)
     at javax.faces.webapp.UIComponentTag.encodeChildren()V(UIComponentTag.java:607)
     at javax.faces.webapp.UIComponentTag.doEndTag()I(UIComponentTag.java:544)
     at jsp_servlet.__vesselsmovements._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(__vesselsmovements.java:1060)
     at weblogic.servlet.jsp.JspBase.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(JspBase.java:33)

Well, I have solve this problem myself.. apparently, I used static variables to initalise the app. Changing the static variables to session variables solved the problems.

Similar Messages

  • Scoping out Sharepoint - Is it possible to run web apps in the same domain as a web page? (ie not with references to a cloud)

    From what I understand, with sharepoint it is possible to run web apps on the server that don't need to be referenced via the cloud, ie in contrast to SkyDrive.
    If so, would it be possible to create a web site on the share point server that embeds say a word web app in a page, all done in the one server, on the same domain?
    Thanks

    Hi,
    First Office Web Apps and SharePoint can't be installed in one server as it's not supported. So you need at least two servers - one for SharePoint and another for Office Web Apps. About 'word web app', As far as I know you can run word app/excel app runs
    in either word/excel but not inside Office Web Apps.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Running app for the first time NOT

    Suddenly I get this message for some of my Applescript apps I have been using for years,
    "You are opening the application “name.app” for the first time. Are you sure you want to open this application?"
    Even after saying yes and running it the message persists every time. I have verified using the terminal that the quarantine flag is not set for the app.
    Any thoughts on this? Better, any solutions?

    Check your Gatekeeper settings.
    System Preferences>Security & Privacy>General. 

  • My macbook pro retina 2014 has crashed for the 2nd time in 2 mo

    My macbook pro retina 2014 has crashed for the 2nd time in 2 months. Can't get past the gray/apple screen.  The first time the genius bar tried all the different tricks to get it to boot all the way through, but in the end had to reinstall mavericks.  They said there weren't any indications of it being a hardware issue after running diagnostics.  The only possible reason is that it has something to do with some ProTools 10 plugins which I had downloaded in both occasions less than a week before.  I don't believe that would be the issue and I'm guessing it's a hardware issue at this point.  It's still under a factory warranty, so I'm not too concerned.  Thoughts?

    Try SMC and PRAM resets:
    http://support.apple.com/en-us/HT201295
    http://web.archive.org/web/20140711222006/http://support.apple.com/kb/ht1379
    If no success, try booting into the recovery partition and select Disk Utility from the 4 option menu.
    Run Disk Utility>First Aid, Verify and Repair.
    Any Change?
    Ciao.

  • I live in Italy and I am trying to buy an App, for the first time with my iphone4...in the past only downloaded free apps free apps; I have a US Visa card and it is not accepted by italian Itunes...what can I do to do my purchases?

    I live in Italy and I am trying to buy an App, for the first time with my iphone4...in the past only downloaded free apps free apps; I have a US Visa card and it is not accepted by italian Itunes...what can I do to do my purchases?

    On the apple website that is correct i beleive.... but i have an italian american express and am able to purchase stuff here in the US.
    I mean, i dont think it really matters

  • When Webdynpro popup is opened for the 2nd time, image is not shown

    Hi Experts,
    We have created a WebDynpro with a popup window.
    This is shown in an iView in the portal.
    If the popup is opened for the first time it looks good.
    If the popup is opened for the 2nd time the image is not shown and the title is shown with a different font.
    If we do a preview of the iView in PCD content area, the title and image is shown and the right font is used: also when you open this for the second time.
    If the iView is in a role the problem appears.
    How can this be solved?
    Thanks in advance,
    Joeri

    Sounds like a wrong reference to a stylesheet.
    Use IE Developer Toolbar or Firefox to debug the code. Or view source (of the popup) and search for .css. Do the same for the popup that doesn't work. Check if there are differences.
    Good luck!
    Noel

  • I am buying an app for the first time, i put in my password, but now it wants my security question. I forgot them. how can i continue?

    on my iphone i was trying to buy an app for the first time, it promt me for the password, but then it asked for the security question. I have for gotten what the answer was. need help resetting the question and saving the changes?

    Chick3597 wrote:
    Regardless of apple updating something or another. I have no need for the additional questions and really don't want to allow them to bully me into compliance.
    You may have no need for additional but Apple does. They don't want your iTunes account to be hacked and then go complaining to them that their security procedures are not up to standards.
    Chick3597 wrote:
    So how can I continue in the good old fashioned way?
    Its really absurd to even ask this in light of the information that you have been given already. The "old fashioned" way is gone. It's Apple's store, Apples's rules and IMO - its a wise decision on Apple's part.
    You do not have to comply at all, but you will not be able to purchase from iTunes anymore, but nobody is going to force you to do something that you do not want to do.

  • Alv display for the 2nd time.

    Hi everybody
    I have created a interactive alv report. when i am going for   first display it is giving correct result whne i go for 2nd time it is not initilizing the grids the records are displayed twice or same record is displayed. i have check BCALV_GRID_03 but i could not understand it properly so i am giving my code please help.
    *& Report  ZVTEST1                                                     *
    REPORT  ZVTEST1 .
    class lcl_event_receiver definition deferred.
    class cl_event_receiver definition deferred.
    TYPE-POOLS : SLIS.
    tables : ekko,ekpo,lfa1.
    data : begin of itab occurs 0,
             lifnr like ekko-lifnr,
             netwr like ekpo-netwr,
             name1 like lfa1-name1,
          end of itab.
    data : begin of inv_det occurs 0,
             ebeln like ekko-ebeln,
             bedat like ekko-bedat,
             lifnr like ekko-lifnr,
             netwr like ekpo-netwr,
             name1 like lfa1-name1,
           end of inv_det.
    data : begin of mat_det occurs 0,
             ebeln like ekko-ebeln,
             lifnr like ekko-lifnr,
             bedat like ekko-bedat,
             matnr like ekpo-matnr,
             menge like ekpo-menge,
             netpr like ekpo-netpr,
             NETWR LIKE EKPO-NETWR,
             maktx like makt-maktx,
           end of mat_det.
    DATA :TEST_GRID TYPE REF TO CL_GUI_ALV_GRID,
          TEST_CONT TYPE SCRFNAME VALUE 'TESTING_ALV',
          TEST_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
          TEST_LAYOUT TYPE LVC_S_LAYO,
          TEST_FIELDCAT TYPE LVC_T_FCAT,
          ok_code like sy-ucomm,
          event_receiver type ref to lcl_event_receiver,
          event_receiver1 type ref to cl_event_receiver,
          TEST_GRID1 TYPE REF TO CL_GUI_ALV_GRID,
          TEST_CONT1 TYPE SCRFNAME VALUE 'PARTYWISE_DETAILS',
          TEST_CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
          ls_layout TYPE lvc_s_layo,
          TEST_LAYOUT1 TYPE LVC_S_LAYO,
          TEST_FIELDCAT1 TYPE LVC_T_FCAT,
          TEST_GRID2 TYPE REF TO CL_GUI_ALV_GRID,
          TEST_CONT2 TYPE SCRFNAME VALUE 'INVOICE',
          TEST_CONTAINER2 TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
          TEST_LAYOUT2 TYPE LVC_S_LAYO,
          TEST_FIELDCAT2 TYPE LVC_T_FCAT.
    select-options: s_bedat for ekko-bedat.
    CALL SCREEN 100.
    class LCL_EVENT_RECEIVER definition.
      public section.
          methods:
          handle_double_click
            for event double_click of cl_gui_alv_grid
                importing e_row e_column.
      private section.
    endclass.
    class LCL_EVENT_RECEIVER implementation.
    method handle_double_click.
        data: itab1 like line of itab.
        read table itab index e_row-index into itab1.
        perform select_table_invdet using itab1
                                   changing inv_det.
        call screen 200 starting at 10 5.
    endmethod.
    endclass.
    class CL_EVENT_RECEIVER definition.
      public section.
          methods:
           handle_hotspot_click
            for event hotspot_click of cl_gui_alv_grid
                importing e_row_id e_column_id es_row_no.
      private section.
    endclass.
    class CL_EVENT_RECEIVER implementation.
    method handle_hotspot_click.
        data: itab2 like line of inv_det.
        read table inv_det index e_row_id-index into itab2.
        perform select_matdet using itab2
                                   changing mat_det.
        call screen 300 starting at 15 5.
    endmethod.
    endclass.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'TEST'.
    PERFORM SELECT-DATA.  " FOR THE INITIAL LIST.
    PERFORM ALV_DISPLAY.   "TO DISPLAY INITIAL SCREEN.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    CASE OK_CODE.
       WHEN 'BACK'.
         LEAVE TO SCREEN 0.
       WHEN 'EXIT'.
         LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  SELECT-DATA
          text
    -->  p1        text  DATA SELECTION FOR THE 1ST LIST
    <--  p2        text
    FORM SELECT-DATA .
    select alifnr sum( bnetwr ) as netwr
        into corresponding fields of itab
        from ekko as a inner join ekpo as b on bebeln = aebeln
         where abedat in s_bedat group by alifnr.
        select single name1 from lfa1 into itab-name1
           where lifnr = itab-lifnr.
    append itab.
    endselect.
    ENDFORM.                    " SELECT-DATA
    *&      Form  ALV_DISPLAY
          text
    -->  p1        text  DISPLAY THE LIST FIRST TIME.
    <--  p2        text
    FORM ALV_DISPLAY .
    IF TEST_GRID IS INITIAL.
         CREATE OBJECT TEST_CONTAINER
           EXPORTING
             CONTAINER_NAME              = 'TESTING_ALV'.
          CREATE OBJECT TEST_GRID
            EXPORTING
              I_PARENT          =  TEST_CONTAINER.
       PERFORM PROC_CATALOG CHANGING TEST_FIELDCAT.
       PERFORM PROC_LAYOUT CHANGING TEST_LAYOUT.
       CALL METHOD TEST_GRID->SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING
           IS_LAYOUT                     =  TEST_LAYOUT
         CHANGING
           IT_OUTTAB                     =  ITAB[]
           IT_FIELDCATALOG               =  TEST_FIELDCAT[].
    create object EVENT_RECEIVER.
        set handler EVENT_RECEIVER->handle_double_click for TEST_GRID.
    ENDIF.
    CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
      EXPORTING
        CONTROL           = TEST_CONTAINER.
    CALL METHOD CL_GUI_CFW=>FLUSH.
    ENDFORM.                    " ALV_DISPLAY
    *&      Form  PROC_CATALOG
          text
         <--P_TEST_FIELDCAT  text
    FORM PROC_CATALOG  CHANGING P_TEST_FIELDCAT type lvc_t_fcat.
    data: TEST_fieldcat type lvc_s_fcat.
    TEST_FIELDCAT-fieldname = 'LIFNR'.
    TEST_FIELDCAT-REF_TABLE = 'LFA1'.
    TEST_FIELDCAT-OUTPUTLEN = '12'.
    TEST_FIELDCAT-coltext   = 'VENDOR CODE'.
    TEST_FIELDCAT-SELTEXT   = 'VENDOR CODE'.
    *TEST_FIELDCAT-HOTSPOT   = 'X'.
    APPEND TEST_FIELDCAT TO P_TEST_FIElDCAT.
    CLEAR TEST_FIELDCAT.
    TEST_FIELDCAT-fieldname = 'NAME1'.
    TEST_FIELDCAT-REF_TABLE = 'LFA1'.
    TEST_FIELDCAT-OUTPUTLEN = '25'.
    TEST_FIELDCAT-coltext   = 'VENDOR NAME'.
    TEST_FIELDCAT-SELTEXT   = 'VENDOR NAME'.
    APPEND TEST_FIELDCAT TO P_TEST_FIElDCAT.
    CLEAR TEST_FIELDCAT.
    TEST_FIELDCAT-fieldname = 'NETWR'.
    TEST_FIELDCAT-REF_TABLE = 'EKPO'.
    TEST_FIELDCAT-OUTPUTLEN = '20'.
    TEST_FIELDCAT-coltext   = 'PURCHASE AMOUNT'.
    APPEND TEST_FIELDCAT TO P_TEST_FIElDCAT.
    CLEAR TEST_FIELDCAT.
    ENDFORM.                    " PROC_CATALOG
    *&      Form  PROC_LAYOUT
          text
         <--P_TEST_LAYOUT  text
    FORM PROC_LAYOUT  CHANGING P_TEST_LAYOUT type lvc_s_layo.
    p_TEST_layout-zebra = 'X'.
    p_TEST_layouT-grid_title = 'TEST INTERACTIVE ALV'.
    p_TEST_layout-smalltitle = 'X'.
    p_TEST_layout-no_hgridln    = 'X'.
    p_TEST_layout-excp_conds  = 'X'.
    p_TEST_layout-numc_total  = 'X'.
    ENDFORM.                    " PROC_LAYOUT
    *&      Form  select_table_invdet
          text
         -->P_ITAB1  DATA SELECTION FOR THE 2ND LIST
         <--P_INV_DET  text
    FORM select_table_invdet  USING    P_ITAB1 like line of itab
                              CHANGING P_INV_DET.
    clear inv_det.
    select alifnr aebeln abedat sum( bnetwr ) as netwr
        into corresponding fields of inv_det
        from ekko as a inner join ekpo as b on bebeln = aebeln
         where  alifnr = p_itab1-lifnr and abedat in s_bedat group by
         alifnr  aebeln a~bedat.
        select single name1 from lfa1 into inv_det-name1
           where lifnr = inv_det-lifnr.
    append INV_DET.
    endselect.
    ENDFORM.                    " select_table_invdet
    *&      Module  STATUS_0200  OUTPUT
          text
    MODULE STATUS_0200 OUTPUT.
    IF TEST_GRID1 IS INITIAL.
        CREATE OBJECT TEST_CONTAINER1
           EXPORTING
             CONTAINER_NAME              = 'NEXT_CONT'.
        IF SY-SUBRC NE 0.
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              TITEL         =  SY-REPID
              TXT1          =  SY-SUBRC
              TXT2          =  'THE CONTROL IS NOT CREATED'.
      ENDIF.
         CREATE OBJECT TEST_GRID1
           EXPORTING
             I_PARENT          = TEST_CONTAINER1.
       PERFORM PROC_CATALOG1 CHANGING TEST_FIELDCAT1.
       PERFORM PROC_LAYOUT1 CHANGING TEST_LAYOUT1.
        CALL METHOD TEST_GRID1->SET_TABLE_FOR_FIRST_DISPLAY
          EXPORTING
            IS_LAYOUT                     =  test_layout1
          CHANGING
            IT_OUTTAB                     =  inv_det[]
            IT_FIELDCATALOG               =  TEST_FIELDCAT1[].
    create object EVENT_RECEIVER1.
        set handler EVENT_RECEIVER1->handle_hotspot_click for TEST_GRID1.
    ELSE.
       CALL METHOD TEST_GRID1->REFRESH_TABLE_DISPLAY.
    ENDIF.
    CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
      EXPORTING
        CONTROL           =  TEST_container1.
    CALL METHOD CL_GUI_CFW=>FLUSH.
    ENDMODULE.                 " STATUS_0200  OUTPUT
    *&      Module  USER_COMMAND_0200  INPUT
          text
    MODULE USER_COMMAND_0200 INPUT.
      case ok_code.
        when 'EXIT'.
    leave to screen 0.
      endcase.
      clear ok_code.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
    *&      Form  PROC_CATALOG1
          text
         <--P_TEST_FIELDCAT1  text
    FORM PROC_CATALOG1  CHANGING P_TEST_FIELDCAT1 type lvc_t_fcat.
    data: TEST_fieldcat1 type lvc_s_fcat.
    TEST_FIELDCAT1-fieldname = 'EBELN'.
    TEST_FIELDCAT1-REF_TABLE = 'EKKO'.
    TEST_FIELDCAT1-OUTPUTLEN = '12'.
    TEST_FIELDCAT1-coltext   = 'P.O NUMBER'.
    TEST_FIELDCAT1-SELTEXT   = 'P.O NUMBAR'.
    TEST_FIELDCAT1-HOTSPOT   = 'X'.
    APPEND TEST_FIELDCAT1 TO P_TEST_FIElDCAT1.
    CLEAR TEST_FIELDCAT1.
    TEST_FIELDCAT1-fieldname = 'BEDAT'.
    TEST_FIELDCAT1-REF_TABLE = 'EKKO'.
    TEST_FIELDCAT1-OUTPUTLEN = '10'.
    TEST_FIELDCAT1-coltext   = 'P.O.DATE'.
    TEST_FIELDCAT1-SELTEXT   = 'P.O.DATE'.
    APPEND TEST_FIELDCAT1 TO P_TEST_FIElDCAT1.
    CLEAR TEST_FIELDCAT1.
    TEST_FIELDCAT1-fieldname = 'NETWR'.
    TEST_FIELDCAT1-REF_TABLE = 'EKPO'.
    TEST_FIELDCAT1-OUTPUTLEN = '20'.
    TEST_FIELDCAT1-coltext   = 'PURCHASE AMOUNT'.
    APPEND TEST_FIELDCAT1 TO P_TEST_FIElDCAT1.
    CLEAR TEST_FIELDCAT1.
    ENDFORM.                    " PROC_CATALOG1
    *&      Form  PROC_LAYOUT1
          text
         <--P_TEST_LAYOUT1  text
    FORM PROC_LAYOUT1  CHANGING P_TEST_LAYOUT1  type lvc_s_layo.
    p_TEST_layout1-zebra = 'X'.
    p_TEST_layouT1-grid_title = 'DATE WISE PURCHASE ORDERS'.
    p_TEST_layout1-smalltitle = 'X'.
    p_TEST_layout1-no_hgridln    = 'X'.
    p_TEST_layout1-excp_conds  = 'X'.
    p_TEST_layout1-numc_total  = 'X'.
    ENDFORM.                    " PROC_LAYOUT1
    *&      Form  select_matdet
          text
         -->P_ITAB2  text
         <--P_MAT_DET  text
    FORM select_matdet  USING    P_ITAB2 like line of inv_det
                        CHANGING P_MAT_DET.
    select ebeln bedat lifnr from ekko into corresponding fields of mat_det
        where ebeln = p_itab2-ebeln and bedat = p_itab2-bedat
          and lifnr = p_itab2-lifnr..
    select matnr menge netpr NETWR from ekpo
       into corresponding fields of mat_det
         where ebeln = mat_det-ebeln.
    select single maktx from makt into corresponding fields of mat_det
         where matnr = mat_det-matnr.
    append mat_DET.
    endselect.
    endselect.
    ENDFORM.                    " select_matdet
    *&      Module  STATUS_0300  OUTPUT
          text
    MODULE STATUS_0300 OUTPUT.
    set pf-status 'TEST1'.
    IF TEST_GRID2 IS INITIAL.
       CREATE OBJECT TEST_CONTAINER2
         EXPORTING
           CONTAINER_NAME              = 'INVOICE_DETAILS'.
        IF SY-SUBRC NE 0.
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              TITEL         =  SY-REPID
              TXT1          =  SY-SUBRC
              TXT2          =  'THE CONTROL IS NOT CREATED'.
        ENDIF.
        CREATE OBJECT TEST_GRID2
          EXPORTING
            I_PARENT          = TEST_CONTAINER2.
         PERFORM PROC_CATALOG2 CHANGING TEST_FIELDCAT2.
         PERFORM PROC_LAYOUT2 CHANGING TEST_LAYOUT2.
         CALL METHOD TEST_GRID2->SET_TABLE_FOR_FIRST_DISPLAY
           EXPORTING
             IS_LAYOUT                     = test_layout2
           CHANGING
             IT_OUTTAB                     = mat_det[]
             IT_FIELDCATALOG               = test_fieldcat2[].
    else.
    CALL METHOD TEST_GRID2->GET_FRONTEND_LAYOUT
      IMPORTING
        ES_LAYOUT = ls_layout.
    CALL METHOD TEST_GRID2->SET_FRONTEND_LAYOUT
      EXPORTING
        IS_LAYOUT = ls_layout.
    ENDIF.
    CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
      EXPORTING
        CONTROL           = test_container2.
    CALL METHOD CL_GUI_CFW=>FLUSH.
    IF SY-SUBRC NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
      EXPORTING
        TITEL         = SY-REPID
        TXT1          = SY-SUBRC
        TXT2          = 'ERROR IN FLUSH'.
    ENDIF.
    ENDMODULE.                 " STATUS_0300  OUTPUT
    *&      Module  USER_COMMAND_0300  INPUT
          text
    MODULE USER_COMMAND_0300 INPUT.
    case ok_code.
        when 'BACK'.
            leave to screen 0.
        WHEN 'CANCLE'.
          LEAVE PROGRAM.
      endcase.
      clear ok_code.
    ENDMODULE.                 " USER_COMMAND_0300  INPUT
    *&      Form  PROC_CATALOG2
          text
         <--P_TEST_FIELDCAT2  text
    FORM PROC_CATALOG2  CHANGING P_TEST_FIELDCAT2 TYPE LVC_T_FCAT.
    data: TEST_fieldcat2 type lvc_s_fcat.
    TEST_FIELDCAT2-fieldname = 'MATNR'.
    TEST_FIELDCAT2-REF_TABLE = 'EKPO'.
    TEST_FIELDCAT2-OUTPUTLEN = '12'.
    TEST_FIELDCAT2-coltext   = 'MATERIAL NO'.
    TEST_FIELDCAT2-SELTEXT   = 'MATERIAL NO'.
    *TEST_FIELDCAT1-HOTSPOT   = 'X'.
    APPEND TEST_FIELDCAT2 TO P_TEST_FIElDCAT2.
    CLEAR TEST_FIELDCAT2.
    TEST_FIELDCAT2-fieldname = 'MAKTX'.
    TEST_FIELDCAT2-REF_TABLE = 'MAKT'.
    TEST_FIELDCAT2-OUTPUTLEN = '30'.
    TEST_FIELDCAT2-coltext   = 'DESCRIPTION'.
    TEST_FIELDCAT2-SELTEXT   = 'DESCRIPTION'.
    APPEND TEST_FIELDCAT2 TO P_TEST_FIElDCAT2.
    CLEAR TEST_FIELDCAT2.
    TEST_FIELDCAT2-fieldname = 'MENGE'.
    TEST_FIELDCAT2-REF_TABLE = 'EKPO'.
    TEST_FIELDCAT2-OUTPUTLEN = '10'.
    TEST_FIELDCAT2-coltext   = 'QUANTITY'.
    TEST_FIELDCAT2-SELTEXT   = 'QUANTITY'.
    APPEND TEST_FIELDCAT2 TO P_TEST_FIElDCAT2.
    CLEAR TEST_FIELDCAT2.
    TEST_FIELDCAT2-fieldname = 'NETPR'.
    TEST_FIELDCAT2-REF_TABLE = 'EKPO'.
    TEST_FIELDCAT2-OUTPUTLEN = '20'.
    TEST_FIELDCAT2-coltext   = 'PURCHASE AMOUNT'.
    APPEND TEST_FIELDCAT2 TO P_TEST_FIElDCAT2.
    CLEAR TEST_FIELDCAT2.
    TEST_FIELDCAT2-fieldname = 'NETWR'.
    TEST_FIELDCAT2-REF_TABLE = 'EKPO'.
    TEST_FIELDCAT2-OUTPUTLEN = '20'.
    TEST_FIELDCAT2-coltext   = 'PURCHASE AMOUNT'.
    APPEND TEST_FIELDCAT2 TO P_TEST_FIElDCAT2.
    CLEAR TEST_FIELDCAT2.
    ENDFORM.                    " PROC_CATALOG2
    *&      Form  PROC_LAYOUT2
          text
         <--P_TEST_LAYOUT2  text
    FORM PROC_LAYOUT2  CHANGING P_TEST_LAYOUT2  type lvc_s_layo.
    p_TEST_layout2-zebra = 'X'.
    p_TEST_layouT2-grid_title = 'PURCHASE ORDERS MATERIAL WISE DETAILS'.
    p_TEST_layout2-smalltitle = 'X'.
    p_TEST_layout2-no_hgridln    = 'X'.
    p_TEST_layout2-excp_conds  = 'X'.
    p_TEST_layout2-numc_total  = 'X'.
    ENDFORM.                    " PROC_LAYOUT2
    thanks
    Vinayak.

    Vinayak,
    Add the Code(ELSE part) into the Form ALV_DISPLAY.
    IF TEST_GRID IS INITIAL.
      CREATE OBJECT TEST_CONTAINER
        EXPORTING
          CONTAINER_NAME = 'TESTING_ALV'.
      CREATE OBJECT TEST_GRID
        EXPORTING
         I_PARENT = TEST_CONTAINER.
       PERFORM PROC_CATALOG CHANGING TEST_FIELDCAT.
       PERFORM PROC_LAYOUT CHANGING TEST_LAYOUT.
       CALL METHOD TEST_GRID->SET_TABLE_FOR_FIRST_DISPLAY
          EXPORTING
               IS_LAYOUT = TEST_LAYOUT
          CHANGING
               IT_OUTTAB = ITAB[]
               IT_FIELDCATALOG = TEST_FIELDCAT[].
        create object EVENT_RECEIVER.
        set handler EVENT_RECEIVER->handle_double_click
           for   TEST_GRID.
    <b>ELSE.
       CALL METHOD TEST_GRID->REFRESH_TABLE_DISPLAY(
                 "EXPORTING
                 "IS_STABLE =
                 "I_SOFT_REFRESH=
                            ).</b>
    ENDIF.
    Thanks
    Kam
    Note: Allot points for all worthful postings

  • Unable to depoly Web Serivce for the source code written in other editors

    Hi all,
    I am planning to implement webservice with the following code. But I am facing few problems with this can some body help me with this.
    The code looks like this AND IS NOT WRITTEN IN Jdeveloper BUT EDITPLUS
    package package1;
    public class Sum
    public int getSum(int a, int b)
              return a+b;
    package package2;
    public class Sub
    public int getSub(int a, int b)
              return a-b;
    package package3;
    import package1.*;
    import package2.*;
    public class Mul implements TestInterface
         Sum sm = new Sum();
         Sub sb = new Sub();
    public int getMul(int a, int b)
              return sm.getSum(a,b)*sb.getSub(a,b);
    public static void main(String [] args)
              Mul ml = new Mul();
              System.out.println(“The result of (3+6)*(3-6) is “+ ml.getMul(3,6));
    package package3;
    interface TestInterface extends java.rmi.Remote;
         public int getMul(int a, int b) throws java.rmi.RemoteException;
    I have written this in editplus. Not in Jdeveloper.
    Now I want publish getMul() as web service using Jdeveloper.
    I have created a new application work space. And from File--&gt;New
    I have choose project from existing source and imported “package3”.
    At this stage it was unable to find the class files Sum and Sub so I placed Sum.class and Sub.class in Appliction1-Project1-classes-
    Now the Mul class did not have any errors and it compiled fine. When run it gave the correct output.
    Using the web service wizard I was able to generate wsdl file , deployment descriptors etc.
    The problem I was facing was form this stage when I am trying to deploy it on to a standalone oc4j server it is not able generate the WebServices.war file and hence is not deployed on to the server.
    With the same code written in Jdeveloper everything is working fine.
    My doubts are
    1)     why is it not able to generate WebService.war file?
    2)     It is giving some ClassNotFound exception during the deployment. But when compiled and run its giving the correct output.
    3)     Even when everything was written from within the Jdevelper it did not include Sum.calss and Sub.class in WebSevice.war. Is there any way we could mention during its (WebService.war) generation , the class files to be Included.
    The other issue is how to add an existing source code to already existing project. In my case Once I have imported package3 I also want to import package2 and package1 in different steps.
    I thank in advance for helping me.
    Raja Vamshi k Gopu

    Can you tell us what you mean by correct type of project?
    You can start with an empty project. Then, you have to create an "EAR file" deployment profile (New Gallery / General / Deployment Profiles).
    So when I deploy a J2SE module onto oc4j server should I specify the class path? If so where ? How can I solve this problem?
    Once you deploy your code into oc4j, it becomes a J2EE application. You don't need to deal with the classpath - just make sure that all the required code is included in your .war file. To do so, check the list of classes packaged under the deployement properties dialog.
    Can you send me the links of few articles where I can learn more about these kind of stuff?
    If you want to assemble applications without to use JDeveloper wizard, you have another option: using the WebServiceAssembler tool that is par of the oc4j bits will help you to do this from a command line promt, and will handle the J2EE packaging aspect for you.
    See online documentation (10.1.2): http://download-west.oracle.com/docs/cd/B14099_04/web.htm
    In the "Developer's Guide", chapter 9 is about "Web Services Tools"
    For JDeveloper J2EE samples, you can start by looking at the OBE: http://www.oracle.com/technology/obe/obe_as_1012/j2ee/index.html
    Hope this helps,
    Eric

  • Running JDeveloper 11122 for the 1st time error

    Hello there,
    I just install JDeveloper 1.1.1.2.2 I also did create just an fusion web application to see how is going to run. When I run the application, Windows messages popup to request to keep blocking the java application or unblock the application so I click unblock. Below is the messages I got and every time I run the application I am getting the same messages.
    Can someone help me with this error? How can I fix this problem?
    ** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    C:\Users\Ghislain\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    \Java\jre6\lib\ext\QTJava.zip was unexpected at this time.
    Process exited.

    user13300876 wrote:
    Hello there,
    I just install JDeveloper 1.1.1.2.2 I also did create just an fusion web application to see how is going to run. When I run the application, Windows messages popup to request to keep blocking the java application or unblock the application so I click unblock. Below is the messages I got and every time I run the application I am getting the same messages.
    Can someone help me with this error? How can I fix this problem?
    ** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    C:\Users\Ghislain\AppData\Roaming\JDeveloper\system11.1.2.2.39.61.83.1\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    \Java\jre6\lib\ext\QTJava.zip was unexpected at this time.
    Process exited.This is an issue with a system class path entry after installing Apple's QuickTime. The release notes for 11.1.2.1 include a workaround - see if this works for you:
    http://www.oracle.com/technetwork/developer-tools/jdev/5rn-shermanu1-496572.html

  • Running 2 apps at the same time

    My wife has an ipad2 that she loves, but she just updated the  ios to 6.1.3 from 6.0, thanks to me, and now she is really upset.  She "use" to be able to listen to audio from Youtube on Safari, bad youtube apps, and also be able to play games at the same time. Now with this upgrade, she can't do this, the audio just shuts off when she starts the game.  She aleady knows the process of starting the youtube video then doubl clicking the home button to bring up th menu at the bottom of the page and then starting her game, but the new iOS just shuts off what she was listening to.  Is there a fix for this or an easy work around??  We don't want to jailbreak either, because we shouldn't have to.
    do the newer ipads handle multiple apps running at the same time better with the faster chips??

    Hi Tim,
    I'm a little confused by this, if you listen to music from the Music app on the iPad this should still keep playing when doing other stuff but anything playing in Safari that I've had playing has always turned off when switching between apps.
    Regards,
    Steve

  • "Newbie" Unable to run two actions at the same time please help

    Hello
    I'm a newbie (2 weeks) on Labview, so I hope my problem will sound easy for some of you.
    I want to read a file and at the same time get the reading from my sensors (4 sensors).
    My program is working when I do each thing in a different program but when I add them the program only read the text file and stop reading the sensor signals...I attach the program file.
    The goal is with the text file to add an exact time for each sensor signal I record.
    Is there any other possibilities to include a time with the sensors signals recorded ? I need to do this to synchronize the sensors values with CAM program.
    Thanks
    /Xavier
    Ps I used a scan rate of 12000/s but I try 1000/s
    and the sensor acquisition is still not working
    Attachments:
    test3Rdif2802.vi ‏493 KB
    readfile.txt ‏195 KB
    sensoracquisition30s.txt ‏210 KB

    from a glance at your code, it appears that you have nested a loop to read your file, inside a loop to read your sensors. this means the nested loop to read your file must finish before the outside loop to read your sensors can run through another iteration. what you want to do is separate the two loops to run independently of each other (in parallel). use a global variable to know when to stop the loop (if they need to stop at the same time) and if you need to pass data between the loops use a queue (easiest) or you can also use globals with semaphores.

  • Help: I want to auto schedule a load using file watcher but it runs only once for the first time and after that it is not running at all

    Hi All,
    I am trying  to execute the below code as provided from one of the blogs. i am able to run the job only once based on a file watcher object(i.e. for very first time) and after that the job is not running at all and if  i schedule the job to run automatically based on interval of 10 or more minutes it is executing properly). Please let me know or guide me if i have missed any step or configuration.that is needed.
    Version of Oracle 11.2.0.1.0
    OS : Windows 7 Prof
    Given all the necessary privileges
    BEGIN
      DBMS_SCHEDULER.CREATE_CREDENTIAL(
         credential_name => 'cred',
         username        => 'XXXX',
         password        => 'XXXX');
    END;
    CREATE TABLE ZZZZ (WHEN timestamp, file_name varchar2(100),
       file_size number, processed char(1));
    CREATE OR REPLACE PROCEDURE YYYY
      (payload IN sys.scheduler_filewatcher_result) AS
    BEGIN
      INSERT INTO ZZZZ VALUES
         (payload.file_timestamp,
          payload.directory_path || '/' || payload.actual_file_name,
          payload.file_size,
          'N');
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_PROGRAM(
        program_name        => 'prog1',
        program_type        => 'stored_procedure',
        program_action      => 'YYYY',
        number_of_arguments => 1,
        enabled             => FALSE);
      DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
        program_name        => 'prog1',
        metadata_attribute  => 'event_message',
        argument_position   => 1);
      DBMS_SCHEDULER.ENABLE('prog1');
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_FILE_WATCHER(
        file_watcher_name => 'file_watcher1',
        directory_path    => 'D:\AAAA',
        file_name         => '*.txt',
        credential_name   => 'cred',
        destination       => NULL,
        enabled           => FALSE);
    END;
    BEGIN
      DBMS_SCHEDULER.CREATE_JOB(
        job_name        => 'job1',
        program_name    => 'prog1',
        queue_spec      => 'file_watcher1',
        auto_drop       => FALSE,
        enabled         => FALSE);
      DBMS_SCHEDULER.SET_ATTRIBUTE('job1','PARALLEL_INSTANCES',TRUE);
    END;
    EXEC DBMS_SCHEDULER.ENABLE('file_watcher1,job1');
    Regards,
    kumar.

    Please post a copy and paste of a complete run of a test case, similar to what I have shown below.
    SCOTT@orcl12c> SELECT banner FROM v$version
      2  /
    BANNER
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    PL/SQL Release 12.1.0.1.0 - Production
    CORE    12.1.0.1.0    Production
    TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
    NLSRTL Version 12.1.0.1.0 - Production
    5 rows selected.
    SCOTT@orcl12c> CONN / AS SYSDBA
    Connected.
    SYS@orcl12c> -- set file watcher interval to one minute:
    SYS@orcl12c> BEGIN
      2    DBMS_SCHEDULER.SET_ATTRIBUTE
      3       ('file_watcher_schedule',
      4        'repeat_interval',
      5        'freq=minutely; interval=1');
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SYS@orcl12c> CONNECT scott/tiger
    Connected.
    SCOTT@orcl12c> BEGIN
      2    -- create credential using operating system user and password (fill in your own):
      3    DBMS_SCHEDULER.CREATE_CREDENTIAL
      4       (credential_name     => 'cred',
      5        username          => '...',
      6        password          => '...');
      7  END;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- create table to insert results into:
    SCOTT@orcl12c> CREATE TABLE ZZZZ
      2    (WHEN      timestamp,
      3      file_name varchar2(100),
      4      file_size number,
      5      processed char(1))
      6  /
    Table created.
    SCOTT@orcl12c> -- create procedure to insert results:
    SCOTT@orcl12c> CREATE OR REPLACE PROCEDURE YYYY
      2    (payload IN sys.scheduler_filewatcher_result)
      3  AS
      4  BEGIN
      5    INSERT INTO ZZZZ VALUES
      6        (payload.file_timestamp,
      7         payload.directory_path || '/' || payload.actual_file_name,
      8         payload.file_size,
      9         'N');
    10  END;
    11  /
    Procedure created.
    SCOTT@orcl12c> -- create program, define metadata, and enable:
    SCOTT@orcl12c> BEGIN
      2    DBMS_SCHEDULER.CREATE_PROGRAM
      3       (program_name          => 'prog1',
      4        program_type          => 'stored_procedure',
      5        program_action      => 'YYYY',
      6        number_of_arguments => 1,
      7        enabled          => FALSE);
      8    DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT(
      9       program_name         => 'prog1',
    10       metadata_attribute  => 'event_message',
    11       argument_position   => 1);
    12    DBMS_SCHEDULER.ENABLE ('prog1');
    13  END;
    14  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> BEGIN
      2    -- create file watcher:
      3    DBMS_SCHEDULER.CREATE_FILE_WATCHER
      4       (file_watcher_name   => 'file_watcher1',
      5        directory_path      => 'c:\my_oracle_files',
      6        file_name          => 'f*.txt',
      7        credential_name     => 'cred',
      8        destination          => NULL,
      9        enabled          => FALSE);
    10  END;
    11  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> BEGIN
      2    -- create job:
      3    DBMS_SCHEDULER.CREATE_JOB
      4       (job_name          => 'job1',
      5        program_name          => 'prog1',
      6        queue_spec          => 'file_watcher1',
      7        auto_drop          => FALSE,
      8        enabled          => FALSE);
      9    -- set attributes:
    10    DBMS_SCHEDULER.SET_ATTRIBUTE ('job1', 'PARALLEL_INSTANCES', TRUE);
    11  END;
    12  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- enable:
    SCOTT@orcl12c> EXEC DBMS_SCHEDULER.enable ('file_watcher1, job1');
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- write file (file must not exist previously):
    SCOTT@orcl12c> CREATE OR REPLACE DIRECTORY upncommon_dir AS 'c:\my_oracle_files'
      2  /
    Directory created.
    SCOTT@orcl12c> declare
      2    filtyp utl_file.file_type;
      3  begin
      4    filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file1.txt', 'W', NULL);
      5    utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
      6    utl_file.fclose (filtyp);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
    SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- check for results:
    SCOTT@orcl12c> SELECT * FROM zzzz
      2  /
    WHEN
    FILE_NAME
    FILE_SIZE P
    22-OCT-13 10.12.28.309000 PM
    c:\my_oracle_files/file1.txt
            57 N
    1 row selected.
    SCOTT@orcl12c> declare
      2    filtyp utl_file.file_type;
      3  begin
      4    filtyp := utl_file.fopen ('UPNCOMMON_DIR', 'file2.txt', 'W', NULL);
      5    utl_file.put_line (filtyp, 'File has arrived ' || SYSTIMESTAMP, TRUE);
      6    utl_file.fclose (filtyp);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- wait long enough (may take more than one minute) for job to run:
    SCOTT@orcl12c> EXEC DBMS_LOCK.SLEEP (100)
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> -- check for results:
    SCOTT@orcl12c> SELECT * FROM zzzz
      2  /
    WHEN
    FILE_NAME
    FILE_SIZE P
    22-OCT-13 10.12.28.309000 PM
    c:\my_oracle_files/file1.txt
            57 N
    22-OCT-13 10.14.08.580000 PM
    c:\my_oracle_files/file2.txt
            57 N
    2 rows selected.

  • Folder content disappears for the 2nd time

    Two weeks ago I noticed that some of my folders in Documents are empty. I thought it might be a problem that refers to the last backup, so I was replaced that empty folders with those from backup disk. But today I have the same problem, this time one folder is empty. Does anybody know what's happen to my mbp?
    thanks
    //b

    I've got a list of things to look at and tryout to see if we can narrow down what's happening. Try any one in any particular order see if the problem keeps happening.
    1. What format are the original photos in?
    If they are in Jpeg and it's failed each time, are they coming out of iPhoto, Photoshop?
    File size may also be a problem if they are very large files.
    2. In iMovie, Duplicate the project in the Project Library
    Try dragging a photo into that copy of the project
    Any differences? If you can import photos into the Duplicate, try copying then pasting into the original and see if the image shows up.
    3. In iPhoto Duplicate a picture in the iPhoto Library
    If you want to have a particular picture and can find it within iPhoto try making a duplicate.
    Does it show up in the Photo browser? And can you drag that duplicated picture into the project? What do you see, what result do you get?
    4. Clean the iMovie cache
    Quit out of iMovie. Then go to your Movies Folder > iMovie Events >  Project folder name
    Drag the folder "iMovie Thumbnails" to your trash. Then open the folder "iMovie Cache" and drag the file "Cache.plist" to the trash.
    This should regenerate any cached thumbnails for the project, may be helpful.
    5. Try tossing out the iMovie preferences
    Quit iMovie.
    Open a Finder window to your user's Home folder>Library >Preferences folder. Find the file named "com.apple.iMovie.plist" or "com.apple.iMovieAppl.plist" and move it to the trash.
    Try opening iMovie again, then opening the project and dragging a photo from the Photo Browser into the Project timeline.

  • Blackberry 8330 keyboard doesn't work for the 2nd time

    Hi, this is the second time that this has happened to me. The first time, I had finished a text message, and left it on my bed, only to come back an hour later, and the entire keyboard didn't work. The only thing that worked was the trackball, but it could only move around; I wasn't able to click it or anything. After many battery pulls, I looked online, and saw that I could try to reload the OS using application loader. I did that, but I was left with the same error. I eventually ended up having to go to the store, and as I was still under warranty, got them to replace it for me. All in all, a huge hassle. Lo and behold, two months later, the same issue is back. I've tried the battery pulls, and reloading the OS, but nothing seems to work! Any ideas? I don't want to have to keep going back to the store to replace it. 

    I have the same problem on My Blackberry 8310 Curve..

Maybe you are looking for

  • Phone switches to husbands apple id when I go to update apps.

    My phone says I have updates, but when I go to update them it has switched to my husband's apple id and wants his pw. We share a comp but have different user accounts to keep our itunes seperate. Everything else is signed in under my apple id. HELP P

  • Table Name for System Messages

    Dear all, i want to know the Table name for system messages Reg Kris

  • How to style dynamically loading text?

    Hi, I am dynamically loading a .txt file into CS3 using ActionScript 3.0. I want to style the text using CSS/HTML. The only thing I can get to function using CSS/HTML is the "a tag", I can't seem to get bold, colour, font, etc working. Should i be us

  • How to get Application Component in RSA1

    Hi Experts, I am not find any Application Components (RSA1) all my Data Sources are under the tree of Unsigned Nodes. How to get Application Component for my application, I am developing HCM application under that E-Recruiting. Can anyone help me reg

  • Route determination in PO

    Hi Gurus, Is there a difference in setting up of Route determination for STO (Stock transport Order) as I am getting route determined in my SO (Sales order) and not in when I create STO with same values like Shipping point, Transport Group, Departure