tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Cornell" <michael.corn...@estafet.com>
Subject Nullpointer exception using ssl in tomcat 5.0
Date Fri, 17 Sep 2004 12:51:19 GMT
Hi folks,

I am getting a Null Pointer exception that I am finding hard to pinpoint,
and wonder whether you may have some insight into the matter.  Note that the
exception is being handled, but as I am using Eclipse, the nullpointer is
being displayed.

Below is my server.xml, a snippet of debug statement and two consecutive NP
exceptions that are thrown.  I am using tomcat 5.0.

A possible source of this problem could be my .keystore having only having
carried out the first part of generating a keystore on
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html and not
"Installing a Certificate from a Certificate Authority"

Server.xml:
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Catalina">
   		<Connector
			port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000"
               disableUploadTimeout="true" />

    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    	<Connector port="443"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" debug="0" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" keystoreFile=".keystore"
               keystorePass="est@fet" />

    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    	<Connector port="8009"
               enableLookups="false" redirectPort="8443" debug="0"
               protocol="AJP/1.3" />


    <!-- Define the top level container in our container hierarchy -->
    	<Engine name="Catalina" defaultHost="ROOT" debug="0">
<Host name="ROOT" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
      </Host>
    </Engine>
  </Service>
</Server>


Debug trace:

INFO  13:27:43,578 [182 ] org.apache.coyote.http11.Http11Protocol  -
Starting Coyote HTTP/1.1 on http-80
INFO  13:27:44,109 [182 ] org.apache.coyote.http11.Http11Protocol  -
Starting Coyote HTTP/1.1 on http-443


Caught nullpointer:
System Thread [Finalizer] (Suspended (exception NullPointerException))
	SSLSocketImpl.a(OutputRecord) line: not available [local variables
unavailable]
	SSLSocketImpl.a(byte, byte) line: not available
	SSLSocketImpl.a(byte) line: not available
	SSLSocketImpl.b(boolean) line: not available
	SSLSocketImpl.close() line: not available
	SSLSocketImpl(BaseSSLSocketImpl).finalize() line: not available
	Finalizer.invokeFinalizeMethod(Object) line: not available [native method]
	Finalizer.runFinalizer() line: not available
	Finalizer.access$100(Finalizer) line: not available
	Finalizer$FinalizerThread.run() line: not available

(next one)
System Thread [Finalizer] (Suspended (exception NullPointerException))
	SSLSocketImpl.b(boolean) line: not available [local variables unavailable]
	SSLSocketImpl.close() line: not available
	SSLSocketImpl(BaseSSLSocketImpl).finalize() line: not available
	Finalizer.invokeFinalizeMethod(Object) line: not available [native method]
	Finalizer.runFinalizer() line: not available
	Finalizer.access$100(Finalizer) line: not available
	Finalizer$FinalizerThread.run() line: not available


Thanks

/Michael Cornell

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.754 / Virus Database: 504 - Release Date: 06/09/2004



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message