Package/Class name resolution issue

Hey guys!
I have an application called Infused. I also have a package called Managers with a class called DataManager which extends HTTPService.
In a function in DataManager I need to call a public function that exists in Infused.
Now, if the application is called Infused, then it's default class must be called Infused too, right?
But when I called Infused.loginResult(evt) I get the error: Access of possibly undefined method loginResult through a reference with static type Class.
I assumed the applications class would be in the global namespace and accessible. Am I wrong? And if so how can I call the function?
Also, in the applications main class I have a number of functions called xxxResult which I need to call depending on a string that is passed in to the class request function. So the request function may receive 'login', and so the function to call in Infused would be 'loginResult'.
How can I call the function based on this string? I know I could do Class[functionName]() if the function where in the same class, but will the answe to my first question lead to the obvious solution for the second?
I am a PHP5 OOP developer learning Flex, so please forgive my dumbassness
Thanks for any help.
Paul.

But when I called Infused.loginResult(evt) I get the error: Access of
possibly undefined method loginResult through a reference with static
type Class.
You can't call instance methods like that. You'd need to make the method static, or alternately, call Infused(Application.application).loginResult(evt). After you make either change, you should be able to use the ['functionName']() approach.
Keep in mind, though, that you're coupling your DataManager to your application with this approach. This might be fine for a small app, but take a look at Mate (or some of the other MVC frameworks) to see how to reduce or avoid this sort of coupling.

