Cffuntion access="package": bug?

If I have a CFC function with access="package" why can it be
called from a CFML page? Shouldn't this be restricted access that
extends or invoked from another CFC in that directory?
Thanks,
Zeus

Your code works for me, though I had to add a string arg to
your sayHello function call and I had to make the function static
in the class, as you are calling it without an instance.

Similar Messages

  • Another iOS packager bug

    Came across another bug in iOS packager. In my project I have a function looking like this:
    private function sample():Object
         var iValue:int = 10;
          return false ? iValue : null;
    It correctly returns 'null' if packaged in ipa-debug-interpreter, apk-captive-runtime modes or if running in ADL. But it returns '0' if packaged in ipa-ad-hoc mode. I had to spend a whole day to figure out where is the problem. This is not the first type cast issue I came across. And it takes a lot of effort everytime to debug (10 minutes to build the project!). I'm breaking a dead line giving my customer an excuse that 'Adobe packager for iOS does not work right'. Which sounds like total BS of course. Adobe, please, get this straight. It is hard enough to develop with AIR for mobile. Bugs like this one make it much worse. Either way, I'm planning to advocate for using native tools in our next projects.

    I'm still using AIR 3.2. Unfortunately, I don't have a chance to try latest AIR 3.4 at the moment. But I will check the same code when I update AIR SDK.
    The code I posted is not a real code of course. I had to strip some logic and modify operators a bit. But I had hoped the bug would still reproduce. From my experience, most of the iOS packager bugs are caused by the rules of type casting that are not AS3 compliant. I have an impression that type casting rules used in the packager are more like classic C type casting rules. As the result, same code executes differently on iOS and Android|Windows. And it has being a huge problem for me.

  • Forms 9i accessing package variables

    I created a package in my sql session which contains only variables. When I connect to the database through Oracle Forms and try to access these variables in a trigger I receive the error "Cannot directly access remote package variables or cursor" How can I access these variables from within a forms module?

    You cannot access package variable or constants directly from a remote PL/SQL client. Only PL/SQL running on the server can access these. You need to implement get and set methods in the package.

  • Unable to access package PAOC_ASR_DESIGN_TIME in EHP4

    Hello,
    I am unable to access package in PAOC_ASR_DESIGN_TIME in EHP4.
    It is not shown in se80.
    Is it because I have to enable switch.
    Will packages be shown if only the switch is activated.
    If so what is the switch name and how to activate the switch?
    Regards,
    Vikas

    Hi Vikas
    Certain functionality will only be available via a switch
    See transaction SFW5 for more details
    Best wishess
    Stuart

  • Flash Access Packager with Bridges to Rhozet Carbon (Win) and Telestream Episode Pro (OSX)

    Hi guys,
    i develope in the last month a full automate packager for flash access 2.0, written in AIR.
    I used AIR for the GUI and native process for communication with the jar fp access packager.
    I was impressed how fast i can develope a GUI for our customer with the latest flash builder. The hard work was to communicate with encoders like rhozet carbon coder on windows and episode on OSX.
    I first thought that i need about 2 days for a stable watch folder function, but if you want toDo a stable watch folder with error and retry managment it can steal  you maybe more then 2 weeks of your lifetime for developing.
    anyway, i record 2 tutorials and i would like to share how to build your DRM pipelines with other encoders or media assets management. The very interesting part is that it seems to possible to pack h.264 encrypted content into .flv. I think some of you know what this means. I got some examples ready, but need to proof more the flv specs if we transmux everyting right.
    Flash Access 2.0 with Rhozet Carbon Coder 3.18
    http://www.youtube.com/watch?v=69tY3059RYQ
    Flash Access 2.0 with Episode Pro 6.1.xx for OSX
    http://www.youtube.com/watch?v=5GILbP7oFOM (audio is broken for some reasons)
    Let me know what you think about this and if you want to talk about technical things or if you need help with FA lets start a disscusion here.
    Have a nice weekend.
    Gary
    http://onlinelib.de

    Hi guys,
    i develope in the last month a full automate packager for flash access 2.0, written in AIR.
    I used AIR for the GUI and native process for communication with the jar fp access packager.
    I was impressed how fast i can develope a GUI for our customer with the latest flash builder. The hard work was to communicate with encoders like rhozet carbon coder on windows and episode on OSX.
    I first thought that i need about 2 days for a stable watch folder function, but if you want toDo a stable watch folder with error and retry managment it can steal  you maybe more then 2 weeks of your lifetime for developing.
    anyway, i record 2 tutorials and i would like to share how to build your DRM pipelines with other encoders or media assets management. The very interesting part is that it seems to possible to pack h.264 encrypted content into .flv. I think some of you know what this means. I got some examples ready, but need to proof more the flv specs if we transmux everyting right.
    Flash Access 2.0 with Rhozet Carbon Coder 3.18
    http://www.youtube.com/watch?v=69tY3059RYQ
    Flash Access 2.0 with Episode Pro 6.1.xx for OSX
    http://www.youtube.com/watch?v=5GILbP7oFOM (audio is broken for some reasons)
    Let me know what you think about this and if you want to talk about technical things or if you need help with FA lets start a disscusion here.
    Have a nice weekend.
    Gary
    http://onlinelib.de

  • Accessing package CONSTANT in a SQL query

    Hi,
    Can anybody explain why I cannot access the package constant in a SQL but can use it in dbms_output.put_line:
    SQL> create package scott.xx_test_const_pkg
    2 as
    3 a constant varchar2(1) :='A';
    4 end;
    5 /
    Package created.
    SQL> begin
    2 dbms_output.put_line( scott.xx_test_const_pkg.a);
    3 end;
    4 /
    A <------------------THIS WORKS
    PL/SQL procedure successfully completed.
    SQL> select * from scott.emp where ename=scott.xx_test_const_pkg.a;
    select * from scott.emp where ename=scott.xx_test_const_pkg.a <------------------THIS DOES NOT WORK
    ERROR at line 1:
    ORA-06553: PLS-221: 'A' is not a procedure or is undefined
    Thanks

    You can't refer to a pl/sql package constant in a sql statement.
    Create a function that returns the constant value and then refer to the function in a sql statement.

  • Access Restrictions bug of firmware 1.01.1 for WRT54G V5 V6

    I am using WRT54G V5.
    The Access Restrictions function won't work properly when using firmwares 1.01.1 and 1.01.0. Ports can't be blocked by using the "Blocked Services" in this function.
    Now I have to switch back to 1.00.9 to make the port blocking work, but there is a DHCP server issue which could only be fixed in 1.01.0 or above.... Could someone fix this BIG BUG and roll out a new firmware????
    Thanks a bunch.
    Message Edited by Dennis_Hsu on 01-08-200705:02 PM

    What is your Fragmentation and RTS threshold value? I'm not sure if I'm reading your message right, but it says as far as I can understand 30. The value should be 2304 instead for both.
    Ty changing the wireless channel also to either 1, 6 or 11.

  • JDBC gives error if accessing Package Synonym

    Calling a stored procedure in a package using JDBC...
    Where we are using a synonym for our package (given all permissions are OK - I've even tried SYSDBA) rather than calling procedures directly in the package, we get the error 'table or view does not exist'.
    This error only occurs for procedures in the package which return ref cursor type (i.e. a recordset), otherwise the procedure seems to execute fine.
    The same procedures can happily be used via ODBC and OLEDB using the synonym, so I suspect it is JDBC at fault.
    We do need to use a synonym (I like to keep nice clean tidy schemas!) so if anyone knows how to get around it or whether the bug will be fixed shortly please let us know.
    Regards
    Jason.
    null

    Hi,
    Returning refcursors from Java stored proc feature is planned for JDBC 8.2.
    Hope this helps,
    -Kishore

  • Access package body in once schema by another

    I have package defined in one schema (A). How can another user (B) access the body of that package logged in as B?

    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> connect o/o
    Connecte.
    SQL> create or replace package p is procedure p; end;
      2  /
    Package cree.
    SQL> create or replace package body p is procedure p is begin null;end; end;
      2  /
    Corps de package cree.
    SQL> grant execute on p to u;
    Autorisation de privileges (GRANT) acceptee.
    SQL> connect u/u
    Connecte.
    SQL> select * from all_source where owner='O';
    OWNER                      NAME                     TYPE
          LINE
    TEXT
    O                      P                     PACKAGE
          1
    package p is procedure p; end;
    O                      P                     PACKAGE BODY
          1
    package body p is procedure p is begin null;end; end;
    OWNER                      NAME                     TYPE
          LINE
    TEXT
    SQL>

  • Accessing package defined datatypes in oracle from JDBC

    the stored procedure looks like this:
    CREATE OR REPLACE PACKAGE PRISM AS
    error_format VARCHAR2(512);
    SUBTYPE ErrorString IS error_format%TYPE;
    TYPE ErrorTable IS TABLE OF ErrorString INDEX BY BINARY_INTEGER;
    To register the output parameter the java code is:
    stmt.registerOutParameter(1, OracleTypes.ARRAY, "PRISM.ERRORTABLE");
    Problem:
    I get an error with DBMS_PICKLER saying that it cannot find the object ( i.e. ERRORTABLE).
    How do I reger to the parameter types declared inside the stored procedure
    Any help would be deeply appreciated.
    Vinay

    I am using 8.1.6 (OCI). I do not think I want to use 8.1.7 because the Oracle driver is being called from iPlanet Application Server 6.0. iAS 6.0 only supports the 8.1.6 JDBC driver. 8.1.7 would probably work but if there was a problem, iPlanet would just say it's not supported.
    Are you saying that this problem is a known bug in the 8.1.6 JDBC driver?

  • Accessing packages from C++ app

    Greetings,
    I have a number of packages (with functions & procedures) that need to be accessed by a C++ client. Could someone send me example code (or a reference link) that would show how to access a function (retrieving the return value), and how to create and access a package procedure that will return a multi-row result set?
    Thanks in advance,
    Joseph
    [email protected]

    Java Web Start downloads the jars specified in the JNLP to a local cache and then loads the classes from the cache. If your driver jar is not downloaded, then of course the JVM can not find the driver class. Have you included the following line in your JNLP file?
    <resources>
        <extension name="Oracle Driver" href="driver.jnlp"/>
    </resources>Of course this implies that you need to make a second JNLP file called driver.jnlp that points to your driver jar.

  • Accessing Package variables

    Hi friends..
    I have to access the value of a variable which is declared public in the package in a select statement
    i tried this way
    select package_name.variable_name from dual; which is not working.
    I had a alternate solution..Declare a function in the package to make the value return by a function and access the function in the select statement.
    Is this approach correct or do i have any other alternatives?
    Thanks,
    Dwarak.k

    The reason that this does not work is that the SQL Engine cannot simply read a value residing in the package state in the PL/SQL Engine. SQL has no means to access (read or write) that value - only the PL/SQL Engine has.
    The SQL engine can however call PL/SQL functions - and such a function running in PL/SQL can access whatever it likes within the PL/SQL context.
    Is this a good idea, using package state for static variables from a SQL perspective?
    My initial reaction is that it's not a good idea. Primarily because the majority of database clients today are stateless clients - even within the J2EE context.
    For example, your Java Application Server creates a pool of 10 connections to Oracle. User John connects and is serviced by pool process 5. A PL/SQL state variable is set in that Oracle connection. The very next request from user John is serviced by pool process 9 - as pool process 5 is busy servicing Scott.
    Just who will be reading whose static PL/SQL state variables?
    PL/SQL static/state variables should be limited for use by PL/SQL only. E.g. something that I always do is to create a package called CONST (after the constants declaration in Pascal/Delphi) and define all my PL/SQL statics there.
    The PL/SQL code must be written being aware that each new call can be made from another front-end user (resetting session state becomes important).
    For other constants... - that is why lookup and application configuration tables should be created. Single copy of the data. Concurrency catered for. Data integrity provided.

  • Why is jar packaging needed to access package visibility members?

    javax.swing.text.html.HTMLDocument has (default) package access level members (eg base).
    Simply creating a class in the javax.swing.text.html package does not give me access to the package members of HTMLDocument.
    However, if I jar my class with the rt.jar, then it can access the package members of HTMLDocument.
    Why is this?
    And more importantly, is there another way around this?.. Can I jar my classes in a separate jar file?
    -Kane

    more info on this problem:
    It seems that a different classloader is used for the classes in the jdk than standard user classes. Classes in the jdk are loaded by the bootstrap class loader. So user classes that "pretend" to be part of that package are not recognized unless they are actually a part of the rt.jar file.
    hack solution: use the SystemClassLoader to load those user classes.
    ClassLoader loader = ClassLoader.getSystemClassLoader();
    loader.loadClass("myWannaBeSystemClass");
    Still looking for more elegant solution...
    but hopefully this will hold me over

  • Accessing package variable through DB link

    Hi,
    I have ref cursor variable in remote DB package and want to refer that in another script.
    v_refcur rem_package.generic_cursor_type@REMOTEDB
    and accessing procedure in the remote DB
    I am getting the following error
    ORA-20111: ORA-02064: distributed operation not supported
    ORA-06512: at "user.XXHJ_API", line 1097
    ORA-06512: at line 43
    any help is appreciated..

    Ref Cursors are not supported across databases.
    Explain in more detail as to what you are trying to achieve and someone here can suggest alternatives.

  • Accessing packages with Oracle Forms 9i

    I created a package in my sql session which contains only variables. When I connect to the database through Oracle Forms and try to access these variables in a trigger I receive the error "Cannot directly access remote package variables or cursor" How can I access these variables from within a forms module?

    If you want to access a client side device I would look at webutil, there are utilities for hooking into C DLLs. Strictly speaking webutil is only certified wil 10g forms but it should work in 9i Forms.
    Grant ROnald
    Forms Product Management

Maybe you are looking for

  • Extract data on report between last 30 days from current date.

    Hi Experts, Ealrier i had provided user promt to select the date range, now i need to schedule the report for this i have to set the date between last 30 days from current date. How can i add this in formaula on record selection. before: {pm_process.

  • Breadcrumb in BSP is not working when application is called inside Portal.

    Dear All,             We have implemented SAP Learning Solution by integrating it with SAP EP 7.0. We called the BSP Application HCM_LEARNING inside portal  using BSP iView template. The problem we are facing is, the breadcrumbs in the BSP applicatio

  • Safari Losing Internet Connection

    We are using Safari 5.0.5 and are having intermittent problems with it holding its wifi connection. Other computers (including an IPad 1) have no problem maintaining the signal, and the computer with this problem (a Macbook) is able to access mail an

  • Please Help Nested Editable Region Image & Spry

    Please Help Me. New to Dreamweaver. I've been given a "grandchild" nested temple with only one editable region to alter. I've read and Googled since Saturday. My brain actually hurts. Goal - Insert my background image into region - Add Spry accordion

  • BO Trial Version Username and Password

    Hi Gurus, I installed BO XI Edge series trial version. The installation was successful. I selected express installation as its only for my practice. Now I want to login to designer/CMC/Infoview/WebI etc. Please let me know what logon credentials I ne