Exception - If table is Invalid

Hi All,
I have following procedure... what exceptions should be used if the table name which i am passing is invalid.
Can i give INVALID_CURSOR?????
Specification
Used table type...
   TYPE t_tab IS TABLE OF VARCHAR2 (4000);
  PROCEDURE PROCESS (
      pv_tab     IN       t_tab
   IS
      --This cursor will fetch all the high_value,high_value_length,partition_name available for the tables which is passed for purging
      CURSOR c_dba_tab_part (lv_multi_tab IN VARCHAR2)
      IS
         SELECT dtp.high_value, dtp.partition_name
           FROM dba_tab_partitions dtp
          WHERE dtp.table_name = lv_multi_tab
      --Local variable which holds the cursor parameters value
      lv_part_name         dba_tab_partitions.partition_name%TYPE;
      lv_long_high_val     LONG;
   BEGIN
      FOR i IN 1 .. pv_tab.COUNT
      LOOP
         --Opening the cursor for processing
         OPEN c_dba_tab_part (pv_multi_tab (i));
         LOOP
            FETCH c_dba_tab_part
            INTO lv_long_high_val, lv_part_name;
               EXIT WHEN c_dba_tab_part%NOTFOUND;
   EXCEPTION
      WHEN OTHERS
      THEN
         -- During processing or any abrupt actions; if the cursor is still open, then close the cursor.
         IF c_dba_tab_part%ISOPEN
         THEN
            CLOSE c_dba_tab_part;
         END IF;
         DBMS_OUTPUT.put_line
            (   'Exception Raised in Package Procedure PROCESS --> SQLCODE-->'
             || SQLCODE
             || 'SQLERRM-->'
             || SQLERRM
         RAISE;
   END PROCESS;  
   Please help....
Thanks....

In this explicit CURSOR will not generate an exception like NO_DATA_FOUND. You have to use cursor attributes. This long example may help you!
SQL> CREATE TYPE t_tab IS TABLE OF VARCHAR2 (4000);
  2  /
Type created.
SQL> show error
No errors.
SQL> CREATE OR REPLACE PROCEDURE PROCESS(pv_tab IN t_tab) IS
  2    --This cursor will fetch all the high_value,high_value_length,partition_name available for the tables which is passed
  3    CURSOR c_dba_tab_part(lv_multi_tab IN VARCHAR2) IS
  4      SELECT dtp.column_name
  5        FROM user_tab_cols dtp --I changed the table name for simpicity.
  6       WHERE dtp.table_name = lv_multi_tab;
  7 
  8    --Local variable which holds the cursor parameters value
  9    TYPE tbl_typ IS TABLE OF user_tab_cols.column_name%TYPE;
10    lv_part_name     tbl_typ; --Changed this for simplicity
11    lv_long_high_val LONG;
12    v_tbl            PLS_INTEGER;
13  BEGIN
14 
15    FOR i IN 1 .. pv_tab.COUNT LOOP
16      --Opening the cursor for processing
17      OPEN c_dba_tab_part(pv_tab(i));
18      FETCH c_dba_tab_part BULK COLLECT
19        INTO lv_part_name;
20      v_tbl := c_dba_tab_part%ROWCOUNT;
21      IF v_tbl = 0 THEN
22        dbms_output.put_line('This is invalid table:' || pv_tab(i));
23      ELSE
24        dbms_output.put_line('The columns for:' || pv_tab(i) || ' are: ');
25        FOR j in 1 .. lv_part_name.COUNT LOOP
26          dbms_output.put_line(lv_part_name(j));
27        END LOOP;
28      END IF;
29      CLOSE c_dba_tab_part;
30    END LOOP;
31 
32  EXCEPTION
33    WHEN OTHERS THEN
34      -- During processing or any abrupt actions; if the cursor is still open, then close the cursor.
35      IF c_dba_tab_part%ISOPEN THEN
36        CLOSE c_dba_tab_part;
37      END IF;
38   
39      DBMS_OUTPUT.put_line('Exception Raised in Package Procedure PROCESS --> SQLCODE-->' ||
40                           SQLCODE || 'SQLERRM-->' || SQLERRM);
41      RAISE;
42  END PROCESS;
43  /
Procedure created.
SQL>
SQL> BEGIN
  2  PROCESS (t_tab('EMP','DEPT','TABLE_3'));
  3  END;
  4  /
The columns for:EMP are:
EMPNO
ENAME
JOB
MGR
HIREDATE
SAL
COMM
DEPTNO
The columns for:DEPT are:
DEPTNO
DNAME
LOC
This is invalid table:TABLE_3
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • ERROR: invalid backup file version. Exception: Error while unzipping invalid wcs 7.x export file

    Hi,
    I'm having a serious issue with your brend new Cisco Prime Network Control System (NCS) and i would appreciate if someone could give me good answers.
    After a background backup task failure, the database was entirelly corrupted and the oracle server no longuer wanted to start. And because of that the NCS web server is unusable, since no one can log in.
    We tryed to restore to last known backup obtained after a former suucessful backup. But we get this error:
    "ERROR: invalid backup file version. Exception: Error while unzipping invalid wcs 7.x export file"
    All the lost data was previously migrated from the former WCS 7.x server. Before this issue everything was working fine.
    So we think that the appliance is seeing the backup file from NCS as a WCS backup.
    We need to find rapidly a solution. Here is our configuration:
    We formerly had WCS 7.0.172.0 hosted on Microsoft Windows Server 2003  SP2 with the above caracteristics: 
    Intel(R)Xeon(R) CPU  5120 @ 1.86Ghz 1.87Ghz 16GB of RAM.
    We now have NCS  Version 1.1.1.24 running under Cisco Application Deployment  Engine
    OS Release:  2.0
    ADE-OS Build Version: 2.0.1.038
    ADE-OS System Architecture:  x86_64

    I was getting this error too. TL;DR: When you transfer the wcs.zip file to your FTP server, make sure you are using BINARY mode... which is often NOT the default FTP mode.
    Long Version:
    TO GET THIS ERROR, what I had done was use the Windows CLI FTP command to transfer my "wcs.zip" to the NCS FTP server.
    -----BEGIN WRONG STEPS-----
    C:\ftp
    ftp> open x.x.x.x
    Connected to x.x.x.x.
    220 Service ready for new user
    User (x.x.x.x:(none)): ftp-user
    331 User name okay, need password for ftp-user
    Password:
    230 User logged in, proceed
    ftp> put wcs.zip
    200 Command PORT okay
    150 File status okay; about to open data connection
    226 Closing data connection
    ftp: 526768949 bytes sent blah blah etc
    -----END WRONG STEPS-----
    I would then run "ncs stop" and "ncs migrate" and get the "ERROR: invalid backup file version. Exception: Error while unzipping invalid wcs 7.x export file".
    I remembered something from my misspent youth: Windows, for no good reason, likes to transfer files in ASCII mode. UNIX (which LINUX comes from) prefers BINARY, and the two do not like to negotiate.
    TO FIX THIS, I had to just FTP in Binary mode.
    -----BEGIN RIGHT STEPS-----
    C:\ftp
    ftp> open x.x.x.x
    Connected to x.x.x.x.
    220 Service ready for new user
    User (x.x.x.x:(none)): ftp-user
    331 User name okay, need password for ftp-user
    Password:
    230 User logged in, proceed
    ftp> binary
    200 Command TYPE okay
    ftp> put wcs.zip
    200 Command PORT okay
    150 File status okay; about to open data connection
    226 Closing data connection
    ftp: 526768949 bytes sent blah blah etc
    -----END RIGHT STEPS-----
    NOW when I enter "ncs stop" (actually... had to restart them... then stop them... x.x) and then the proper "ncs migrate" commands, I get a happy output and don't have to go home late troubleshooting this.
    "  Stage 1 of 5: Decompressing backup ...
      -- complete.
      Stage 2 of 5: Restoring Support Files ...
                  : Restoring the Domain Maps ...
                  :  -- complete.
                  : Restoring the License files ...
                  :  -- complete.
      -- complete.
      Stage 3 of 5: Restoring Data ...
    I hope this helps anyone banging their head against the WCS->PI1.3 install wall.
    (Note, WCS needs to be migrated to NCS 1.1.1.24 (NOT NCS 1.1.3!!!!!) before you can migrate to Prime Infrastructure 1.2 or 1.3, because for no readily apparent reason the "ncs migrate" command was removed from PI 1.2 and up. Also note, there is no "Prime Infrastructure 1.1;" they just renamed NCS to Prime Infrastructure after NCS 1.1 because. Yes, the sentence ends there. Great products, all 3, just... agonizing to migrate.)

  • PosixSocketMuxer: unexpected exception in poll: (22) Invalid argument

    I'm running JDeveloper 12.x using WLS 12.1.1.0.0. The server starts fine, but when I launch the WLS console, the web browser appears (deploying WLS console...) then goes blank. The WLS console has repeated this exception:
    <Oct 10, 2011 6:03:32 PM MDT> <Error> <Socket> <BEA-000421> <Uncaught Throwable in processSockets
    java.io.IOException: unexpected exception in poll: (22) Invalid argument.
    java.io.IOException: unexpected exception in poll: (22) Invalid argument
         at weblogic.socket.PosixSocketMuxer.poll(Native Method)
         at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:106)
         at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         Truncated. see log file for complete stacktrace
    I'm running Mac OS 10.6.7 in 64-bit mode.
    There is no additional stack trace information in the server or the default domain log.
    Is there any way around this? Can I edit something in config.xml or startWebLogic.sh as a workaround?

    Some notes concerning running WebLogic on Max OS are presented, maybe they help - http://blogs.oracle.com/wahmed/entry/installing_weblogics_10_3_1
    Looking at the error "java.io.IOException: unexpected exception in poll: (22) Invalid argument at weblogic.socket.PosixSocketMuxer.poll(Native Method)"
    which is related to the socket muxer. By default, a native socket muxer is used - could be this is not working on MAC.
    What you can try to do is enable the Java based muxer, by editing the config.xml, for example,
    <server>
        <name>AdminServer</name>
        <reverse-dns-allowed>false</reverse-dns-allowed>
        <native-io-enabled>false</native-io-enabled>
        <thread-pool-percent-socket-readers>33</thread-pool-percent-socket-readers>
        <ssl>
          <login-timeout-millis>25000</login-timeout-millis>
        </ssl>
        <max-open-sock-count>-1</max-open-sock-count>
        <stuck-thread-max-time>600</stuck-thread-max-time>
        <stuck-thread-timer-interval>60</stuck-thread-timer-interval>
        <gathered-writes-enabled>false</gathered-writes-enabled>
        <scattered-reads-enabled>false</scattered-reads-enabled>
        <listen-address></listen-address>
        <accept-backlog>300</accept-backlog>
        <login-timeout-millis>5000</login-timeout-millis>
        <low-memory-time-interval>3600</low-memory-time-interval>
        <low-memory-sample-size>10</low-memory-sample-size>
        <low-memory-granularity-level>5</low-memory-granularity-level>
        <low-memory-gc-threshold>5</low-memory-gc-threshold>
    </server>The native-io-enabled element controls is the native muxer is enabled or not.
    The thread-pool-percent-socket-readers element tells how may threads from the execute queue
    are used by the muxer; the default is 33%.

  • Risk analysis failed: Exception from the service : Invalid System

    I'm trying to get the risk analysis performed for CUP requests.  When I'm in the process of creating a request, and I add roles to the request and then click on the risk analysis button, I get the above error.
    I checked the URI that I've included in the Risk Analysis section of the configuration and I believe it is correct:
    http://<server>:<port>/VirsaCCRiskAnalysisService/Config1?wsdl&style=document
    I've selected 5.3 web service, and I have provided a user ID that has admin rights.
    What do you think is the reason this error is being thrown?
    The error in the log is:
    2009-11-19 15:04:31,821 [SAPEngine_Application_Thread[impl:3]_39] ERROR com.virsa.ae.core.BOException: Exception from the service : Invalid System
    com.virsa.ae.core.BOException: Exception from the service : Invalid System
    Thanks,
    Santosh

    Frank,
    Thanks for your response.  I was thinking along these lines already and so I have tried to do as you suggest.  However it didn't work and the log indicated that it didn't like my connector name (even though the connector name is now the same as in RAR).
    Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve JCO destination name 'SANDBOX' in the SLD. No such JCO destination is defined in the SLD.
    However, I looked at one of the online post installation checklists for CUP and I gathered that it might be necessary to have the JCo itself renamed at the backend to reflect the name used in RAR, and that should populate into my connector list within CUP (when you click on the magnifying glass).
    I'm waiting to try that out, but I'm not sure about any secondary impact of making a change to the JCo name.
    Let me know what you think about that move.
    Thanks,
    Santosh

  • Importing full schema except few tables

    Hi all
    I sthere any way to import full schema ,except few tables
    in 9i.I want to import a full schema without few tables.I dont want to import later drop.Is there any way
    with regards
    ramya

    You would have to provide the list of tables you do want to import at the command line in the TABLES argument.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Table buffering - Invalidations vs Changes on ST10

    Hello experts,
    Could you please let us know what is the difference between the number of "Invalidations" and the number of "Changes" that are registered via ST10 transactions for each table?
    We are interested to identify which tables should be unbuffered considering that these metrics hopefully could help us to take a decision, we would like to know what is the basic difference between each of them.
    Thanks and best regards,

    Hi Rodolfo,
    interesting questions:
    A change is a DML statement (INSERT, UPDATE, DELET, MODIFY).
    A invalidation is flagging an entry (line, region, table) in the table buffer as invalid
    because it has been changed.
    I suggest to create you own tables (sng, gen, ful), buffer them and run some tests.
    I don't know each and every detail  since i didn't tested everything here but here are some of my observations.
    A change is counted in the DBI and is a (one) change statement. e.g.
    INSERT from wa = 1 change
    This will lead to 1 invaldiation PER REMOTE APPLICATION SERVER (the local one is updated with the  change hence has no invalidation).
    As far as i know array statements are counted as a (one) change as well like:
    INSERT ... from TABLE
    One change would be the UPDATE SET ... .
    These statements let to many invalidations in my test (nr. of records / regions to be changed multiplied with the nr. of remote application servers).
    To make it more complicated:
    we can have invalidations and no changes since:
    R3trans or tp might change buffered tables (do invalidations) but record no change in the DBI.
    or
    if a projection view is changed the change is recorded in the DBI against the view but the the underlying tables
    get invalidations as well (like the view) on the remote application servers.
    Kind regards,
    Hermann

  • Exception:java.io.UTFDataFormatException: invalid byte 2 of 2-byte UTF-8 se

    While feeding the parser with the xml string returned , the present data found contains some invalid UTF-8 characters(e.g, "�"). This would amount to a "java.io.UTFDataFormatException" exception.
    This is the code where I initialize the parser & feed the InputSource:
    public class ISEGeneralSearchResultsParser extends DefaultHandler{
    private static final String DEFAULT_PARSER_NAME     = "org.apache.xerces.parsers.SAXParser";
    private static final String VALIDATION               = "http://xml.org/sax/features/validation";
    private static final String NAMESPACE               = "http://xml.org/sax/features/namespaces";
    private static final String SCHEMA                    = "http://apache.org/xml/features/validation/schema";
    protected static boolean cbSetValidation           = false;
    protected static boolean cbSetNameSpaces           = false;
    protected static boolean cbSetSchemaSupport           = false;
    public void toRecord(String asXML)
              throws Exception
              try
                   ByteArrayInputStream byteStream = new ByteArrayInputStream(asXML.getBytes());
                   String lsParserName = DEFAULT_PARSER_NAME;          
                   try
                        lParser = (XMLReader)Class.forName(lsParserName).newInstance();
                        lParser.setFeature( VALIDATION, cbSetValidation);
         lParser.setFeature( NAMESPACE, cbSetNameSpaces);
         lParser.setFeature( SCHEMA, cbSetSchemaSupport);
         lParser.setContentHandler((DefaultHandler)this);
         lParser.setErrorHandler((DefaultHandler)this);
                   catch(Exception parserException)
                        throw new SNETException("ISE011");
                   lParser.parse(new InputSource((InputStream)byteStream));
              catch (Exception xmlStringException)
                   throw new SNETException("ISE012");
    My question how would I make the parser understand that the characters allowed could be also � for example?
    Thanking you in anitcipation!!
    Cheers

    My question how would I make the parser understand
    that the characters allowed could be also � for
    example?You would give it an XML file that declares its encoding properly. If it doesn't declare its encoding at all, you'd make sure it was really encoded in UTF-8. Hint: just stating an encoding in the XML's prologue doesn't mean that the data is really encoded that way. That's the responsibility of the creator of the file.

  • Table(cast  - invalid datatype problem

    Hi All,
    Basic scenario:
    PACKAGE
    create or replace
    PACKAGE C2_PAYMENT_DOC IS
    TYPE bin_array IS TABLE OF NUMBER
    INDEX BY BINARY_INTEGER;
    FUNCTION test_fun(l_doc_id IN integer) RETURN bin_array;
    PACKAGE_BODY
    create or replace
    package body C2_PAYMENT_DOC as
    FUNCTION test_fun (l_doc_id IN integer) RETURN bin_array IS
    l_gross bin_array;
    begin
    c2_purchase_invoice.get_inv_gross_amount(l_doc_id, l_gross(1));
    return l_gross;
    end;
    END;
    QUERY
    select * from Table(Cast(c2_payment_doc.test_fun(1) As bin_array));
    Result of the query is ORA-00902: invalid datatype
    How can I make the select statement valid?
    Thanks in advance,
    Bartek

    You can not use local collection types in SQL. You must create type bin_array as SQL nested table type. Also, depending on version you might not need to cast:
    SQL> CREATE OR REPLACE
      2    TYPE bin_array
      3      AS TABLE OF NUMBER
      4  /
    Type created.
    SQL>  create or replace
      2   PACKAGE C2_PAYMENT_DOC IS
      3  FUNCTION test_fun(l_doc_id IN integer) RETURN bin_array;
      4  end;
      5  /
    Package created.
    SQL> create or replace
      2  package body C2_PAYMENT_DOC as
      3 
      4  FUNCTION test_fun (l_doc_id IN integer) RETURN bin_array IS
      5  l_gross bin_array := bin_array();
      6  begin
      7      l_gross.extend;
      8      l_gross(1) := l_doc_id;
      9  return l_gross;
    10  end;
    11  END;
    12  /
    Package body created.
    SQL> select * from Table(Cast(c2_payment_doc.test_fun(1) As bin_array));
    COLUMN_VALUE
               1
    SQL> select * from Table(c2_payment_doc.test_fun(1))
      2  /
    COLUMN_VALUE
               1
    SQL> SY.

  • Export all tables except one table

    i have db with more than one user
    i need to export all tables in DB except one table

    Hi..
    As you are on 10g , use EXPDP with EXCLUDE parameter
    [http://www.oracle-base.com/articles/10g/OracleDataPump10g.php]
    HTH
    Anand
    Edited by: Anand... on Mar 26, 2009 9:54 PM
    Edited by: Anand... on Mar 26, 2009 9:59 PM

  • MRP exception message table

    Hi,
        I need to get the list of mtls which have a certain exception mesage against them. How do I get it ? Is there any table which stores this data ? Dosnet MDTC or MDKP store just 2 exception messages ?
    Thanlks

    Hi,
    In addition to the above, you may consider writing a Z report if you want to go for a range of materials & if the business need justifies the development.
    You can use the FM - MD_STOCK_REQUIREMENTS_LIST_API
    The table structure MDPSX contains field AUSSL which should give you the info.
    Regards,
    Vivek

  • Updating table with invalid identifiers

    Hi!
    I use a third-party plug in and that comparisons of chemical structures. I would like to update one table with values from another when the plug-in matches two rows. However, I am getting an invalid identifier problem.
    Two tables:
    PLATES: has VARCHAR2 columns of PLATE_SMILES, IN_DB
    INVEST: has VARCHAR2 columns of SMILES
    The operator is a binary one: jc_compare(PLATE_SMILES, SMILES)=1 (or 0 if they don't match)
    I want my query to say: "If comparison of PLATE_SMILES, SMILES = 1, set IN_DB=1 for that row" - effectively asking if PLATE_SMILES exists in the INVEST table.
    I've tried a number of renditions, all giving invalid identifiers. Here's an example:
    update (select plate.PLATE_SMILES, plate.IN_DB, invest.SMILES
    from PLATES plate
    INVEST invest
    WHERE jc_compare(PLATE_SMILES, SMILES)=1)
    set plate.IN_DB = 1;
    ORA-00904: "PLATE"."IN_DB": invalid identifier
    I'm hoping this should be an easy fix, and any help is greatly appreciated!

    Hi,
    You have
    UPDATE (SELECT plate.plate_smiles,
                   plate.in_db,
                   invest.smiles
            FROM   plates plate, invest invest
            WHERE  jc_compare ( plate_smiles, smiles) = 1)
    SET    plate.in_db = 1;   -- Error herePLATE is not known outside the inline view. Just remove it.
    Regards
    Peter

  • How to migrate CSSCAN report exceptional status tables

    Hi All,
    In the Csscan output report I found some tables under exceptional status,
    how to migrate those tables data?
    Note:- I am doing character set migration from US7ASCII to UTF8.
    Thanks,
    Sankar

    [How to post a SQL statement tuning request|http://forums.oracle.com/forums/thread.jspa?threadID=863295&tstart=0]
    [When your query takes too long...|http://forums.oracle.com/forums/thread.jspa?messageID=1812597#1812597]
    And when you post source code:
    {{noformat}code{noformat}}
    ....Post Your Code Here....
    {{noformat}code{noformat}}
    something I noticed:
    AND trunc(t.invoice_date) BETWEEN '01-Jan-2009' AND '31-Dec-2009' you are comparing DATE with STRING.... this calls for implicit datatype conversion

  • While packaging book encoutered ... exception ... Invalid slice of Bytestream

    Hi I have encouter an exception while packaging book to acs4 server, could someone be able to shade some light on the possible causes of this exception ? many thanks in advance
    BR,
    victor
    the following is the stacktrace...
    com.adobe.internal.pdftoolkit.core.exceptions.PDFIOException: java.io.IOException: Invalid slice of Bytestream
        at com.adobe.internal.pdftoolkit.core.cos.CosDocument.getStream(Unknown Source)
        at com.adobe.internal.pdftoolkit.core.cos.CosStream.writeOut(Unknown Source)
        at com.adobe.internal.pdftoolkit.core.cos.CosObject.writeOut(Unknown Source)
        at com.adobe.internal.pdftoolkit.core.cos.CosObjectInfo.writeIndirectObject(Unknown Source)
        at com.adobe.internal.pdftoolkit.core.cos.CosDocument.writeIndirectObjects(Unknown Source)
        at com.adobe.internal.pdftoolkit.core.cos.CosDocument.fullSave(Unknown Source)
        at com.adobe.internal.pdftoolkit.core.cos.CosDocument.save(Unknown Source)
        at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.saveFull(Unknown Source)
        at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.doSave(Unknown Source)
        at com.adobe.internal.pdftoolkit.pdf.document.PDFDocument.save(Unknown Source)
        at com.adobe.adept.packaging.pdf.PDFPackager.writeEncrypted(PDFPackager.java:248)
        at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:582)
        at com.adobe.adept.packaging.servlet.Package.doPost(Package.java:61)
        at com.adobe.adept.servlet.AdeptServlet.doPost(AdeptServlet.java:158)
        at com.adobe.adept.servlet.AdeptServlet.doPost(AdeptServlet.java:231)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:588)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:396)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.IOException: Invalid slice of Bytestream
        at com.adobe.internal.io.stream.ByteReaderInputByteStream.<init>(Unknown Source)
        at com.adobe.internal.io.stream.ByteReaderInputByteStream.slice(Unknown Source)
        ... 31 more

    Most likely it's something wrong with the PDF file.  Opening it up in Acrobat should let you see if it is a really bad error, and if notI would either do a save as in Acrobat, or run it through the Optimize in Acrobat which will have Acrobat resave the file and should fix any minor errors.

  • Duplicate kep exception in table VIRSA_AE_RQD_WPCLD

    Dear Experts,
    Thanks for your attention.
    Background
    u2022We are using Role Mapping function, the configuration is as following:
       o Role 001 and Role 002 are the main role; Role 003 is the dependent role
       o Role 003 is mapping to Role 001
       o Role 003 is also mapping to Role 002
    u2022We are using CAD to determine the approver for these roles, such as:
       o Role 001 should be approved by people A
       o Role 002 should be approved by people B
       o Role 003 should be approved by people C
    u2022We configure the work flow containing 3 stages: [Direct manager]->[Controller]->[Administrator]
       o At the [Direct manager] stage, there will be only one approver for each request, he/her can approve or reject the whole request or specific roles. (approval level = request)
       o At the [Controller] stage, there will be several approvers for each request based on the role selected, they only can approve or reject the specific roles under their management. ( approval level = role)
    Which case the issue will come out?
    u2022When the user select the Role 001 and Role 002 in one request, the issue will come out
    What will be impacted?
    u2022The request cannot go to the [Controller] stage. Error message 1016 will come out.
    How about system log?
    Here is the error message in system log
    2011-02-21 02:48:37,470 [SAPEngine_Application_Thread[impl:3]_23] DEBUG  WorkFlowBOHelper.java@1353:handleApproversTransactions() : dtoApprover : com.virsa.ae.workflow.dto.WorkFlowApproversListDTO@34713471[approversList=[],subStageApproversList=[com.virsa.ae.workflow.dto.WorkFlowSubStageApproverDTO@5e105e10[approveRejectLevel=Role,attributeValue=106974|||||QEDCLNT410|||||0,approversList=[com.virsa.ae.workflow.dto.WorkFlowApproverWithAltDTO@5e095e09[approverId=VSAHOO,alternateApproverId=TTANG5,approverType=1,altApproverType=1,key=<null>]]], com.virsa.ae.workflow.dto.WorkFlowSubStageApproverDTO@56ee56ee[approveRejectLevel=Role,attributeValue=102744|||||QEDCLNT410|||||0,approversList=[com.virsa.ae.workflow.dto.WorkFlowApproverWithAltDTO@56e756e7[approverId=VSAHOO,alternateApproverId=TTANG5,approverType=1,altApproverType=1,key=<null>]]], com.virsa.ae.workflow.dto.WorkFlowSubStageApproverDTO@4b994b99[approveRejectLevel=Role,attributeValue=106971|||||QEDCLNT410|||||0,approversList=[com.virsa.ae.workflow.dto.WorkFlowApproverWithAltDTO@4b924b92[approverId=VSAHOO,alternateApproverId=TTANG5,approverType=1,altApproverType=1,key=<null>]]], com.virsa.ae.workflow.dto.WorkFlowSubStageApproverDTO@7ec87ec8[approveRejectLevel=Role,attributeValue=106971|||||QEDCLNT410|||||0,approversList=[com.virsa.ae.workflow.dto.WorkFlowApproverWithAltDTO@7ec17ec1[approverId=VSAHOO,alternateApproverId=TTANG5,approverType=1,altApproverType=1,key=<null>]]], com.virsa.ae.workflow.dto.WorkFlowSubStageApproverDTO@343a343a[approveRejectLevel=Role,attributeValue=106972|||||QEDCLNT410|||||0,approversList=[com.virsa.ae.workflow.dto.WorkFlowApproverWithAltDTO@34333433[approverId=VSAHOO,alternateApproverId=TTANG5,approverType=1,altApproverType=1,key=<null>]]]],approverGroupApproversList=[]]
    2011-02-21 02:48:37,470 [SAPEngine_Application_Thread[impl:3]_23] DEBUG  WorkFlowBOHelper.java@1364:handleApproversTransactions() : list of approvers is empty, checking for substage approvers
    2011-02-21 02:48:37,470 [SAPEngine_Application_Thread[impl:3]_23] DEBUG  WorkFlowSubStageTransactionHelper.java@48:insertApprovers() : INTO the method : INTO the method with reqNo : 419, reqPathId : 861, stageName : CE APPROVAL
    2011-02-21 02:48:37,472 [SAPEngine_Application_Thread[impl:3]_23] ERROR com.virsa.ae.dao.sqlj.RequestWFTransChildDAO : insert(IAETransaction transactionRequestWFTransChildDTO dto) Exception occured while inserting(com.virsa.ae.dao.dto.RequestWFTransChildDTO@5fc85fc8[reqNo=419,userId=VSAHOO,reqPathId=861,stageName=CE APPROVAL,attributeType=Role,attributeValue=106971|||||QEDCLNT410|||||0,lastUpdate=<null>,status=OPEN,alternateApproverId=TTANG5,approverType=1,altApproverType=1]) :   :  Exception: DB2 SQL error: SQLCODE: -803, SQLSTATE: 23505, SQLERRMC: 1;SAPQGDDB.VIRSA_AE_RQD_WPCLD
    com.sap.sql.DuplicateKeyException: DB2 SQL error: SQLCODE: -803, SQLSTATE: 23505, SQLERRMC: 1;SAPQGDDB.VIRSA_AE_RQD_WPCLD
    Thanks a lot if you can provide any adivce!
    Edited by: tang dark on Feb 28, 2011 5:08 PM

    Dear Experts,
    This issue impact us quite a lot...
    Thanks a lot for your patience for analyzing this issue.
    If you have any idea, please kindly share with us. Much appreciate!

  • How can I export the whole schema but except one table?

    I need export one schema from one hp-ux server using exp command, this schema will be exported into some dmp files, then I ftp these files into another hp-ux server, import this schema from these dmp file in that server.
    Problem is: there is one very big table which is about 20G size in this schema, so I don't want this table to be exported. I know there is a parameter called TABLES in exp command, but this parameter just apply to table-mode Export. So does there have other ways for me to achieve my goal?

    Hi,
    to exclude the table (or some of them) you can create control file using SQL*Plus with spool. All what you need is to create sql statement and save results in control file. As an example:
    oratest> select owner||'.'||table_name||','
    2 from all_tables where owner = user;
    OWNER||'.'||TABLE_NAME||','
    GORYA1.A1,
    GORYA1.CLEAN_D,
    GORYA1.D1,
    GORYA1.DICT_D,
    GORYA1.H1,
    GORYA1.MY_USERS,
    GORYA1.P1,
    GORYA1.P2000,
    GORYA1.PP1,
    GORYA1.PP2,
    GORYA1.REP_1,
    GORYA1.TREATMENT,
    GORYA1.TREATMENT1,
    Copy-paste it into control file under "tables=" clause and remove the last comma. You can add to the sql any "where" what you would like to restrict output.
    Andrey

Maybe you are looking for

  • Problem with safari download manager

    I'm having the following problem how do I download do not stop when I close Safari, is there any way, eg when I'm downloading xcode and closing the browser it is stopped and can not resume from where it was, I ask how it assists , would act as a down

  • No Output from DVI..Any ideas?

    A week ago I received all my parts for my new build. DKA 790 GX, AMD Phenom II X4 940 BE, 500GB Seagate Barracuda SATA, 8GB Corsair XMS 1066 DDRII, VisionTek PCIe Radeon HD3450 512MB, NZXT Guardian 921 Case, Xion Simple Power 630W PSU. I got all set

  • Can't able to speak in normal mode. Able to talk only in speaker mode

    Dear Team, I bought the Z10 yesterday, When I make a call, the opponent persons can't hear when I talk in normal mode. They can able to hear me only when I put the call in speaker mode. Please do the needful

  • Query works but not in a funtion

    i have this query... select sum(amount) from here and there where id=myid and mydate =desireddate... works flawlessly... but when i put this query in a function and pass on the parameters does not work... function looks like this..... create or repla

  • SQL*LOADER control file for Multiple Tables

    Dear DBA's I am loading data throgh SQL*LOADER in Oracle. I have some problem, While Inserting data into multiple table I have created single Control file in following way which is giving me error, Data is stored in seprate fileswith tablename.dat, S