**Urgent help on MDS for FileRepositary

Hi,
I got the problem with FileRepositary while creating MDS. i did the same configuration in my local system it's working fine and i tried to deploy the application into server i am getting following error
[12:58:32 PM] Target platform is (Weblogic 10.3).
[12:58:33 PM] Retrieving existing application information
[12:58:33 PM] Running dependency analysis...
[12:58:33 PM] Building...
[12:58:44 PM] Deploying 3 profiles...
[12:58:49 PM] Wrote Web Application Module to C:\mywork\ESPSVarunCode\ESPSApp\ViewController\deploy\ESPSAppv.war
[12:58:50 PM] Info: Namespace '/apps' is mapped to deploy-target metadata-store-usage 'MAR_TargetRepos' in adf-config.xml but no metadata from the namespace is included in the MAR.
[12:58:50 PM] Warning: MAR archive 'metadata1.mar' did not have any metadata content, not added to EAR.
[12:58:50 PM] Wrote Enterprise Application Module to C:\mywork\ESPSVarunCode\ESPSApp\deploy\ESPSAppv.ear
[12:58:50 PM] No metadata repositories found on target server. Using values found in adf-config.xml.
[12:58:50 PM] Entering Oracle Deployment Plan Editor
[12:59:03 PM] #### Deployment incomplete. ####
[12:59:03 PM] Deployment Cancelled
My Config file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<adf-config xmlns="_http://xmlns.oracle.com/adf/config"
xmlns:adf="_http://xmlns.oracle.com/adf/config/properties"
xmlns ec="_http://xmlns.oracle.com/adf/security/config">
<adf:adf-properties-child xmlns="_http://xmlns.oracle.com/adf/config/properties">
<adf-property name="adfAppUID"
value="ESPSQuery"/>
</adf:adf-properties-child>
<sec:adf-security-child xmlns="_http://xmlns.oracle.com/adf/security/config">
<CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
<sec:JaasSecurityContext initialContextFactoryClass="oracle.adf.share.security.JAASInitialContextFactory"
jaasProviderClass="oracle.adf.share.security.providers.jps.JpsSecurityContext"
authenticationRequire="true"/>
</sec:adf-security-child>
<adf-faces-config xmlns="_http://xmlns.oracle.com/adf/faces/config">
<persistent-change-manager>
<persistent-change-manager-class>oracle.adf.view.rich.change.MDSDocumentChangeManager</persistent-change-manager-class>
</persistent-change-manager>
<taglib-config>
<taglib uri="_http://xmlns.oracle.com/adf/faces/rich"/>
</taglib-config>
</adf-faces-config>
<adf-mds-config xmlns="_http://xmlns.oracle.com/adf/mds/config">
<mds-config xmlns="_http://xmlns.oracle.com/mds/config" version="11.1.1.000">
<cust-config>
<match path="/">
<customization-class name="oracle.adf.share.config.UserCC"/>
</match>
</cust-config>
<persistence-config>
<metadata-namespaces>
<namespace path="/persdef" metadata-store-usage="MAR_TargetRepos"/>
</metadata-namespaces>
<metadata-store-usages>
<metadata-store-usage id="MAR_TargetRepos" deploy-target="true"
default-cust-store="true">
<metadata-store
class-name="oracle.mds.persistence.stores.file.FileMetadataStore">
<property value="$ORACLE_HOME/jdeveloper/integration"
name="metadata-path"/>
<property value="seed" name="partition-name"/>
</metadata-store>
</metadata-store-usage>
</metadata-store-usages>
</persistence-config>
</mds-config>
</adf-mds-config>
</adf-config>
Can any one help me .

It seems you might be missing a proper MAR profile added in your EAR.
Just check the dev guide for MAR / MDS archive etc.
http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDGGACB

