TypeError: Error #1006: when rearranging array of objects

I have an array of objects, which I call in a loop thus:
myObjectArray[index].method()
However, when I splice one object from the array and put it
at the front via unshift, it no longer understands the method call
and spouts a Type Error#1006 :value is not a function:
Looks like a bug to me. Or am I missing something?

Thanks for the quick reply
tried this but got Coercion failed message:
var arrayObj:*;
arrayObj=altArray.splice(altToTop,1);
AlternativeGUI(arrayObj); //coercion failed
var newlength:int=altArray.unshift(arrayObj);
All objects held by altArray are subclasses of AlternativeGUI
However, even simpler to avoid that untyped arrayObj returned
by the splice:
altArray.unshift(altArray[altToTop]);
altArray.splice(altToTop+1,1);
now it works!

Similar Messages

  • More "TypeError: Error #1006: value is not a function." trouble

    var pntClk:int = -1;
    for(var t:int=0;t<tab1PointsArray.length;t++) {
         tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <Problem code i think. Error points to line 117
         trace("Event listener added to " + tab1PointsArray[t].name);
    function tab1PointClicked (event:MouseEvent):void {
         for(var T:int=0;T< tab1PointsArray.length;T++) {
              if (event.currentTarget == tab1PointsArray[T]) {
                   pntClk = T;
                   openInfoTab();
                   trace("Point Clicked: " +  tab1PointsArray[T].name);
    I wrote some previous code that worked and i copy pasted over to this project and it doesn't work.
    The weird part to me is that it still runs the first set of trace statements (there are 8 objects in that array). But, it won't run the second set...
    for(var l:int=0;l<Tab2PointsArray.length;l++) {
         Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
         trace("Event listener added to " + Tab2PointsArray[l].name);
    function tab2PointClicked (event:MouseEvent):void {
         for(var t:int=0;t< Tab2PointsArray.length;t++) {
              if (event.currentTarget ==  Tab2PointsArray[t]) {
                   pntClk = t;
                   openInfoTab();
                   trace("Point Clicked: " +  Tab2PointsArray[t].name);
    if you need more code or info to help me figure this out let me know
    I don't know actionscript that well so bare with

    The output window:
    Event listener added to PointHitch
    Event listener added to PointPTO
    Event listener added to PointSafety
    Event listener added to PointGearBox
    Event listener added to PointBlade
    Event listener added to PointTeeth
    Event listener added to PointGrapple
    TypeError: Error #1006: value is not a function.
    at TractorSawFlash_fla::MainTimeline/frame1()[TractorSawFlash_fla.MainTimeline::frame1:115]
    I think the first set of listeners is added then the error happens and the second set of listeners doesn't get added.
    Here is more code.
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import flash.events.MouseEvent;
    var infoTabIsOpen:Boolean = false;
    //TAB CODE
    var TractorSawTabToggle:Boolean = false;
    var TabButtonArray:Array = new Array(TabTR3200.TR3200BTN, TabTR3200LT.TR3200BTNLT);
    for (var i:int=0; i<TabButtonArray.length; i++)
         TabButtonArray[i].id = i;
         TabButtonArray[i].addEventListener(MouseEvent.CLICK, onClick);
    TabTR3200.TR3200BTN.mouseEnabled = false;
    TabTR3200.TR3200BTN.buttonMode = false;
    function onClick(event:MouseEvent):void{
         if (TractorSawTabToggle == true) {
              TractorSawTabToggle = false;
              swapChildren(this.TabTR3200,this.TabTR3200LT);
              TabTR3200LT.TR3200BTNLT.mouseEnabled = true;
              TabTR3200LT.TR3200BTNLT.buttonMode = true;
              TabTR3200.TR3200BTN.mouseEnabled = false;
              TabTR3200.TR3200BTN.buttonMode = false;
         else {
              TractorSawTabToggle = true;
              swapChildren(this.TabTR3200,this.TabTR3200LT);
              TabTR3200LT.TR3200BTNLT.mouseEnabled = false;
              TabTR3200LT.TR3200BTNLT.buttonMode = false;
              TabTR3200.TR3200BTN.mouseEnabled = true;
              TabTR3200.TR3200BTN.buttonMode = true;
    //END TAB CODE
    //MovieTab
    MovieButton.addEventListener(MouseEvent.CLICK, clickedMainMovie);
    MovieTab.Exit_BTN.addEventListener(MouseEvent.MOUSE_DOWN, outMainMovieTrigger);
    function clickedMainMovie(event:MouseEvent):void {
         var TabMainMovieDown:Tween = new Tween(MovieTab, "y", Strong.easeOut, -600, 0, 1, true);
         var TabMainMovieAlphaIn:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 0, 1, 1, true);
         if (infoTabIsOpen == true) {
              closeInfoTab();
    function outMainMovieTrigger(event:MouseEvent):void {
         outMainMovie();
    function outMainMovie():void {
         trace("Three Sixty MOUSE_OUT");
         var TabMainMovieUp:Tween = new Tween(MovieTab, "y", Strong.easeOut, 0, -600, 1, true);
         var TabMainMovieAlphaOut:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 1, 0, 1, true);
         MovieTab.FLVPlayback.stop();
    //END MovieTab
    //INFO TAB ARRAYS AND FUNCTIONS
    var placeHolder:String = "null";
    var tab1PointsArray:Array = new Array(this.TabTR3200.PointHitch, //0
                                                             this.TabTR3200.PointPTO, //1
                                                             this.TabTR3200.PointSafety, //2
                                                             this.TabTR3200.PointGearBox, //3
                                                             this.TabTR3200.PointBlade, //4
                                                             this.TabTR3200.PointTeeth, //5
                                                             this.TabTR3200.PointGrapple, //6
                                                             placeHolder); //7
    var Tab2PointsArray:Array = new Array(this.TabTR3200LT.PointHitch, //0
                                                              this.TabTR3200LT.PointPTO, //1
                                                              this.TabTR3200LT.PointSafety, //2
                                                              this.TabTR3200LT.PointGearBox, //3
                                                              this.TabTR3200LT.PointBlade, //4
                                                              this.TabTR3200LT.PointTeeth, //5
                                                              placeHolder, //6
                                                              this.TabTR3200LT.PointPushingBar);//7
    var pictureArray:Array = new Array(placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder);
    var textArray:Array = new Array(InfoTab.txtHitch, //0
                                                   InfoTab.txtPTO, //1
                                                   InfoTab.txtSafety, //2
                                                   InfoTab.txtGearbox, //3
                                                   InfoTab.txtBlade, //4
                                                   InfoTab.txtTeeth, //5
                                                   InfoTab.txtGrapple, //6
                                                   InfoTab.txtPushingBar); //7
    //Point Clicked Code
    var pntClk:int = -1;
    for(var t:int=0;t<tab1PointsArray.length;t++) {
         tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <LINE 115 were it says the error is happening
         trace("Event listener added to " + tab1PointsArray[t].name);
    function tab1PointClicked (event:MouseEvent):void {
         for(var T:int=0;T< tab1PointsArray.length;T++) {
              if (event.currentTarget == tab1PointsArray[T]) {
                   pntClk = T;
                   openInfoTab();
                   trace("Point Clicked: " +  tab1PointsArray[T].name);
    for(var l:int=0;l<Tab2PointsArray.length;l++) {
         Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
         trace("Event listener added to " + Tab2PointsArray[l].name);
    function tab2PointClicked (event:MouseEvent):void {
         for(var t:int=0;t< Tab2PointsArray.length;t++) {
              if (event.currentTarget ==  Tab2PointsArray[t]) {
                   pntClk = t;
                   openInfoTab();
                   trace("Point Clicked: " +  Tab2PointsArray[t].name);
    //Info Tab
    var ImageLoader:Loader;
    ImageLoader = new Loader();
    // make text invisible
    function makeTextInvisible():void {
         for (var txt:int=0; txt<textArray.length; txt++) {
              textArray[txt].visible = false;
    InfoTab.Exit_BTN.buttonMode = true;
    InfoTab.Exit_BTN.addEventListener(MouseEvent.CLICK, closeInfoTrigger);
    function closeInfoTrigger(e:MouseEvent):void {
         trace("close feature triggered");
         closeInfoTab();
    //OPEN INFO TAB
    function openInfoTab():void {
         //EnableExitButton
         var EnableExitButton:Timer = new Timer(333, 1);
         InfoTab.mouseEnabled = true;
         InfoTab.mouseChildren = true;
         var tabIn:Tween = new Tween(InfoTab, "y", Regular.easeOut, 600, 60, 10, false);
         var tabAlphaIn:Tween = new Tween(InfoTab, "alpha", Regular.easeOut, 0, 1, 10, false);
         //pictureSetter
         if (pictureArray[pntClk] != "null") {
              ImageLoader.load(new URLRequest(pictureArray[pntClk]));
              this.InfoTab.ImageHolder_MC.addChild(ImageLoader);
         textArray[pntClk].visible = true;
         infoTabIsOpen = true;
    //end open info tab
    //CLOSE INFO TAB
    function closeInfoTab():void{
         //deactivating setters
         InfoTab.mouseEnabled = false;
         InfoTab.mouseChildren = false;
         trace("feature tab deactivated");
         //unload picture
         if (pictureArray[pntClk] != "null") {
              ImageLoader.unload();
              this.InfoTab.ImageHolder_MC.removeChild(ImageLoader);
              ImageLoader = null;
         //tab action variables
         var tabAlphaOut:Tween = new Tween(InfoTab, "alpha", Regular.easeIn, 1, 0, 8, false);
         var tabOut:Tween = new Tween(InfoTab, "y", Regular.easeIn, 60, 600, 8, false);
         infoTabIsOpen = false;
         //exit timer
         var exitTimer:Timer = new Timer(200, 1);
         exitTimer.addEventListener(TimerEvent.TIMER, exitHandler);
         exitTimer.start();
         function exitHandler(event:TimerEvent):void
              trace("exit handler fired");
              makeTextInvisible();
         //end exit timer
         pntClk = -1;
    //end closeFeatureTab

  • TypeError: Error #1006: getInstance is not a function.

    I having some problems implementing Flex for the first time.
    At the moment I'm getting
    TypeError: Error #1006: getInstance is not a function.
    I suspect that I'm missing a library or something in the
    compile but I don't know how to resolve it.
    When I Run the Application in Flex Builder I get an error
    that the file isn't in the project and that some of the features
    are disabled. This would be consistent with an incomplete compile
    but the file is in a project. I even recreated a new project but I
    get the same errors.
    What am I missing?

    More detail on the error:
    TypeError: Error #1006: getInstance is not a function.
    at mx.core::Singleton$/getInstance()
    at mx.styles::StyleManager$cinit()
    at global$init()
    at mx.containers::Form$cinit()
    at global$init()
    at global$init()
    In debug it was stopping here in Singleton.as
    public static function getInstance(name:String):Object
    var clazz:Class = classMap[name];
    return Object(clazz).getInstance();
    I changed the container from mx:Form to mx:Application so now
    it seems to be working, but I'm not sure why mx:Form was giving me
    this issue.

  • TypeError: Error #1006 - Removing MovieClip from the stage

    I have a movie clip that is called to the stage and once the movieclip is finished it calls a function that removes it from the stage. The code works but I get an error message about 4 seconds after the movie clip ends.
    Here’s the error message:
    TypeError: Error #1006: exitWordMicroscopic is not a function.
                    at ASvocabulary_microscopic/frame110()[ASvocabulary_microscopic::frame110:1]
    Here’s the stage code:
    //************************Removes the movieclip from the stage and enables the button.*************************
    function exitWordMicroscopic():void
                    bnt_vocab_microscopic.mouseEnabled = true;
                    removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
                    //Vocabulary buttons
                    if (event.target == bnt_vocab_microscopic)
                                    bnt_vocab_microscopic.mouseEnabled = false;
                                    SoundMixer.stopAll();
                                    addChild(word_Microscopic);
                                    word_Microscopic.x = 47;
                                    word_Microscopic.y = 120;
    Here’s the code inside the movie clip. This is what the error message is referring to:
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();
    What am I doing wrong?

    Here' how the code looks now:
    Objective: To remove the current movieclip while it's playing so that it does not show on the next (or previous) frame.
    Here’s the stage code:
    var word_Microscopic:ASvocabulary_microscopic = new ASvocabulary_microscopic();
    //Removes the movieclip from the stage and enables the button.
    function exitWordMicroscopic():void
        bnt_vocab_microscopic.mouseEnabled = true;
        removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
        //Vocabulary buttons
        if (event.target == bnt_vocab_microscopic)
            SoundMixer.stopAll();
            bnt_vocab_microscopic.mouseEnabled = false;
            addChild(word_Microscopic);
            word_Microscopic.x = 47;
            word_Microscopic.y = 120;
            word_Microscopic.play();
    //This button takes the user to the Main Screen
        if (event.target == bnt_ReadGoHome_1)
           // exitWordMicroscopic(); [If I use this function I get this error ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.]
            SoundMixer.stopAll();
            gotoAndPlay("1","Main");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    //This takes the user to the next frame.
    if (event.target == GoNext_1)
            SoundMixer.stopAll();
            gotoAndPlay("2");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    Here’s the code inside the movie clip.
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();

  • TypeError: Error #1006 (SET_OPEN)

    Hi,
    When creating a segementation model I suddenly (without beeing aware of any changes) get the error message TypeError: Error #1006 (SET_OPEN).
    Have anybody seen this before?
    regards Camilla

    Hi Camilia,
    I am also facing similar type of error. Is it related to Internet Settings. Would you please help me in resolving it.
    Thanks for your help.
    Thanks,
    Rahul

  • PL/SQL: ORA-04052: error occurred when looking up remote object.

    Hi All,
    I'm getting the following error message while executing a PL/SQL Block.
    PL/SQL: ORA-04052: error occurred when looking up remote object UPLDUSER.filestatushistory@FTS
    ORA-00604: error occurred at recursive SQL level 1
    ORA-03106: fatal two-task communication protocol error
    ORA-02063: preceding line from FTSStatement
    declare
    v_coun number;
    begin
    select count(*) into v_coun
    from updluser.filestatushistory@fts;
    end;Back ground of the situation as follows,
    My DataBase version 10.2.0.3 DB Name :DB1
    Table Owner : UPLDUSER
    Table Name : FILESTATUSHISTORY
    I have a report user on the same database and I have grant all on the above table to report user
    Report User : RPT_FTS
    SQL> GRANT ALL ON FILESTATUSHISTORY_V TO RPT_FTS;Now Please find the below database details where I'm getting subjected error.
    Database version : 9.2.0.8
    DB Name : DB2
    User Name : RPT_REPORTS
    I Have create a dblink from RPT_REPORTS to RPT_FTS on DB1 and the dblink works fine. But getting the above error while running it.
    but When I do the same other 10.2.0.3 db , the above PL/SQL block works fine without any problem.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Now the strange about this is that I have Created a new table on DB1 db like below;
    SQL> CREATE TABLE UPLDUSER.ABC AS SELECT * FROM FILESTATUSHISTORY;and retry my code on DB2 (9.2.0.8) after changing the table to ABC and it worked. Now I don't know whats wrong with a original table(FILESTATUSHISTORY).
    To over come the problem and a work-a-round method I create a view on the DB1 (RPT_FTS) like the below
    SQL> CREATE VIEW FILESTATUSHISTORY AS SELECT * FROM UPLDUSER.FILESTATUSHISTORY;and was able to run the PL/SQL block Remotely.
    Just wants To know what whould have been the cause for this .
    Cheers
    Kanchana

    Hi Kanchana,
    Perhaps following link of google search has answer to your query
    ORA-04052. The search result contains some useful articles whose URLs I shan't post in the forums.
    HTH!
    *009*

  • Error occurred when modifying array

    I have recently built a new machine with the stuff listed in my profile. I have trawled these formums but have not found any with the specific problem- given that i have not read every thing written perhaps some one can shed some light onto this problem.
    I have a single Seagate Barracuda 120GB SATA drive that is recognised by the Promise BIOS after you press F6 (you get a "no Array defined" error and F6 to setup array or ESC to continue boot.
    Once in the Bios you are offered (correctly) the performance option and all the seagates parameters are recognised correctly. This is true in option 1 auto and 3 define array.  So you select Ctrl Y to build your array and get
    "Error occurred when modifying array. System is going to Reboot ! press any key to reboot"
    I don't know where to begin on this. the machine has no OS on it as I hoped to install XP onto this drive and have Mandrake on the 4GB.
    Any ideas anyone.
    P.S.
    I have lots of cooling and a 400W PSU. :]

    hi
    400w psu does not say ANYTHING.
    for example an enermax 350w has MUCH more power than a q-tec 550w.
    post amps on the 3.3v 5v and 12v rails on the psu.
    should be written on a label on the psu.
    k7n2 is VERY picky about memory and i dont think your memory is approved nforce2 memory.
    there is a thread about memory at the top of this forum.
    try other memory if you have it.
    could also try http://www.memtest86.org
    its a mem test program.
    try to remove zip.
    have seen alot of people having strange problem due to a zip drive.
    bye

  • ORA-04052: error occurred when looking up remote object SYS.DBMS_UTILITY@..

    Hello,
    I'm trying to import data van 10XE version to new 11XE version over db_link.
    When using the method I run into following error:
    ORA-04052: error occurred when looking up remote object SYS.DBMS_UTILITY@<<db_link_name>>
    This seems to be a bug in 10.2.0.1 fixed in later 10.2 versions, according to the database general forum. "upgrade to newer version"
    But how do i fix this bug in 10XE? Or is the only way around to use the 'old-fashioned' way of exporting data from 10XE to a file, transfer the file and import it in 11XE?
    Best regards,
    Jan.

    No, you cannot apply a patch to XE. Basically the XE internal code is the same as for any other edition. That means is there a bug, you have it in XE,too. To get patches you need a licence for metalink/My Oracle Support. But even you would have one, it wouldn't help you, because Oracle does not provide patches for XE.
    That's the 'price' you have to pay for this free edition.
    Werner

  • ORA-04052: error occurred when looking up remote object SYS.DBMS_SNAPSHOT

    Hello everyone,
    When I tried to create a materialized view with refresh fast mode, I encountered following error message.
    The MV log has been created on my_table like this:
    create materialized view log on my_table
    tablespace data3
    with rowid, sequence
    including new values;
    The database link has been created like this:
    CREATE PUBLIC DATABASE LINK my_db
    CONNECT TO myname
    IDENTIFIED BY mypassword
    USING 'my_db';
    Could anybody please let me know why I can not create MV with refresh fast? What I did wrong?
    Thanks in advance!!!
    MYDB>select count(*) from my_table@my_db;
    COUNT(*)
    5
    Elapsed: 00:00:00.01
    MYDB>create materialized view my_mv
    2 tablespace data4
    3 build immediate
    4 refresh fast with rowid
    5 as
    6 select * from my_table@my_db
    select * from my_table@my_db
    ERROR at line 6:
    ORA-04052: error occurred when looking up remote object SYS.DBMS_SNAPSHOT@my_db
    ORA-00604: error occurred at recursive SQL level 2
    ORA-06544: PL/SQL: internal error, arguments: [55916], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [55916]
    ORA-02063: preceding 2 lines from my_db
    Elapsed: 00:00:00.29
    MYDB>create materialized view my_mv
    2 tablespace data4
    3 build immediate
    4 as
    5 select * from my_table@my_db;
    Materialized view created.
    Elapsed: 00:00:00.20

    No, you cannot apply a patch to XE. Basically the XE internal code is the same as for any other edition. That means is there a bug, you have it in XE,too. To get patches you need a licence for metalink/My Oracle Support. But even you would have one, it wouldn't help you, because Oracle does not provide patches for XE.
    That's the 'price' you have to pay for this free edition.
    Werner

  • Getting "error occurred when looking up remote object" During IMPDP

    Hi
    I am doing a migration from one server to another server. I am on testing period. I am working on this setup
    SALESDB - RHEL 5.2(64bit) and Oracle Database 10.2.0.4
    It has schemas: SALESMGR, TARGET, REPORT and FINANCE
    These schemas will be migration to another database with the same name (we will be shutting down SALESDB 10g after the migration)
    SALESDB - RHEL 5.5(64bit) and Oracle Database 11.2.0.2
    ====================================
    The EXPDP process of the schemas in 10g DB are good and no errors where encountered. But during the IMPDP process of the schemas in 11g DB, I got the follwing erorrs:
    IMP-00017: following statement failed with ORACLE error 4052:
    *"ALTER PACKAGE "BEGINNING_BALANCE_PKG" COMPILE REUSE SETTINGS TIMESTAMP '200"*
    *"9-05-11:09:26:16'"*
    IMP-00003: ORACLE error 4052 encountered
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12154: TNS:could not resolve the connect identifier specified
    IMP-00017: following statement failed with ORACLE error 4052:
    *"ALTER PACKAGE "PKG_FAULT_CODES" COMPILE REUSE SETTINGS TIMESTAMP '2009-05-1"*
    *"0:02:49:13'"*
    IMP-00003: ORACLE error 4052 encountered
    ORA-04052: error occurred when looking up remote object SALESMGR.SALESPRD_DETAIL@SALESPRD_LINK
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12154: TNS:could not resolve the connect identifier specified
    IMP-00017: following statement failed with ORACLE error 4052:
    *"ALTER PACKAGE "PKG_IFACE_SALESPRD_DATA" COMPILE REUSE SETTINGS TIMESTAMP '20"*
    *"11-09-22:10:33:12'"*
    IMP-00003: ORACLE error 4052 encountered
    ORA-04052: error occurred when looking up remote object SALESMGR.SALESMGR@SALESPRD_LINK
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12154: TNS:could not resolve the connect identifier specified
    IMP-00017: following statement failed with ORACLE error 4052:
    *"ALTER PACKAGE "PKG_COPY_TC_RECPT_TO_ITEM_RECPT" COMPILE REUSE SETTINGS TIMESTAM"*
    *"P '2009-05-10:06:07:09'"*
    IMP-00003: ORACLE error 4052 encountered
    ORA-04052: error occurred when looking up remote object SALESMGR.SALESPRD@SALESPRD_LINK
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12154: TNS:could not resolve the connect identifier specified
    IMP-00017: following statement failed with ORACLE error 4052:
    *"ALTER PACKAGE "PKG_SALES_INVOICE_CREATE_XML_TR" COMPILE REUSE SETTINGS TIMESTAM"*
    *"P '2009-05-10:06:07:23'"*
    IMP-00003: ORACLE error 4052 encountered
    ORA-04052: error occurred when looking up remote object SALESMGR.SALESPRD_TR_DETAIL@SALESPRD_LINK
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12154: TNS:could not resolve the connect identifier specified
    IMP-00017: following statement failed with ORACLE error 4052:
    *"ALTER PACKAGE "PKG_SALES_INVOICE_CREATE_XML" COMPILE REUSE SETTINGS TIMESTAMP '"*
    *"2009-05-10:06:03:01'"*
    IMP-00003: ORACLE error 4052 encountered
    ORA-04052: error occurred when looking up remote object SALESMGR.SALESPRD_DETAIL@SALESPRD_LINK
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12154: TNS:could not resolve the connect identifier specified
    IMP-00017: following statement failed with ORACLE error 4052:
    *"ALTER PACKAGE "PKG_PARSE_GRAPHIC" COMPILE REUSE SETTINGS TIMESTAMP '2009-05"*
    *"-10:06:07:23'"*
    IMP-00003: ORACLE error 4052 encountered
    ORA-04052: error occurred when looking up remote object SALESMGR.SALESPRD_DETAIL@SALESPRD_LINK
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12154: TNS:could not resolve the connect identifier specified
    *. importing SALESMGR's objects into SALESMGR*
    *. importing SALESMGR's objects into SALESMGR*
    I have not created the complete TNS entries in the TNSNAMES.ORA file in the new Oracle 11g. We will be updating this on the actual migration process. Is this the root cause of the problem? I am sure that all database links are existing but upon validating it, it says "ORA-02019: connection description for remote database not found."
    Any ideas or feedback on this?
    Thanks!

    Hello,
    Yes, this is the root cause : Oracle can not compile your packages if it can not connect to remote tables.
    You have to create those entries in your tnsnames, but may be you can reference some test databases in your tnsnames instead of the real production databases, to avoid mistakes.
    Regards,
    Sylvie

  • ORA-04052: error occurred when looking up remote object

    Hi, Basically I want to setup Replication between two servers, 'ZEN2K7' & 'DB' (Advanced master-to-master replication, Sync).
    This is what i had done so far.(Both server having ver 10.1.0.2.0)
    At Server 'ZEN2K7'
    CONNECT system/manager@ZEN2K7
    CREATE USER repadmin IDENTIFIED BY repadmin;
    ALTER USER repadmin DEFAULT TABLESPACE POOL_DATA;
    ALTER USER repadmin TEMPORARY TABLESPACE TEMP;
    GRANT connect, resource TO repadmin;
    EXECUTE dbms_repcat_admin.grant_admin_any_schema('repadmin');
    GRANT comment any table TO repadmin;
    GRANT lock any table TO repadmin;
    EXECUTE dbms_defer_sys.register_propagator('repadmin');
    GRANT execute any procedure TO repadmin;
    CREATE PUBLIC DATABASE LINK DB USING 'DB';
    CONNECT repadmin/repadmin@ZEN2K7
    CREATE DATABASE LINK DB CONNECT TO repadmin IDENTIFIED BY repadmin;
    At Server 'DB'
    CONNECT system/manager@DB
    CREATE USER repadmin IDENTIFIED BY repadmin;
    ALTER USER repadmin DEFAULT TABLESPACE POOL_DATA;
    ALTER USER repadmin TEMPORARY TABLESPACE TEMP;
    GRANT connect, resource TO repadmin;
    EXECUTE dbms_repcat_admin.grant_admin_any_schema('repadmin');
    GRANT comment any table TO repadmin;
    GRANT lock any table TO repadmin;
    EXECUTE dbms_defer_sys.register_propagator('repadmin');
    GRANT execute any procedure TO repadmin;
    CREATE PUBLIC DATABASE LINK ZEN2K7 USING 'ZEN2K7';
    CONNECT repadmin/repadmin@DB
    CREATE DATABASE LINK ZEN2K7 CONNECT TO repadmin IDENTIFIED BY repadmin;
    After this, Create master replication group on ZEN2K7
    CONNECT repadmin/repadmin@ZEN2K7
    BEGIN
    DBMS_REPCAT.CREATE_MASTER_REPGROUP(
    gname => '"REPTEST"',
    qualifier => '',
    group_comment => '');
    END;
    Then at 'ZEN2K7', when i executing
    BEGIN
    DBMS_REPCAT.ADD_MASTER_DATABASE(
    gname => '"REPTEST"',
    master => 'DB',
    use_existing_objects => TRUE ,
    copy_rows => TRUE ,
    propagation_mode =>'SYNCHRONOUS');
    END;
    I got following error
    ORA-04052: error occurred when looking up remote object REPADMIN.SYS@DB
    ORA-00604: error occurred at recursive SQL level 2
    ORA-12154: TNS:could not resolve the connect identifier specified
    ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 4262
    ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2156
    ORA-06512: at "SYS.DBMS_REPCAT", line 146
    ORA-06512: at line 2
    I had already execute the 'catrpc.sql' on both server.
    I had already check the connection at 'ZEN2K7' side, means I can connect to 'DB' within SQL* Plus at 'ZEN2K7' side.
    What else need to do???
    Thanks.
    Gurpreet S. Gill

    ORA-12154: TNS:could not resolve the connect identifier specified
    This means that you server is unable to resolve DB alias.
    Check you SQL*Net settings.
    On ZEN2K7 try tnsping db. If tnsping return error that add db alias to tnsnames.ora if you use tnsnames as one of resolving mechanism (check sqlnet.ora for NAMES.DIRECTORY_PATH)

  • ORA-04052: error occurred when looking up remote object REPADMIN.SYS@CEL2.W

    Hi,
    on 10gR2 , on WIN 2003 server :
    C:\>sqlplus repadmin/***@CEL2.WORLD
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Jun 22 09:54:18 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsAnd then :
    CONNECT repadmin/******@CEL1.WORLD
    BEGIN
       DBMS_REPCAT.ADD_MASTER_DATABASE (
          gname => 'REPG',
          master => 'CEL2.WORLD',
          use_existing_objects => TRUE,
          copy_rows => FALSE,
          propagation_mode => 'ASYNCHRONOUS');
    END;
    BEGIN
    ERROR at line 1:
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 2
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 4271
    ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2156
    ORA-06512: at "SYS.DBMS_REPCAT", line 146
    ORA-06512: at line 2Thank for help.

    Thank you. I think it is a problem with dB_LINK.
    SQL> select db_link from dba_db_links;
    DB_LINK
    CEL2.WORLD
    CEL2.WORLD
    SQL> select count(*) from [email protected];
    select count(*) from [email protected]
    ERROR at line 1:
    ORA-12505: TNS:listener does not currently know of SID given in connect
    descriptor
    SQL> select count(*) from SCOTT.EMP@CEL2;
    select count(*) from SCOTT.EMP@CEL2
    ERROR at line 1:
    ORA-02019: connection description for remote database not foundI can not see how to correct it ?
    Thanks.

  • ORA-04052: error occurred when looking up remote object STRMADMIN.DBMS_AQAD

    ORA-04052: error occurred when looking up remote object STRMADMIN.DBMS_AQADM@PROD
    ORA-00604: error occurred at recursive SQL level 4
    ORA-12170: TNS:Connect timeout occurred
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 1087
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 7616
    ORA-06512: at "SYS.DBMS_AQADM", line 631
    ORA-06512: at line 1
    my capture and apply proccess are enable.but the propagation gives the above error
    how could i sole this?

    Compliant to global_name ? Please browse a bit this forum, global name issue arise every 2 days.
    STRMADMIN.DBMS_AQADM@PROD

  • Using papervision in flash builder and getting TypeError: Error #1009: when using object.pitch(5)

    When i use papervision in flash builder and i am doing a test, when i render a sphere using papervision with the following code it renders me the sphere.
    When i add a line sphere.pitch(2);      ||
    sphere.yaw(2);
    sphere.roll(2);
    i get the following error,
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at PvTest/onRenderTick()[D:\Android 3D\PvTest\src\PvTest.as:39]
    Can anyone help me figure out the error
    For additional Info, these are the imports i am doing:
    import org.papervision3d.objects.primitives.Sphere;
    import org.papervision3d.view.BasicView;

    I followed the steps and read some of your comments on the same top topic in another thread. When I put it on the first frame it was okay but the next button on that page had the same problem.  So what I am guessing is that I have to either create a document class or put the actions where the buttons are.  Am I understanding that correctly?  In the other thread in which you helped someone else; there was so comments about document class.  I found a tutorial on it and the way I understand it is that it you can put you actions in an external document.  But you have to include in the event listener the frame in which you want that action to happen.
    Thaks for your help.  And patience.

  • Driver errors reported when trying to start objects

    We have a standard PCI can card, and are developing in the following environment:
    Software written in VC++ Version6,
    running under NT4.0,
    Port configured as 'CAN0',
    using extended arbitration IDs.
    We create one network interface object, and, depending on the test configuration, four CAN response objects.
    The problems are :-
    1) if the network interface object (nio) is configured as 'start on open'= TRUE then the other objects fail to initialise. If the other objects aren't started, the nio works perfectly though.
    2) If the nio is configured not to start on open, the other objects will initialise successfully (obviously not a lot of use though).
    Any attempt to call ncAction trying to start any of the objects will however fail with a status of 0xBFF62002, which is CanErrDriver.
    Below is a stripped down set of events as to how we start our card.
    AttrIdList[0] = NC_ATTR_BAUD_RATE;
    AttrValueList[0] = 125000; //BaudRate;
    AttrIdList[1] = NC_ATTR_START_ON_OPEN;
    if( Response_Enabled == 0 )
    AttrValueList[1] = NC_TRUE;
    NotificationStates = (NC_ST_READ_AVAIL |
    NC_ST_ERROR | NC_ST_WARNING | NC_ST_STOPPED);
    else
    AttrValueList[1] = NC_FALSE;
    // don't look for stopped state else it
    // will interrupt continuously.
    NotificationStates =
    (NC_ST_READ_AVAIL | NC_ST_ERROR |
    NC_ST_WARNING);
    AttrIdList[2] = NC_ATTR_READ_Q_LEN;
    AttrValueList[2] = 50; //500;
    AttrIdList[3] = NC_ATTR_WRITE_Q_LEN;
    AttrValueList[3] = 20;
    AttrIdList[4] = NC_ATTR_CAN_COMP_STD;
    AttrValueList[4] = 0;
    AttrIdList[5] = NC_ATTR_CAN_MASK_STD;
    AttrValueList[5] = 0; // NC_CAN_MASK_STD_DONTCARE;
    AttrIdList[6] = NC_ATTR_CAN_COMP_XTD;
    AttrValueList[6] = 0;
    AttrIdList[7] = NC_ATTR_CAN_MASK_XTD;
    AttrValueList[7] = 0; // NC_CAN_MASK_XTD_DONTCARE;
    // Configure the CAN Network Interface Object
    Status = ncConfig(szCanObject, 8, AttrIdList,
    AttrValueList);
    CheckStatus(Status, "ncConfig");
    CCanObject* pCanObject = new CCanObject;
    pCanObject->m_phObject = new (NCTYPE_OBJH);
    ASSERT (pCanObject->m_phObject != NULL);
    Status = ncOpenObject(szCanObject,
    pCanObject->m_phObject);
    CheckStatus(Status, "ncOpenObject");
    if (Status == 0) // object was
    // successfully created
    // add the CAN object to the list,
    // indexed by name
    m_CanObjectMap.SetAt(strObjectName,
    pCanObject);
    // create a string to identify the Notification
    pCanObject->m_pszObjectName = new char[strObjectName.GetLength() + 1];
    strcpy(pCanObject->m_pszObjectName, strObjectName);
    // Create the notification used to store incoming frames.
    // CanCallback will be called whenever a frame is available,
    // a background error occurs, or no frame is received for 30 seconds.
    // We pass a pointer to the global Queue data structure to the
    // callback's RefData parameter.
    Status = ncCreateNotification(
    *(pCanObject->m_phObject),
    NotificationStates,
    NC_DURATION_INFINITE, //CAN_TIMEOUT
    pCanObject->m_pszObjectName,
    CanCallback); // name of callback fn
    // check callback was installed
    CheckStatus(Status, "ncCreateNotification");
    at this point we kick off a timer for 200 msecs, and then carry on when the timer expires.
    This allows the card to get itself settled.
    This consists of checking configuration, and doing the following code for each of the response objects.
    The things that change are the object names, the arbitration IDs, and the response data.
    AttrIdList[0] = NC_ATTR_COMM_TYPE;
    AttrValueList[0] = NC_CAN_COMM_TX_RESP_ONLY;
    //failed bff62002 if objects set to 'start on open'
    // All of the following are here as a result of testing.
    // The setting above is the one that should eventually be used.
    // Finally resolved by not using start-on-open above.
    // AttrValueList[0] = NC_CAN_COMM_RX_UNSOL; //worked
    // AttrValueList[0] = NC_CAN_COMM_RX_PERIODIC; //failed bff62005
    // AttrValueList[0] = NC_CAN_COMM_RX_BY_CALL; //worked
    /// AttrValueList[0] = NC_CAN_COMM_TX_PERIODIC; //worked - crashed with unhandled exception on closure though
    // AttrValueList[0] = NC_CAN_COMM_TX_BY_CALL; //worked
    // AttrValueList[0] = NC_CAN_COMM_TX_WAVEFORM; //worked - crashed with unhandled exception on closure though
    // Specify watchdog timer period
    AttrIdList[1] = NC_ATTR_BKD_PERIOD;
    AttrValueList[1] = 1000;
    // respond with DLC
    AttrIdList[2] = NC_ATTR_BKD_READ_SIZE;
    AttrValueList[2] = 0;
    AttrIdList[3] = NC_ATTR_BKD_WRITE_SIZE;
    AttrValueList[3] = DataLengthCode; // normally 3
    AttrIdList[4] = NC_ATTR_CAN_TX_RESPONSE;
    AttrValueList[4] = NC_TRUE;
    /* This attribute is ignored for CAN Objects which transmit data. */
    AttrIdList[5] = NC_ATTR_RX_CHANGES_ONLY;
    AttrValueList[5] = NC_TRUE;
    // maximum number of frames to hold in read queue
    AttrIdList[6] = NC_ATTR_READ_Q_LEN;
    AttrValueList[6] = 0;
    // The write queue length is set to zero (queuing disabled).
    // This means that for each request, the most recent data written
    // using ncWrite will be transmitted in a Data Frame.
    AttrIdList[7] = NC_ATTR_WRITE_Q_LEN;
    AttrValueList[7] = 0;
    // build the CAN object name
    sprintf(szCanName, "%s::XTD0x%08lx", CanBus, ArbitrationId );
    //*arbitration IDs normally used are
    //*0x19008000,
    //*0x19008001,
    //*0x19008002
    // configure the CAN object
    Status = ncConfig(szCanName, ATTR_LIST_LEN, AttrIdList, AttrValueList);
    // check for errors
    CheckStatus(Status, szTemp);
    // Open the transmitting CAN Object. The object starts up, but it
    // will wait for the first call to ncWrite before it transmits a Data
    // Frame.
    CCanObject* pCanObject = new CCanObject;
    pCanObject->m_phObject = new (NCTYPE_OBJH);
    ASSERT (pCanObject->m_phObject != NULL);
    Status = ncOpenObject(szCanName,
    pCanObject->m_phObject);
    CheckStatus(Status, szTemp);
    if (Status == 0) // CAN object created successfully
    // Store CAN bus information into object
    pCanObject->m_strCanBusName = CanBus;
    pCanObject->m_strCanName.Format("%s", szCanName);
    pCanObject->m_ArbitrationID = ArbitrationId;
    // add the CAN object to the list, indexed by name
    // put data into output buffer
    for (int i = 0; i < DataLengthCode; i++)
    Transmit.Data[i] = DefaultData[i];
    // setup CAN object output buffer
    Status= ncWrite(*(pCanObject->m_phObject),
    sizeof(Transmit), &Transmit);
    CheckStatus(Status, "ncWrite");
    // create a string to identify the Notification
    pCanObject->m_pszObjectName = new char
    [strObjectName.GetLength() + 1];
    strcpy(pCanObject->m_pszObjectName,
    strObjectName);
    Status = ncCreateNotification(
    *(pCanObject->m_phObject),
    NC_ST_WRITE_SUCCESS,
    NC_DURATION_INFINITE,
    pCanObject->m_pszObjectName,
    NotificationCallback);
    // check callback was installed
    CheckStatus(Status, "ncCreateNotification");
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    So, Any ideas what we're doing wrong ??
    The cards were new in December 2001.
    Software driver version installed is Version 1.5.1
    It makes little difference which card we use, as we have many cards at this site in various pieces of test equipment, and I have tried at least 6 !
    Things are beginning to get a little depserate here =:-/
    Regards,
    John Webster.

    Many thanks for the prompt reponse Diego.
    A couple of comments on what you have written above.
    The Response objects are only used for the 4 messages that need responses. All other messages are handled (received) by the Network Interface Object. Is it still therefore true to say that I should be using NC_CAN_ARBID_NONE ?
    I think the answer will be yes, but want to confirm.
    Am I correct to say that from your description, the only change was as belows :-
    AttrValueList[2] = 0;
    AttrValueList[3] = 0;
    AttrValueList[6] = NC_CAN_ARBID_NONE;
    Should I also be setting NC_ATTR_CAN_COMP_STD to NC_CAN_ARBID_NONE too ?
    Many thanks for your help. This one has been causing us a lot of problems for a long time. I have changed many of the pa
    rameters, but must admit I don't think I tried that one before.
    Just off now to try this, see if it makes our code work !
    Regards,
    John.

Maybe you are looking for

  • I tried downloading v 4.0, but my operating system doesn't support it; now it has replaced my 3.6, and I can't find where to download my old version back

    I saw that the new version of firefox had come out, and I was prompted to download it. Version 4.0 asked me if it could replace the old version and I said yes. When I discovered my operating system would not support v 4.0, I was unable to find where

  • Drag and Drop Learning Interaction without Overlapping

    I would like to be able to drag and drop into a column without dragged items overlapping for a quiz question. I don't know Action Script and am using CS3. What do I need to do to get this to work. Component Inspector states Drag1 = Target 1, etc. I n

  • Multiple size of db_block

    using oracle 10g on solaris. I have a query with lots of join and some table scan with lob object. when i execute that with 8K block size..then after executing 3 times ,I got physical read 0. but I moved them in a 16K block size.and physical read is

  • Replacing detail field in GL report

    Hi All, I am still learning SAP B1 and currently I am facing a problem relates to general ledger report. is it possible to replace detail field in the report with customer name ? I really need it since it wastes time for user to browse BP. TIA Rgds,

  • Write file with   RandomAccessFile.

    I am trying to read one file and writting in same file be using Random access file . File is properties file having Key = Value Pair . where values are empty When i try to write in file File Pointer is at end of line . Instead of writing to same line