mturk 2002/11/06 23:28:28 Modified: jk/native2/common jk_worker_jni.c Log: Skip calling worker methods that are not initialized. This prevents core dumps on shutdown/restart. Revision Changes Path 1.34 +6 -0 jakarta-tomcat-connectors/jk/native2/common/jk_worker_jni.c Index: jk_worker_jni.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_worker_jni.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- jk_worker_jni.c 6 Nov 2002 16:32:25 -0000 1.33 +++ jk_worker_jni.c 7 Nov 2002 07:28:27 -0000 1.34 @@ -419,6 +419,12 @@ "jni.destroy(), done...worker is not hooked for close\n"); return JK_OK; } + if (jniWorker->jk_java_bridge_class == NULL || + jniWorker->jk_main_method == NULL) { + env->l->jkLog(env, env->l, JK_LOG_INFO, + "jni.destroy(), done...worker does not have java methods\n"); + return JK_OK; + } if((jniEnv = vm->attach(env, vm))) { int i; env->l->jkLog(env, env->l, JK_LOG_INFO,
-- To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>