Loading modules from different domain

when I load modules from the same location where is main application, everything is fine. But when modules are loaded from different adrress i got following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at mx.utils::LoaderUtil$/isRSLLoaded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\uti ls\LoaderUtil.as:525]
          at mx.utils::LoaderUtil$/http://www.adobe.com/2006/flex/mx/internal::processRequiredRSLs()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\utils\LoaderUtil.as:259]
          at mx.core::FlexModuleFactory/getRSLInfo()[E:\dev\4.5.1\frameworks\projects\framework\src\mx \core\FlexModuleFactory.as:582]
          at mx.core::FlexModuleFactory/update()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\FlexModuleFactory.as:470]
          at mx.core::FlexModuleFactory/moduleInitHandler()[E:\dev\4.5.1\frameworks\projects\framework \src\mx\core\FlexModuleFactory.as:819]
any ideas what might be wrong?
thanks for any help in advance

This is a link to testing application:
http://michalnpe.homeip.net:55001/bin-release/LoadModuleApp.html
you can see source code of this app.
Let's say we want to run module from different domain.
so insert following address for crossdomain.xml and module (into TextInput in the applicataion above) .
http://a2s.pl/crossdomain.xml
http://www.a2s.pl/npe/softmgr/Michal/wymiana/TestModule.swf
here is the code that loads the module:
protected function loadModule(event:MouseEvent):void
                                        testloader.url = moduleAddress.text;
                                        //testloader.loadModule();
                              public function setup():void { // run before loading modules
                                        Security.allowDomain("*");
                                        Security.loadPolicyFile(crossdomain.text);
                                        var request:URLRequest = new URLRequest(crossdomain.text);
                                        var loader:URLLoader = new URLLoader();
                                        loader.load(request);

Similar Messages

  • Unable to load swf from different domain through html wrapper in Chrom

    Hi All,
           I am trying a embed a swf from different domain. My html wrapper was in one domain and swf was in another domain. I have embedded the swf into the html wrapper. When i run the html file it is loading the swf in firefox and working fine. But when i try to run the same html in chrom or IE the swf is aborted. I have crossdomain.xml file in both the servers which is also allowing both the domains. I was not able to figure out the issue. Can anybody help on this.
    regards,
    Jayagopal.

    Are you getting any errors or warnings?

  • Displaying image from different domain in an applet

    can anybody tell how to load & display an image from a different domain. the image is being generated dynamically on that server so that i cannot save it.

    You should sign your applet to be able to do it.Isn't that normally only necessary for Security
    relevant procedures, like locally reading and writing
    (saving) files? ( -> So, is that also true (sec.
    rel.) for "donwloading" from "different domain"
    (URL)? )Yes, it is a security violation. Maybe arguably not as bad as local file system access, but it could still be a problem. The main problem would be turning an unsigned applet (therefore from an unknown source) into a DOS application which starts pounding on all sorts of other servers, including the local host.
    As to the problem, you could have a servlet on your host which gets the image from the other host for you. The servlet could be very generic with the applet passing all the info needed to get the file for it.

  • How to grant access to sharepoint for the user from different Domain

    Hi All
        I need to grant access to user from different domain. 
        Where I can able to view the users in people picker (different domain).
    Thanks in Advance.
    Raj

     Hi
    Trevor Seward
    Sorry to disturb
    you again.
      I am trying to restrict user from search from other domain, say we have domain A and Domain B, where I am trying to restrict all the user from domain B (Search users)for a site collection. I have found couple of stsadmin command to do so. but none
    of them works. Below are the commands I have tried
    STSADM.exe -o setproperty -pn peoplepicker-searchadforests -pv "domain:<Name>.domain" -url "http://Site URL"
    stsadm -o setproperty -pn peoplepicker-searchadcustomquery -pv “(canonicalName=<Name>.domain*)” -url "Site URL"
    we have two way trust.
    Can you suggest any solution.
    Thanks 
    Raj

  • Mapping users coming from different domain in AD

    HI,
    We have configured vintela SSO which is working.Now we are trying  to add another domain but it has been unsuccessful.
    We have imported the users coming from other domain in CMC->AD, and UseFDQNDirectoryForServers parameter in registry.
    The issue is our complex krb5.ini errors as "cannot find kdc for realm" for the user account coming from the other domain.The existing domain kinit is successful.
    Please help in resolving this issue!!! We need to have users coming from different domain to use vintela SSO.
    Thank you.

    well you're mixing things up a bit.
    The usefqdnfordirectoryservers is used to map in groups. If the groups show up as well as the users that piece should be complete.
    the krb5.ini is for logging in users manually, it must conatin the KDC for every domain that may contain users that need to log into BO. It also must have a KDC or capath entry to define all the parent domains as well (even if they do not have members that need to login. This is how the krb5 is used to verify transitive trusts. Then all users that are not in the default domain must logon as username@ DNSDOMAIN.COM where the DNS domain is entered in all caps aqnd represents the FQDN of theidomain the users bewlong to. Now if not logging in manually this should be a big problem.
    So for SSO (vintela anyway) this process is automatic, although you may want to configure vintela with site information so it doesn't randomly use all your DC's Site can be set following the steps at the end of business objects note 1261835 (complete and vintela only editions).
    In order for vintela to work properly the value entered in CMC > Authentication > Windows AD > service principal name must = an SPN thet was created on the account that is running the SIA/CMS
    Regards,
    Tim

  • Display problem from different domain

    Hi
    I am not able to make my display(DISPLAY variable). When I m exporting the display variable from the same domain as the linux box is present. It is working fine but when I trying to export the DISPLAY variable from different domain and use the GUI. it is throwing error. Please help. Also I am able to ping from my window machine to Sun Solaris
    operating system: sun solaris 9 (5.9).
    Error Message:
    (gnome-calculator:5511): Gtk-WARNING **: cannot open display:
    Can anybody tell me how and what all we need to check to configure DISPLAY.
    I mean the software required and firewall configuration.

    I trying to export the DISPLAY variable from different domain and use the GUI.Different domain or different network?
    I am able to ping from my window machine to Sun SolarisPing means nothing in this case because:
    1. ICMP =! TCP
    2. You need to have allowed connection from Solaris to your local machine (port 6000) and ping is not capable to check that.
    3. You need to check this on/from server (Solaris)
    Or you can use X11Forwarding so you don't need to allow connection as mentioned above.
    I mean the software requiredDo you mean client SW or what?

  • Loading Fonts from diff domain

    Hi - When I try to load fonts from a diff domain, it loads but when I call a font.regiserfont, it throws a AS error.
    In the main application, this is what I do to load the fonts.
    var loaderContext:LoaderContext = new LoaderContext();
    loaderContext.checkPolicyFile = true;
    var testFontloader:Loader = new Loader();
    testFontloader.contentLoaderInfo.addEventListener(Event.INIT, function(e:Event):void{
         var FontLibrary:Class = e.target.applicationDomain.getDefinition("testFont") as Class;
         Font.registerFont(FontLibrary.font);
    var testFontReq:URLRequest = new URLRequest(model.serverLocation + ServiceURLConstants.ASSETS_PATH+"/embeddedFonts/testFont.swf");
    testFontloader.contentLoaderInfo.addEventListener(Event.COMPLETE,CheckFontLoadComplete);
    testFontloader.load(testFontReq,loaderContext);               
    And it throws an exception while it tries to register the font and it does not register it acutally. The main app is in code domain (domain1) and font swfs were placed in content domain (domain2)
    Error is:
    ArgumentError: Error #1508: The value specified for argument font is invalid.
         at flash.text::Font$/registerFont()
         at MethodInfo-778()
    I tried wih diff options, as to set loaderContext.checkPolicyFile = false; but they did not bear any fruit.
    This is the code to acualy embedd the font.
    package
         import flash.display.Sprite;
         import flash.system.Security;
         import flash.text.Font;
         public class testFont extends Sprite
             Security.allowDomain("*");
             [Embed(source="/fonts/testFont.ttf", mimeType="application/x-font", fontName="testFont",
                 unicodeRange="U+0020-U+007F,U+00A0-U+00A3,U+00A8-U+00AB,U+00AE,U+00B4,U+00B8,U+00BB,U+00B F-U+00CF,U+00D1-U+00D6,U+00D8-U+00DC,U+00DF-U+00EF,U+00F1-U+00F6,U+00F8-U+00FC,U+00FF,U+01 31,U+0152-U+0153,U+0178,U+02C6-U+02C7,U+02DA,U+02DC-U+02DD,U+2013-U+2014,U+2018-U+201A,U+2 01C-U+201E,U+2022,U+2026,U+2030,U+2039-U+203A,U+20AC,U+2122,U+FB01,U+FB02", embedAsCFF="true")]
             public static var font:Class;       
    Can someone guide me on what am I doing wrong? or is it possible at all to load and register fonts from a diff domain at all? Pls let me know if you need more info. Pls treat it as urgent!!

    I have not tried it, but the principle should be that you load the SWF into
    the same security domain which requires that you have a crossdomain.xml file
    in the right place with the right permissions.  You will probably not be
    able to test your configuration from urls that begin with file://.  You will
    have to deploy to a server and fetch via http://.
    BTW, did you prove it works from the same domain.  I'm not sure INIT is the
    right event to wait for.  I'd wait for an ENTER_FRAME after COMPLETE.

  • Grant access to users from different Domains

    Hi,
    Recently my company was merged with another. All users from my company are setup in our Domain (DomainA). Sharepoint is able to see the users in this domain and grant access to the users as well. When the merger happened, we created a Group (Test - Sharepoint)
    in our AD to add groups from other companie's domain:DomainB, totally different Forest. There is a two way trust setup between these domains. The group Test-Sharepoint is "domain local" and it is able to see the groups/users from other domain: DomainB.
    The other users are now able to access our sharepoint environment once access is granted to DomainA\Test-Sharepoint.
    Problem came when we applied Audience targetting around few web parts. The users from DomainB who are added as object in DomainA\Test-Sharepoint (group in DomainA) are not able to see the web parts that have audience targeting for this group. Someone
    suggested that AD groups should be Global or Universal but that is not our case. Most of the groups in our AD are domain local and SP is able to see the users within it.
    Please suggest how we can resolve audience targeting issue?
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

    My apologies, yes that is correct you'll have to use Domain Local in this case. http://technet.microsoft.com/en-us/library/cc755692(v=WS.10).aspx
    Actually what you'll need to do is not use Groups in your domain at all, as the users are Foreign Security Principals. Instead, use a group in the trusted domain, or attributes of the users you intend to target directly.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Calling a BSP from different domain

    Hi.
    I have a problem calling a bsp application. I am using bsp app. system for a logon screen(this is what’s causing the problem.) SAP is in the domain company<b>as</b>.com and the calling application is in the domain company.com.
    The logon screen is displayed but when users try to logon the logon screen just gets displayed again. I have found out this is because of the different domains and the cookie mysapsso2.
    When calling the same url from my machine everything works fine. Also if I try to bypass the system and logon directly to the bsp application (default.do) it works. The reason I’m using the system app. is to enable the users to change their passwords according to the rules in R/3.
    Does this make sense and does anyone have some ideas how to fix my problem?
    Regards
    Jon

    There is a pretty simple answer here - it just doesn't work.  This has to do with how the browser stores and sends cookies.  Cookies are only allowed to be passed within the same domain. This a protection that keeps a bad website from reading the content of cookies from other websites (potentially gaining sensitive information).
    There isn't too much that SAP can do about this since this is a mechanism enforced directly by the browser.

  • Can I use mp3 files from different domain as the feed?

    Hi..
    I have just created a new podcast here:
    http://artistsofliving.com/?feed=podcast
    I would like to submit the podcast to iTunes sometime soon...
    However, I'm wondering if they will reject it because the feed lives on 'artistsofliving.com', whereas I keep the media mp3 files on 'livinginthepresent.com'... a different domain.
    I own the mp3 content and both domains- I'm splitting the media from the website for bandwidth reasons.
    Is this ok? If this causes a rejection straight out is there a way to indicate that I own the material fairly?
    Thanks!
    -rich

    There's no problem about using media files from any source: the feed just has to reference them (the URLs have to be 'absolute' - i.e. including the http:// and the server name - even if the file is on the same server as the feed anyway). I don't see the fact that some files have different URLs leading to accusations of copyright breach.

  • Issue using ADSI in powershell to load users from another domain into a group

    I am trying to load users into a domain local security group from another domain using ADSI and powershell. For users who have an existing foreign security principal I can load that without issue, but the users who do not have a foreign security principal
    I am unable to load.
    These work fine, assuming the group domain is fabrikam:
    $Group.psbase.invoke("Add",[ADSI]"LDAP://CN=$external_user_sid_who_has_a_FPN,CN=ForeignSecurityPrincipals,DC=fabrikam,DC=com")
    $Group.psbase.invoke("Add",[ADSI]"LDAP://$userDN,DC=fabrikam,DC=com")
    These does not:
    $Group.psbase.invoke("Add",[ADSI]"LDAP://CN=$externaluser_sid_who_does_not_have_a_FPN,CN=ForeignSecurityPrincipals,DC=fabrikam,DC=com")
    $Group.psbase.invoke("Add",[ADSI]"LDAP://<SID=$external_user_sid_who_does_not_have_a_FPN>")
    $Group.psbase.invoke("Add",[ADSI]"LDAP://<SID=$external_user_hex_sid_who_does_not_have_a_FPN>")
    Any help would be greatly appreciated.
    Thank you

    Thank you for your reply,
    I started with that thread and it ultimately recommends using the [ADSI]"LDAP://<SID=$hexsid>, this bind is not working for me. The page it points to for conversion of sid to hexsid is in VBS, but I have used the below powershell to duplicate its function.
    $sid = "S-1-5-21-2127521184-1604012920-1887927527-72713"
    $parts = $sid.Remove(0,6).Split("-")
    foreach ($part in $parts)
    $hex = ([Convert]::ToString($part, 16)).ToUpper()
    While ($hex.length -lt 8)
    $hex = "0" + $hex
    for ($i=1; $i -lt 5; $i++)
    $reverseEndian = $reverseEndian + $hex.substring($hex.length -2, 2)
    $hex = $hex.Remove($hex.length -2, 2)
    $hexSid = "0105000000000005" + $reverseEndian
    For example SID S-1-5-21-2127521184-1604012920-1887927527-72713 needs
    to be turned into raw hex sid 010500000000000515000000A065CF7E784B9B5FE77C8770091C0100 according to that article and
    then put in the ADSI bind like this: [ADSI ]"LDAP://<SID=010500000000000515000000A065CF7E784B9B5FE77C8770091C0100>". 
    When I put that bind in (with an actual sid and not an example sid) I get the following error:
    format-default : The following exception occurred while retrieving member "PSComputerName": "There is no such object on
    the server.
    + CategoryInfo : NotSpecified: (:) [format-default], ExtendedTypeSystemException
    + FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Commands.FormatDefaultCommand
    For users who are on another domain but already have a foreign principal name created, I can add them easily enough by converting their sid to the appropriate foreign principal name format. I haven't yet had any success adding someone who doesn't have a
    foreign principal name though, even after trying the solution referenced in the article.
    Thank you in advance for any help.

  • How to manage ApplicationDomain for loaded SWFs across different domains?

    I've been getting this following error -- when I'm loading a subsidiary SWF into a main one. The sub swf contains the overlays. OverlayOne is a subclass of Overlay.
    TypeError: Error #1034: Type Coercion failed: cannot convert OverlayOne@18684f89 to Overlay.
         at HSRawVideoPlayer/setCurrentOverLay()
         at HSRawVideoPlayer/showOverlay()
         at HSRawVideoPlayer/dotRoll()
    I googled and found that I should probably be setting the applicationDomain of the loader context of the loaded swf to be that of the loading SWF (as per Senocular's article on the subject) -- although I thought that in cases of conflict this would resolve to the loading SWFs ApplicationDomain, so not necessary.
    But I've also read that this won't work across different domains, and that's the situation here -- the client wants the urls of loading and loaded swf's to be fully qualified . Will setting the ApplicationDomain of the loaded SWF to be that of the parent solve the problem above, even if they are in different domains? Can someone show me a short code snippet? Thanks!

    Hi,
    DSS has inbuilt functionalities to compare the transactions against the in built rules.If the transactions take place not in accordance with the in-built rules,it is treated as a "violation" and is reporetd.
    Virsa is an example of DSS tool.Here you can build rules for access and process ;constantly compare the actuals Vs the rules;report the violations.
    In SAP R3 for example,the T/code:pfcg is tailored for access control,while the invoice parking [f-63] is tailored for process control.Using VIRSA,you can address to risks involved both,namely,access and process control.This is an example of how DSS can help in Risk integration.
    In these tools,we have an Engine for building the rules-based on this we build the rules.These rules are stored in a table.when a transaction-for which we have built a rule - takes place,the system compares the rules VS actuals.The inconsistencies if any are reported as violations.
    Hope this helps.
    Regards,
    Ramesh

  • I am not able receive emails from different domain, but i am able to get my self in same domain.

    HI ,
    I am not able receive email from different or external domain. But i am able send the emails to other domain, i can see that i receive. here is the problem if  i reply to that email . i am not able receive .
    I have checked the Receive connectors In the Default forntend  connector ,  Anonymous user was checked in permission groups.
    Can any one help me to get this issue resolve.
    Thanks,
    Kumar.

    Hi,
    Did you try the suggestions which mentioned above? What about the result?
    Niko Cheng
    TechNet Community Support

  • Referring Application Module from different Project

    I have two projects. a.jpr and b.jpr
    I need to refer an Application Module from b.jpr in the first project a.jpr
    In the Application Module edit Wizard, in the "available" list it shows all the Application Modules from the current project only.
    What do I have to do to see the Application Modules of the other project.
    In the "Project Settings" option, under "Dependencies" I have referred to the other project "b.jpr"
    But it didn't help.
    Any help is greatly appreciated.

    I have a similar problem as follows.
    I have two projects: a web WAR and an EJB3 EAR. On deployment all the EJB class files are generated into the WAR file and the contents of the EAR file only has the XML configuration and dependant jar files.
    How can I build the deployment EAR with the EJB classes within the jar? Why are they ending up in with the WAR WEB-INF/classes directory?
    This a significant problem and any help / advice would be appreciated.

  • Loading assets from different libraries

    Hello,
    I currently have a "container SWF player" that loads SWFs externally and plays them.  The sound file for the SWF is in the library of the container SWF player, because the player is using the duration of the sound file to determine how long the scrubber bar goes.
    The problem is, it sort of defeats the purpose of having a container SWF player if I have to create a different container SWF player file for each external SWF because there's a different sound for each external SWF.
    Is there a way to pull the sound file from the library of the externally loaded SWF into the container SWF player?  So that depending on what external SWF is playing, it will pull the associated MP3 file from that SWF's library?
    If this needs more explanation just let me know, I'm not sure if I got this across right..thanks in advance!

    You can access application domain of the loaded swfs and utilize the objects from it.
    Read this:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html#ap plicationDomain
    And this:
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000327.html

Maybe you are looking for

  • Calculation of unrestricted stock on posting date

    Hello, In a certain report that we developed for our customer one of the data Is "unrestricted stock on posting date". Is there a function that calculate this data, and if not what is the best way to do it? Thank you in advance, Haim Gimelfarb

  • CapacityPolicy: Handling "cache is full"

    I am working with Java Object Cache (in 10.1.3 dp4) and am having some problems with managing the size of the cache. In my javacache.xml file, I set the max number of objects to some number (2000). Eventually, the size of the cache grows that big (we

  • Updating employee in asset master

    Hi There are several laptops and mobile phones which are given to employees. I need to track employee-wise assets. So i need to update employee name in asset master But here there is no HR module so personnel numbers are not available. Employees are

  • User exit to restrict the Short description ( POS descpn) in Artcile master

    Hi Could you please help me out with the excat user exit for restricting short description (pos description0 in artcile master. It allows 40 characters, i need it to restrict it to 30 Thanks Sreenath

  • Failing to login or reset password for ePrintCenter

    I am trying to log in to ePrintCenter, but it fails with a password error. I have clicked on the link to do a password reset, and received the mail sent by HP. When I click on teh link to do the password reset, I just get a message saying SERVER ERRO