ASF Bugzilla – Attachment 24411 Details for
Bug 47712
NoSuchFieldException when trying to use Tomcat Native library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Get Fields before switching to different clazz.
2009-10-23_tc55_bz47712.patch (text/plain), 1.44 KB, created by
Rainer Jung
on 2009-10-23 12:57:45 UTC
(
hide
)
Description:
Get Fields before switching to different clazz.
Filename:
MIME Type:
Creator:
Rainer Jung
Created:
2009-10-23 12:57:45 UTC
Size:
1.44 KB
patch
obsolete
>Index: container/catalina/src/share/org/apache/catalina/core/AprLifecycleListener.java >=================================================================== >--- container/catalina/src/share/org/apache/catalina/core/AprLifecycleListener.java (revision 821539) >+++ container/catalina/src/share/org/apache/catalina/core/AprLifecycleListener.java (working copy) >@@ -81,16 +81,16 @@ > Class clazz = Class.forName("org.apache.tomcat.jni.Library"); > Method method = clazz.getMethod(methodName, paramTypes); > method.invoke(null, paramValues); >+ >+ major = clazz.getField("TCN_MAJOR_VERSION").getInt(null); >+ minor = clazz.getField("TCN_MINOR_VERSION").getInt(null); >+ patch = clazz.getField("TCN_PATCH_VERSION").getInt(null); > > methodName = "randSet"; > paramValues[0] = SSLRandomSeed; > clazz = Class.forName("org.apache.tomcat.jni.SSL"); > method = clazz.getMethod(methodName, paramTypes); > method.invoke(null, paramValues); >- >- major = clazz.getField("TCN_MAJOR_VERSION").getInt(null); >- minor = clazz.getField("TCN_MINOR_VERSION").getInt(null); >- patch = clazz.getField("TCN_PATCH_VERSION").getInt(null); > } catch (Throwable t) { > if (!log.isDebugEnabled()) { > log.info(sm.getString("aprListener.aprInit",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47712
: 24411