This seems to be the same problem as reported in eclipse bug database:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=345652
Another thread:
http://lists.apple.com/archives/java-dev/2008/May/msg00116.html
suggest that some other awt classes do load fine, seems like
java.awt.Color is a bad choice to just check if the AWT is present.
Cheers,
T
On 10/18/2012 11:46 AM, Timotej Ecimovic wrote:
Hi!
Debugging our code shows the attached stack-trace on the thread when
it locks up.
Basically in your class com.thoughtworks.xstream.core.JVM, line 38,
you do:
private final boolean supportsAWT = loadClass("java.awt.Color") !=
null;
This locks up on the mac with the attached stack trace.
It gives me a workaround by simply setting this to false, (since I
don't need AWT anyway), but it would be nice if "official" release
could somehow deal with that.
I'll log a bug.....
Cheers,
Timotej
On 10/17/2012 1:57 AM, Jörg Schaible wrote:
Hi Timotej,
Timotej Ecimovic wrote:
I have a question regarding xstream 1.4.3 on OSX.
Background:
- we develop eclipse RCP application running on Win, Linux and
Mac.
- we had xstream 1.2.2 for long years without problems.
- we have been using XStream.setClassLoader() to properly set
local
plugin classloaders when calling library which is contained in a
separate "external libraries" plugin.
- lately we've been hitting issues with Windows 7, so I saw that
1.4.3 works on Windows 7 and started working on the upgrade
Current problem:
- I upgraded the app to xstream 1.4.3
- Windows 7 now works fine, so problem is solved
- Linux was fine before and is fine now
- On Macs, however, the app now freezes when it is coming up. When
it is loading one of the user state files which is an array of xstream
serialized objects, JVM locks up and never comes back.
- If I downgrade back to 1.2.2 everything works fine on a mac.
- Simple unit tests show me that I can create the XML file fine
with
1.4.3, but the moment I read it back in from the same process, JVM
freezes up
So questions:
- is this a known issue?
No.
Is someone working on this issue for Mac?
No. And lack of hardware.
- is anyone hitting this, and did you find some workaround for it?
You're the first who ever reported this.
(My current workaround is to not upgrade Macs, but that is very nasty
since we then need a platform-dependent eclipse plugin that manages
external references).
- if this is not a known issue, where can I log a bug?
http://xstream.codehaus.org/issues.html
However, this will currently only be for the records :-/
Any help is much appreciated!
Do you serialize any class types that may hold system resources e.g.
like
AWT or Swing frames or images?
Can you create a minimal XML file that exposes the behavior?
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email