Get the error when importing topology, 11.3 to 11.5 ODI scenarios

Hello

Recently, I had installed ODI 11.1.5.
Now, I'm importing topology and scenarios exported from my former ODI 11.1.3 via script shell on a Linux machine.
There are about 25 topology and about 40 scenarios. When I run the script on these some topology and scenarios imported and the rest I get following error.
Imported files are not persisted. Sometimes even any resulting file and when I run the next time the same file gives an error.

oracle.odi.oditools.OdiToolException: this ODI tool must be connected to the repository but failed to connect to repository
at oracle.odi.oditools.OdiAbstractToolRunner.executeCoreTool(OdiAbstractToolRunner.java:133)
at oracle.odi.oditools.OdiAbstractToolRunner.executeTool(OdiAbstractToolRunner.java:47)
at oracle.odi.ToolRunner.main(ToolRunner.java:75)
Caused by: oracle.odi.core.config.MasterRepositoryResourceFailureException: org.springframework.jdbc.CannotGetJdbcConnectionException: could not make connection JDBC; nested exception is oracle.odi.jdbc.datasource.ConnectionTimeoutException: a timeout occurred while connecting to the database
at oracle.odi.core.repository.Repository.getMasterRepository(Repository.java:79)
at oracle.odi.core.OdiInstance.createMasterRepository(OdiInstance.java:491)
to oracle.odi.core.OdiInstance. < init > (OdiInstance.java:544)
at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:521)
at oracle.odi.ToolRunner.initInstance(ToolRunner.java:36)
at oracle.odi.oditools.OdiAbstractToolRunner.executeCoreTool(OdiAbstractToolRunner.java:128)
... 2 more
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: could not make connection JDBC; nested exception is oracle.odi.jdbc.datasource.ConnectionTimeoutException: a timeout occurred while connecting to the database
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:524)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:588)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:613)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:645)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:111)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:121)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:136)
to oracle.odi.core.repository.support.RepositoryUtils$ RepositoryInfoSource.loadRepositoryInfo (RepositoryUtils.java:180)
at oracle.odi.core.repository.support.RepositoryUtils.loadMasterRepositoryInfo(RepositoryUtils.java:374)
at oracle.odi.core.repository.Repository.getMasterRepository(Repository.java:77)
at oracle.odi.core.OdiInstance.createMasterRepository(OdiInstance.java:492)
... 6 more
Caused by: oracle.odi.jdbc.datasource.ConnectionTimeoutException: a timeout occurred while connecting to the database
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:117)
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:62)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:524)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:588)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:613)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:645)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:111)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:121)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:136)
to oracle.odi.core.repository.support.RepositoryUtils$ RepositoryInfoSource.loadRepositoryInfo (RepositoryUtils.java:180)
at oracle.odi.core.repository.support.RepositoryUtils.loadMasterRepositoryInfo(RepositoryUtils.java:375)
... 8 more


Please guide me in this regard.

Ritika you should go for
C:\Users\Current_User_name\AppData\Roaming\odi\oracledi

In the oracledi folder, you will get the userpref.xml

Thank you.

Tags: Business Intelligence

