Getting compilation errors in seeded jsps in R12

Hi,
We already had iStore 11i implemented since 8 years.
Now we are implementing iStore R12.
We have a custom jsp 'xxibeCCkpExpCheckout.jsp' in 11i, which we are migrating to R12.
However in R12 we are getting following compilation errors in this jsp:
ibeCCkpBHdrShipIncl.jsp:
Error(841,1): PrintWriter not found
Error(841,1): Writer not found
ibeCCkpValBillPay.jsp
Error(40,2): field optNewCreditCard not found
Error(48,2): field optNewCreditCard not found
Error(54,2): identifier errMap not found
Error(64,2): identifier errMap not found
Error(73,2): field errMap not found
Please note that above seeded jsps are included in the custom jsp.
Since the errors are coming through seeded jsps, we are not sure how to fix them.
Any prompt help/suggestion in this regard is appreciated.
Thanks

Hello,
Please review your custom jsp and note that the following are obsoleted packages for Release 12 -
ibeCCkpCHdrShipIncl.jsp, ibeCCkpHdrShip.jsp, ibeCCkpHdrBillPay.jsp
Confirm the ibeCCkpBHdrShipIncl.jsp is Release 12.1 version (ie version 120.6).
Also, there are changes in ibeCCkpValBillPay.jsp for Release 12 as compared to 11i. Confirm your ibeCCkpValBillPay.jsp is Release 12.1 version (ie version 120.1.12010000.2 or higher).
Confirm no errors for manual compile of the seeded jsp's and Confirm datestamp is current for class files in $COMMON_TOP/_pages
References:
Where Are The iStore Cached Java Classes In R12 ? (Doc ID:1149243.1)
How to Enable Automatic Compilation of JSP pages in R12 Environment (Doc ID:458338.1)
Please advise on any additional questions or issues.
Thank You,
Deborah Bourgeois, Oracle Customer Support

