From dcarlson@laredo.retrovertigo.com  Thu Aug 22 16:11:08 2002
Return-Path: <dcarlson@laredo.retrovertigo.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0D8B837B400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Aug 2002 16:11:08 -0700 (PDT)
Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9B92B43E42
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Aug 2002 16:11:07 -0700 (PDT)
	(envelope-from dcarlson@laredo.retrovertigo.com)
Received: from dhcp068-64-151-24.nt01-c4.cpe.charter-ne.com ([24.151.64.68] helo=laredo.retrovertigo.com)
	by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1)
	id 17i16Y-0007CD-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 22 Aug 2002 16:11:06 -0700
Received: by laredo.retrovertigo.com (Postfix, from userid 1001)
	id EF06922E14; Thu, 22 Aug 2002 19:11:10 -0400 (EDT)
Message-Id: <20020822231110.EF06922E14@laredo.retrovertigo.com>
Date: Thu, 22 Aug 2002 19:11:10 -0400 (EDT)
From: Dylan Carlson <absinthe@pobox.com>
Reply-To: Dylan Carlson <absinthe@pobox.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: JniHandler and ChannelUn Errors
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41913
>Category:       java
>Synopsis:       JniHandler and ChannelUn Errors
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    znerd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 22 16:20:01 PDT 2002
>Closed-Date:    Tue Jan 13 23:23:11 PST 2004
>Last-Modified:  Tue Jan 13 23:23:11 PST 2004
>Originator:     Dylan Carlson
>Release:        FreeBSD 4.4-RELEASE
>Organization:
>Environment:

Forwarded from email: Dev Zero G Ltd (mailing_lists@devzerog.com)

FreeBSD 4.4 -- rest unknown (user should followup with full uname -a)


>Description:

Hello, thanks for reading and PLEASE HELP!

Building and then launching the Tomcat 4.0.4 connector for Apache 2 on
FreeBSD 4.4, linux-jdk 1.4 , we get:

    org.apache.jk.server.JkMain init
   INFO: Starting Jk2, base dir= /usr/local/tomcat4.0.4_1.4.0
   conf=/usr/local/tomcat4.0.4_1.4.0/conf/jk2.properties
    org.apache.jk.server.JkMain start
   INFO: APR not loaded, disabling jni components: java.io.IOException:
   /usr/local/
   tomcat4.0.4_1.4.0/lib/jk_jnicb.so:
   /usr/local/tomcat4.0.4_1.4.0/lib/jk_jni.so:
   ELF file OS ABI invalid.

Then, we were answered:

  : I'm assuming you're running 1.4 under Linux emulation, since the
  : native 1.4 isn't near finished yet :).  The obvious guess would
  : then be that the shared library jk_jni.so is in fact a native
  : FreeBSD shared library when it needs to be a Linux shared
  : library.  Any shared library loaded by a Linux JDK running under
  : emulation must be a Linux shared library."

After that we have tried to build jkjni.so with native freeBSD jdk1.3,
   so this shared library can use native FreeBSD methods.
But, after starting Tomcat 4.0.4 (jdk 1.3) we get:

Error JniHandler - -nativeDispatch: error 21000
Error ChannelUn - -receive error: 21000
(info) [jk_jni_aprImpl.c (470)] jkInvoke() invoke 2db8bd2c
(info) [jk_channel_un.c (292)] channelUn.close(): close unix socket -1
(error) [jk_channel_un.c (416)] channelUn.receive():error receiving -3 9
Bad file descriptor 0x15abd0f0 -1

ANY ideas, suggestions, guesses - would be greatly appreciated.
Thanks in advance.

Dev Zero G Team
http://devzerog.com

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-java->znerd 
Responsible-Changed-By: znerd 
Responsible-Changed-When: Tue Jan 13 15:05:44 PST 2004 
Responsible-Changed-Why:  
I'll handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41913 

From: Ernst de Haan <znerd@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, absinthe@pobox.com
Cc:  
Subject: Re: java/41913: JniHandler and ChannelUn Errors
Date: Wed, 14 Jan 2004 00:08:52 +0000

 Some questions:
 - Does this problem persist?
 If so:
 - What OS are you currently experiencing the problem on? (please send output 
 of 'uname -a')
 - Exactly what version of the JDK do you use?
 - Did you try Java 1.4.2? If so, what patchlevel?
 
 Ernst
 
State-Changed-From-To: open->closed 
State-Changed-By: znerd 
State-Changed-When: Tue Jan 13 23:22:58 PST 2004 
State-Changed-Why:  
Closed at originator's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41913 
>Unformatted:
