Hi Chris,

Thanks for prompt reply. I am no java developer so gave me good lead.

I compared the Poll.java in  tomcat source ( 7.0.35 src ) with 
tomcat-native-1.1.24-src

diff apache-tomcat-7.0.35-src/java/org/apache/tomcat/jni/Poll.java           
tomcat-native-1.1.24-src/jni/java/org/apache/tomcat/jni/Poll.java

23c23
<  * @version $Id: Poll.java 1349932 2012-06-13 15:59:02Z markt $
---
>  * @version $Revision: 1144906 $, $Date: 2011-07-10 19:12:19 +0200 (Sun, 10 
> Jul 2011) $
76,77c76,80
<      * Add a socket to a pollset with the default timeout.
<      * @param pollset The pollset to which to add the socket
---
>      * Add a socket or to a pollset
>      * If you set client_data in the descriptor, that value
>      * will be returned in the client_data field whenever this
>      * descriptor is signaled in apr_pollset_poll().
>      * @param pollset The pollset to which to add the descriptor
83,92d85
<
<     /**
<      * Add a socket to a pollset with a specific timeout.
<      * @param pollset The pollset to which to add the socket
<      * @param sock The sockets to add
<      * @param reqevents requested events
<      * @param timeout requested timeout in microseconds (-1 for infinite)
<      */
<     public static native int addWithTimeout(long pollset, long sock,
<                                             int reqevents, long timeout);



Looks like that in latest version of  native library , the "addWithTimeout" 
function is missing.
The "C" counterpart indeed is present in the native library.

Does it make sense to copy the Poll.java from the tomcat src to native library 
and build the native library??

Thanks,
Vishal






________________________________________
From: Christopher Schultz [ch...@christopherschultz.net]
Sent: Thursday, January 24, 2013 7:00 PM
To: Tomcat Users List
Subject: Re: Unexpected poller error

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Vishal,

On 1/24/13 8:47 AM, Vishal-sh Sharma wrote:
> I get the following error in catalina.log when i connect the
> tomcat server over http. However https works fine.
>
> 24-Jan-2013 13:06:48.505 SEVERE [http-apr-11831-Poller-0]
> org.apache.tomcat.util.net.AprEndpoint$Poller.run Unexpected poller
> error java.lang.NoSuchMethodError:
> org.apache.tomcat.jni.Poll.addWithTimeout(JJIJ)I at
> org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1287)

That
>
method certainly is defined in Poll.java:91 in Tomcat 7.0.x trunk:

    public static native int addWithTimeout(long pollset, long sock,
                                            int reqevents, long timeout);

native/src/poll.c has it, too:

TCN_IMPLEMENT_CALL(jint, Poll, addWithTimeout)(TCN_STDARGS, jlong pollset,
                                               jlong socket, jint
reqevents,
                                               jlong socket_timeout)

Since you aren't getting a linkage error of some kind, this seems to
be a Java-related problem (and not a native problem). If the method
was missing from the native library, you'd get UnsatisfiedLinkError.

Are you sure you have a clean Tomcat install?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlEBhLoACgkQ9CaO5/Lv0PC+4ACfcp2sNSbR82N81AKQIFgBT5E5
jmYAoIcK7r49ZrK98Bqns3LNdG9SKSy3
=sa47
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to