... the user friendly GPS tool


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RouteConverter and Mac OS X
#71
(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
Reply
#72
(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.
Reply
#73
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
Reply
#74
(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
Reply
#75
(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
Reply
#76
(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
Reply
#77
Hello,

I think that Java 6 is installed on my MAC:

[Image: 20100718-8hn8pcmkftgyruq4qjw7amqne9.preview.jpg]
Click for full size - Uploaded with plasq's Skitch

and I still get this error with the prerelease

The message is still the same:

[Image: 20100718-eh5s8q133b7umr8a5yks5tb7jc.preview.jpg]
Click for full size - Uploaded with plasq's Skitch
Reply
#78
(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
Reply
#79
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.
Reply
#80
(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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)