Similar Messages

  • Module Function Name Resolution - Issues with DefaultCommandPrefix

    Just getting started on module development, running PS4, and I've run into an... inconsistency... that I'm trying to understand. I've got two test functions, Get-Something and Set-Something in a script module. In my manifest file I specify a DefaultCommandPrefix
    of 'Test'.
    My issue is the function name resolution doesn't result in an executable result if you leave PowerShell up to it's own process.
    To begin with I closed all sessions and deleted all files in the CommandAnalysis directory. After starting a session I waited for the CommandAnalysis cache to populate. Then I ran a series of test commands to illustrate how, most of the time, the function
    name PowerShell registers with tab completion can't be executed because it lacks the 'Test' prefix. Even worse, much of the time tab completion won't recognize the correct (i.e., with prefix) name of the function and honor tab completion for it.
    Having just learned of the CommandAnalysis cache I assumed I would see it change as PowerShell 'learned' more about the module because the name resolves differently over time. I've included three files at the end of this post, the module code (ModuleTest.psm1),
    the manifest (ModuleTest.psd1) and the capture of output to the PowerShell session (ModuleTest.txt). I've tried to include the times I used <tab> and <ret> for tab completion and execution as well as (comments in parenthesis for things I did like
    starting a new session and checking the CommandAnalysis cache for changes).
    An example is, when first starting a session typing 'get-som<tab>' will resolve to 'Get-Something' (prefix 'Test' missing) and typing 'get-test<tab>' won't resolve to 'Get-TestSomething'. Try to execute the 'Get-Something' from tab completion
    and you'll get the 'name not recognized, blah, blah'.
    Now if you type 'get-som<tab>' PowerShell will resolve to 'ModuleTest\Get-Something' - looks promising... but no.  Try to execute the 'ModuleTest\Get-Something' from tab completion and you'll still get the 'name not recognized, blah, blah'.
    Even though the same key strokes resolved differently there were no changes made to the CommandAnalysis cache so I'm lost on why it produces two different (though equally useless) results.
    Manually importing the module and sometimes running Get-Command -Module ModuleTest will make tab completion of the function names behave correctly. Is this a known issue with using DefaultCommandPrefix in script modules or is there something I need to include
    in the manifest to enforce strict name recognition (including the prefix)?
    <ModuleTest.psm1>
    function Get-Something
     Write-Host "Get-Something Executed"
    function Set-Something
     Write-Host "Set-Something Executed"
    <ModuleTest.psd1>
    # Script module or binary module file associated with this manifest
    ModuleToProcess = 'ModuleTest.psm1'
    # Version number of this module.
    ModuleVersion = '1.0.0.0'
    # ID used to uniquely identify this module
    GUID = '241877ff-64be-40c8-a603-8d5acf7a48d8'
    # Author of this module
    Author = 'wb3'
    # Company or vendor of this module
    CompanyName = ''
    # Copyright statement for this module
    Copyright = '(c) 2015. All rights reserved.'
    # Description of the functionality provided by this module
    Description = 'Module description'
    # Minimum version of the Windows PowerShell engine required by this module
    PowerShellVersion = '2.0'
    # Name of the Windows PowerShell host required by this module
    PowerShellHostName = ''
    # Minimum version of the Windows PowerShell host required by this module
    PowerShellHostVersion = ''
    # Minimum version of the .NET Framework required by this module
    DotNetFrameworkVersion = '2.0'
    # Minimum version of the common language runtime (CLR) required by this module
    CLRVersion = '2.0.50727'
    # Processor architecture (None, X86, Amd64, IA64) required by this module
    ProcessorArchitecture = 'None'
    # Modules that must be imported into the global environment prior to importing
    # this module
    RequiredModules = @()
    # Assemblies that must be loaded prior to importing this module
    RequiredAssemblies = @()
    # Script files (.ps1) that are run in the caller's environment prior to
    # importing this module
    ScriptsToProcess = @()
    # Type files (.ps1xml) to be loaded when importing this module
    TypesToProcess = @()
    # Format files (.ps1xml) to be loaded when importing this module
    FormatsToProcess = @()
    # Modules to import as nested modules of the module specified in
    # ModuleToProcess
    NestedModules = @()
    # Default command prefix
    DefaultCommandPrefix = 'Test'
    # Functions to export from this module
    FunctionsToExport = '*'
    # Cmdlets to export from this module
    CmdletsToExport = '*'
    # Variables to export from this module
    VariablesToExport = '*'
    # Aliases to export from this module
    AliasesToExport = '*'
    # List of all modules packaged with this module
    ModuleList = @()
    # List of all files packaged with this module
    FileList = @()
    # Private data to pass to the module specified in ModuleToProcess
    PrivateData = ''
    <ModuleTest.output>
    PS C:\Scripts\PowerShell> Get-ChildItem -Path 'C:\Program Files\WindowsPowerShell\Modules' -Recurse<ret>
        Directory: C:\Program Files\WindowsPowerShell\Modules
    Mode                LastWriteTime     Length Name
    d----          3/5/2015   9:06 AM            ModuleTest
        Directory: C:\Program Files\WindowsPowerShell\Modules\ModuleTest
    Mode                LastWriteTime     Length Name
    -a---          3/5/2015   8:50 AM       2907 ModuleTest.psd1
    -a---          3/5/2015   9:01 AM        140 ModuleTest.psm1
    PS C:\Scripts\PowerShell> Get-Module -ListAvailable<ret>
        Directory: C:\Program Files\WindowsPowerShell\Modules
    ModuleType Version    Name                                ExportedCommands
    Script     1.0.0.0    ModuleTest                          {Get-Something, Set-Something}
    PS C:\Scripts\PowerShell> get-som<tab>
    PS C:\Scripts\PowerShell> Get-Something<ret>
    Get-Something : The term 'Get-Something' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + Get-Something
    + ~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Get-Something:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-som<tab>
    PS C:\Scripts\PowerShell> ModuleTest\Get-Something<ret>
    ModuleTest\Get-Something : The term 'ModuleTest\Get-Something' is not recognized as the name of a cmdlet, function,
    script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
    correct and try again.
    At line:1 char:1
    + ModuleTest\Get-Something
    + ~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (ModuleTest\Get-Something:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab>
    PS C:\Scripts\PowerShell> Get-TestSomething<ret>
    Get-Something Executed
    (New Session)
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab><ret>
    get-tes : The term 'get-tes' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + get-tes
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-tes:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Scripts\PowerShell> Import-Module ModuleTest<ret>
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab><ret>
    PS C:\Scripts\PowerShell> Get-TestSomething
    Get-Something Executed
    (New Session)
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab><ret>
    get-tes : The term 'get-tes' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + get-tes
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-tes:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Scripts\PowerShell> Get-Command -Module ModuleTest<ret>
    CommandType     Name                                              
    ModuleName
    Function        Get-TestSomething                                 
    ModuleTest
    Function        Set-TestSomething                                 
    ModuleTest
    (No change in CommandAnalysis cache)
    PS C:\Scripts\PowerShell> get-tes<tab>
    PS C:\Scripts\PowerShell> Get-TestSomething<ret>
    Get-Something Executed
    PS C:\Scripts\PowerShell> moduletest\get<tab><ret>
    PS C:\Scripts\PowerShell> Get-TestSomething<ret>
    Get-Something Executed
    William Busby, PMP

    Hi William,
    yes, that's something you'll either have to do the hard way or live with admin confusion.
    If you're using Sapien's PowerShell Studio as an Editor (hint: Usually a great idea), you can very easily rename a function, even in a multi-file module project, by rightcklicking on the function-name and selecting "rename".
    Alternatively you can do a bulk rename with Powershell:
    Get all functions in your module (Load it and check exportedcommands)
    loop over each function-name
    calculate new name
    search your entire project for all references and replace them.
    Let me see ...
    function Rename-ModulePrefix
    [CmdletBinding()]
    Param (
    [Parameter(Position = 0, Mandatory = $true)]
    [string]
    $ModuleName,
    [Parameter(Position = 1, Mandatory = $true)]
    [string]
    $OldPrefix,
    [Parameter(Position = 2, Mandatory = $true)]
    [string]
    $NewPrefix,
    [Parameter(Position = 3)]
    [string]
    $Path
    # Catch all typos
    Import-Module $ModuleName -ErrorAction 'Stop'
    # Get root path if not manually passed
    if (-not $PSBoundParameters["Path"])
    $Path = (Get-Module $ModuleName).Path
    # Get module files
    $Files = Get-ChildItem -Path $path -Recurse -Include "*.ps1", "*.psm1", "*.psd1"
    # Iterate over each file
    foreach ($file in $Files)
    # Null variable in case you get an empty file somewhere and run this from Win 7
    $data = $null
    # Get Content of file
    $data = Get-Content $file
    # Replace strings
    foreach ($c in (Get-Module $ModuleName).ExportedCommands)
    $newName = $c.Name -replace $OldPrefix, $NewPrefix
    $data = $data | ForEach-Object { $_ -replace $c.Name, $newName }
    # Write back to file
    $data | Set-Content $file
    While I didn't proof it, in theory this should do it (Make a backup before running it :) ).
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • PL/SQL, synonyms to packages and name resolution

    I have some question about name resolution in PL/SQL. First, I need to describe situation, because it is quite complicated.
    There are three schemas: A1, B1 and O. A1 and B1 are containing proprietary software and I cannot modify objects there (but I can modify configuration tables, so in this way I can call any package from anyhere). O schema is my own schema. A1 and B1 schemas are in one "module", there are also A2 and B2 schemas in second "module" and AN and BN in n-th "module".
    In normal situation, A1 schema contains synonym to package B1.PKG (on B1 schema) and uses it to call B1.PKG with DEFINER rights. The same for every "module".
    I need to extend some functionality of B.PKG by buliding some kind of "wrapper" on my own O schema. It is only one MY_PKG and should be used by every "module". In this place I need some kind of magic :)
    I want to place package MY_PKG with AUTH_ID CURRENT_USER clause on my O schema and use A1..AN schema to call it. Package MY_PKG have to call package placed on one of B1..BN schemas, so I need to create synonym on O schema for package, for example, B1.PKG just to compile the MY_PKG package.
    Now, I call MY_PKG package from A1 schema and I expect MY_PKG will use synonym to B1.PKG placed on A1 schema, instead of using synonym on my O schema. That's not happening. MY_PKG still uses synonym on O schema, so it ruins whole concept :)
    Actually, I use some set of packages that already work properly in that way, but there is some difference. In my other packages I use SQL and synonyms to tables and views placed on _one_ A schema. I use those synonyms only for compiling. When packages are calling from A1..AN schemas, they use proper objects on proper A1..AN schema. In this case I try to do the same, but with package instead of tables and view. I find it difficult probably because SQL and PLSQL resolves names in other way.
    Here is the question, is it possible to make such thing as decribed above? Of course, I can use execute immediate to run proper packages directly from O schema, but I don't want :)
    Sorry for my bad english, I hope you understand whole concept.
    DB version: 11.2.0.3

    The documentation is pretty clear that invoker rights applies only to certain statements...
    Using PL/SQL Subprograms
    SELECT, INSERT, UPDATE, and DELETE data manipulation statements
    The LOCKTABLE transaction control statement
    OPEN and OPEN-FOR cursor control statements
    EXECUTEIMMEDIATE and OPEN-FOR-USING dynamic SQL statements
    SQL statements parsed using DBMS_SQL.PARSE()
    So clearly static PL/SQL references will not be resolved in this way.
    I can't actually remember (I have found AUTHID CURRENT_USER to be very rarely useful) but you may be able to get around this by executing dynamic PL/SQL blocks but given the potential downsides of dynamic SQL and PL/SQL you almost certainly don't want to.

  • Connecting from a remote computer / name resolution issues

    My work has two SQL Server 2005 databases, one installed on a Windows XP machine (running some equipment) and one installed on a Windows 7 machine (backing up the files from the XP instance).  Both computers run only the default instance.  I had
    replication set up and functioning (data being created on the XP maching was being replicated to the Win 7 machine) for the last three weeks in July.  I recently noticed that the replication is no longer working (the files were no longer being copied),
    and when I tried to check the status I got an error about named pipes, or, if I disabled named pipes "tcp provider error 0 no such host is known".
    At the time I found the replication problem, I could connect to both databases through SSMS on the Windows 7 machine.  On the XP machine, I could use SSMS to browse to the Win 7 instance but SSMS would not connect to the Win 7 instance by name (same
    errors about no such host known); the connection does go through by IP address.  I can ping from the Win 7 machine to the XP machine both by IP address and by name.  I could ping from the XP machine to the Win 7 machine by IP address but NOT by name.
    I tried running the workgroup wizard on the XP machine, thinking this might help with the name resolution problem.  In the wizard, I changed the workgroup name to a new name.  I changed the workgroup name on the Win 7 machine to match.
    This change did not affect the ping status - I can still ping by both name and IP address from the Win 7 machine, and still only the IP address works from the XP machine.  However, now SSMS on the Win 7 machine no longer sees the XP machine!  Trying
    to log in with either the machine name and the IP address, I now get a "timeout expired" message, and the SSMS login browser does not show the XP machine on the network.
    Any pointers on where to look for the cause of this problem would be very welcome.

    There was some problem (bug?) with the remote connections flag on the Win 7 server.  Someone had posted in the comments to a technet article that unchecking the remote connections box, restarting the server, then re-checking it helped them.  I
    tried it, and that fixed the problem with the Win 7 machine being unable to see the XP machine.
    Olaf's suggestion about the Hosts file fixed the problem with the XP machine having to use the IP address - now it can connect by name as well.
    Now I just have left the problem of a broken subscription to my replication, but that's a separate issue so I'll consider this thread closed.  Thanks to everyone who offered suggestions.

  • How java handles package/class names

    I am developing a strategy for internationalizing our company's middle-ware product. While I have no problem with the GUI's, exceptions, log files etc, I have no concept of how things like classpaths and packages can be specified in an asian language.
    For instance, if I have configuration information of com.abccompany.mypackage.MyClass, what will this look like to the asian user? Will they be able to change it to perhaps com.abccompany.mypackage.MyClass2 by entering localized data in Chinese or Arabic? I don't understand how this part works. On the command-line, will they type English script names? Do they run commands like so: java -cp com.abc.pkg1.jarfile.jar MyClass? Will my english filenames, packages, etc be represented in asian characters?
    We have a lot of configuration information that specify java classes as String data. I am concerned about the ability to modify this data and have it work correctly in languages that do not use the ascii character set. Is this something I need to be worried about?
    I appreciate any input. Thanks in advance.

    You do not need to warry about configuration information of com.abccompany.mypackage.MyClass
    and command-line no matter what languages used in Asia. Asian users also type in English script names or java -cp com.abc.pkg1.jarfile.jar MyClass as you do so. The only thing you need to note is
    that any text strings or messages which you want to show on any panel/dialog/window/frame and so on should be store in a resource file for internationalizing.

  • Conflit in class name and package name

    I have a small doubt. If the class name and the package name are the same in a folder, is there will be any conflict between these while using it. That means suppose a folder named 'animator' contain a package 'a' and a class name 'a'. I got any error in the 'Eclipse' tool that "a collides with a package". Is this can be solved my any change of setting in Eclipse? If then where can i change.? Can anybody help me to solve this issue??

    This works fine: just add an import to Test.java.
    import PackageName.MyClass;
    public class Test
        public static void main(String [] args)
            MyClass a = new MyClass();
    public class PackageName {}
    package PackageName;
    public class MyClass {}It's a pretty wacky, useless example, but it works.
    Plus I thought inner classes would have a dollar sign in their .class file names. When I compile this:
    public class OuterClass
        public static void main(String [] args)
            OuterClass outer = new OuterClass();
            System.out.println(outer);
        public String toString() { return "I'm an OuterClass"; }
        class InnerClass
            public String toString() { return "I'm an InnerClass"; }
    }I see two .class files: OuterClass.class and OuterClass$InnerClass.class
    Why make up examples like this? It's hard enough writing code, and it's easy to disambiguate for the compiler.

  • How can i get all java class names from a package using reflection?

    hi,
    can i get all classes name from a package using reflection or any other way?
    If possible plz give the code with example.

    You can't, because the package doesn't have to be on the local machine. It could be ANYWHERE.
    For example, via a URLClassLoader (ie from the internet) I could load a class called:
    com.paperstack.NobodyExpectsTheSpanishInquisitionI haven't written it yet. But I might tomorrow. How are you going to determine if that class is in the package?
    This subject comes up a lot. If you want to do something a bit like what you're asking for (but not quite) there are plenty of threads on the subject. Use google and/or the forum search facility to find them.
    But the answer to your question, as you asked it, is "you can't do that".

  • Class name and package name clashing

    When i have a class and a package with the same name, I cannot access classes in the package. For example I have 3 classes and 1 package as below
    - Test.java
    - PackageName.java
    + PackageName // this is a directory
    - MyClass.java
    Below are the codes of .java files
    Test.java
    =======
    public class Test { PackageName.MyClass a = new PackageName.MyClass ();}
    PackageName.java
    ===============
    public class PackageName{ }
    MyClass.java
    ==========
    package PackageName; public class MyClass { }
    I can compile PackageName.java and MyClass.java but not Test.java. It says
    cannot resolve symbol
    symbol : class MyClass
    location: class PackageName
    PackageName.MyClass a = new PackageName.MyClass ();
    But if I remove the PackageName.java, I can compile Test.java perfectly. I think when I use PackageName.MyClass, java thinks that I try to access an inner class MyClass of PackageName class, and that does not exists. Is there any way to solve this ambiguation, other than making the package name and class name different? Thank you very much.

    This works fine: just add an import to Test.java.
    import PackageName.MyClass;
    public class Test
        public static void main(String [] args)
            MyClass a = new MyClass();
    public class PackageName {}
    package PackageName;
    public class MyClass {}It's a pretty wacky, useless example, but it works.
    Plus I thought inner classes would have a dollar sign in their .class file names. When I compile this:
    public class OuterClass
        public static void main(String [] args)
            OuterClass outer = new OuterClass();
            System.out.println(outer);
        public String toString() { return "I'm an OuterClass"; }
        class InnerClass
            public String toString() { return "I'm an InnerClass"; }
    }I see two .class files: OuterClass.class and OuterClass$InnerClass.class
    Why make up examples like this? It's hard enough writing code, and it's easy to disambiguate for the compiler.

  • Reflection - Two packages/classes with same name

    Hi There !
    I am in a situation and I need some help, if anyone can help me.
    I have two tools to work with different version of a server application. Now, the admin wants to have only one tool to work with both server app.
    The problem is that the server app has a jar file with the API to be used to access it. One jar for each version.
    Inside those jars files I have the same package and the same class ! But the implementation is diferent. So I will need to access one jar when accessing the old server app and another jar to access the new server app.
    I have no idea how to do it.
    I search arround google and I found that I can load a class at runtime and then with Reflection call its methods.
    I made a test app (simple, just 2 different jars with same package and class name just printing a Hello World and Bye World) and it worked very well.
    But when I tried to apply this to my code, I realize that one class need the reference of the other class...
    For example, I have a class named Server and other called ServerStatus.
    The Server class do the connection to the server and the ServerStatus get some server information. But the method that give me this information has a argument asking for an object of Server... like this:
    Server serv = new Server();
    serv.connect();
    ServerStatus servStat = new ServerStatus();
    servStat.getServerStatus(serv);I tried to do this with reflection but in the part that I need to invoke the method getServerStatus, I do not have the name of the class that is the argument (in this case Server).
    Something like this:
       Method  m = serverClass.getMethod("getServerStatus", new Class[] {?????.class});
             result = (Boolean)m.invoke(server, new Object[] {serverStatus});Do you have any ideiias to resolve this ?
    Or something different from reflection to access two different implementations with same package and class name ?
    If you need any other information, please ask me..
    Thank you so much !
    Regards,
    Thiago

    Thiago wrote:
    Hi.
    But now, how can I handle the object (because the newInstance() return a Object object.... not the class that I want (Server, for example)).
    When you declare a reference to be something more narrow than "Object" you're telling the compiler what methods and fields the referenced object supports. With a dynamically loaded class you can't do that at compile time, because the nature of the class isn't known until you load it at runtime.
    That's why it's very handy if you know that the class you are to load implements some interface which is known at compile time. Then you can access the object through a reference to that interface.
    Otherwise there's really no option but to handle the object through reflection. Find methods with getMethod() on the Class object and invoke them with Method.invoke().
    There are tricks to impose an interface onto a dynamically loaded class at runtime, but they are just neat ways of working through reflection.

  • Getting class name without it's package.

    Hi.
    How can I get only class name of an object?
    obj.getClass().getName() returns the full package hierarchy.
    Any simple ideas?

    Is there any method that do it automatically?What do you mean automatically? You mean a single method so that you don't have to write any code? That's a very small amount of code to write, and you can put it inside a method you create yourself.
    Or you could use regex, though some may find that to be overkill. String classOnly = theClass.getName().replaceAll(".*\\.(.*)", "$1");

  • Deploy java stored proc. publishes java class names without package name

    Hi to All,
    Using JDevStudio 10132 I've created a 'Loadjava and Java Stored Procedure' deployment profile for my project. I've added my static method to the deplyment profile, but it generates script without java packege name, only pure class name.
    For example it executes: ...
    CREATE OR REPLACE PROCEDURE Procedure1(p1 IN VARCHAR2) AUTHID CURRENT_USER AS LANGUAGE JAVA NAME 'CryptoHelper.Procedure1(java.lang.String)';
    instead of
    CREATE OR REPLACE PROCEDURE Procedure1(p1 IN VARCHAR2) AUTHID CURRENT_USER AS LANGUAGE JAVA NAME 'mypackege.xxx.yyy.CryptoHelper.Procedure1(java.lang.String)';
    The CryproHelper class is definitely in mypackage.xxx.yyy package and JDeveloper Application Navigator shows correctly it.
    Any ideas?
    thx fo answers

    Hi,
    I've just been doing this on 10133 and found exactly the same thing. It's an easy fix to edit the package body - but it's rather annoying to have to manually do something that should just work.
    Steve
    *Hand editing the .deploy file to add in the package name works.
    Message was edited by:
    spilgrim

  • [svn] 2932: Updated manifests with recent changes to TCAL package and class names.

    Revision: 2932
    Author: [email protected]
    Date: 2008-08-20 14:01:37 -0700 (Wed, 20 Aug 2008)
    Log Message:
    Updated manifests with recent changes to TCAL package and class names.
    Reviewer: Jason
    Bugs: SDK-16531
    QA: No
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16531
    Modified Paths:
    flex/sdk/trunk/frameworks/fxg-manifest.xml
    flex/sdk/trunk/frameworks/mxml-2009-manifest.xml

    Revision: 2932
    Author: [email protected]
    Date: 2008-08-20 14:01:37 -0700 (Wed, 20 Aug 2008)
    Log Message:
    Updated manifests with recent changes to TCAL package and class names.
    Reviewer: Jason
    Bugs: SDK-16531
    QA: No
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16531
    Modified Paths:
    flex/sdk/trunk/frameworks/fxg-manifest.xml
    flex/sdk/trunk/frameworks/mxml-2009-manifest.xml

  • Where is the Package Name and Class Name for Android to Facebook SSO?

    Where is the Package Name and Class Name for Android to Facebook SSO?
    I am trying to fill these fields http://developers.facebook.com/docs/mobile/android/build/#ref for Facebook but i can't figure out what to place in Android Package Name and Andorid Class Name,
    same thing for the Android Key Hash, I followed this guide http://www.skoobalon.com/blog/2012/06/13/getting-the-android-key-hash-for-facebook-from-an -air-app/ but I am not sure if it is the right thing to do.
    I was thinking maybe the Pakage Name is air.com.myname.myappname (where com.myname.myappname is also the id used in the application.xml) and the Class name is  air.com.myname.myappname.MyDocumentClass ?
    Is there an official guide somewhere?
    Also do you guys know if there is somewhere a library we can use within AIR to do SSO on Facebook from Andorid?

    For what it's worth, I don't think a WiFi connection would be reliable enough. You wouldn't want your picture to freeze just because a neighbour has turned on their baby monitor. WiFi uses the same frequencies as a myriad of other devices, as well as all your neighbours' WiFi.

  • Name Resolution:Package vs schema

    I have two schema
    1.userA
    2.userB
    In userA I have function test1 & test2
    In userB I have a package userA which has a function test1;
    userB is granted permission to execute test1 and test2 in userA
    grant execute on userA.test1 to userB;
    grant execute on userA.test2 to userB;
    Now I am logged in as userB and execute the following
    select userA.test1(3) from dual;
    Function in package userB is executed;
    select userA.test2(3) from dual;
    It gives the error userA.test2 invalid identifier...
    Now here is my inference..
    When SQL encounters an identifier it first searches for packages...If a package is found all further resolutions are based on that package..So it never finds test2..
    Is this right?I needed confirmation on this
    thanks in advance

    From the "Oracle® Database PL/SQL User's Guide and Reference 10g Release 2 (10.2)" Appendix B section titled "Differences in Name Resolution Between PL/SQL and SQL"
    The name resolution rules for PL/SQL and SQL are similar. You can avoid the few differences if you follow the capture avoidance rules. For compatibility, the SQL rules are more permissive than the PL/SQL rules. SQL rules, which are mostly context sensitive, recognize as legal more situations and DML statements than the PL/SQL rules.
    * PL/SQL uses the same name-resolution rules as SQL when the PL/SQL compiler processes a SQL statement, such as a DML statement. For example, for a name such as HR.JOBS, SQL matches objects in the HR schema first, then packages, types, tables, and views in the current schema.
    * PL/SQL uses a different order to resolve names in PL/SQL statements such as assignments and procedure calls. In the case of a name HR.JOBS, PL/SQL searches first for packages, types, tables, and views named HR in the current schema, then for objects in the HR schema.

  • DBLHelper issue - Name resolution

    I have an issue with the DNS Name resolution. Unfortunately I have the red frown:( next to my subscriber.
    However, I can ping the subscriber from the publisher with the hostname, and vice versa. I confirmed that all host entries are present as well. Anyone have an idea what else to check for?

    Ok, normally check the lmhosts and host files:
    Then do a nbtstat -R and ipconfig /flushdns
    If you have already tried Reinitialize option in DBLhelper u may try it manually.
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_tech_note09186a00801d11a6.shtml
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_tech_note09186a00801e7ddf.shtml#topic1
    Let us know after that.

Maybe you are looking for