AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem while creating JVM

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> JVM, native methods and hardware
View previous topic :: View next topic  
Author Message
Srihari
Guest





PostPosted: Thu Jul 28, 2005 8:14 am    Post subject: Problem while creating JVM Reply with quote



Hi all!

[I had already posted this message in comp.lang.java.prog. But didn't
get any response.]

I have a tomcat service, which manages a process (for which the native
binaries are available and the platform is Linux). This process in turn
uses the JNI to make calls to java programs.

The jvm library (to be used for the creating a JVM) is specified
explicitly within the native code.

In this scenario, the creation of JVM from native code succeeds only
when client JVM lib is used. When server JVM lib is used, the process
crashes (stack trace is pasted at the end)

Somehow, if I modify the jvm.cfg (the config file present in
<JAVA_HOME>/jre/lib/i386/jvm.cfg where the various JVM configurations
are specified), such that server JVM configuration is on top above
client JVM configuration (by default, its client JVM config which is at
the top in the config file), the creation of JVM succeeds for server
JVM lib.

Will the config file even matter when we explicitly specify the JVM
library to be used? What could be the problem?

Srihari.

Stack Trace:
-----------

#0 0x02af8cef in raise () from /lib/tls/libc.so.6
#1 0x02afa4f5 in abort () from /lib/tls/libc.so.6
#2 0x08170b3c in fatalSignalHandler ()
#3 0x03f8f93b in os::Linux::chained_handler () from
java/jre/lib/i386/server/libjvm.so
#4 0x03f91e54 in JVM_handle_linux_signal () from
java/jre/lib/i386/server/libjvm.so
#5 0x03f90c38 in signalHandler () from
java/jre/lib/i386/server/libjvm.so
#6 <signal handler called>
#7 0x030d05e0 in JVM_NativePath () from
java/jre/lib/i386/client/libjvm.so
#8 0x02cf8ff3 in Java_java_util_zip_ZipEntry_initFields () from
java/jre/lib/i386/libzip.so
#9 0x02cf93af in ZIP_Open () from java/jre/lib/i386/libzip.so
#10 0x03df7977 in ClassLoader::setup_bootstrap_search_path ()
from java/jre/lib/i386/server/libjvm.so
#11 0x03df89b5 in ClassLoader::initialize () from
java/jre/lib/i386/server/libjvm.so
#12 0x03df8a71 in classLoader_init () from
java/jre/lib/i386/server/libjvm.so
#13 0x03e88acf in init_globals () from
java/jre/lib/i386/server/libjvm.so
#14 0x04009d4b in Threads::create_vm () from
java/jre/lib/i386/server/libjvm.so
#15 0x03ecbb08 in JNI_CreateJavaVM () from
java/jre/lib/i386/server/libjvm.so

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> JVM, native methods and hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.