Posts: 7,532
Threads: 230
Joined: Aug 2007
(20.06.2010, 16:23)routeconverter Wrote: Of course - that's related to problem with the unreachable port. Something is blocking the web browser (I guess it's a Web Kit-based component) to direct AJAX-calls to the port from the RouteConverter process.
I found out, what the for this behaviour is: the error is NS_ERROR_DOM_BAD_URI and the cause is the same origin policy that changed between XUL Runner 1.8 and 1.9 as explained
here.
--
Christian
Posts: 157
Threads: 8
Joined: May 2010
(30.06.2010, 21:57)routeconverter Wrote: (20.06.2010, 16:23)routeconverter Wrote: Of course - that's related to problem with the unreachable port. Something is blocking the web browser (I guess it's a Web Kit-based component) to direct AJAX-calls to the port from the RouteConverter process.
I found out, what the for this behaviour is: the error is NS_ERROR_DOM_BAD_URI and the cause is the same origin policy that changed between XUL Runner 1.8 and 1.9 as explained here.
Firefox 3.6.6 is my default browser on Apple. I went into firefox and in the address bar I added the "about:config" address (without the double quotes) to get to the advanced settings.
In the command bar I added the mentioned "security.fileuri.strict_origin_policy" and it was set to true. I changed it to false. I stopped Firefox and started it to verify: It was still at false. I started RouteConverter but it still gives the same error when accessing the internal port.
Note: I also switched to Safari and Google Chrome much earlier and they had the same error.
Posts: 157
Threads: 8
Joined: May 2010
In "mapview/src/main/java/slash/navigation/converter/gui/mapview/BaseMapView.java" I tried to use "InetServerSocket" (described
here) instead of "ServerSocket" as both linux and mac are inet based. However, I do get errors. Most probably due to the fact that I don't know java at all. I don't know either whether the use of "InetServerSocket" will help.
Can you give your comments on my (futile?) attempts.
Code:
/Users/Shared/development/RouteConverter/svnRouteConverter/mapview/src/main/java/slash/navigation/converter/gui/mapview/BaseMapView.java:[46,15] cannot find symbol
symbol : class InetServerSocket
location: package java.net
/Users/Shared/development/RouteConverter/svnRouteConverter/mapview/src/main/java/slash/navigation/converter/gui/mapview/BaseMapView.java:[101,12] cannot find symbol
symbol : class InetServerSocket
location: class slash.navigation.converter.gui.mapview.BaseMapView
/Users/Shared/development/RouteConverter/svnRouteConverter/mapview/src/main/java/slash/navigation/converter/gui/mapview/BaseMapView.java:[301,12] cannot find symbol
symbol : class InetServerSocket
location: class slash.navigation.converter.gui.mapview.BaseMapView
/Users/Shared/development/RouteConverter/svnRouteConverter/mapview/src/main/java/slash/navigation/converter/gui/mapview/BaseMapView.java:[303,12] cannot find symbol
symbol : class InetServerSocket
location: class slash.navigation.converter.gui.mapview.BaseMapView
/Users/Shared/development/RouteConverter/svnRouteConverter/mapview/src/main/java/slash/navigation/converter/gui/mapview/BaseMapView.java:[303,52] cannot find symbol
symbol : class InetServerSocket
location: class slash.navigation.converter.gui.mapview.BaseMapView
Posts: 7,532
Threads: 230
Joined: Aug 2007
(03.07.2010, 09:33)hvdwolf Wrote: Can you give your comments on my (futile?) attempts.
I think you're heading in the wrong direction. The problem is not the socket but how to communicate from the browser to the socket. Currently I'm using AJAX requests which are blocked by the same origin policy for file uris that changed between XUL runner 1.8 and 1.9.
--
Christian
Posts: 157
Threads: 8
Joined: May 2010
(03.07.2010, 13:48)routeconverter Wrote: (03.07.2010, 09:33)hvdwolf Wrote: Can you give your comments on my (futile?) attempts.
I think you're heading in the wrong direction. The problem is not the socket but how to communicate from the browser to the socket. Currently I'm using AJAX requests which are blocked by the same origin policy for file uris that changed between XUL runner 1.8 and 1.9.
OK, In that case I stop immediately.
I tested with that setting set to false on my mac and linux box, but it didn't help. Are you using some internal XULrunner version with it's own settings inside RouteConverter?
If I "grep" for XULrunner I can see thats it's inside the .jars but the same grep doesn't find it inside the svn trunk
Posts: 7,532
Threads: 230
Joined: Aug 2007
(03.07.2010, 17:30)hvdwolf Wrote: I tested with that setting set to false on my mac and linux box, but it didn't help. Are you using some internal XULrunner version with it's own settings inside RouteConverter?
In the EclipseSWTMapView I'm using
DJ Native Swing, which encapsulates
Eclipse SWT components as Java Swing components. And the Eclipse SWT browser component uses XULRunner on Linux as explained in the
FAQ.
--
Christian
Posts: 4
Threads: 1
Joined: Jul 2010
Hello,
I think that Java 6 is installed on my MAC:
Click for full size -
Uploaded with plasq's Skitch
and I still get this error with the
prerelease
The message is still the same:
Click for full size -
Uploaded with plasq's Skitch
Posts: 7,532
Threads: 230
Joined: Aug 2007
(18.07.2010, 21:24)Profete162 Wrote: I think that Java 6 is installed on my MAC: [..]
and I still get this error with the prerelease
You've started RouteConverter from the trunk-source, did you?
--
Christian
Posts: 157
Threads: 8
Joined: May 2010
Please start the jar version with "java -XstartOnFirstThread -jar RouteConverterPrereleaseMac64.jar &"
The application in the prerelease .zip file still doesn't work correctly.
I already modified Christian's RouteConverter bundle and then it works correctly and shows the map, but in that case it doesn't check for the correct java version.
Posts: 4
Threads: 1
Joined: Jul 2010
19.07.2010, 09:53
(This post was last modified: 19.07.2010, 10:18 by Profete162.)
(19.07.2010, 06:29)routeconverter Wrote: You've started RouteConverter from the trunk-source, did you?
Please excuse my lack of knowledge.
I downloaded the zip file: RouteConverterPrereleaseMac.zip, unzipped it and clicked on the icon.
Is there any other way to do that and what is a "trunk".
Edit:
@hvdwolf: you were right!
Your method is working great.
Thank you.