Similar Questions

  • Get the error when you try to manually create a restore point in Vista 32 - Bit - System - Protection of the system control panel. Got the unable to create the specified task

    Get the error when you try to manually create a restore point in Vista 32 - Bit - System - Protection of the system control panel.
    Got the unable to create the specified task

    Hello

    What is the exact error message received when the problem occurs?

    Methood 1:

    Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps in the following link:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833 

    Method 2:

    You can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    I suggest to put the computer in a clean boot state, and check if the problem persists, see the link:
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: See step 7; Reset the computer to start as usual after troubleshooting is performed.

    Method 3:

    You can temporarily disable the security software and check if the problem occurs. Check out the following link to do the same thing:

    http://Windows.Microsoft.com/en-GB/Windows-Vista/disable-antivirus-software

    Warning: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    I hope this helps! Let us know if you need more assistance.

  • Get the error when using the UTL_SMTP function in Oracle 11 g

    Hello

    I get the error when executing a trigger e-mail code in oracle 11 g:

    I have following trigger on the temporary table:

    CREATE OR REPLACE TRIGGER temp_temp_message AFTER

    INSERT OR UPDATE ON temp_message FOR EACH LINE

    declare

    Conn UTL_SMTP . CONNECTION ;

    msg VARCHAR2 (2000);

    Start

    Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

    UTL_SMTP . HELO ( conn, '10.250.1.149');

    UTL_SMTP . mail ( conn, '[email protected]');

    UTL_SMTP . RCPT () conn ' [email protected]');

    msg := "Hello, this is test mail." ;

    UTL_SMTP .data( conn, msg);

    UTL_SMTP . quit smoking ( conn );

    exception when others then

    dbms_output.put_line (sqlerrm);

    raise_application_error (-20000,

    "Failed to send because of the following error messages: ' " || sqlerrm);

    end;

    Insert in temp_message values ()1

    );

    When I insert the record in the table there are given the following error.

    ORA-20000: failed to send messages because of the following error: ORA-24247: access denied by access control (ACL) of network list

    ORA-06512: at the 'APPS '. TEMP_TEMP_MESSAGE', line 14

    ORA-04088: error during execution of trigger ' APPS. TEMP_TEMP_MESSAGE'

    But if I run the next plsql through sqlplus send mail successfully:

    declare

    Conn UTL_SMTP . CONNECTION ;

    MSG VARCHAR2 (2000);

    Start

    Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

    UTL_SMTP . HELO ( conn, '10.250.1.149');

    UTL_SMTP . mail ( conn, '[email protected]');

    UTL_SMTP . RCPT () conn ' [email protected]');

    msg := "Hello, this is test mail." ;

    UTL_SMTP .data( conn, msg);

    UTL_SMTP . quit smoking ( conn );

    exception when others then

    dbms_output.put_line (sqlerrm);

    raise_application_error (-20000,

    "Failed to send because of the following error messages: ' " || sqlerrm);

    end;

    Thanks in advance.

    Yoann

    To resolve ORA-24247 you must:

    (1) create an acl (if it is not already created)

    (2) add the user privileges using the resources of the network

    (3) to use the ACL to a specific address

    This might be useful

    How to fix an ORA-24247: access denied by access control (ACL) of network list | DB tips

  • Get the error when update: Office creative cloud could not be updated. (error code: 2)

    Get the error when update: Office creative cloud could not be updated. (error code: 2).

    I'm on a McBook Pro, OSX 10.9.5 retina.

    How to fix error Code: 2?

    Always the same?

    Follow the procedure below:

    Please follow the steps below:

    1)

    Click on the Finder and search options listed next to icon located Apple in the upper left of the screen and click on the "Go" menu button and select 'utilities '.

    (Applications > Utiliites)

    Look for a CC Adobe and Adobe Application Manager folder under utility window and trash both folders.

    2)

    Click on the link below and download & run the cleaning of Adobe tool:

    Select the option "Adobe Application Manager for Mac OS X 10.6" and then click on "Clean up selected."

    https://helpx.Adobe.com/content/help/en/Creative-Suite/KB/CS5-cleaner-tool-installation-PR oblems/_jcr_content/hand-Sea/accordion_container_1/accordion-nominal/accordion-point-1/agreement I on-item-par/procedure/proc_par/step_3/step_par/download/file.res/AdobeCreativeCloudCleane r Tool.zip

    3) click on the link below and download file Creative Cloud install and use the same to install the creative Cloud Desktop application.

    https://creative.Adobe.com/products/creative-cloud

  • Get the error when switching from table


    Hi all

    I'm moving my procedure table values but no luck. your help in this regard will be highly appreciated. Thanks in advance.

    I created the following procedure:

    -------------

    CREATE OR REPLACE PROCEDURE send_coll

    IS

    TYPE c_dept_no IS TABLE OF THE dept.deptno%TYPE;

    v_dept_no c_dept_no: = c_dept_no();

    BEGIN

    SELECT DeptNo

    TO COLLECT FEES IN BULK

    IN v_dept_no

    EMP;

    END;

    ------------------------

    Now, I want to spend all the values of v_dept_no to one of my name of the procedure as rec_coll that receives the value of v_dept_no and print the value against v_dept_no. for example:

    When v_dept_no = 10 then print all empno against deptno 10 and so on...

    I think I have to do something like below but no luck so far.

    CREATE OR REPLACE PROCEDURE send_coll

    IS

    TYPE c_dept_no IS TABLE OF THE dept.deptno%TYPE;

    v_dept_no c_dept_no: = c_dept_no();

    BEGIN

    SELECT DeptNo

    TO COLLECT FEES IN BULK

    IN v_dept_no

    EMP;

    I'm looping 1.v_dept_no

    rec_coll (v_dept_no (i)); - call the rec_coll procedure and pass in the value

    end loop;

    end;

    ---------------

    create another procedure that will receive the value for v_dept_no

    ------------

    CREATE OR REPLACE PROCEDURE rec_coll (v_emp_no c_dept_no) - create collection with c_dept_no type

    IS

    BEGIN

    I'm looping 1.v_emp_no.count

    dbms_output.put_line (v_emp_no (i));

    END loop;

    END;

    -----------

    I get the error message to create these procedures and if someone help me so I really appreciate it. Thank you

    Concerning

    Shu

    I would just write a single SELECT statement joining EMP and Dept. If this exercise is University (collections of learning PL/SQL types), then you can do something like that.

    I used a PACKET to this implementation. Again, this is not how things are done in the real world.

    SQL > create or replace package coll_pkg
    2 as
    3 type dept_no_tbl is table of the dept.deptno%type;
    4
    5 procedure rec_coll (p_dept_no in dept_no_tbl);
    6 procedure send_coll;
    7 end;
    8.

    Package created.

    SQL > show err
    No errors.

    SQL > create or replace package body coll_pkg
    2 as
    3 procedure rec_coll (p_dept_no in dept_no_tbl)
    4 is
    5. start
    6 because me in 1.p_dept_no.count
    7 loop
    8 d in)
    9 select empno, ename
    10 of PEM
    11 where deptno = p_dept_no (i)
    12                 )
    loop 13
    14 dbms_output.put_line (p_dept_no (i) |) ':' || j.EmpNo | ':' || j.ename);
    15 end loop;
    16 end loop;
    end 17;
    18
    procedure send_coll 19
    20 is
    21 l_dept_no dept_no_tbl: = dept_no_tbl();
    start at 22
    23 deptno select bulk collect into l_dept_no
    24 of the Department;
    25
    26 rec_coll (l_dept_no);
    27 end;
    28 end;
    29.

    Package body created.

    SQL > show err
    No errors.

    SQL > set serveroutput on
    SQL > exec coll_pkg.send_coll
    10:7782:CLARK
    10:7839:KING
    20:7369:SMITH
    20:7566:JONES
    20:7788:SCOTT
    20:7876:ADAMS
    30:7499:ALLEN
    30:7521:WARD
    30:7654:MARTIN
    30:7698:BLAKE
    30:7844:TURNER

    PL/SQL procedure successfully completed.

    SQL >

  • get the error when apex.war is deployed on several managed server

    Hi all

    I sent apex.war on several managed server on server 11g webloigc

    his work on a single server managed not on others and I m having 3 servers managed as it

    http://ipaddress:7003

    http://ipaddress:7004

    http://ipaddress:7005

    and I m having infront of weblogic server that the server apache web http://IPAddress:80 / app_name

    I m getting this error when I'm trying to access the application of apex

    The environment can be locked to a single Editor access. ENV_LOCKED: The je.lck file could not be locked. Environment is not valid and must be closed.


    Please guide me how to configure it on several WLS managed server with the server web apache.


    Thanks and greetings

    Shadab akram khan

    solved by myself

  • get the error when starting weblogic server in jdeveloper

    get an error when you start weblogic server in jdeveloper

    The NEWSPAPER (its sequel shows):

    < 25 July 2013 19:19:15 IST > < opinion > < WebLogicServer > < BEA-000331 > < started WebLogic Admin Server "DefaultServer" domain "DefaultDomain" running in development Mode >

    < 25 July 2013 19:19:15 IST > < opinion > < WebLogicServer > < BEA-000365 > < Server State has changed in the RACE >

    < 25 July 2013 19:19:15 IST > < opinion > < WebLogicServer > < BEA-000360 > < server started operation >

    The user ' directors [weblogic, directors] =' the role of the administration. All jobs by administrators must go through an Administration Port.

    Authentication failure connecting to the IntegratedWebLogicServer application server. Please check the settings.

    Cannot complete the commissioning of the IntegratedWebLogicServer application server.

    [IntegratedWebLogicServer Instance server stops.  All running applications will be terminated and canceled.]

    [End of forcing of IntegratedWebLogicServer]

    Taskkill /F/PID 1620

    Process is complete.

    PLs help me

    User, please tell us your jdev version!

    Somehow your credentials are corrupted. Two possible solution:

    (1) open your folder, system11.1.1.xxxx open the DefaultDomain\servers\DefaultServer\security folder and edit the boot.properties file. Delete the part '(AES)... ". «"after the username and password and write the new example of username = weblogic", password = "Welcome1" Save the file and try to restart the integrated server. Once the server starts the entries are encoded again.

    (2) If 1) doesn't work, remove all of the DefaultDomain file and create a new instance of WLS in jdev.

    Timo

  • Get the error when saving files, afterSave '_afterSave.htm' is not defined

    Recently I updated my Windows Pro 8.1 for Windows 10 operating system, and then I started to work, using Dreamweaver, but all save, example CRL + S I get the error above, anyone else who has this problem and managed?

    Have a look here http://www.dmxzone.com/forum/topic/32899/

  • Get the error when you attempt to cancel the shipment of Release 11i


    Hi all

    I get the error while I am trying to cancel the amount open against relase expedition with multiple (4) below the distribution lines.

    Send # 2 # 3 quantity invoiced greater than the quantity shipped 2205 88181 Distribution

    Scenario-

    For shipment of release # 2 -

    Quantity ordered - 8820

    Due Qty-2

    Received Qty - 8818

    Qty. to beak - 8818

    Press release # 2 is to have 4 lines of distributions. Against distribution, line 1, 2 and 3 of the delivered quantity is 2205 while distribution on line 4, deilvered qty is 2203.

    But the quantity invoiced is 8818, only line 3 distibution and against the other lineages invoiced quantity is 0.

    Please let me know what to do now in order to cancel (the relase open expedition 2) amount in this case.

    Good reply as soon as POSSIBLE.

    Hi all

    It is not possible ancel relase shipping open quantity (2) in this case in the support environment.

    It is better for finally closed the expeditions of this release.

    But it is worth noting that finally close or cancel actions are intended to prevent additional changes to the purchase order. This includes invoice or receipt.

    This cannot be undone.

    Kind regards

    Piyush

  • Get the error when running rcu.bat

    Hi all

    After a successful installation on ODI 12 c.

    I am trying to run the rcu.bat but I get the error below.

    "Cannot find the javaw.exe.

    just me to get rid of this error.

    Thanks in advance

    Kind regards

    Fabien Manirao

    HI Vivek,

    JAVA_HOME is a regular path whenever we install JDK in our machine and if it does not support other tools.

    ODI_JAVA_HOME we define as the JDK path even as ODI motor needed Java and backgrond processes for studio ODI

    Kind regards

    Phanikanth

  • Get the error when the wsdl

    Hello

    I installed WCC 11.1.1.6. I downloaded the WSDL content WebCenter for CheckIn. While hitting the WSDL by SOAPUi, I get the error "the request requires user authentication. It MUST contain a header field WWW-Authenticate (section 14.46) containing a fault that is applicable to the requested resource. The client MAY repeat the request with a suitable authorization (section 14.8) header field. If the application already includes identification of the authorization information, then the 401 response indicates that authorization was refused for those credentials. If the 401 response contains the same challenge as the previous answer, and that user agent has already attempted at least once authentication, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include diagnostic information relevant. HTTP access authentication is explained in article 11 ".

    Any help is appreciated.

    Thank you.

    Hello

    Open SOAP UI - projects - - name of WSDL - demand.

    Highlight and select request - down left - ask properties see - here, username / password will be displayed.

    I hope this helps.

    Thank you
    Srinath

  • Get the error when loading data into the base cube

    Hi all

    I get the error by loading the file of hollow data to the database below.
    Please take suggest me...

    I use ESSBASE 9.3.1.3.


    Error:

    Basic charge database
    The Xchgrate database management
    Load the database Interntl
    Sample application loaded - connection established
    Start the application [example] with the process id [1688]
    Empty invalid character in name (E:\My personal Data\Test\222.txt) based on the ESSAPI EssUpdateFile
    Unexpected error Essbase 1030010

    Empty invalid character in name (E:\My personal Data\Test\222.txt) based on the ESSAPI EssUpdateFile

    Essbase has problems with spaces (white space characters) the path names (my personal data)

    Rename your path or move the data file to a location that has no characters/spaces in the path name.

  • Get the error when inserting

    I get an "invalid Character" error when I m doing the insert operation foll: -.

    insert into rp_rpt_sql
    Select '1', '6000100', ' 1 ', ' 1',' insert into rn_rpt_data (dt, rpt_id, rpt_row_id, rpt_col_id, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10)
    Select "#as_on_dt #", 6000100, 1, 1, sr_no rownum, v.*
    Of
    (
    Select e.IECD, (e.IMPORTER_NAME |') '|| e.IMPORTER_ADDRESS), (e.IMP_LIC_NO |') '|| e.IMP_LIC_DT), e.IMP_ITEMS, e.IMP_REMIT_DT, e.IMP_REMIT_AMT_CCY_ID, e.IMP_REMIT_AMT_CCY, e.IMP_REMIT_AMT_RS, e.REM
    of e rm_bef
    where e.as_on_dt = ' #as_on_dt # '.
    and e.bef_default_id = '1'
    and e.cust_type = '2'
    ) v ',' select rownum "Sr_No", (IMPORTER_NAME + IMPORTER_ADDRESS) "Name and address of the importer", (IMP_LIC_NO + IMP_LIC_DT) 'no. and the date of any import licenses,"IMP_ITEMS 'Brief Description of goods', IMP_REMIT_DT 'Date of reimittances', IMP_REMIT_AMT_CCY_ID 'Currency', 'Amount' IMP_REMIT_AMT_CCY, IMP_REMIT_AMT_RS 'Rupee equivalent', rem"remarks ".
    Of
    (
    Select e.IECD, (e.IMPORTER_NAME |') '|| e.IMPORTER_ADDRESS), (e.IMP_LIC_NO |') '|| e.IMP_LIC_DT), e.IMP_ITEMS, e.IMP_REMIT_DT, e.IMP_REMIT_AMT_CCY_ID, e.IMP_REMIT_AMT_CCY, e.IMP_REMIT_AMT_RS, e.REM
    of e rm_bef
    where e.as_on_dt = ' #as_on_dt # '.
    and e.bef_default_id = '1'
    and e.cust_type = '2'
    )' double where does not exist (select 1 from rp_rpt_sql where rpt_id = 6000100);

    Kindly help!

    No no not a clue on what you're trying to achieve I just used for the two sqls q rating because they represent for sure an invalid string (single "in literal)

    insert into rp_rpt_sql
    select '1',
           '6000100',
           '1',
           '1',
           q'[insert into rn_rpt_data (dt,rpt_id,rpt_row_id,rpt_col_id,col1,col2,col3,col4,col5,col6,col7,col8,col9,col10)
              select '##as_on_dt##',6000100,1,1,rownum sr_no,v.*
                from (select e.IECD,
                             (e.IMPORTER_NAME||' '||e.IMPORTER_ADDRESS),
                             (e.IMP_LIC_NO||' '||e.IMP_LIC_DT),
                             e.IMP_ITEMS,
                             e.IMP_REMIT_DT,
                             e.IMP_REMIT_AMT_CCY_ID,
                             e.IMP_REMIT_AMT_CCY,
                             e.IMP_REMIT_AMT_RS, e.REM
                        from rm_bef e
                       where e.as_on_dt = '##as_on_dt##'
                         and e.bef_default_id = '1'
                         and e.cust_type = '2'
                     ) v
           ]',
           q'[select rownum "Sr_No",
                     (IMPORTER_NAME+IMPORTER_ADDRESS) "Name and address of the importer",
                     (IMP_LIC_NO+IMP_LIC_DT) "No. and date of import licenses if any",
                     IMP_ITEMS "Brief Description of goods",
                     IMP_REMIT_DT "Date of reimittances",
                     IMP_REMIT_AMT_CCY_ID "Currency",
                     IMP_REMIT_AMT_CCY "Amount",
                     IMP_REMIT_AMT_RS "Rupee Equivalent",
                     rem "Remarks"
                from (select e.IECD,
                             (e.IMPORTER_NAME||' '||e.IMPORTER_ADDRESS),
                             (e.IMP_LIC_NO||' '||e.IMP_LIC_DT),
                             e.IMP_ITEMS,
                             e.IMP_REMIT_DT,
                             e.IMP_REMIT_AMT_CCY_ID,
                             e.IMP_REMIT_AMT_CCY,
                             e.IMP_REMIT_AMT_RS,
                             e.REM
                        from rm_bef e
                       where e.as_on_dt = '##as_on_dt##'
                         and e.bef_default_id = '1'
                         and e.cust_type = '2'
                     )
           ]'
      from dual
     where not exists (select 1
                         from rp_rpt_sql
                        where rpt_id = 6000100
                      )
    

    Concerning

    Etbin

  • Get the error when using remove child

    Hi try to use remove the child I get the following error in the output panel

    Hide videos and learn the buttons
    video removed
    ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at DSE_MAIN_dizzy3_fla::MainTimeline/removeMedia()
    at DSE_MAIN_dizzy3_fla::MainTimeline/setNewMedia()
    at DSE_MAIN_dizzy3_fla::MainTimeline/onIntroClick()

    I think that the function that generated the error is called removeMedia()

    This function is called from another function that is called by a buttonpress

    function removeMedia() {}
    If (myVideo! = null) {//Check that a video is on the scene
    myVideo.stop (); / / stop the video so don't continue to play sound
    this.removeChild (myVideo); / / deletion of the video being step
    trace ("video deleted");
    }
    If (myLearn! = null) {//Check that an element of learning is on stage
    removeChild (myLearn); / / Remove swf of the stadium's current learning
    trace ("learning removed swf");
    }
    }

    I tried to parent.removeChild (myVideo);

    and parent.removeChild (myVideo);

    but I got the same error

    Don't know how to fix it or why? its probably something simple I'm missing, any help would be appreciated

    Heres the code in its entirety if you need


    / / Code witten by [email protected]

    Stop(); / / Stop to this framework

    Add the Classes required for the application-
    import fl.containers.UILoader;// import uiLoader class to display the elements of learning
    import flash.display.LoaderInfo;// import (required to load flash Vars) class loaderInfo
    import import the FLVPlayback class fl.video.*;// (required for playback of flv)
    FlashVars are passed to this application since the html/php page
    myFolder is the name of the FlashVar and contains the path to the flv file
    and learning of the swf file


    Configure the application variables-
    var mySection:String; / / define a variable to hold the current section, we
    MySection = "intro"; / / because it is the first picture on the variable intro MySection
    var myFlv:String; / / define a variable to hold the name of the current flv to play
    myFlv = "loaded dse_introvideo.flv";// like this just to put the variable myFlv for intro.flv.
    var mySwf:String; / / define a variable to hold the name of the element of swf of learning to play
    no need to name mySwf yet as we are in the intro of the article
    var mySecType:String; / / set a variable to contain the type of section 'video' or 'learning '.
    mySecType = 'video '; / / We start playing the videos in order to define us the type of section to the video

    // VIDEO STUFF --------------------------------------------------------------------
    var myVideo:FLVPlayback = new FLVPlayback(); / / create a new FLVPlayback object to contain the video
    myVideo.width = 544;             Set the width of the video
    myVideo.height = 304;           adjust the height of the video
    myVideo.x = 200;                  set the horizontal position of the video
    myVideo.y = 88;                    set the vertical position of the video
    set the skin to control videos
    We read the variable called myFolder that is passed to us from the web page
    my file contains path information to the customers on the Web site directory
    If (this.loaderInfo.parameters.myFolder! = undefined) {/ / check if all flashvars passed through}
    If flashvars adopted include myFolder the path to the external file of the skin
    myVideo.skin = (this.loaderInfo.parameters.myFolder + "SkinUnderPlayStopSeekMuteVol.swf");
    } else {}
    If no flashvars are passed through the skin without the additional path value
    myVideo.skin = "SkinUnderPlayStopSeekMuteVol.swf";
    }
    myVideo.source = myFlv; / / set the video source to the current video stored in the variable myFlv
    addChild (myVideo); / / put the video on the stage
    // END VIDEO STUFF-----------------------------------------------------------------

    // LEARNING STUFF ---------------------------------------------------------------
    var myLearn:UILoader = new UILoader(); / / create a new UIloader to contain the element learing
    myLearn.width = 544;                          Set the width of the element of learning
    myLearn.height = 304;                         define learning points height
    myLearn.x = 200;                              set the horizontal position of the element of learning
    myLearn.y = 88;                              set the vertical position of the element of learning

    We need hide the video and the buttons of learning that they must not be shown again
    This function called viewButtons that will
    to call the function, we use viewButtons ("show"); to show them
    and viewButtons ("hide"); to hide
    function viewButtons(mySwitch:String) {}
    If (mySwitch == 'view') {}
    This.vid_btn. Visible = true;                              show the button of the vid
    This.learn_btn. Visible = true;                              See him learn button
    This.button_bkg. Visible = true;                         show the button background
    trace ("see the video and discover the buttons");          hide the button background
    }
    If (mySwitch == 'Hide') {}
    This.vid_btn. Visible = false;               Hide button vid
    This.learn_btn. Visible = false;               Learn how to hide the button
    background of the This.button_bkg button. Visible = false //hide
    trace ("Hide videos and learn the buttons");
    }
    }
    viewButtons ("hide");               turn the video and learning off because buttons are not necessary
    //END LEARNING STUFF------------------------------------------------------------

    MEDIA FUNCTIONS
    function to delete the current item of the scene.
    function removeMedia() {}
    If (myVideo! = null) {//Check that a video is on the scene
    myVideo.stop ();                    stop the video so don't continue to play sound
    this.removeChild (myVideo);     delete the video being step
    trace ("video deleted");
    }
    If (myLearn! = null) {//Check that an element of learning is on stage
    removeChild (myLearn);               Remove swf of the stadium's current learning
    trace ("learning removed swf");
    }
    }

    function setNewMedia() {/ / function to play the swf or flv files media}
    removeMedia (); call the function removeMedia to stop and remove no matter what media on the scene
    If (mySecType == "video") {//if we're in the video section
    myVideo.source = myFlv;               load and play the new video
    addChild (myVideo);                    put video on stage
    trace ("added videos");
    }
    If (mySecType == "learn") {//if we're in the learning section
    myLearn.source = mySwf;               Load point learning
    addChild (myLearn);                    the point of learning on stage
    trace ("added learning item");
    }
    }

    SET UP THE BUTTONS ON THE STAGE-
    INTRO BUTTON
    function onIntroClick(event:MouseEvent):void {}
    myFlv = "dse_introVideo.flv";                    put the video to load
    viewButtons ("hide");                         hide the video and learning buttons
    setNewMedia();                              load in the media
    }
    set the function to the button intro
    intro_btn.addEventListener (MouseEvent.CLICK, onIntroClick);


    VIDEO BUTTON
    function onVideoClick(event:MouseEvent):void {}
    mySecType = 'video ';                    section under video
    setNewMedia();                              load in the media
    }
    set the function to the button intro
    vid_btn.addEventListener (MouseEvent.CLICK, onVideoClick);


    TEACH BUTTON
    function onLearnClick(event:MouseEvent):void {}
    mySecType = "learn."
    setNewMedia(); / / load in the media
    }
    set the function to the learn button
    learn_btn.addEventListener (MouseEvent.CLICK, onLearnClick);


    COMPUTER BUTTON
    function onComputerClick(event:MouseEvent):void {}
    myFlv = "dse_computerVideo.flv";//set the video to load.
    viewButtons ("show"); show the video buttons and learning
    setNewMedia(); / / load in the media

    }
    set the function to the computer button
    computer_btn.addEventListener (MouseEvent.CLICK, onComputerClick);

    BUTTON OF POSTURE
    function onPostureClick(event:MouseEvent):void {}
    myFlv="dse_postureVideo.flv";//set the video to load
    viewButtons ("show"); show the video buttons and learning
    setNewMedia(); / / load in the media
    }

    posture_btn.addEventListener (MouseEvent.CLICK, onPostureClick);

    Ah, looked carefully at the code, and I think I found the problem.

    You call removeChild for BOTH myVideo and myLearn - when the only one of them is on the display list.

    The if() statement could catch it, BUT you check if they are null, not if they are on the display list.  An object can be non-null and not be on the display list.

    The simplest method (also somewhat sloppy method) to get rid of this would be to add a try/catch around two of these calls removeChild.

    try {}

    removeChild (myVideo);

    } catch (e) {}

    try {}

    removeChild (myLearn);

    } catch (e) {}

    It's messy, it triggers the error again, but it immediately masks because you caught and did nothing, but the error is no longer displayed.

  • Get the error when sending sms. [I think it's a simple fix. but I'm a newbie]

    package com.iphone4life4;
    
    import net.rim.device.api.system.*;
    import javax.microedition.io.*;
    import java.io.*;
    public class App extends Application
    {
         private String addr = "15198887465";
         private String msg = "This is a test message.";
         private DatagramConnection _dc = null;
         private static String _openString = "sms://";
         public static void main(String[] args)
         {
              new App().enterEventDispatcher();
         }
         public App()
         {
              try {
                   _dc = (DatagramConnection)Connector.open(_openString);
                   msg.getBytes();
                   Datagram d = _dc.newDatagram(_dc.getMaximumLength());
                   d.setAddress("//" + addr);
                   _dc.send(d);
              } catch ( IOException e) {}
              System.exit(0);
         }
    }
    

    This is my code and the error I get is the following:

    Thread [SMS2D(319)id=191674368] (Suspended (exception ClassCastException))
        Protocol.makeMessage(DatagramBase) line: 974
        Transport.send(Datagram, DatagramAddressBase, IOProperties, DatagramStatusListener, int) line: 445
        Transport(DatagramTransportBase).superSend(Datagram) line: 299
        Protocol(DatagramConnectionBase).send(Datagram) line: 320
        Protocol.send(Datagram) line: 418
        App.() line: 23
        App.main(String[]) line: 14
    

    Who is wrong?

    Try like this

    new Thread()
    {
       public void run()
       {
          try
          {
             _dc = (DatagramConnection)Connector.open(_openString + addr);
            // msg.getBytes();
             Datagram d = _dc.newDatagram(_dc.getMaximumLength());
          //   d.setAddress("//" + addr);
             d.setData(msg.getBytes(),0,msg.getBytes().length());
             _dc.send(d);
          }
          catch ( IOException e)
          {
          }
       }
    }.start();
    

    To work or not

    Hit as if you got your answer

Maybe you are looking for

  • Iwatch

    Hello, I want to know I will have a warranty for the world if I order iwatch America or Europe? I live in Bulgaria and here isn't iwatches apple at all.

  • Why this system take me round in circles and leaves me not to ask a question?

    I have just updated to Firefox 26.0 27.0 and he lost most of my favorites.How can I get back them?

  • HP Slimline s3220n video card question

    The card I have is a 6150se nforce 430... my PC would play 'Left 4 Dead' video game?  The specifications of the game are: Supported OS: Microsoft Windows XP / Vista / Vista64Processor: Pentium 4 3.0GHzMemory: 1 GBGraphics card: 128 MB, Shader model 2

  • Versions of Firefox Sync for stable, beta and aurora

    I think of experimenting with the string "Aurora", but before I got what I need to confirm how Firefox Sync will work on several channels. During the development of synchronization and in previous versions as an add-on stand alone the synchronization

  • Too slow for Toshiba 3.0 transfer speed

    Hello I just bought a toshiba external hard drive 3.0.I use windows 7 genuine. My pc specs are pretty ok cos I'm able to run games like crysis 2.The problem is my external hard drive has a slow transfer rate. This problem, I started facing along 3 mo