Unfortunately both the .app and the .jar don't function.
The .app doesn't open.
The .jar opens but doesn't show a map (see attached screengrab). And then it hangs, it's completely blocked.
I used "java -XstartOnFirstThread -jar RouteConverterPrereleaseMac64.jar".
See messges below.
Code:
2010-06-01 17:13:14.000 java[15428:c0b] [Java CocoaComponent compatibility mode]: Enabled
2010-06-01 17:13:14.000 java[15428:c0b] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at slash.navigation.gui.Application.invokeNativeInterfaceMethod(Application.java:85)
at slash.navigation.gui.Application.openNativeInterface(Application.java:94)
at slash.navigation.gui.Application.launch(Application.java:103)
at slash.navigation.converter.gui.RouteConverter6.main(RouteConverter6.java:48)
Caused by: java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.eclipse.swt.graphics.Device.<clinit>(Unknown Source)
at chrriis.dj.nativeswing.swtimpl.NativeInterface$InProcess.initialize(NativeInterface.java:425)
at chrriis.dj.nativeswing.swtimpl.NativeInterface$InProcess.access$0(NativeInterface.java:424)
at chrriis.dj.nativeswing.swtimpl.NativeInterface.initialize(NativeInterface.java:221)
at chrriis.dj.nativeswing.swtimpl.NativeInterface.open(NativeInterface.java:239)
... 8 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at slash.navigation.gui.Application.invokeNativeInterfaceMethod(Application.java:85)
at slash.navigation.gui.Application.runNativeInterfaceEventPump(Application.java:98)
at slash.navigation.gui.Application.launch(Application.java:123)
at slash.navigation.converter.gui.RouteConverter6.main(RouteConverter6.java:48)
Caused by: java.lang.IllegalStateException: Cannot run the event pump when the interface is not initialized!
at chrriis.dj.nativeswing.swtimpl.NativeInterface.runEventPump(NativeInterface.java:378)
... 8 more
Logging to /var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/RouteConverter.log
1-jun-2010 17:13:14 slash.navigation.converter.gui.RouteConverter startup
INFO: Started RouteConverter 1.34-SNAPSHOT-1.337 van 1 juni 2010 on Mac OS X 10.5.8 x86_64 with Java 1.6.0_20 and 126 MByte heap
1-jun-2010 17:13:14 slash.navigation.converter.gui.RouteConverter startup
INFO: Started RouteConverter 1.34-SNAPSHOT-1.337 van 1 juni 2010 on Mac OS X 10.5.8 x86_64 with Java 1.6.0_20 and 126 MByte heap
1-jun-2010 17:13:14 slash.navigation.gui.SingleFrameApplication createFrame
INFO: Graphics device is \Display0
1-jun-2010 17:13:14 slash.navigation.gui.SingleFrameApplication createFrame
INFO: Graphics device is \Display0
1-jun-2010 17:13:14 slash.navigation.converter.gui.Updater check
FINE: Payload: routeconverter.version=1.34-SNAPSHOT-1.337,routeconverter.startcount=87,user.locale=nl_NL,java.version=1.6.0_20,os.name=Mac OS X,os.version=10.5.8,os.arch=x86_64,
1-jun-2010 17:13:14 slash.navigation.converter.gui.Updater check
FINE: My version: 1.34-SNAPSHOT-1.337
1-jun-2010 17:13:14 slash.navigation.converter.gui.Updater check
FINE: Latest version on server: 1.32
1-jun-2010 17:13:14 slash.navigation.converter.gui.Updater check
FINE: Server thinks it's latest: true
1-jun-2010 17:13:14 slash.navigation.converter.gui.Updater check
FINE: I think it's latest: true
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication openFrame
INFO: Screen size is java.awt.Rectangle[x=0,y=0,width=1440,height=900]
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication openFrame
INFO: Screen size is java.awt.Rectangle[x=0,y=0,width=1440,height=900]
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 1073 for preferenceWidth to [0;2147483647] gives 1073
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 1073 for preferenceWidth to [0;2147483647] gives 1073
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 1073 for width to [-4;1448] gives 1073
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 1073 for width to [-4;1448] gives 1073
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 623 for preferencesHeight to [0;2147483647] gives 623
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 623 for preferencesHeight to [0;2147483647] gives 623
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 623 for height to [-4;908] gives 623
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 623 for height to [-4;908] gives 623
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication openFrame
INFO: Frame size is java.awt.Dimension[width=1073,height=623]
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication openFrame
INFO: Frame size is java.awt.Dimension[width=1073,height=623]
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 145 for x to [-4;375] gives 145
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 145 for x to [-4;375] gives 145
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 108 for y to [-4;285] gives 108
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication crop
INFO: Cropping value 108 for y to [-4;285] gives 108
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication openFrame
INFO: Frame location is java.awt.Point[x=145,y=108]
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication openFrame
INFO: Frame location is java.awt.Point[x=145,y=108]
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication openFrame
INFO: Frame state is 0
1-jun-2010 17:13:15 slash.navigation.gui.SingleFrameApplication openFrame
INFO: Frame state is 0
1-jun-2010 17:13:15 slash.common.io.Externalization extractFile
INFO: Extracting slash/navigation/converter/gui/mapview/routeconverter.html to /var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/routeconverter/routeconverter_nl.html
1-jun-2010 17:13:15 slash.common.io.Externalization extractFile
INFO: Extracting slash/navigation/converter/gui/mapview/routeconverter.html to /var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/routeconverter/routeconverter_nl.html
1-jun-2010 17:13:15 slash.common.io.Externalization extractFile
INFO: Extracting slash/navigation/converter/gui/mapview/contextmenucontrol.js to /var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/routeconverter/contextmenucontrol.js
1-jun-2010 17:13:15 slash.common.io.Externalization extractFile
INFO: Extracting slash/navigation/converter/gui/mapview/contextmenucontrol.js to /var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/routeconverter/contextmenucontrol.js
1-jun-2010 17:13:15 slash.navigation.converter.gui.mapview.EclipseSWTMapView loadWebPage
FINE: 1275405195687 loadWebPage thread Thread[AWT-EventQueue-0,6,main]
When I use "java -jar RouteConverterPrereleaseMac64.jar", it does open and function but it doesn't show a map (off course).
(01.06.2010, 16:24)hvdwolf Wrote: I used "java -XstartOnFirstThread -jar RouteConverterPrereleaseMac64.jar".
Are you sure you've used the 64-bit version, the error message claims it had been the 32-bit version:
Code:
Caused by: java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
(01.06.2010, 16:24)hvdwolf Wrote: When I use "java -jar RouteConverterPrereleaseMac64.jar", it does open and function but it doesn't show a map (off course).
(01.06.2010, 16:24)hvdwolf Wrote: I used "java -XstartOnFirstThread -jar RouteConverterPrereleaseMac64.jar".
Are you sure you've used the 64-bit version, the error message claims it had been the 32-bit version:
Yes, I see that now but I really used the RouteConverterPrereleaseMac64.jar. I'm affraid you packed a 32bit library into the Mac64.jar.
Especially as the folder "/var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/swtlib-32/" has been updated this evening whereas the swtlib-64 was updated yesterday evening.
(01.06.2010, 17:32)routeconverter Wrote: And does the log contain something useful?
No, the same as the lines already in my previous post.
(30.05.2010, 10:43)hvdwolf Wrote: Menu:
- When clicking on a menu, and then switching to another application, the expanded menu stays floating on top of everything. When going back to Routeconverter and closing the menu by clicking it again, it is closed and removed.
- When opening a menu option, and then dragging the application by it's top window bar, the opened menu doesn't move with the application but "stays behind". The menu options still function though. Application:
- Sometimes the Application stays the front-most application even when switching to another application. This other application does have the working focus but stays behind the RouteConverter screen. I do not know yet when this exactly happens. I will try to track that down.
Quite frankly: I don't know how to solve these problems from within the application. They seem to be issues of the Java VM on Mac OS X.
(30.05.2010, 10:43)hvdwolf Wrote: Menu:
- When clicking on a menu, and then switching to another application, the expanded menu stays floating on top of everything. When going back to Routeconverter and closing the menu by clicking it again, it is closed and removed.
- When opening a menu option, and then dragging the application by it's top window bar, the opened menu doesn't move with the application but "stays behind". The menu options still function though. Application:
- Sometimes the Application stays the front-most application even when switching to another application. This other application does have the working focus but stays behind the RouteConverter screen. I do not know yet when this exactly happens. I will try to track that down.
Quite frankly: I don't know how to solve these problems from within the application. They seem to be issues of the Java VM on Mac OS X.
Yes, it seems like it. I've tested the linux version and the windows version and these versions don't show that behavior.
03.06.2010, 19:22 (This post was last modified: 03.06.2010, 19:24 by hvdwolf.)
(29.05.2010, 10:27)routeconverter Wrote:
(29.05.2010, 09:33)hvdwolf Wrote: It does show an error message: "Unable to call RouteConverter from Webbrowser via port 53465. Please check your firewall."
That is the embedded (WebKit?) Browser-process that tries to call the RouteConverter-Java-process via HTTP. It's needed for interactions that start from the map or that come from Google Maps API callbacks.
(29.05.2010, 09:33)hvdwolf Wrote: So I opened my firewall for that port. On restart it throws another port error. After about 6 errors in the same range I decided to open a port range in my router firewall from 53400-53999 and completely opened my Apple macbooks firewall, but this still doesn't stop the error. It keeps on generating port errors in the same 53xxx range which I already completely opened. What is this?
Opening the firewall is generally a bad thing. But maybe you could allow that the Mac OS X browser connects to the RouteConverter process on the local loopback device (i.e. it calls http://localhost:<some port number above 1024>/...)
Well, I found a java topic about local TCP-ports and vista returning an ipv6 localhost address here. He does (needs to do?) "something" on Vista and Linux but not on MacOSX as it is unneccessary (?) there.
Maybe it's rubbish, maybe it's useful. I can't judge it.
Note also that OSXes hosts file also contains these entries
(03.06.2010, 19:22)hvdwolf Wrote: Well, I found a java topic about local TCP-ports and vista returning an ipv6 localhost address here. He does (needs to do?) "something" on Vista and Linux but not on MacOSX as it is unneccessary (?) there.
Maybe it's rubbish, maybe it's useful. I can't judge it.
I found that one valueable:
Quote:Important Note: Although I hate putting an IPv4 address in the code, a hardcoded one no less, a recent Windows Vista update has caused a lookup of "localhost" to return "::1" even if IPv6 isn't enabled on that host. Thus getLoopbackAddress() forces an IPv4 address of 127.0.0.1.
I'll try to replace "localhost" by "127.0.0.1" to avoid that "::1" bug. Thank you!