Ask a Question related to Macromedia Shockwave, Design and Development.
-
Jigar12345 #1
StomClient and flash
Hi All,
We are facing issue in STOMP client because of newly implemented
restriction on flash
player.([url]http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_[/url]
update.html).
Because of this, Our STOMP client is not able to get messages from activemq.
We have tried to add socket meta files as discussed in others article but we
were not able to get solutions.
We have done below stuffs.
1) Added LoadPolicy code in stompclient for getting policyfile from server
running on 80 port.
2) Also set xmlSocket as load policy to get connection from stompclient to
Activemq.
1) PolicyFile.xml(loading this also in STOMPClient.swf)
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<!-- Policy file for xmlsocket://socks.example.com -->
<cross-domain-policy>
<!-- This is a master-policy file -->
<site-control permitted-cross-domain-policies="master-only"/>
<!-- Instead of setting to-ports="*",
administrators can use ranges and commas -->
<!-- This will allow access to ports 123, 456, 457, and 458 -->
<allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>
2) Flash players logs(using debug version of Flash player)
Error: Request for resource at xmlsocket://192.168.1.12:61613 by requestor
from [url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url] is denied due to lack of
policy file permissions.
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url]
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/ladyguinn.swf[/url]
OK: Searching for <allow-access-from> in policy files to authorize data
loading from resource at xmlsocket://192.168.1.12:61613 by requestor from
[url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url]
OK: Policy file accepted: [url]http://192.168.1.12/crossdomain.xml[/url]
Warning: Timeout on xmlsocket://192.168.1.12:61613 (at 3 seconds) while
waiting for socket policy file. This should not cause any problems, but see
[url]http://www.adobe.com/go/strict_policy_files[/url] for an explanation.
Error: Request for resource at xmlsocket://192.168.1.12:61613 by requestor
from [url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url] is denied due to lack of
policy file permissions.
OK: Root-level SWF loaded: [url]http://mail.google.com/a/sigmainfo.net/im/sound.swf[/url]
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url]
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/ladyguinn.swf[/url]
OK: Root-level SWF loaded: [url]http://mail.google.com/a/sigmainfo.net/im/sound.swf[/url]
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url]
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/bill.swf[/url]
OK: Searching for <allow-access-from> in policy files to authorize data
loading from resource at xmlsocket://192.168.1.12:61613 by requestor from
[url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url]
OK: Policy file accepted: [url]http://192.168.1.12/crossdomain.xml[/url]
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url]
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/bill.swf[/url]
OK: Searching for <allow-access-from> in policy files to authorize data
loading from resource at xmlsocket://192.168.1.12:61613 by requestor from
[url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url]
OK: Policy file accepted: [url]http://192.168.1.12/crossdomain.xml[/url]
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url]
OK: Root-level SWF loaded: [url]http://127.0.0.1/blackwells/bid/bill.swf[/url]
OK: Searching for <allow-access-from> in policy files to authorize data
loading from resource at xmlsocket://192.168.1.12:61613 by requestor from
[url]http://127.0.0.1/blackwells/bid/stompclient.swf[/url]
OK: Policy file accepted: [url]http://192.168.1.12/crossdomain.xml[/url]
Warning: Ignoring <site-control> tag in policy file from
[url]http://192.168.1.12:843/policyfile.xml[/url]. This tag is only allowed in master
policy files.
Warning: Domain 192.168.1.12 does not specify a meta-policy. Applying default
meta-policy 'all'. This configuration is deprecated. See
[url]http://www.adobe.com/go/strict_policy_files[/url] to fix this problem.
OK: Root-level SWF loaded: [url]http://192.168.1.12/blackwells/bid/stompclient.swf[/url]
OK: Root-level SWF loaded: [url]http://192.168.1.12/blackwells/bid/ladyguinn.swf[/url]
OK: Searching for <allow-access-from> in policy files to authorize data
loading from resource at xmlsocket://192.168.1.47:61613 by requestor from
[url]http://192.168.1.12/blackwells/bid/stompclient.swf[/url]
Warning: [strict] Ignoring policy file at xmlsocket://192.168.1.47:843 due to
incorrect syntax. See [url]http://www.adobe.com/go/strict_policy_files[/url] to fix this
problem.
Warning: Timeout on xmlsocket://192.168.1.47:61613 (at 3 seconds) while
waiting for socket policy file. This should not cause any problems, but see
[url]http://www.adobe.com/go/strict_policy_files[/url] for an explanation.
Error: Request for resource at xmlsocket://192.168.1.47:61613 by requestor
from [url]http://192.168.1.12/blackwells/bid/stompclient.swf[/url] is denied due to lack
of policy file permissions.
3) Setting below load policy files in stompclient.mxml
flash.system.Security.loadPolicyFile("http://" + server +
"/crossdomain.xml");
//flash.system.Security.loadPolicyFile("http://" + server +
"/policyfile.xml");
flash.system.Security.loadPolicyFile("xmlsocket://" + server +
":"+port);
4) we have also changed crossdomain.xml (this is using Schema instead of DTD
as <site-control > is not there in DTD)
<?xml version="1.0" encoding="UTF-8"?>
<cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd">
<allow-access-from domain="*" />
<site-control permitted-cross-domain-policies="master-only"/>
</cross-domain-policy>
Can you tell me what are we are missing, still we are not getting messages.any
idea.
Regards,
Jigar
Jigar12345 Guest
-
Flash player not working on some websites & have foundRegestry keys of older Flash players.
Hi, like many people here I have problems seeing flash content on some websites but other websites work fine. I also found that YOUTUBE works... -
Flash player installed, but every site flash playerrequired for asks to install not working at all
Hi all, wondering if someone would be kind enough to help me, PLEASE lol Flash player asks to be installed everytime I go onto any site that... -
Calling on the Flash gurus!! How do I bring in a multi-page PDF into Flash?
Hello, I think this may be new territory, well for me at least. I am trying to IMPORT a cable drawing package (PDF with over a hundred pages)... -
convert all flash site to both flash and no flash
a friend has a site that is done with all flash. they asked me to help make it readable by more browsers. could some belly point me in the right... -
Are Google and the Flash manual a good start for learning Flash?
If so.. please tell Mr. x so!



Reply With Quote

