7 messages in net.java.dev.jna.usersRe: [jna-users] JVM-Crash with JNA
FromSent OnAttachments
Gregor B. RosenauerOct 14, 2007 2:08 pm 
Timothy WallOct 14, 2007 2:37 pm 
Gregor B. RosenauerOct 15, 2007 2:32 pm 
Timothy WallOct 15, 2007 4:22 pm 
Gregor B. RosenauerOct 20, 2007 10:38 am 
Gregor B. RosenauerNov 27, 2007 8:21 am 
Timothy WallNov 27, 2007 9:45 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] JVM-Crash with JNAActions...
From:Gregor B. Rosenauer (greg@gmail.com)
Date:Oct 20, 2007 10:38:26 am
List:net.java.dev.jna.users

Timothy wrote:

In systems that do a lot of application load/unloads, you probably want to avoid static references in general.

I replaced all references with a Getter to a static variable and that made the "symbol"-errors go away. So JNA is probably not connected to my problems with ServiceMix container crashes - e.g., in 60-70% of the cases (more with Java6...) the server crashes when trying to access it via JMX, which works fine with the stock components. I'll have to investigate my library and container-configuration, the remaining stability-problems seem more JBI-related.

Do you know what portion(s) of code are defining these symbols?

I thought they were in the JNA lib..? (at least they are gone now)

Does ServiceMix use a classloader per context, or a single classloader that

loads and unloads classes? ServiceMix uses the ClassWorlds classloader, so I think the latter. There is some documentation at:

http://incubator.apache.org/servicemix/classloaders.html

Thanks for the tips so far, Gregor