Similar Messages

  • Getting Compilation error when used SET or MULTISET operator on nested tabl

    Dear All,
    I am getting Compilation error when used SET or MULTISET operator on nested tables inside a procedure.
    This is working fine in other DB installations of 10g but does not work in another 10g DB.
    it says "wrong number of parameter or datatype used in SET"
    Can any one suggest what went wrong here?
    Thanks in advance.

    Can any one suggest what went wrong here?Only if you would post the query and Oracle versions on both databases.
    Besides, this forum deals with issues in Oracle product installation. So post this query in SQL PL/SQL forum for better response.

  • Using package getting compiler error

    I have a project at c:\myproject
    I have a file name as b.java in c:\myproject
    I have a sub-directory named as com\sski\ in c:\myproject
    In that subdirectory there is a file a.java (package of a.java is com.sski) which is using class b.
    I have compiled b.java successfully, But I am unable to compile a.java
    I am getting compiler error cannot resolve symbol
    Sourece of a.java is as follow package com.sski;
    //import b;
    public class  a
         public static void main(String[] args)
              b obj = new b();
              System.out.println("Inside a.java: " +obj);
    }i have even tried using import b;
    then i get error as '.' expected
    how do i successfully compile a.java, where do i place b.java.
    i dont want to put b.java inside any package.

    b.class is not being found in your classpath. If you are compiling in C:\myproject, b.class should end up in C:\myproject, since you are not putting it in a package (which, IMO, is a bad idea). This assumes that you are not using the -d <destination> command line option in the javac command line.
    To compile a.java, you need to use the -classpath command line option, as follows:
    javac -classpath C:\myproject a.java
    or
    javac -classpath . a.java (note the dot).
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Still getting compilation error

    thnx again for ur kind help
    i m still getting compilation error
    can any give me the complete steps and a simple program of occi using i which i can have the idea of occi program
    its very urgent
    Regards
    Neeraj

    Check occidml.cpp under %ORACLE_HOME%\rdbms\demo and make.bat in the same directory on how to compile & link.

  • Flash CC on W7 . By importing fl.controls like 'import fl.controls.Button';  I get compilation error 1172. Solution?

    Flash CC on W7 . By importing fl.controls like 'import fl.controls.Button';  I get compilation error 1172. Solution?

    Can you show the relevant code and the complete error message?  Before running go into your Flash Publish Settings and choose the option to Permit Debugging - it can help by adding information to the error message.

  • Keep getting compile error. dunno why.

    i keep getting compile error that Compilation errors for PACKAGE BODY NRMS_INTERFACE.PKGNDW
    Error: PLS-00113: END identifier 'BOOLISDATAAVAILABLE' must match 'PKGND' at line 1, column 29
    Line: 3309
    Text: end boolIsDataAvailable;
    function boolIsDataAvailable(o_errorcode OUT NUMBER,
    o_errortext OUT VARCHAR2) return boolean is
    DataAccess number;
    boolResult boolean;
    begin
    begin
    select DATA_ACCESS
    into DataAccess
    from INTERFACEPARAMETER
    where NUMBER_VALUE = 0;
    boolResult := true;
    exception
    WHEN OTHERS THEN
    -- coder assumes that any exceptions here will lead to data not being available.
    boolResult := false;
    end;
    return boolResult;
    end;
    end boolIsNDWAvailable;

    Argh....again the importance of formatting and indentation is proved...
    In other words: the tag
    before and after samples.
    Thanks for the followups ;)
    +it's past 21.00/09.00PM over here, so already a while no more coffee for me+
    +Yes, that's a disclaimer+ ;)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Compilation error for a .jsp file

    I am working with JSP on WebLogic. I have a file called login.jsp, which takes values thru a form and uses a bean to set and get those values. I am getting the following error, can someone help me to figure out why i am getting this error.
    Compilation of 'D:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\__login.java' failed:
    D:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp\jsp_servlet\__login.java:87: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 7:
    <jsp:useBean id="logBean" scope="request" class="LoginBean" />

    Hey
    Check out the classpath for the application. The server is not able to find the class for that Bean. Also, try using a package name in that Bean Class. It has been a disadvantage with the JSP that it cannot detect the classes in the default package.
    Good luck

  • Help with Data Block Based on Procedure--getting compilation error

    I am trying to create a datablock based on a procedure , but im getting errors in compilation:
    Errors are :
    1) identifier 'HSM_WSH_DEL_UTIL.DEL_TBL' must be declared
    2)PL/SQL ERROR 320 at line 7, column 27
    the declaration of the type of this expression is incomplete or malformed
    ANy Help would be appreciated !
    Heres my pkg spec and body for the data block:
    CREATE OR REPLACE PACKAGE hsm_wsh_del_util IS
    TYPE del_record is record
    (delivery_id number);
    TYPE del_tbl is table of del_record INDEX BY BINARY_INTEGER;
    procedure do_query(p_del IN OUT del_tbl);
    END hsm_wsh_del_util ;
    CREATE OR REPLACE PACKAGE BODY hsm_wsh_del_util IS
    procedure do_query(p_del IN OUT del_tbl)
    IS
    idx number :=1;
    CURSOR DELIVERY IS
    SELECT DELIVERY_ID
    FROM abc_deliveries;
    begin
    FOR CUR IN DELIVERY LOOP
    p_del(idx).delivery_id :=cur.delivery_id;
    idx:= idx+1;
    END LOOP;
    end do_query;
    END hsm_wsh_del_util;
    Edited by: 981170 on Mar 13, 2013 1:08 PM

    Hi,
    Yes I did use the wizard,
    I agve it the package.proc name for query.
    it pulled up the field delivery ID,
    Hit finish, because I do not need update/delete/inserts.
    the query data source columns and arguments was defaulted correctly.
    THe QUERY-PROCEDURE was built by default.
    It is giving me an error though: wrong number or types of arguments in call to POPULATE_BLOCK..
    DECLARE
    bk_data HSM_WSH_DEL_UTIL.DEL_TBL;
    BEGIN
    hsm_wsh_del_util.do_query(bk_data);
    PLSQL_TABLE.POPULATE_BLOCK(bk_data, 'NEW_DELIVERIES');
    END;

  • Converter Web Client: get compiler error when run URL

    When I try to run the Converter's web client with the the URL:
    http://localhost:8000/converter
    I got a compiler error on the lines:
    import Converter;
    import ConverterHome;
    The J2EE server wants to have a "." after the Converter and ConverterHome.
    Any one has any idea?
    The error messages are:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:7: '.' expected
    import Converter;
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:8: '.' expected
    import ConverterHome;
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:20: cannot resolve symbol
    symbol : class Converter
    location: class org.apache.jsp.index_jsp
    private Converter converter = null;
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class org.apache.jsp.index_jsp
    ConverterHome home = (ConverterHome)PortableRemoteObject.narrow(objRef, ConverterHome.class);
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class org.apache.jsp.index_jsp
    ConverterHome home = (ConverterHome)PortableRemoteObject.narrow(objRef, ConverterHome.class);
    ^
    C:\app\j2sdkee1.4\web\repository\Standard-Engine\localhost\converter\index_jsp.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class org.apache.jsp.index_jsp
    ConverterHome home = (ConverterHome)PortableRemoteObject.narrow(objRef, ConverterHome.class);
    ^
    6 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:125)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:387)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:410)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.util.SecurityUtil$1.run(SecurityUtil.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
         at org.apache.catalina.util.SecurityUtil.execute(SecurityUtil.java:210)
         at org.apache.catalina.util.SecurityUtil.doAsPrivilege(SecurityUtil.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:271)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/5.0

    I have exactly the same error.
    Me too, I'm running on Win XP. And I have had lots of trouble to deploy the converter.
    I cannot install J2EE 1.3 as I am supposed to write a report on how Web Services may help my company. By the moment I can only say it takes me much more time than expected to run the J2EE 1.3 tutorial. As SUN didn't deliver a tutorial one can use.
    So by the moment if anyone can HELP me to finish this converter tutorial I will be thankful.
    Bye
    Manuel Acevedo

  • Getting compile error with VS2013 and tuxedo12.1.1

    I'm trying to upgrade our technology tools and trying to compile our application with VisualStudio2013.on a Windows 2012 server.
    utilizing  Tuxedo12c (12.1.1 for 32bit)
    and Oracle 12c.
    I get this error which is perplexing
    CORBA::Object_ptr TP::create_active_object_reference(const char *,const char *,Tobj_Servant)' : cannot convert argument 3 from 'DataExchangeQueueImpl *' to 'Tobj_Servant'
              Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    this same code builds on a machine with tuxedo11gR3 abd VS2010.
    Here is code segment
    DataExchangeQueue_ptr DataExchangeServiceImpl::getSendQueue (const char * applicationId)
      CTraceCallStack clsFunctionTracer("DataExchangeServiceImpl::getSendQueue");
        DataExchangeQueue_ptr rc;
        try
            FTRACE(CTrace::TRACE_HIF_DIAG, "ApplicationID=(%s)", applicationId);
                std::string applId(applicationId);
            FTRACE(CTrace::TRACE_HIF_DIAG, "Retrieving Send Queue from the DESServant");
               IQueue* sendQueue = impl_->getSendQueue();
           FTRACE(CTrace::TRACE_HIF_DIAG, "Dynamically Allocating DataExchangeQueueImpl object");
                   char* oid = new char[strlen(applicationId) + 7];
                   sprintf(oid, "%s_SENDQ\0", applicationId);
                   DataExchangeQueueImpl* qImpl= new DataExchangeQueueImpl(sendQueue, oid);
         FTRACE(CTrace::TRACE_HIF_DIAG, "Creating active object reference");
              CORBA::Object_var tempObject = TP::create_active_object_reference(_tc_DataExchangeQueue->id(),
                                                                                  oid,
                                                                                  qImpl);
            rc = DataExchangeQueue::_narrow(tempObject);
            CORBA::release(tempObject);
            delete [] oid;
        catch(...)
            FTRACE(CTrace::TRACE_HIF_DIAG, "*** Caught unknown exception");
            throw TobjS::ApplicationProblem();
        return rc;

    Hi,
    Unfortunately Microsoft is not particularly helpful, forgiving, or backward compatible when it comes to Visual Studio releases.  Oracle has not yet released a version of Tuxedo that is compatible with VS2013.  If VS2013 is something you absolutely need, then I suggest submitting a support request through My Oracle Support asking for a Tuxedo 12.1.1 kit that supports VS2013.  You might also submit a request to Microsoft and ask them to stop breaking compatibility between releases!  :-)
    Regarding the specific error above, it looks as though you should probably try a reinterpret_cast, although it has been a long time since I played with CORBA.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • Getting Compile error in hidden module: Module_starter.

    Hi,
    I am trying to create a report from BIP using OBIEE.
    In OBIEE, I have created and saved an Answer.
    From MS Word, after logging into BIP, I chose Workspace as "Oracle BI". Then I select the Answer that I had created earlier. When I try to save this answer as Oracle BIP report, I get error "Compile error in hidden module: Module_starter."
    Any idea what's going wrong here?

    Security Update for windows XP (KB936021)

  • Getting compilation error while invoking an existing partner link.

    Hi,
    I am very new to BPEL.This may be a very basic issue..
    Found few links on the forum related to this..but didn't understand how people solved their problems..
    Created a sample project to add two numbers and return the result.[Ex : 2+ 3 = 5]
    Trying to invoke that service by adding it as a partner link in other project.
    Getting compile time error immediately after adding it..
    Error:
    [Error ORABPEL-10902]: compilation failed
    [Description]: in "bpel.xml", XML parsing failed because "undefined part element.
    In WSDL at "http://PC-XYZ-IN:8888/orabpel/default/BPELProcess/BPELProcess?wsdl", message part element "{http://xmlns.oracle.com/BPELProcess}BPELProcessProcessResponse" is not defined in any of the schemas.
    Please make sure the spelling of the element QName is correct and the WSDL import is complete.
    [Potential fix]: n/a.
    (ii) how can i pass two variables to calling service using invoke option.
    Since in invoke option i could see only one input variable is allowed.
    Thanks in advance for the help.

    the wsdl is refered correctly,I used the wizard for this..
    http://PC-MSIDDHAR-IN:8888/orabpel/default/BPELProcess/BPELProcess?wsdl
    For second part of the question.
    Caller ----> Invoke Code ---> Partner Link for Service
    Partner Link for Service expects 2 variables...
    Caller i have added 2 variables as u suggested already ...
    The question is how can i assign caller variables to partner link variables..[If they are more than 1)
    Thx
    Message was edited by:
            msiddhar
    Message was edited by:
            msiddhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Still getting Compilation errors in scott.emp

    Hi Experts,
    I am getting a compilation errors when i compile a package body:
    CREATE OR REPLACE PACKAGE TABLE_EXAMPLE AS
    TYPE TNAME IS RECORD(PARAMETER EMP%ROWTYPE,VALUE EMP%ROWTYPE);
    TYPE TABLET IS TABLE OF TNAME;
    TYPE EMP_TABLE IS TABLE OF EMP%ROWTYPE;
    PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET);
    END;
    CREATE TABLE TAB_PAR
      (PARAMETER  VARCHAR2(100 ),
      PA_VALUE   VARCHAR2(100)
    create or replace package body table_example as
    PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET) as
    l_emp_tbl emp_table:=emp_table() ;
    cursor c is select * from emp;
    err_msg varchar2(1000);
    err_code number;
    begin
    for m in 1..arg.count loop
    insert into tab_par(parameter,pa_value) values (arg(m).parameter,arg(m).value);
    end loop;
    exception
    when others then
    err_msg:=sqlerrm;
    err_code:=sqlcode;
    dbms_output.put_line(sqlerrm);
    end;
    end  table_example;
    Warning: Package Body created with compilation errors.
    LINE/COL ERROR
    20/49    PLS-00382: expression is of wrong type
    20/66    PLS-00382: expression is of wrong typeHow do i resolve this?
    Thanks.

    I recreated according to your suggestions but i am still getting the errors:
    CREATE OR REPLACE PACKAGE TABLE_EXAMPLE2 AS
    TYPE TNAME IS RECORD(P_PARAMETER varchar2(100),P_VALUE varchar2(100));
    TYPE TABLET IS TABLE OF TNAME;
    PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET);
    END;
    create or replace package body table_example2 as
    PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET) as
    begin
    for m in 1..arg.last loop
    insert into tab_par(parameter,pa_value) values (arg(m).p_parameter,arg(m).p_value);
    end loop;
    end;
    end  table_example2;
    LINE/COL ERROR
    9/1      PL/SQL: SQL Statement ignored
    9/49     PLS-00382: expression is of wrong type
    9/49     PL/SQL: ORA-22806: not an object or REF
    9/56     PLS-00302: component 'P_PARAMETER' must be declared
    9/68     PLS-00382: expression is of wrong type
    9/75     PLS-00302: component 'P_VALUE' must be declared

  • I get Compiler Error xc=0x53

    I get a compiler error while programming in LabView 7.0, Windows 2000, the message indicates: "Compiler error. Report this problem to National Instruments Tech Support. genDRLoad bad type: xc=0x53."
    Could you help me on this issue?
    Attachments:
    IdentificaFila2.vi ‏102 KB
    DB Tools Select Data #2.vi ‏81 KB

    I found the error: the problem is with element to search in the 1D array.  You have to change it to variant type with the VI "to variant".

  • Class with interface, extends Sprite, but get compile error accessing "visible"

    Here is the situation:
    - Class MyLoader extends Sprite implements ILoader
    The class extends Sprite and works perfectly.
    var _loader:DisplayObject = new MyLoader();
    _loader.visible = true;
    Works perfectly.
    var _loader:ILoader = new MyLoader();
    _loader.visible = true;
    Casts a compiler error. Cannot access static property "visible" to a ILoader etc. etc.
    Doesn't make much sense to me, since the class extends a Sprite anyway...
    Am I missing something?
    thanks
    Filippo

    cast _loader as a Sprite (or DisplayObject);
    the flash compiler needs help remembering what's what.
    var _loader:ILoader=...
    Sprite(_loader).visible=true;

Maybe you are looking for