Error in execution (but it compiles)

This is a follow up from a previous question, but I started a new thread because its a new problem.
We are given a file with 99999 lines. Each line of the file represents a single node and it contains four integer: key, value, left child key, right child key (in the order specified). Key is a unique identifier assigned to each node. This identifier is just the line number. Value is the integer value stored in the node of the tree. Left and Right children are keys of the two appropriate children of the node. If a left or right child key is equal to zero, the appropriate child does not exist. The root node of the tree has key one.
Here are the first 10 lines, for example:
1 75 2 4
2 68 6 7
3 58 9 10
4 88 12 15
5 28 18 19
6 27 21 22
7 24 24 25
8 5 28 29
9 69 31 34
10 61 37 38
For example, the first line of the file is 1 75 2 4. It means that value of the node with key 1 is 75, key (line of file) of the left child of this node is 2, and key of right child is 4. Note: not all nodes in the file are part of the tree. Some lines in the file are there just to confuse you. What is the depth of this tree? (Depth is defined as the total number of nodes along the longest path.)
Now, I have some code I think will work. It compiles. It won't run though. Here is the code and below is what comes up in the command window:
import java.util.*;
import java.io.*;
class Depth
     static Scanner sc;
     static List<int[]> dump = new ArrayList<int[]>();
     public static void main(String[]args) throws Exception
          String filename = "src/data.txt";
          try
               sc = new Scanner(new File("tree.input"));
          catch (FileNotFoundException e)
          while(sc.hasNextLine())
               int[] row = new int[4];
               row[0] = sc.nextInt();
               row[1] = sc.nextInt();
               row[2] = sc.nextInt();
               row[3] = sc.nextInt();
               dump.add(row);
          TreeNode top = new TreeNode(dump.get(0)[1]);
          build(top, dump.get(0)[2], dump.get(0)[3]);
          System.out.println("The depth of the tree is " + top.depth() + ".");
     static TreeNode build(TreeNode n, int left_child_key, int right_child_key)
          TreeNode leftNode = new TreeNode(left_child_key);
          TreeNode rightNode = new TreeNode(right_child_key);
          if(left_child_key != -1)
               build(leftNode, getLeftChildKey(left_child_key), getRightChildKey(left_child_key));
               n.setLeft(leftNode);
          if(right_child_key != -1)
               build(rightNode, getLeftChildKey(right_child_key), getRightChildKey(right_child_key));
               n.setRight(rightNode);
          return n;
     static int getLeftChildKey(int key)
          for(int[] row: dump)
               if(row[0] == key)
               return row[2];
          return -1;
     static int getRightChildKey(int key)
     for(int[] row: dump)
               if(row[0] == key)
               return row[3];
     return -1;
class TreeNode
     int value;
     TreeNode leftChild, rightChild;
     TreeNode(int v)
          value = v;
     public void setLeft(TreeNode l)
          leftChild = l;
     public void setRight(TreeNode r)
          rightChild = r;
     public int depth()
          int ld = 0, rd = 0;
          if (leftChild != null) ld = leftChild.depth();
          if (rightChild != null) rd = rightChild.depth();
          return Math.max(ld, rd) + 1;
Exception in thread "main" java.util.NoSuchElementException
        at java.util.Scanner.throwFor(Unknown Source)
        at java.util.Scanner.next(Unknown Source)
        at java.util.Scanner.nextInt(Unknown Source)
        at java.util.Scanner.nextInt(Unknown Source)
        at HW.main(HW.java:26)Any Ideas? I need to execute this so I can find the depth. Thank you!