Similar Messages

  • Urgent help in needed for StorProc

    Hi All,
    How are you today?
    We have a package in which we have a SP called SERVICE_TO_PRNTMNGR.
    Database Version 11.2.0.2
    The issue now is-
    The store procedure checks if all print jobs which have the same Fulfillment id (which is kept in PrintJobQueueDI.sessionID) have finished or not;
    If not, it will throw exception. The error code is 20004.
    What we want as a fix is-
    The store procedure should check if all print jobs which have the same Fulfillment id (which is kept in PrintJobQueueDI.sessionID)
    and Service Request ID (it is ketp in PrintJobDataDI.docId) have finished or not;
    If not, it will throw exception. The error code is 20004.
    Here is the package which has sp(SERVICE_TO_PRNTMNGR):
    Create or Replace PACKAGE XSP_POPULATE_PRNTMNGR
    IS
      FUNCTION FULFILLMENT_TO_PRNTMNGR
                (P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2)
                RETURN SYS_REFCURSOR;
      FUNCTION SERVICE_TO_PRNTMNGR
                (P_SERVICE_ID     IN SERVICE_REQUEST.SERVICE_ID%TYPE)
                RETURN SYS_REFCURSOR;
    END;
    Create or Replace PACKAGE BODY XSP_POPULATE_PRNTMNGR
    IS
       l_package_name                       VARCHAR2(50) := 'XSP_POPULATE_PRNTMNGR';
       l_PrintJobQueueDI_REC            PrintJobQueueDI%ROWTYPE;
       l_PrintJobDataDI_REC             PrintJobDataDI%ROWTYPE;
       e_NOT_S_F_STATUS_IND_REQ         EXCEPTION;
       e_NO_SERVICES_FOR_THE_PRINTMGR   EXCEPTION;
       e_NOT_ALL_PREV_REQ_COMPLETED     EXCEPTION;
       e_ALREADY_INITIALLY_PRINTED      EXCEPTION;
       e_NOT_PRINTED_INITIALLY          EXCEPTION;
       l_NUM_REC_CREATED                NUMBER :=0;
       PROCEDURE *SERVICE_TO_PRNTMNGR*
                (P_SERVICE_ID     IN SERVICE_REQUEST.SERVICE_ID%TYPE,
                 P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2);
       PROCEDURE INSERT_PrintJobQueueDI
                (P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2);
           FUNCTION FULFILLMENT_TO_PRNTMNGR
           FUNCTION FULFILLMENT_TO_PRNTMNGR
                    (P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                     P_MODE           IN VARCHAR2)
                    RETURN SYS_REFCURSOR
              Name:  FULFILLMENT_TO_PRNTMNGR
            Params: P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                    P_MODE        IN  VARCHAR2
              Desc: The procedure loops through FULFILLMENT_SERVICE table
                    and calls xsp_service_to_printmanager for each serviceId.
            MGS -  legal aid  liens not printing or e-mail Do not insert RECEIPT
                   record into PrintJobDataDI if the RECEIPT is NULL
         IS
         l_errmsg                      VARCHAR2(1000):= '';
         l_module_name                 VARCHAR2(200) := l_package_name || '.' || 'FULFILLMENT_TO_PRNTMNGR';
         l_selcnt                      INTEGER;
         l_error                      INTEGER;
         l_rowcnt            INTEGER;
         l_sqlstatus                       INTEGER;
         l_wrong_parameter              VARCHAR2(50);
         l_TABLE_NAME                   VARCHAR2(30);
         l_EXISTS                       NUMBER(1);
         l_FULFILLMENT_ID               FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE;
         l_PrintJobQueueDI_populated    BOOLEAN:=FALSE;
         CURSOR_out                     SYS_REFCURSOR;
        BEGIN
          IF  P_FULFILLMENT_ID IS NULL OR
              P_MODE IS NULL
          THEN
              RAISE appl_error.e_missing_parameter;
          END IF;
          IF P_MODE NOT IN ('I','R')
          THEN
            l_wrong_parameter := 'P_MODE' || '=' || P_MODE;
            RAISE appl_error.e_wrong_parameter;
          END IF;
          -- Check if the Fulfillment Request
          -- completed successfully or failed
          l_NUM_REC_CREATED :=0;
          BEGIN
            SELECT 1 INTO l_EXISTS
             FROM FULFILLMENT_REQUEST
              WHERE FULFILLMENT_ID = P_FULFILLMENT_ID
               AND STATUS_IND IN ('S', 'F'); -- Successfull
          EXCEPTION
          WHEN NO_DATA_FOUND THEN
           RAISE e_NOT_S_F_STATUS_IND_REQ;
          END;
          IF P_MODE = 'I'
          THEN
              FOR l_SERVICE_REQ IN (SELECT sr.SERVICE_ID
                                      FROM FULFILLMENT_SERVICE fs,
                                           SERVICE_REQUEST sr,
                                           REQUEST_DESTINATION rd
                                      WHERE rd.SERVICE_ID = fs.SERVICE_ID
                                       AND sr.SERVICE_ID = fs.SERVICE_ID
                                        AND fs.FULFILLMENT_ID = P_FULFILLMENT_ID
                                         AND DELIVERY_METHOD_ID = 'P' -- Print
                                       AND sr.STATUS_IND = 'S')
              LOOP
                IF NOT l_PrintJobQueueDI_populated
                THEN
                    INSERT_PrintJobQueueDI (P_FULFILLMENT_ID,P_MODE);
                   l_PrintJobQueueDI_populated := TRUE;
                    -- The data in the l_PrintJobDataDI_REC is populated by INSERT_PrintJobQueueDI
                    IF l_PrintJobDataDI_REC.CONTENT IS NOT NULL THEN -- The Condition added on 01-APR-2011
                        INSERT INTO PrintJobDataDI VALUES l_PrintJobDataDI_REC; -- Receipt
                    END IF;
                    l_NUM_REC_CREATED := l_NUM_REC_CREATED + SQL%ROWCOUNT;
                END IF;
                *SERVICE_TO_PRNTMNGR*(l_SERVICE_REQ.SERVICE_ID,P_FULFILLMENT_ID,P_MODE);
              END LOOP;
              IF NOT l_PrintJobQueueDI_populated
              THEN
                RAISE e_NO_SERVICES_FOR_THE_PRINTMGR;
              END IF;
          ELSE -- P_MODE = 'R'
            INSERT_PrintJobQueueDI (P_FULFILLMENT_ID,'RF');
            l_PrintJobQueueDI_populated := TRUE;
          END IF;
          OPEN CURSOR_out FOR
           select l_NUM_REC_CREATED from dual;
           RETURN CURSOR_out;
          EXCEPTION
             WHEN appl_error.e_missing_parameter THEN
                  l_error := 20001;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,null,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN appl_error.e_wrong_parameter THEN
                  l_error := 20003;
                  l_errmsg:= appl_error.get_error_message(l_error,l_wrong_parameter,l_module_name,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN appl_error.e_no_records_retrieved THEN
                  l_error := 20122;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,l_TABLE_NAME,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN e_NOT_S_F_STATUS_IND_REQ THEN
                  l_error := 20004;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                    'The Status_Ind of the Fulfillment_Id=' || P_FULFILLMENT_ID ||
                    ' is not S or F',null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN e_NO_SERVICES_FOR_THE_PRINTMGR THEN
                  l_error := 20004;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                    'No Successfully completed services w/Delivery Method=P for the Fulfillment_Id=' ||
                    P_FULFILLMENT_ID,null);
                  raise_application_error(l_error*(-1), l_errmsg);
           END FULFILLMENT_TO_PRNTMNGR;
           FUNCTION SERVICE_TO_PRNTMNGR
           FUNCTION SERVICE_TO_PRNTMNGR
                (P_SERVICE_ID     IN SERVICE_REQUEST.SERVICE_ID%TYPE)
                RETURN SYS_REFCURSOR
              Name:  SERVICE_TO_PRNTMNGR
            Params: P_SERVICE_ID  IN  SERVICE_REQUEST.SERVICE_ID%TYPE
              Desc: To be called from Application for the single Service_Id reprint.
        IS
           CURSOR_out                       SYS_REFCURSOR;
        BEGIN
           SERVICE_TO_PRNTMNGR(P_SERVICE_ID,NULL,'R');
           OPEN CURSOR_out FOR
           select l_NUM_REC_CREATED from dual;
           RETURN CURSOR_out;
        END SERVICE_TO_PRNTMNGR;
           *PROCEDURE SERVICE_TO_PRNTMNGR*
           PROCEDURE *SERVICE_TO_PRNTMNGR*           
                (P_SERVICE_ID     IN SERVICE_REQUEST.SERVICE_ID%TYPE,
                 P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2)
              Name:  SERVICE_TO_PRNTMNGR
              Params: P_SERVICE_ID  IN  SERVICE_REQUEST.SERVICE_ID%TYPE,
                      P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                      P_MODE        IN  VARCHAR2
              Desc: The procedure populates the PrintJobQueueDI and PrintJobDataDI
                    PrintManager tables.
                    It works in two modes (P_MODE parameter)
                    -I - Inital print request
                    -R - reprint
                    For the initial print request the P_FULFILLMENT_ID parameter
                    will be passed in.
                    For the Reprint mode the P_FULFILLMENT_ID will be NULL.
        IS
         l_errmsg                   VARCHAR2(1000):= '';
         l_module_name              VARCHAR2(200) := l_package_name || '.' || 'SERVICE_TO_PRNTMNGR';
         l_selcnt                   INTEGER;
         l_error                   INTEGER;
         l_rowcnt                   INTEGER;
         l_sqlstatus              INTEGER;
         l_wrong_parameter           VARCHAR2(50);
         l_TABLE_NAME                VARCHAR2(30);
         l_EXISTS                    NUMBER(1);
         l_FULFILLMENT_ID            FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE;
         e_NOT_PRINT_DELIVERY_METHOD EXCEPTION;
         e_NOT_SUCCESS_COMPL_SRV_REQ EXCEPTION;
        BEGIN
          IF  P_SERVICE_ID IS NULL OR
              P_MODE IS NULL OR
              (P_MODE = 'I' AND P_FULFILLMENT_ID IS NULL)
             THEN
              RAISE appl_error.e_missing_parameter;
          END IF;
          IF P_MODE NOT IN ('I','R')
          THEN
            l_wrong_parameter := 'P_MODE' || '=' || P_MODE;
            RAISE appl_error.e_wrong_parameter;
          END IF;
          -- Check if the Service Request
          -- successfully completed
          BEGIN
            SELECT 1
              INTO l_EXISTS
              FROM SERVICE_REQUEST
             WHERE SERVICE_ID = P_SERVICE_ID
               AND STATUS_IND = 'S'; -- Successfull
          EXCEPTION
          WHEN NO_DATA_FOUND THEN
            RAISE e_NOT_SUCCESS_COMPL_SRV_REQ;
          END;
          -- Check if the Service Request of the
          -- REQUEST_DESTINATION.DELIVERY_METHOD_ID=P
          BEGIN
            SELECT 1
              INTO l_EXISTS
              FROM REQUEST_DESTINATION
             WHERE SERVICE_ID = P_SERVICE_ID
               AND DELIVERY_METHOD_ID = 'P'; -- Print
          EXCEPTION
          WHEN NO_DATA_FOUND THEN
            RAISE e_NOT_PRINT_DELIVERY_METHOD;
          END;
          IF P_FULFILLMENT_ID IS NULL
          THEN
              SELECT FULFILLMENT_ID
                INTO l_FULFILLMENT_ID
                FROM FULFILLMENT_SERVICE
               WHERE SERVICE_ID = P_SERVICE_ID;
          ELSE
            l_FULFILLMENT_ID := P_FULFILLMENT_ID;
          END IF;
          IF P_MODE = 'R' -- Request to Repring single service
          THEN
            INSERT_PrintJobQueueDI (l_FULFILLMENT_ID,P_MODE);
          END IF;
          --dbms_output.put_line(P_FULFILLMENT_ID);
          FOR l_PrintJobDataDI_REC1 IN (SELECT l_PrintJobQueueDI_REC.PRINTJOBDIID PRINTJOBDIID,
                                              ri.SERVICE_ID DOCID,
                                              rownum+1 DOCORDER,
                                              l_PrintJobQueueDI_REC.QUEUEDIID,
                                              3,
                                              ri.NAME,
                                              1,
                                              ri.NUMBER_OF_PAGES,
                                              ri.RESPONSE_BLOB
                                         FROM RESPONSE_IMAGE ri
                                        WHERE ri.SERVICE_ID=P_SERVICE_ID)
          LOOP
            --dbms_output.put_line(l_PrintJobDataDI_REC1.PRINTJOBDIID);
            --dbms_output.put_line(l_PrintJobDataDI_REC1.DOCID);
            --dbms_output.put_line(l_PrintJobDataDI_REC1.DOCORDER);
            INSERT INTO PrintJobDataDI VALUES l_PrintJobDataDI_REC1;
            l_NUM_REC_CREATED := l_NUM_REC_CREATED + SQL%ROWCOUNT;
          END LOOP;
          EXCEPTION
             WHEN appl_error.e_missing_parameter THEN
                  l_error := 20001;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,null,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN appl_error.e_wrong_parameter THEN
                  l_error := 20003;
                  l_errmsg:= appl_error.get_error_message(l_error,l_wrong_parameter,l_module_name,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN appl_error.e_no_records_retrieved THEN
                  l_error := 20122;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,l_TABLE_NAME,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN e_NOT_PRINT_DELIVERY_METHOD THEN
                  l_error := 20004;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                    'The Delivery Method for the Service_Id=' || P_SERVICE_ID ||
                    ' is not PRINT',null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN e_NOT_SUCCESS_COMPL_SRV_REQ THEN
                  l_error := 20004;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                    'The Status_Ind of the Service_Id=' || P_SERVICE_ID ||
                    ' is not S',null);
                  raise_application_error(l_error*(-1), l_errmsg);
        END SERVICE_TO_PRNTMNGR;
       PROCEDURE INSERT_PrintJobQueueDI
       PROCEDURE INSERT_PrintJobQueueDI
                (P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2)
        It works in two modes (P_MODE parameter)
                -I  - Inital print request
                -R  - reprint single SERVICE REQUEST
                -RF - reprint entire fulfillment
        IS
         l_errmsg                   VARCHAR2(1000):= '';
         l_module_name              VARCHAR2(200) := l_package_name || '.' || 'INSERT_PrintJobQueueDI';
         l_selcnt                   INTEGER;
         l_error                   INTEGER;
         l_rowcnt                   INTEGER;
         l_sqlstatus              INTEGER;
         l_wrong_parameter           VARCHAR2(50);
         l_TABLE_NAME                VARCHAR2(100);
         l_EXISTS                    NUMBER(1);
        BEGIN
          IF  P_FULFILLMENT_ID IS NULL OR
              P_MODE IS NULL
             THEN
              RAISE appl_error.e_missing_parameter;
          END IF;
          IF P_MODE NOT IN ('I','R','RF')
          THEN
            l_wrong_parameter := 'P_MODE' || '=' || P_MODE;
            RAISE appl_error.e_wrong_parameter;
          END IF;
          -- For reprint request confirm that
          -- all previouse print requests
          -- completed successfully.
          IF P_MODE IN ('R','RF')
          THEN
            SELECT count(*)
              INTO l_EXISTS
              FROM PrintJobQueueDI
             WHERE SESSIONID = P_FULFILLMENT_ID
               AND PRINTTYPE = 'REGULAR';
            IF l_EXISTS = 0
            THEN
              RAISE e_NOT_PRINTED_INITIALLY;
            END IF;
            SELECT count(*)
              INTO l_EXISTS
              FROM PrintJobQueueDI
             WHERE SESSIONID = P_FULFILLMENT_ID
               AND STATUS != 'STATUS_COMPLETED';
            IF l_EXISTS > 0
            THEN
              RAISE e_NOT_ALL_PREV_REQ_COMPLETED;
            END IF;
          ELSIF P_MODE = 'I'
          THEN
            SELECT count(*)
              INTO l_EXISTS
              FROM PrintJobQueueDI
             WHERE SESSIONID = P_FULFILLMENT_ID;
            IF l_EXISTS > 0
            THEN
              RAISE e_ALREADY_INITIALLY_PRINTED;
            END IF;
          END IF;
          IF P_MODE IN ('I','R')
          THEN
              l_TABLE_NAME := 'FULFILLMENT_REQUEST and more';
              SELECT SEQ_PrintJobQueueDI.NEXTVAL,
                     SEQ_PrintJobDIID.NEXTVAL,
                     us.KIOSK_ID,p.PRINTER_NAME,
                     fr.FULFILLMENT_ID,SYSDATE,
                     TO_DATE('1900/01/01','YYYY/MM/DD'),
                     DECODE(P_MODE,'I','REGULAR','REPRINT'),
                     'STATUS_SPOOLED',
                     DECODE(P_MODE,'I','ALL','COVER_AND_SEARCH'),
                     NULL,
                     -- Only for the initial printing
                     -- for the PrintJobDataDI for the Receipt
                     fr.FULFILLMENT_ID,
                     1,3,'RECEIPT',0,0,
                     fr.RECEIPT_BLOB
                INTO l_PrintJobQueueDI_REC.QUEUEDIID,
                     l_PrintJobQueueDI_REC.PRINTJOBDIID,
                     l_PrintJobQueueDI_REC.KIOSKID,
                     l_PrintJobQueueDI_REC.PRINTERNAME,
                     l_PrintJobQueueDI_REC.SESSIONID,
                     l_PrintJobQueueDI_REC.SPOOLTIME,
                     l_PrintJobQueueDI_REC.PRINTTIME,
                     l_PrintJobQueueDI_REC.PRINTTYPE,
                     l_PrintJobQueueDI_REC.STATUS,
                     l_PrintJobQueueDI_REC.PRINTOPTION,
                     l_PrintJobQueueDI_REC.PROCESSSTATEID,
                     l_PrintJobDataDI_REC.DOCID,
                     l_PrintJobDataDI_REC.DOCORDER,
                     l_PrintJobDataDI_REC.DOCTYPEID,
                     l_PrintJobDataDI_REC.DOCNAME,
                     l_PrintJobDataDI_REC.STARTPAGE,
                     l_PrintJobDataDI_REC.ENDPAGE,
                     l_PrintJobDataDI_REC.CONTENT
                FROM LRO_PRINTER p,
                     KIOSK k,
                     USER_SESSION us,
                     BUSINESS_AUDIT ba,
                     FULFILLMENT_REQUEST fr
               WHERE p.PRINTER_ID = k.PRINTER_ID
                 AND p.LRO_ID = k.LRO_ID
                 AND k.KIOSK_ID = us.KIOSK_ID
                 AND us.USER_SESSION_ID = ba.USER_SESSION_ID
                 --AND ba.BUSINESS_AUDIT_ID = fr.BUSINESS_AUDIT_ID
                 AND ba.BUSINESS_AUDIT_ID = (select min(BUSINESS_AUDIT_ID)
                                               from fulfillment_service fs,service_request sr
                                              where fs.FULFILLMENT_ID = fr.FULFILLMENT_ID
                                                and sr.SERVICE_ID = fs.SERVICE_ID)
                 AND fr.FULFILLMENT_ID = P_FULFILLMENT_ID;
          ELSE -- 'RF'
              l_TABLE_NAME := 'PrintJobQueueDI, KIOSK, LRO_PRINTER';
              SELECT SEQ_PrintJobQueueDI.NEXTVAL,
                     q.printJobDIID,
                     q.KIOSKID,
                     p.PRINTER_NAME,
                     q.SESSIONID,
                     SYSDATE,
                     TO_DATE('1900/01/01','YYYY/MM/DD'),
                     'REPRINT',
                     'STATUS_SPOOLED',
                     'ALL',
                     NULL
                INTO l_PrintJobQueueDI_REC.QUEUEDIID,
                     l_PrintJobQueueDI_REC.PRINTJOBDIID,
                     l_PrintJobQueueDI_REC.KIOSKID,
                     l_PrintJobQueueDI_REC.PRINTERNAME,
                     l_PrintJobQueueDI_REC.SESSIONID,
                     l_PrintJobQueueDI_REC.SPOOLTIME,
                     l_PrintJobQueueDI_REC.PRINTTIME,
                     l_PrintJobQueueDI_REC.PRINTTYPE,
                     l_PrintJobQueueDI_REC.STATUS,
                     l_PrintJobQueueDI_REC.PRINTOPTION,
                     l_PrintJobQueueDI_REC.PROCESSSTATEID
                FROM PrintJobQueueDI q,
                     KIOSK k,
                     LRO_PRINTER p
               WHERE q.SESSIONID = P_FULFILLMENT_ID
                 AND printType = 'REGULAR'
                 AND k.KIOSK_ID = q.KIOSKID
                 AND p.PRINTER_ID = k.PRINTER_ID
                 AND p.LRO_ID = k.LRO_ID;
          END IF;
          INSERT INTO PrintJobQueueDI VALUES l_PrintJobQueueDI_REC;
          l_NUM_REC_CREATED := l_NUM_REC_CREATED + SQL%ROWCOUNT;
          l_PrintJobDataDI_REC.PRINTJOBDIID := l_PrintJobQueueDI_REC.PRINTJOBDIID;
          l_PrintJobDataDI_REC.QUEUEDIID:= l_PrintJobQueueDI_REC.QUEUEDIID;
         EXCEPTION
         WHEN appl_error.e_missing_parameter THEN
              l_error := 20001;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,null,null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN appl_error.e_wrong_parameter THEN
              l_error := 20003;
              l_errmsg:= appl_error.get_error_message(l_error,l_wrong_parameter,l_module_name,null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN e_NOT_ALL_PREV_REQ_COMPLETED THEN
              l_error := 20004;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
              'Not all print requests for the Fulfillment_Id=' || P_FULFILLMENT_ID ||
              ' were successfully completed',null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN e_ALREADY_INITIALLY_PRINTED THEN
              l_error := 20004;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,'Initial print request for the Fulfillment_Id=' || P_FULFILLMENT_ID ||
              ' has been already created',null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN e_NOT_PRINTED_INITIALLY THEN
              l_error := 20004;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                'Can''t reprint the print request for the Fulfillment_Id=' || P_FULFILLMENT_ID ||
                ' because it was not printed intially',null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN NO_DATA_FOUND THEN
              l_error := 20122;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,l_TABLE_NAME,null);
              raise_application_error(l_error*(-1), l_errmsg);
       END INSERT_PrintJobQueueDI;
    END XSP_POPULATE_PRNTMNGR;Please help in writing this piece of code.
    Would appreciate your help...
    Edited by: BluShadow on 04-Oct-2011 15:39
    added {noformat}{noformat} tags for readability.  See {message:id=9360002} to learn to do this yourself.
    Edited by: user548261 on Oct 4, 2011 7:46 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

    rudi wrote:
    Hi sb92075,
    I'm absolutely newbie in this discussion forum, because I expected that this forum will be helpfull for all. I have found really so much perfect answers and advices.
    You have high number of posts, but I can't found any your answer for new programmers which have some issues. If you can't answer, ignore the query posted, I think that this is spamming, I have found your 10 negative posts within 5 minutes.
    I know, that all forums have rules, but review number of "posts with not correct subjects like URGENT, ASAP...." and the other, correct with absolutely same queries and requests for advise.
    Thanks for understanding
    rudisb92075's response was helpful. It was pointing out that we need to have tables and data to work with and not just a piece of unfamiliar code that we are told doesn't work in some way. Without the tables and example data and expected output we could only guess what the problem may be. The OP has also said their issue is urgent, which it isn't as I pointed out to them, but then their response to sb92065's request for tables and data was just to say that they want us to do their work for them and they'll test it. That's not only rude, but also wastes our time as we have to make a guess as to what the problem may be then wait for the OP to test it, to no doubt tell us that it still doesn't work, so we can make another guess.
    This is not the way a professional forum works. If the OP wants help with the issue they need to provide relevant information as requested. The fact they seem to keep asking questions and non of them are being marked as answered should be a good indication that they are not asking the questions correctly.
    So, before you criticize members as being unhelpful, it is perhaps better if you read what they have requested and understand what they've said.
    Therefore, we still await the OP's response providing some useful information to be able to help...

  • Urgent HELP! need for my Zen touch (20

    Right here we go. I bought my zen touch online last year from a well known supplier. Absolutly brilliant mp3 plaey and happy with the value for money i got. The player did freee alot since i got it at inappropiate times eg. When i was on holiday and had nothing to reset it with. Recently i have been experiancing alot of problems. First one is that it froze so i reseted it, all seemed well until the Welcome screen came on and stayed like that for 0 mins and then it resumed back to normal. This has since continued. 2nd problem is every time i add a song from the computer (same process that i have been using since i got it) all seems well until.... i turn the player on select any song to play and the player results in PLAYBACK ERROR. So i reset , the player then freezes for another 0 mins and then is back to normal. This also has continued. And third and finally everytime i reset now i get the message rebulding libary and it is almost done and yet low and behold freezes again for another 0mins. Also i need urgent and quick help as my warrantty runs out in days. PLEASE HELP!!!! and to add to this i have tonight installed a new firmware and still experiance same problem. And almost forgot the player freezes for 0mins after every chargeMessage Edited by ruane89 on 09-30-2005 07:8 PM

    ruane89 wrote:how long does this disk clean up tkae and what does it actually do?
    As per the FAQ post:
    How long should a Disk Cleanup take?
    It should only take a few minutes, and no longer than 30 minutes. Anything longer than this and there is a problem with the player and you need to contact Creative Support.
    If this doesn't solve it then you really just need to follow the steps in the "My Zen is not starting properly, or goes into rescue mode, what should I do?" section of the FAQ post.
    As igedit says, the player does sound faulty unfortunately, so I would contact Creative Support.

  • Urgent Help is Needed for Database Installation Problems

    How can we resolve the following database problems in Windows XP? Originally, we had Oracle 10.1.0.4.2, and we wanted to upgrade it to Oracle 10.2.0.1. We uninstalled Oracle Home ORAH1_DEV and then got the following problems while installing Oracle 10.2.0.1. How can we resolve all these errors so database configuration assistants can work successfully? Please help us with these ASAP. Thank you very much for your help and time in advance.
    -Oy
    These are the popup message we got.
    POPUP 1. This appears 3 times, then ignore
    Error in writing to file 'C:\OraHomes\ORAH1_DEV\jdk\jre\bin\awt.dll'.[C:\OraHomes\ORAH1_DEV\jdk\jre\bin\awt.dll(The process cannot access the file because it is being used by another process)]
    Click 'Help' for more information
    Click 'Retry' to try again
    Click 'Ignore' to ignore this error and go on.
    Click 'Cancel' to stop this installation
    buttons Help Retry Ignore Cancel
    POPUP 2. Error in writing to file 'C:\OraHomes\ORAH_DEV\jdk\bin\java.exe'. [C:\OraHomes\ORAH1_DEV\jdk\jre\bin\java.exe (The process cannot access the file because it is being used by another process)]
    Click 'Help' for more information
    Click 'Retry' to try again
    Click 'Ignore' to ignore this error and go on.
    Click 'Cancel' to stop this installation
    buttons Help Retry Ignore Cancel
    POPUP 3. Erro in writing to file 'C:\OraHomes\ORAH1_DEV\bin\orancrypt10.dll'. [C:\OraHomes\ORAH1_DEV\bin\orancrypt10.dll (The process cannot access the file  because it is being used by another process)]
    Click 'Help' for more information
    Click 'Retry' to try again
    Click 'Ignore' to ignore this error and go on.
    Click 'Cancel' to stop this installation
    buttons Help Retry Ignore Cancel
    POPUP 4. Error in writing to file 'C:\OraHomes\ORAH1_DEV\bin\oravsn10.dll'. [C:\OraHomes\ORAH1_DEV\bin\oravsn10.dll (The process cannot access the file because it is being used by another process)]
    Click 'Help' for more information
    Click 'Retry' to try again
    Click 'Ignore' to ignore this error and go on.
    Click 'Cancel' to stop this installation
    buttons Help Retry Ignore Cancel
    POPUP 5. Error in writing to 'c:\OraHomes\ORAH1_DEV\opmn\mesg\ensus.msb'. [C:\OraHomes\ORAH1_DEV\opmn\mesg\ensus.msb (The process cannot access the file because it is being used by another process)]
    Click 'Help' for more information
    Click 'Retry' to try again
    Click 'Ignore' to ignore this error and go on.
    Click 'Cancel' to stop this installation
    buttons Help Retry Ignore Cancel

    Grace wrote:
    Yes, I have it installed in the same Oracle Home. Is it possible to create it there? Or I must create a new Oracle Home for the new installation? Please reply as soon as possible. Thank you very much for your help.
    -OyA specific ORACLE_HOME holds the binaries for a specific version of Oracle. You don't upgrade by simply installing a newer version of Oracle into the ORACLE_HOME of an older version. If you tried to do that you have probably irreversibly corrupted the original installation.
    And there is no URGENT or ASAP here. We are all volunteers with regular jobs. If you have "urgent" support issues you need to open a Service Request with Oracle Support.

  • Urgent Help - Getting Org_id for where clause

    HI All,
    I am trying to customise "Out of office rule" - Delegate LOV sql, it works fine from responsibility e.g. iProcurment etc. but not from HomePage worklist. The problem is getting the Org_id of the user logged-in I have tried following different methods:
    From VO:
    (1) FND_GLOBAL.ORG_ID
    (2) fnd_profile.value('ORG_ID')
    From CO: by setting the where clause
    (1) oadbtransaction.getOrgId()
    (2) oapagecontext.getOrgId()
    But every time same problem some how it's not working from Application HomePage but it will work fine if user will click on any responsibility and then come back to homepage.
    Please help it's an urgent issue.
    Thanks!

    Anoop,
    That what are the options to get the Org id on the home page for the user logged-in as user can set "Out of Office Rules" with out clicking on any responsibility ...directly from the home page.
    Thanks

  • Urgent help:Ulimit setting for DSEE6.2

    Hi
    I have installed DSEE6.2 on RHEL4 which has ulimit setting of 1024.However I got the following exception:
    ERROR<12293> - Connection - conn=-1 op=-1 msgId=-1 - fd limit exceeded Too many open file descriptors - not listening on new connection
    Please advice what should be the ulimit setting?Is it mentioned in any of the dsee6.2 documentation (I could not find any).
    I am also getting the following exception:
    ERROR<8318> - Repl. Transport - conn=-1 op=-1 msgId=-1 - [S] Bind failed with response: Failed to bind to remote (900).
    Are both of the above issues due to ulimit settings only.
    I need this help urgently as we have a production release this weekend.
    Thanks
    Aarti

    Also be aware of your file-descriptor-count configuration property:
    http://docs.sun.com/app/docs/doc/820-2495/file-descriptor-count-5dsconf
    Any ulimit increases might need to be applied to this property.
    ran_aarti wrote:
    I am also getting the following exception:
    ERROR<8318> - Repl. Transport - conn=-1 op=-1 msgId=-1 - [S] Bind failed with response: Failed to bind to remote (900).
    Are both of the above issues due to ulimit settings only.Can't say for sure, but yes, there is a good chance the replication error is due to file descriptor exhaustion.

  • Urgent Help in JSP for multiple records update

    I have a Order Placement form for the dealers. Here they place their orders online and submit the form. The details they enter are stored in Orders table in a database. This order is sent for processing. This is an external operation for the users of our products.
    This table has two extra fields AccptNo and DelDate, which are filled in by the Admin of the Stores Dept of our company. The Admin then logs in and views the new orders. He sees the new orders displayed in the following format. The data shown is from the Orders table.
    He is then reqd to just fill in the Accpt No and Del Date against the requisite Order.
    Having finished filling up all the details he clicks the Submit button which updates the Orders table. i.e the existing records are updated with the accptno and del dates or rather the records are overwritten.
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    </head>
    <body>
    <p><b><font size="3" face="Arial Unicode MS" color="#FF0000">Orders - Admin
    Page.</font></b></p>
    <b><font size="2" face="Verdana" color="#0000FF">
    Following are the new pending orders.</font></b>
    <form method="POST" action="updtOrd.jsp">
    <div align="center">
    <center>
    <table border="1" cellspacing="0" width="68%" bordercolor="#000080">
    <tr>
    <td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Dealer
    Id</b></font></td>
    <td width="11%" align="center"><font size="2" face="Arial Unicode MS"><b>Product</b></font></td>
    <td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Quantity</b></font></td>
    <td width="10%" align="center"><font size="2" face="Arial Unicode MS"><b>Value</b></font></td>
    <td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Acceptance
    No.</b></font></td>
    <td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Delivery
    Date</b></font></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116033</font></td>
    <td width="11%"><font size="2" face="Verdana">ABC</font></td>
    <td width="13%"><font size="2" face="Verdana">100</font></td>
    <td width="10%"><font size="2" face="Verdana">100000</font></td>
    <td width="53%"><input type="text" name="T1" size="20"></td>
    <td width="53%"><input type="text" name="T6" size="20"></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116065</font></td>
    <td width="11%"><font size="2" face="Verdana">XYZ</font></td>
    <td width="13%"><font size="2" face="Verdana">160</font></td>
    <td width="10%"><font size="2" face="Verdana">16000</font></td>
    <td width="53%"><input type="text" name="T2" size="20"></td>
    <td width="53%"><input type="text" name="T5" size="20"></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116058</font></td>
    <td width="11%"><font size="2" face="Verdana">PQR</font></td>
    <td width="13%"><font size="2" face="Verdana">300</font></td>
    <td width="10%"><font size="2" face="Verdana">3000000</font></td>
    <td width="53%"><input type="text" name="T3" size="20"></td>
    <td width="53%"><input type="text" name="T4" size="20"></td>
    </tr>
    <tr>
    <td width="153%" colspan="6">
    <p align="center"><input type="submit" value="Submit" name="B1"></td>
    </tr>
    </table>
    </center>
    </div>
    </form>
    </body>
    </html>
    I hope this makes the scene clear still you may eat my head for more clarifications but please help me.
    Can mail me at [email protected]
    ThanQ

    Name your textfields for accetance number and del date as your primary key that must be dealer id in your case.
    You can do this by writing <input type=text name=<%=<something>%>>
    Then you can get all the parameters in jsp to which you are going to submit your request by using function getParameterNames(). That will return you all the primary keys posted as name of your textfield. Then get the parameter value from parameter name and run the sql.

  • Urgent help in cursor for loop. PLS HELP HELP HEP

    suppose i got table_a, in table_a i've got abc_id and bcd_name. the data as below:
    abc_id bcd_name
    1 a
    1 b
    1 c
    1 d
    in stored procedure as the statement below, i can only select 1 record into a local variable:
    select bcd_name
    into l_bcd_name
    where abc_id = i_abc_id;
    how am i going to select all the records? i know it's going to use a cursor for-loop statement but i dont know how to use. any1 can help?
    Message was edited by:
    babyekc

    Hi,
    You can do like this.
    Just write the following code in ur Stored Procedure.
    CURSOR C1 IS SELECT ABC_ID, BCD_NAME FROM TABLE_A;
    BEGIN
    OPEN C1;
    LOOP
    FETCH C1 INTO TEMP_ABCID, TEMP_BCDNAME;
    EXIT WHEN C1%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE('ABC ID is ' || TEMP_ABCID);
    DBMS_OUTPUT.PUT_LINE('BCD NAME is ' || TEMP_BCD_NAME);
    END LOOP;
    CLOSE C1;
    END;
    Before declaring the cursor, declare the variables TEMP_ABCID, TEMP_BCDNAME.
    Thanks.

  • User soliciting adobe forms as "Need Urgent Help" is phishing for phone #'s

    Is anyone getting these? Call me silly but I just don't think it's Adobe "Help And Support"
    and "And" is never capitalized in a title dumb-dumb
    Hi!
    We apologize for the inconvenience caused we will help you out to resolve the problem which you are facing for further assistance provide us your Skype ID and Telephone Number so our one of the technician will contact you!
    Thanks & Regards
    Adobe Help And Support

    you told me to remove the post, but I think you're the same guy embarrassed he got caught.
    did I guess right?
    Want to know how I know?

  • URGENT HELP! "Check For Purchases"?

    So I recently lost all my music on iTunes and they are letting me redownload them again.
    The problem is I can't find the "Check For Purchases" button!!
    2) From the Store menu, select Check for Purchases (in iTunes 6 and
    earlier, you'll find this under the Advanced menu).
    Please help me find it! It's driving me crazy and I don't know why i can't find it.
    and yes i think i have the latest version of itunes.

    Its OK ALOT of people get confused by that, and rightfully so, I mean you tell someone to goto Store>Check for of coaurs there going to think of the actual itunes store first. I don't know why they named it like they did, but.....they did LOL

  • Urgent help in looking for a package

    Hi,
    May i know where to download sun.awt.win32.Win32PrintJob?
    I have searched for it but fails to find it.
    Thanks
    Yours sincerely,
    Xueli

    hi,
    the class Win32PrintJob is there in rt.jar in the jre/lib folder.
    but the package name is sun.print.Win32PrintJob just see if this is enough.. (jdk 1.4.1)
    b t w me too couldn;t find any package of the form.. sun.awt.win32.Win32PrintJob
    -cheers,
    Jer

  • Urgent help- table input for RFC

    Dear all,i have this following codes
    a = Long.parseLong(wdContext.currentContextElement().getMat_doc_frm());
        b = Long.parseLong(wdContext.currentContextElement().getMat_doc_to());
        c = b-a + 1;
         Zbapi_Goodsmvt_Getdetail_Input stockitem = new Zbapi_Goodsmvt_Getdetail_Input();
        Zdocnum docnum = new Zdocnum();
      for(int x = 1; x <= c; x++){
              docnum.setMat_Doc(String.valueOf(a));
             docnum.setDoc_Year(wdContext.currentContextElement().getYear());
             stockitem.addZdocnum(docnum);
             wdComponentAPI.getMessageManager().reportSuccess(docnum.getMat_Doc());
             wdComponentAPI.getMessageManager().reportSuccess(docnum.getDoc_Year());
              a = a+1;
        wdContext.nodeZbapi_Goodsmvt_Getdetail_Input().bind(stockitem);
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
              try {
                                         wdContext.currentZbapi_Goodsmvt_Getdetail_InputElement().modelObject().execute();
                                            } catch (WDDynamicRFCExecuteException ce) {
                                                 manager.reportException(ce.getMessage(), false);
    let said i key in the doc_num_frm as 5000002567 and doc_num_to as 5000002568,it seems that the stockitem.addZdocnum(docnum); only captur the last number which is 5000002568 for 2 times...it shd be 5000002567 and 5000002568..but now the data inside the stockitem for zdocnum is both oso 5000002568.. any idea why lead to this? thanks

    Dear Joan,
    Zdocnum docnum = new Zdocnum();
    Write the above line of code within the for loop instead of outside as follows :
    for(int x = 1; x <= c; x++){
    Zdocnum docnum = new Zdocnum();
    docnum.setMat_Doc(String.valueOf(a));
    docnum.setDoc_Year(wdContext.currentContextElement().getYear());
    stockitem.addZdocnum(docnum);
    wdComponentAPI.getMessageManager().reportSuccess(docnum.getMat_Doc());
    wdComponentAPI.getMessageManager().reportSuccess(docnum.getDoc_Year());
    a = a+1;
    What is going wrong is you are creating a reference of type ZDocnum, instantiating it, setting its values and adding it to the input list.
    Next time when you set its values you are using the same reference without changing the instance it points to.
    So a new element gets added no doubt but the values of the first element also get changed.
    If you create a new instance every  time you add an element to the list ,then this won't happen.
    Try this and check.
    Regards,
    Mayuresh
    PS : xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Jan 1, 2008 3:50 PM

  • HELP WITH IPHONE 4S IPHONE URGENT HELP PLEASE?

    IPHONE URGENT HELP PLEASE?
    for the whole day my network has been 'Searching...'
    i have tried airplane mode on and off, turning my phone on and off and network reset and taking sim in and out.
    so i backed up my phone and restored to factory settings as i don't think i did the option of choosing manually select a carrier.
    my network is still 'searching...' and it won't let my wifi to allow me to activate my iphone. i have tried to connect to itunes and it still won;t work.
    i keep getting a message about no activation server.
    this is a new iphone. i got it replaced on saturday.
    PLEASE SOMEONE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Hello,
    If this is a new iPhone then you will have free access, as all iPhones come with it, to Apple support. I would have them take care of an issue like this.
    Hope this helps.
    Regards,
    Jake

  • Urgent help needed for XML Tags using XMLForest()

    Folks
    I need some urgent help regarding getting use defined tag in your
    XML output.
    For this I am using XMLElement and XMLForest which seems to work fine
    when used at the SQL prompt but when used in a procedure throws and error
    SQL> Select SYS_XMLAGG(XMLElement("SDI",
                                       XMLForest(sdi_num)))
         From sdi
         where sdi_num = 22261;- WORKS FINE
    But when used in a procedure,doesnt seem to work
    Declare
        queryCtx  DBMS_XMLQuery.ctxType;
        v_xml     VARCHAR2(32767);
        v_xmlClob CLOB;
        BEGIN
        v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
                                             XMLFOREST(sdi_num)))
        From sdi
        where sdi_num = 22261';
        queryCtx :=DBMS_XMLQuery.newContext(v_xml);
        v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
        display_xml(v_xmlClob);
    End;
    CREATE OR REPLACE PROCEDURE  display_xml(result IN OUT NOCOPY CLOB)
    AS
         xmlstr varchar2(32767);
         line varchar2(2000);
    BEGIN
         xmlstr:=dbms_lob.SUBSTR(result,32767);
         LOOP
         EXIT WHEN xmlstr is null;
         line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
         dbms_output.put_line('.'||line);
         xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
         END LOOP;
    end;
    SQL> /
    .<?xml version = '1.0'?>
    .<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
    XML tag name.</ERROR>
    PL/SQL procedure successfully completed.
    SQL>HELP is appreciated as to where I am going wrong?

    Hi,
    if you want to transform something to something else, you should declare, what is your source.
    I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
    Kind regards,
    Hendrik

  • Urgent Help Required for Connect Four Game

    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
         int player1;
         int player2;
         public PlayGame()
              //this.player1 = player1;
              //this.player2 = player2;
         public void StartGame()
         try{
         // int X = 0, Y = 0;
         //int value;
         int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
         int[][] ConnectFourArray = new int[6][7];
         int num1, num2;
         for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
         //Player player1;
         //Player player2;
         public ClassConnectFour()
              //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end class
    I am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda
    //

    Hi,
    Thanks for your help but I really don't understand the table lookup algorithm. Could you please send me some code to implement that.
    I will send you the formatted code as well
    Thanks for your help.
    looking forward to your reply.
    Koonda
    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
    int player1;
    int player2;
    public PlayGame()
    //this.player1 = player1;
    //this.player2 = player2;
    public void StartGame()
    try{
    // int X = 0, Y = 0;
    //int value;
    int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    int[][] ConnectFourArray = new int[6][7];
    int num1, num2;
    for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
    //Player player1;
    //Player player2;
    public ClassConnectFour()
    //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end classI am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda

Maybe you are looking for

  • Sudden system slow down and cursor respond slowly ,

    when i check  error report  it shows: Description Faulting Application Path:    C:\Windows\explorer.exe Problem signature Problem Event Name:    BEX64 Application Name:    Explorer.EXE Application Version:    6.3.9600.17039 Application Timestamp:    

  • DVI y-cable? Do they exist?

    Does anyone know if there are y-cables that one can use on the DVI port on a G5?

  • Update some of the content of a page

    I want to to allow a colleague to update some of the content of a page without giving them access to change the whole page. How can I do this without using Contribute?

  • Why jws doesn't start when i use jsp as dynamic jnlp?

    hello everyone, i use a jsp as dynamic jnlp to resolve the relative codebase problem,but jws can not start. while i use jnlp, there is no problem.i check the http head the jsp reterned,it seems no problem (it returns "application/x-java-jnlp-file" co

  • ITunes cannot update iPod - unknown error occured.

    and then it says something about (-36) can someone help/explain this for me? xxx iPod Mini   Windows XP