You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/04/18 14:58:42 UTC

[GitHub] Sashkko opened a new issue #189: RemoteObject requests in Firefox do not work for release application with accessing by URL

Sashkko opened a new issue #189: RemoteObject requests in Firefox do not work for release application with accessing by URL
URL: https://github.com/apache/royale-asjs/issues/189
 
 
   If run release application in Firefox browser by URL like `http://localhost:8085/hello/index.html` - remote object requests do not work. But if run this release application as file like `file:///D:/workspace/HelloWorld/bin/js-release/index.html` - remote object requests work. 
   This problem applies only in Firefox (my version 59.0.2 (64 bit)) and when accessing the application by URL. But in Google Chome remote object requests works well. On server side configured BlazeDS under Tomcat 8.5.15.
   
   Message in Firefox web-console (partitially translated from my local language):
   `Code map error: SyntaxError: JSON.parse: unexpected character at line 7 column 1 of the JSON data URL resource: http://localhost:8085/hello/HelloWorld.js URL code map: ./HelloWorld.js.map`
   
   Example:
   ```
   
   <?xml version="1.0" encoding="utf-8"?>
   <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   				xmlns:js="library://ns.apache.org/royale/basic"
   				xmlns:local="*" pageTitle="HelloWorld" applicationComplete="application1_applicationCompleteHandler(event)">
   	<fx:Script>
   		<![CDATA[
   			protected function application1_applicationCompleteHandler(event:Event):void
   			{
   				service.send("echo", ["echo response"]);
   			}
   
   			protected function onResult(event:ResultEvent):void
   			{
   				console.log("result: "+event.data);				
   			}
   			
   			protected function onFault(event:FaultEvent):void
   			{
   				console.log("fault: "+event.message);
   			}
   		]]>
   	</fx:Script>
   
   	<js:valuesImpl>
   		<js:SimpleCSSValuesImpl />
   	</js:valuesImpl>
   	
   	<js:beads>
   		<js:ClassAliasBead/>
   		<js:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
   						 endPoint = "http://localhost:8085/messagebroker/amf"
   						 destination = "hello-controller" 
   						 source = "hello-controller"/>
   	</js:beads>
   	
   	<js:initialView>
   		<js:View width="100%" height="100%">
   			<js:Container width="100%" height="100%">
   				<js:beads>
   					<js:HorizontalFlexLayout/>
   				</js:beads>
   				<js:Label text="Hello World"/>
   			</js:Container>	
   		</js:View>
   	</js:initialView>
   </js:Application>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services