Turns out there was an empty line at the end of my huge file that kept it from working. It works now, but from what you guys can tell will it work for left or right children not being 0 (because they aren't supposed to exists if its 0)?
Edited by: Ravenatic20 on Apr 29, 2009 7:56 AM

Similar Messages

  • While the session got started in ODI,but still showing me errors in Execution

    Hi Folks,
    Session got started in ODI but it is still showing me errors in execution:-
    Errors are coming marked in red
    Errors are like:-
    1)
    ODI-1217:Session INT_INFext_RT_RF(17001) fails with return code 30088.
    ODI-1226: STEP INT_INFext_RT_RF fails while performing a Loading operation.This Flow loads Target Table TRG_SALES_PERSON.
    ODI-1228:Task SRCSET0 (Loading) fails on the target ORACLE connection ODI_STAGE.
    Caused by :Java .sql.SQLException :ORA-30088 :datetime/interval precision is out of range
    at oracle.jdbc.driver.T4CTTIoer.processerror(T4CTTIoer.java:462)
    Hope this finds the solution ASAP.

    Please post your Data Integrator questions on the Data Integrator forum (this is Data Service Integrator) Thanks.
    Data Integrator

  • Interface got executed in ODI but is still showing me errors in execution.

    Hi Folks,
    Session got started in ODI but it is still showing me errors in execution:- Errors are coming marked in red Errors are like:- 1) ODI-1217:Session INT_INFext_RT_RF(17001) fails with return code 30088. ODI-1226: STEP INT_INFext_RT_RF fails while performing a Loading operation.This Flow loads Target Table TRG_SALES_PERSON. ODI-1228:Task SRCSET0 (Loading) fails on the target ORACLE connection ODI_STAGE. Caused by :Java .sql.SQLException :ORA-30088 :datetime/interval precision is out of range at oracle.jdbc.driver.T4CTTIoer.processerror(T4CTTIoer.java:462) ---- ----- ----- ---- Hope this finds the solution ASAP.
    Regards
    Rachin Gupta
    09582107671

    It's a little difficult to understand your problem.
    I'm not sure what you meant by "Session got started in ODI but it is still showing me errors in execution". Well, if something is wrong with your Interface that will happen .
    From the message you sent, I think that there is some Date or TimeStamp problem happening. You should verify your date fields.
    []'s

  • ORA-04088: error during execution of trigger

    Error Description :
    We have more than 100 of records in a csv file which we are processing through a script. At the first execution let
    say it generates trigger exception for five records ... when I execute the script second time those five records
    are not throwing any exception but may be some other records. But consecutive trigger exception is not happening for any record . If a particular record is throwing exception at first attempt then in the second attempts it's not throwing the trigger exception.
    Input file
    PROPRTY_ID,NAME,OLD STREET,CITY,STATE,ZIP,NEW STREET,NEW CITY,NEW STATE,NEW ZIP
    88527091,SAM PAUL SUMMU ,1061 XYZ,CITY1,ST,95626,5512 XX YY ZZ,TOWN,PA,12345-9812
    Error :
    88527091,SAM PAUL SUMMU ,1061 XYZ,CITY1,ST,95626,5512 XX YY ZZ,TOWN,PA,12345-9812 - PROPERTY Update Error : ORA-00001: unique constraint (PROD.PK_AUDIT_LOG) violated
    ORA-06512: at "PROD.PROPERTY_AUD", line 159
    ORA-04088: error during execution of trigger 'PROD.PROPERTY_AUD'
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> desc property
    Name                                      Null?    Type
    PROPERTY_ID                               NOT NULL NUMBER(20)
    TYPE_CODE                                          VARCHAR2(10)
    TYPE_PREFIX                                        VARCHAR2(10)
    DWELLING_TYPE_CODE                        NOT NULL VARCHAR2(10)
    DWELLING_TYPE_PREFIX                      NOT NULL VARCHAR2(10)
    STREET_NUMBER                                      VARCHAR2(25)
    STREET_DIRECTION                                   CHAR(2)
    STREET_NAME                               NOT NULL VARCHAR2(45)
    UNIT_NUMBER                                        VARCHAR2(15)
    CITY_CODE                                          VARCHAR2(10)
    STATE                                     NOT NULL CHAR(2)
    ZIP_CODE                                           VARCHAR2(10)
    UNIT_TYPE                                          VARCHAR2(10)
    UNIT_PREFIX                                        VARCHAR2(10)
    COUNTY_CODE                                        VARCHAR2(10)
    COUNTRY_CODE                              NOT NULL VARCHAR2(10)
    SQUARE_FEET                                        NUMBER(6)
    NUMBER_MOTHER_LAW_UNITS                            NUMBER(6)
    YEAR_BUILT                                         DATE
    PROPERTY_VALUE                                     NUMBER(12)
    ZIP_PLUS_4                                         VARCHAR2(4)
    SFI_REQ_FLAG                                       CHAR(1)
    LAST_MODIFIED                             NOT NULL DATE
    LAST_MODIFIED_BY                                   VARCHAR2(31)
    STANDARDIZED_STATUS                                VARCHAR2(10)
    STANDARDIZED_DESC                                  VARCHAR2(200)
    SQL> desc audit_log
    Name                                      Null?    Type
    SEQ_NO                                    NOT NULL NUMBER(20)
    TABLE_NAME                                         VARCHAR2(31)
    USER_STAMP                                         VARCHAR2(31)
    TIME_STAMP                                         DATE
    TRAN_CODE                                          CHAR(2)
    RECORD1                                            VARCHAR2(2000)
    RECORD2                                            VARCHAR2(2000)
    FLAG_FLD                                           CHAR(1)
    SFI_FLAG_FLD                                       CHAR(1)
    ERROR_NUMBER                                       NUMBER
    Update Query which is getting executed :
    UPDATE PROPERTY
    SET DWELLING_TYPE_CODE = 'SFR',
    DWELLING_TYPE_PREFIX = 'DWELLING',
    STREET_NUMBER = NULL,
    STREET_DIRECTION = NULL,
    STREET_NAME = ln_new_street_name,       -- <From input file>
    UNIT_NUMBER = NULL,
    CITY_CODE = ln_city_code,               -- <From other Table>
    STATE = ln_new_state,                   -- <From input file>
    ZIP_CODE = ln_new_zip_code,
    UNIT_TYPE = NULL,
    UNIT_PREFIX = NULL,
    COUNTY_CODE = ln_county_code,           -- <From Other table>
    COUNTRY_CODE = 1,
    ZIP_PLUS_4 = ln_zip_plus_4            -- <From Input file>
    WHERE PROPERTY_ID = ln_property_id;   -- <From Other table>
    *NOTE :* Property.LAST_MODIFIED field is auto populate through other trigger. It does not causing any problem.
    This might be helpful :
    SQL> select OWNER, CONSTRAINT_NAME, TABLE_NAME,COLUMN_NAME from dba_cons_columns where CONSTRAINT_NAME='PK_AUDIT_LOG';
    OWNER                          CONSTRAINT_NAME                TABLE_NAME  COLUMN_NAME
    PROD                           PK_AUDIT_LOG                   AUDIT_LOG          SEQ_NO
    PROD_ARCH                      PK_AUDIT_LOG                   AUDIT_LOG          SEQ_NO
    SQL> select SEQ_NO, trim(RECORD1), trim(RECORD2),TIME_STAMP
    from audit_log where RECORD1 like '%BUTTE%' order by  TIME_STAMP;
    SEQ_NO
    1675677212
    TRIM(RECORD1)
    00000000000031814095...SFR       .DWELLING  ...5512 BUTTE VIEW CT                           ..15532
        .CA.95765     ...1377      .1         .....5000..20100922.SUSMSAHA                       ..
    TRIM(RECORD2)
    00000000000031814095...SFR       .DWELLING  ...5512 BUTTE VIEW CT                           ..15532
        .CA.95765     ...1377      .1         .....5000..20100922.SUSMSAHA                       ..
    TIME_STAMP
    22-sep-2010
    Trigger Body which is fired and throwing the exception :
    create or replace trigger PROPERTY_AUD
    before insert or update on PROPERTY
    for each row
    declare
    rec1            varchar2(2000);
    rec2            varchar2(2000);
    tcode           char(1);
    ln_seq_id       NUMBER:=Null;
    ls_sql  VARCHAR2(2000):=Null;
    begin
    select temp_audit_seq.nextval into ln_seq_id from dual;
    rec1 := null;
    rec2 := null;
         if user = 'NONREP_USER' then
            return;
         end if;
         if (dbms_reputil.from_remote = FALSE) then
              :NEW.last_modified := sysdate;
              if (user = 'SALESFORCE_SYNC') then
                      :new.last_modified_by := NVL(:new.last_modified_by,USER);
              else
                   :new.last_modified_by := user;
              end if;
         end if;
    if inserting then
    rec1 :=
    LPAD(:new.PROPERTY_ID, 20, '0' ) || '.' ||
    RPAD(:new.TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.STREET_NUMBER, 25, ' ' ) || '.' ||
    RPAD(:new.STREET_DIRECTION, 2, ' ' ) || '.' ||
    RPAD(:new.STREET_NAME, 45, ' ' ) || '.' ||
    RPAD(:new.UNIT_NUMBER, 15, ' ' ) || '.' ||
    RPAD(:new.CITY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.STATE, 2, ' ' ) || '.' ||
    RPAD(:new.ZIP_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_TYPE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTRY_CODE, 10, ' ' ) || '.' ||
    LPAD(:new.SQUARE_FEET, 6, '0' ) || '.' ||
    LPAD(:new.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
    TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
    LPAD(:new.PROPERTY_VALUE, 12, '0' ) || '.' ||
    RPAD(:new.ZIP_PLUS_4, 4, ' ' ) || '.' ||
    RPAD(:new.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
    TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
    RPAD(:new.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_DESC, 200, ' ' );
    tcode := 'I';
    elsif deleting then
    rec1 :=
    LPAD(:new.PROPERTY_ID, 20, '0' ) || '.' ||
    RPAD(:new.TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.STREET_NUMBER, 25, ' ' ) || '.' ||
    RPAD(:new.STREET_DIRECTION, 2, ' ' ) || '.' ||
    RPAD(:new.STREET_NAME, 45, ' ' ) || '.' ||
    RPAD(:new.UNIT_NUMBER, 15, ' ' ) || '.' ||
    RPAD(:new.CITY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.STATE, 2, ' ' ) || '.' ||
    RPAD(:new.ZIP_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_TYPE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTRY_CODE, 10, ' ' ) || '.' ||
    LPAD(:new.SQUARE_FEET, 6, '0' ) || '.' ||
    LPAD(:new.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
    TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
    LPAD(:new.PROPERTY_VALUE, 12, '0' ) || '.' ||
    RPAD(:new.ZIP_PLUS_4, 4, ' ' ) || '.' ||
    RPAD(:new.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
    TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
    RPAD(:new.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_DESC, 200, ' ' );
    tcode := 'D';
    else
    rec1 :=
    LPAD(:old.PROPERTY_ID, 20, '0' ) || '.' ||
    RPAD(:old.TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:old.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:old.STREET_NUMBER, 25, ' ' ) || '.' ||
    RPAD(:old.STREET_DIRECTION, 2, ' ' ) || '.' ||
    RPAD(:old.STREET_NAME, 45, ' ' ) || '.' ||
    RPAD(:old.UNIT_NUMBER, 15, ' ' ) || '.' ||
    RPAD(:old.CITY_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.STATE, 2, ' ' ) || '.' ||
    RPAD(:old.ZIP_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.UNIT_TYPE, 10, ' ' ) || '.' ||
    RPAD(:old.UNIT_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:old.COUNTY_CODE, 10, ' ' ) || '.' ||
    RPAD(:old.COUNTRY_CODE, 10, ' ' ) || '.' ||
    LPAD(:old.SQUARE_FEET, 6, '0' ) || '.' ||
    LPAD(:old.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
    TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
    LPAD(:old.PROPERTY_VALUE, 12, '0' ) || '.' ||
    RPAD(:old.ZIP_PLUS_4, 4, ' ' ) || '.' ||
    RPAD(:old.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
    TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
    RPAD(:old.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
    RPAD(:old.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
    RPAD(:old.STANDARDIZED_DESC, 200, ' ' );
    rec2 :=
    LPAD(:new.PROPERTY_ID, 20, '0' ) || '.' ||
    RPAD(:new.TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.DWELLING_TYPE_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.STREET_NUMBER, 25, ' ' ) || '.' ||
    RPAD(:new.STREET_DIRECTION, 2, ' ' ) || '.' ||
    RPAD(:new.STREET_NAME, 45, ' ' ) || '.' ||
    RPAD(:new.UNIT_NUMBER, 15, ' ' ) || '.' ||
    RPAD(:new.CITY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.STATE, 2, ' ' ) || '.' ||
    RPAD(:new.ZIP_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_TYPE, 10, ' ' ) || '.' ||
    RPAD(:new.UNIT_PREFIX, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTY_CODE, 10, ' ' ) || '.' ||
    RPAD(:new.COUNTRY_CODE, 10, ' ' ) || '.' ||
    LPAD(:new.SQUARE_FEET, 6, '0' ) || '.' ||
    LPAD(:new.NUMBER_MOTHER_LAW_UNITS, 6, '0' ) || '.' ||
    TO_CHAR(:new.YEAR_BUILT, 'YYYYMMDD') || '.' ||
    LPAD(:new.PROPERTY_VALUE, 12, '0' ) || '.' ||
    RPAD(:new.ZIP_PLUS_4, 4, ' ' ) || '.' ||
    RPAD(:new.SFI_REQ_FLAG, 1, ' ' ) || '.' ||
    TO_CHAR(:new.LAST_MODIFIED, 'YYYYMMDD') || '.' ||
    RPAD(:new.LAST_MODIFIED_BY, 31, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_STATUS, 10, ' ' ) || '.' ||
    RPAD(:new.STANDARDIZED_DESC, 200, ' ' );
    tcode := 'U';
    end if;
    ls_sql :='
    INSERT INTO AUDIT_LOG
    ( seq_no,
    table_name,
    user_stamp,
    time_stamp,
    tran_code,
    record1,
    record2)
    VALUES
    ( :id,
    :s_table_name,
    :s_user_name,
    :d_sysdate,
    :s_tcode,
    :s_rec1,
    :s_rec2
    EXECUTE IMMEDIATE ls_sql
    USING ln_seq_id,
    'PROPERTY',
    user,
    sysdate,
    tcode,
    rec1,
    rec2;
    end;
    Your suggestion is highly appreciated ..
    Edited by: Bipul on Sep 23, 2010 12:40 AM

    TEMP_AUDIT_SEQ generates number with the increment of +1
    Although there seems other sequence populating the AUDIT_LOG table through a different sequence with the increment of +10. So till now there are already 1179 different numbers residing in audit_log.seq_no and yet to be generated by the TEMP_AUDIT_SEQ sequence. I will look into more details.
    SQL> select max(seq_no) from audit_log;
    MAX(SEQ_NO)
    1675689121
    SQL> select TEMP_AUDIT_SEQ.nextval from dual;
       NEXTVAL
    1675677285
    SQL> select count(*) From audit_log where seq_no>1675677285;
      COUNT(*)
          1179
    SQL> select count(*) from audit_log where seq_no>1675677283 and mod(seq_no,2)=1;
      COUNT(*)
          1179
    SQL> select seq_no from audit_log where seq_no>1675677283 and mod(seq_no,2)=1 and rownum<12;
        SEQ_NO
    1675677291
    1675677301
    1675677311
    1675677321
    1675677331
    1675677341
    1675677351
    1675677361
    1675677371
    1675677381
    1675677391
    11 rows selected.
    Thank you Lee and  Herald ten Dam   ...

  • Why am I getting an ORA-04052 error when I try to compile a Procedure?

    Hi,
    The following procedure I'm getting an ORA-04052 error when I try to compile the following procedure.
    CREATE OR REPLACE PROCEDURE APPS.Find_String (
    pin_referenced_name IN dba_dependencies.referenced_name%TYPE)
    IS
    cursor cur_get_dependancy
    is
    SELECT distinct owner, name, type
      FROM [email protected]        -- prod.world
    WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
    order by name;
    v_owner  varchar2(40);
    v_name   varchar2(50);
    v_type   varchar2(40);
        BEGIN
           dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.');
           dbms_output.put_line(' ');
           dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' '));
           dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------');
            FOR i IN cur_get_dependancy
            LOOP
                v_owner := RPAD(i.owner, 30, ' ');
                v_name  := RPAD(i.name, 45, ' ');
                v_type  := RPAD(i.type, 30, ' ');
                dbms_output.put_line(v_owner ||v_name|| v_type);
            END LOOP;
    END find_string;I'm using the link [email protected]. The procedure compiles for other database links used in the cursor including the one commented to the right of the code 'prod.world'.
    What's even stranger is that I took the SELECT statement
    SELECT distinct owner, name, type
      FROM [email protected]        -- prod.world
    WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
    order by name;out of the procedure and ran it on the command line using the @pinp.world link, the SQL statement ran just fine. But when I tried to compile the above procedure with that exact same SQL statement with the exact same link I get the following string of errors.
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02068: following severe error from PINP
    ORA-03113: end-of-file on communication channelHow can the link work just fine in a regular SQL statement but then cause an error when its compiled in code that otherwise compile just fine when using any other link or even just a plain database. Does anyone have any suggestions?

    OK Justin,
    Here's the query by itself run in another database using the @pinp.world link and querying the dba_dependencies table in the pinp.world database. As you can see the query using this link works just fine returning the requested rows. I can't figure out why the compiler is having an issue with essentially this same query when I try to compile it in a cursor in TOAD. Also this is the database (dev1.world) that I'm trying to compile this Procedure in.
    By the way I'm in an Oracle 9.2.0.6 database and TOAD v9.2.
    SQL> conn apps/apps1@dev1
    Connected.
    SQL> SELECT distinct owner, name, type
      2    FROM [email protected]
      3   WHERE lower(referenced_name) = lower('ALL_USERS')
      4     AND referenced_type <> 'SYNONYM'
      5     AND owner <> 'SYS'
      6   order by name;
    OWNER                          NAME                           TYPE
    PUBLIC                         ALL_USERS                      SYNONYM
    XDB                            DBMS_XDBUTIL_INT               PACKAGE BODY
    XDB                            DBMS_XDBZ0                     PACKAGE BODY
    SYSTEM                         MVIEW_EVALUATIONS              VIEW
    SYSTEM                         MVIEW_EXCEPTIONS               VIEW
    SYSTEM                         MVIEW_FILTER                   VIEW
    SYSTEM                         MVIEW_LOG                      VIEW
    SYSTEM                         MVIEW_RECOMMENDATIONS          VIEW
    SYSTEM                         MVIEW_WORKLOAD                 VIEW
    ORASSO                         WWCTX_API                      PACKAGE BODY
    PORTAL                         WWCTX_API                      PACKAGE BODY
    ORASSO                         WWEXP_UTL                      PACKAGE BODY
    PORTAL                         WWEXP_UTL                      PACKAGE BODY
    PORTAL                         WWPOB_API_PAGE                 PACKAGE BODY
    PORTAL                         WWPOF                          PACKAGE BODY
    ORASSO                         WWPRO_PROVIDER_VALIDATION      PACKAGE BODY
    PORTAL                         WWPRO_PROVIDER_VALIDATION      PACKAGE BODY
    PORTAL                         WWSBR_EDIT_ATTRIBUTE           PACKAGE BODY
    PORTAL                         WWSBR_FOLDER_PORTLET           PACKAGE BODY
    PORTAL                         WWSBR_USER_PAGES_PORTLET       PACKAGE BODY
    ORASSO                         WWUTL_API_PARSE                PACKAGE BODY
    OWNER                          NAME                           TYPE
    PORTAL                         WWUTL_API_PARSE                PACKAGE BODY
    PORTAL                         WWUTL_EXPORT_IMPORT_LOV        PACKAGE BODY
    ORASSO                         WWUTL_LOV                      PACKAGE BODY
    PORTAL                         WWUTL_LOV                      PACKAGE BODY
    PORTAL                         WWV_CONTEXT                    PACKAGE BODY
    PORTAL                         WWV_CONTEXT_UTIL               PACKAGE BODY
    PORTAL                         WWV_DDL                        PACKAGE BODY
    PORTAL                         WWV_GENERATE_UTL               PACKAGE BODY
    PORTAL                         WWV_GLOBAL                     PACKAGE
    PORTAL                         WWV_MONITOR_DATABASE           PACKAGE BODY
    PORTAL                         WWV_PARSE_AS_SPECIFIC_USER     PACKAGE BODY
    PORTAL                         WWV_PARSE_AS_USER              PACKAGE BODY
    PORTAL                         WWV_SYS_DML                    PACKAGE BODY
    PORTAL                         WWV_SYS_RENDER_HIERARCHY       PACKAGE BODY
    PORTAL                         WWV_THINGSAVE                  PACKAGE BODY
    PORTAL                         WWV_UTIL                       PACKAGE BODY
    PORTAL                         WWV_UTLVALID                   PACKAGE BODY
    38 rows selected.
    SQL>Let me know what you think.
    Thanks again.

  • Error message in excel 2003 : compile error in hidden module could be caused by Adobe Acroate add in

    The error message in excel 2003 : "compile error in hidden module AutoExecNew" could be caused by Adobe Acroate add ins, thats waht microsoft told me.I use windows xp service pack3.I have got reader newest version and photoshop 6.0. With this and also with an older reader version I got the error message when opening excel. what can I do?
    Best regards Ray

    If you have Adobe Reader, you (probably) don't have Adobe Acrobat, a
    commercial ($$) product. 5.0 is a very old release.
    But you can check if the files are there anyway from long ago. See
    http://support.microsoft.com/kb/307410
    Aandi Inston

  • On closing Acrobat Windows detect an error "Data Execution Prevention has closed Adobe Acrobat".

    Hi,
    I developed a plugin which captures Before/After open, close and save events and perform some operation inside these events.
    I tested the plugin in Windows XP and Acrobat 9.0.0 and 10.0.0 and everything works fine. But when in test my plugin on Windows Server 2008 Standard 32 bits, then windows detect an error while closing the acrobat and shows the following message:
    "Data Execution Prevention has closed Adobe Acrobat"
    I am using Acrobat 10.0.0 for testing in Windows Server 2008 operating system. Also, debugging the program shows no error but plugin does not produce the desired result when tested on Windows Server 2008 Standard 32 bits operating system.
    Can anyone please giude me how to resolve this issue??
    Thanks in advance!

    Are you really using 10.0.0?  You've installed no updates to it??
    From: poortip87 <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 6 Feb 2012 21:46:02 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: On closing Acrobat Windows detect an error "Data Execution Prevention has closed Adobe Acrobat".
    On closing Acrobat Windows detect an error "Data Execution Prevention has closed Adobe Acrobat".
    created by poortip87<http://forums.adobe.com/people/poortip87> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4190399#4190399

  • Getting error for classpath setting during compilation

    Hi,
    I tried sampel code of SchematronValidation bpel sample code from oracle site.But while compiling the code,I am getting following error:
    Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "SchematronValdiationProcess" of composite "default/SchematronValidation!1.0"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    Plz help me on this to resolve!!!
    Regards,
    Deb
    Edited by: DevD on Jun 30, 2011 2:40 PM

    Hi Yatan,
    Thanks for your inputs.
    I have added BPM-Workflow class file in project properties.Now SOA-BUILD successful,but while deploying to server I am getting error:
    Error during deployment: Deployment Failed: Error occurred during deployment of component: SchematronValdiationProcess to service engine: implementation.bpel, for composite: SchematronValidation: ORABPEL-01005
    Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "SchematronValdiationProcess" of composite "default/SchematronValidation!1.0*soa_1272dcc8-82cf-4306-b31f-7aacd0be61cb"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    [05:10:15 PM] Check server log for more details.
    [05:10:15 PM] Error deploying archive sca_SchematronValidation_rev1.0.jar to partition "default" on server soa_server1 [10.185.51.136:8001]
    [05:10:15 PM] #### Deployment incomplete. ####
    [05:10:15 PM] Error deploying archive file:/C:/JDeveloper/mywork/GM_POC/SchematronValidation/deploy/sca_SchematronValidation_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    Plese help me on this!
    Regards,
    Deb

  • WS20000050 - Custom rule in step 372 - Error during execution

    I have attached a custom rule in Step 372 of workflow WS20000050
    WS20000050 works fine with standard rule (168)
    Custom rule is tested and simulated and it returns the Person 'P' and User 'US'
    WS20000050 genarates fine with no errors (4 information only)
    Errors after execution in SWIA is
    Error when processing node '0000000372' (ParForEach index 000000)
    Error when creating a component of type 'Step'
    Error when creating a work item
    Agent determination for step '0000000372' failed
    Error in resolution of rule 'AC92000002' for step '0000000372'
    Element OBJID is not available in the container
    next node in error
    Work item 000000426198: Object FLOWITEM method EXECUTE cannot be executed
    Error when processing node '0000000372' (ParForEach index 000000)
    I tried to delete OBJID from the binding for the rule but the same error repeats
    Any help is appreciated

    Element OBJID is not available in the container
    Make proper binding from workflow to rule, the value OBJID is not reaching the rule conatiner.
    Error in resolution of rule 'AC92000002' for step '0000000372'
    Rule is not returning any agent chek that?

  • Error C1001: An internal error has occurred in the compiler.

    Hello,
    I'm trying to a old project (VC6++) on Visual Studio 2013.But it gives me an error i don't know how to solve.I've searched google but can't find any solutions.
    Here is an error:
    Error 1
    error C1001: An internal error has occurred in the compiler.
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\mutex
    46 1
    Shared
    Compiler Output
    1>------ Build started: Project: Shared, Configuration: Release Win32 ------
    1> stdafx.cpp
    1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\mutex(46): fatal error C1001: An internal error has occurred in the compiler.
    1> (compiler file 'msc1.cpp', line 1325)
    1> To work around this problem, try simplifying or changing the program near the locations listed above.
    1> Please choose the Technical Support command on the Visual C++
    1> Help menu, or open the Technical Support help file for more information
    1> INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe'
    1> Please choose the Technical Support command on the Visual C++
    1> Help menu, or open the Technical Support help file for more information
    2>------ Build started: Project: AIServer, Configuration: Release Win32 ------
    2> StdAfx.cpp
    2>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\mutex(46): fatal error C1001: An internal error has occurred in the compiler.
    2> (compiler file 'msc1.cpp', line 1325)
    2> To work around this problem, try simplifying or changing the program near the locations listed above.
    2> Please choose the Technical Support command on the Visual C++
    2> Help menu, or open the Technical Support help file for more information
    2> INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe'
    2> Please choose the Technical Support command on the Visual C++
    2> Help menu, or open the Technical Support help file for more information
    ========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
    I've tried on Visual Studio 2012 successfull but on Visual Studio 2013 gives me that error.
    How can i solve this ?
    Thanks...
    [Sorry About English]
    mbpakalin.net

    One thing that smells a little funny:  VC6 didn't have a mutex header.  Did you add std::mutex stuff as part of your porting process?  If not, it is possible that the project itself has a #include <mutex> that is now resolving to the
    standard library version of mutex, but was resolving to a project file in VC6.

  • I can't open my iPod library in iTunes, the app doesn't show the device at all, no error message, nothing, but windows 8 opens it like it would a flash drive. It has worked for me before just fine and both have the most updated software versions.

    I can't open my iPod library in iTunes, the app doesn't show the device at all, no error message, nothing, but windows 8 opens it like it would a flash drive. It has worked for me before just fine and both have the most updated software versions. HELP PLEASE!

    yeah i plugged in my iphone to my computer and itunes does not even notice that i plugged it in.

  • When I try to update my apps on my MacBook Pro, Ipad, and Ipod it wont allow me. On the computer it says theres and error. (11111) But on the Ipod and Ipad it starts to update and completely stops. What should I do?

    When I try to update my apps on my MacBook Pro, Ipad, and Ipod it wont allow me. On the computer it says theres and error. (11111) But on the Ipod and Ipad it starts to update and completely stops. What should I do?

    Maybe this.
    Fix iPhone Apps Stuck "Waiting" During Installation
    Try update the apps one at a time

  • Just purchased online Adobe Acrobat XI Pro and error message appeared, but payment has been debited from my credit card already

    Hello,
    Just purchased online Adobe Acrobat XI Pro and error message appeared, but payment has been debited from my credit card already and I do not have the software, so paid for nothing.
    I am using a Mac OS X.
    Thanks for your help.
    Ossama

    [discussion moved to Acrobat Installation & Update Issues forum]

  • SXI_CACHE throws error while activating; but error does not exist anymore

    Hi everybody,
    when I try to activate a BPM in sxi_cache. sxi_cache throws an error due to a step that does not exist anymore.
    What can I do?
    Thanks a lot
    Regards Mario

    Hello,
    I am still getting the error . Plz suggest.
    D:\psoft\PT8.52\setup>CBLBLD.BAT C: C:\TEMP
    ASCII Cobol Compilations Proceeding
    Creating Directory C:C:\TEMP
    The filename, directory name, or volume label syntax is incorrect.
    The filename, directory name, or volume label syntax is incorrect.
    ERROR! Could not create compile directory(C:\TEMP)!
    D:\psoft\PT8.52\setup>

  • Error in MB1C but works perfectly in MIGO for movement type 501.

    Hi
    I get an error in MB1C but works perfectly in MIGO for movement type  501
    here is the error Account 353300 requires an assignment to a CO object.
    I know for this if we add the co object in OKB9 it works.
    But my question is - how it works in MIGO transaction but throws an error in MB1C
    Any idea ? has any one faced this kind of an issue ? Please let me know.
    Thanks
    Dkmurthy

    Hi
    Are the entires same in both the transactions? Means did you check 353300  GL was hit when you posted through MIGO?
    Check in FS00 - for GL account 353300 - under bank/interest tab - double click on field status variant -> under Additional account assignments - CO object is ticked as mandatory?
    Thanks

Maybe you are looking for

  • Ipod no longer being recognized by my computer after downloading itune10.2

    My iPod 4 - 64 was syncing and fully functional with iTunes version 10.1. The iTunes application suggested I upgrade to version 10.2. While upgrading my computer to iTunes version 10.2, the iTunes install application crashed. I re-downloaded the inst

  • Java.io.IOException during large file processing on PI 7.1

    Hello Colleagues, for a large file scenario on our PI 7.1 System we have to verify with big file size we are able to process over PI. During handing over the large file (200 MB XML) form the Adapter Frame Work (File Adapter) to the Integration Engine

  • How do I download my Google calendar to my Macbook Pro?

    When I try, it says there isn't a secure connection and then it says Calendar couldn't discover the account settings for the CalDAV server "google.com"

  • Associated objects

    I have looked at the documentation for the KeyAssociatedFilter, KeyAssociator etc but see some limitations with them (or perhaps I have missed something obvious)... In our case we have some classes were the parent object contain keys to a number of c

  • IPhone 5s Home button not working - Can't access Apple support :(

    I got me new Iphone 5s 5 days backa and after 3 days its home button stopped working properly. I tired contacting Apple support. Even though my phone is brand new, when I entered my serial ID its says. "Our records indicate that this product has been