users@glassfish.java.net

Re: CA SSL Cert will not work, page does not load after configuration od SSL cert

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Mon, 26 Mar 2012 10:43:16 +0200

Hi,

you can take a patch here
http://java.net/jira/browse/GLASSFISH-17150

to fix the NullPointerException in 3.1.1

WBR,
Alexey.

On 03/25/2012 06:32 PM, forums_at_java.net wrote:
> Hello,
>
> I have a project running correctly when using the self signed cert s1as,
> however when I install a trusted cert (with corresponding root cert)
> the site
> no longer loads. I can still access the site at 8080...I have the
> secured
> site using 443...I would really appreciate any assistance/insight that
> can be
> offered in this matter.
>
> Here are the commands I used to install the cert;
>
> keytool -import -v -trustcacerts -alias root -file TrustedRoot.crt.cer
> -keystore keystore.jks -keypass changeit -storepass changeit
>
> keytool -import -v -trustcacerts -alias trigon -file
> star_trigon_ca.crt.cer
> -keystore keystore.jks -keypass changeit -storepass changeit
>
> I then configured SSL to use nickname "trigon" and specified the keysore
> file.
>
> When I try to load the page in IE6, IE9 I get "webpage can not be
> displayed"
> or Firefox9 "The connection was interrupted" and the following log
> entry is
> generated;
>
> [#|2012-03-25T12:17:46.146-0400|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=48;_ThreadName=Thread-2;|Response
>
> Error during finishResponse
> java.lang.NullPointerException
> at
> com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectionKeyHandler$CloseHandler.notifyClosed(MonitorableSelectionKeyHandler.java:94)
>
> at
> com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectionKeyHandler$CloseHandler.remotlyClosed(MonitorableSelectionKeyHandler.java:90)
>
> at
> com.sun.grizzly.BaseSelectionKeyHandler.notifyRemotlyClose(BaseSelectionKeyHandler.java:233)
>
> at
> com.sun.grizzly.util.OutputWriter.notifyRemotelyClosed(OutputWriter.java:353)
>
> at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:148)
> at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:76)
> at
> com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:326)
>
> at
> com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:398)
>
> at
> com.sun.grizzly.http.SocketChannelOutputBuffer.endRequest(SocketChannelOutputBuffer.java:389)
>
> at com.sun.grizzly.http.ProcessorTask.action(ProcessorTask.java:1090)
> at com.sun.grizzly.tcp.Response.action(Response.java:268)
> at com.sun.grizzly.tcp.Response.finish(Response.java:412)
> at
> org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:341)
> at
> org.apache.catalina.connector.Response.finishResponse(Response.java:582)
> at
> org.apache.catalina.connector.CoyoteAdapter.afterService(CoyoteAdapter.java:370)
>
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.afterService(ContainerMapper.java:366)
>
> at
> com.sun.grizzly.http.ProcessorTask.finishResponse(ProcessorTask.java:760)
> at
> com.sun.grizzly.http.ProcessorTask.postResponse(ProcessorTask.java:750)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:726)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
>
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
>
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
>
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
>
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
>
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
>
> at java.lang.Thread.run(Thread.java:722)
>
> I have tried this with both the old and new versions of the packages
> listed
> here;
>
>
> glassfish-full-incorporation Application Servers 3.1.1-12 3.1.2-23 0KB
> release.javaeesdk.sun.com
> glassfish-web-incorporation Application Servers 3.1.1-12 3.1.2-23 0KB
> release.javaeesdk.sun.com
> javaee-firstcup-tutorial Documentation 2.1-1 2.1.2-1 0KB
> release.javaeesdk.sun.com
> mq-server Message-Oriented Middleware 4.5.1-3.2 4.5.2-2.4 8KB
> release.javaeesdk.sun.com
> glassfish-javahelp Application Servers 2.0.2-1 2.0.2-1 0KB
> release.javaeesdk.sun.com
> mq-locale Message-Oriented Middleware 4.5.1-3.2 4.5.2-2.4 0KB
> release.javaeesdk.sun.com
> javaee-tutorial Documentation 6.0.1-10 6.0.7-2 16MB
> release.javaeesdk.sun.com
> javadb-core Databases and Tools 10.6.2.1-1 10.8.1.2 45KB
> release.javaeesdk.sun.com
> javadb-client Databases and Tools 10.6.2.1-1 10.8.1.2 10KB
> release.javaeesdk.sun.com
> jersey Web Services 1.8-1.10 1.11-1.10 198KB release.javaeesdk.sun.com
> mq-bin-sh Message-Oriented Middleware 4.5.1-3.2 4.5.2-2.4 0KB
> release.javaeesdk.sun.com
> mq-bin-exe Message-Oriented Middleware 4.5.1-3.2 4.5.2-2.4 0KB
> release.javaeesdk.sun.com
> mq-core Message-Oriented Middleware 4.5.1-3.2 4.5.2-2.4 7KB
> release.javaeesdk.sun.com
> glassfish-full-profile Application Servers 3.1.1-12 3.1.2-23 0KB
> release.javaeesdk.sun.com
> javaee-samples-web Application Servers 1.0-4 1.0-4 20KB
> release.javaeesdk.sun.com
> javaee-sdk-full-profile Application Servers 3.1.1-12 3.1.1-23 0KB
> release.javaeesdk.sun.com
> javaee-javadocs Application Servers 3.1.1-12 3.1.1-23 0KB
> release.javaeesdk.sun.com
> glassfish-bundled-jdk7 Java SE 1.7.0.1-8.1 1.7.0.3-5.1 197MB
> release.javaeesdk.sun.com
> javadb-common Databases and Tools 10.6.2.1-1 10.8.1.2 43KB
> release.javaeesdk.sun.com
> glassfish-web-profile Application Servers 3.1.1-12 3.1.2-23 0KB
> release.javaeesdk.sun.com
> sdk-branding-full Application Servers 3.1.1-12 3.1.1-23 0KB
> release.javaeesdk.sun.com
> javaee-samples-build Application Servers 1.0-4 1.0-4 3KB
> release.javaeesdk.sun.com
> javaee-samples-full Application Servers 1.0-4 1.0-4 0KB
> release.javaeesdk.sun.com
> mq-config-gf Message-Oriented Middleware 4.5.1-3.2 4.5.2-2.4 0KB
> release.javaeesdk.sun.com
> glassfish-cmp Application Servers 3.1.1-12 3.1.2-23 1KB
> release.javaeesdk.sun.com
> glassfish-corba Application Servers 3.1.0-30 3.1.0-32 0KB
> release.javaeesdk.sun.com
> glassfish-common-full Application Servers 3.1.1-12 3.1.2-23 2KB
> release.javaeesdk.sun.com
> metro Web Services 2.1.1-9 2.2-13 43KB release.javaeesdk.sun.com
> glassfish-jms Application Servers 3.1.1-12 3.1.2-23 21KB
> release.javaeesdk.sun.com
> glassfish-ejb Application Servers 3.1.1-12 3.1.2-23 3KB
> release.javaeesdk.sun.com
> glassfish-appclient Application Servers 3.1.1-12 3.1.2-23 2KB
> release.javaeesdk.sun.com
> glassfish-registration Application Servers 3.1.1-12 3.1.2-23 8KB
> release.javaeesdk.sun.com
> glassfish-jta Application Servers 3.1.1-12 3.1.2-23 -2KB
> release.javaeesdk.sun.com
> glassfish-corba-base Application Servers 3.1.0-30 3.1.0-32 0KB
> release.javaeesdk.sun.com
> glassfish-jts Application Servers 3.1.1-12 3.1.2-23 3KB
> release.javaeesdk.sun.com
> glassfish-jsf Application Servers 2.1.3-4 2.1.6-4 27KB
> release.javaeesdk.sun.com
> glassfish-hk2 Application Servers 3.1.1-12 3.1.2-23 685KB
> release.javaeesdk.sun.com
> felix OSGi Service Platform Release 4 3.0.8-0 4.0.2-0 84KB
> release.javaeesdk.sun.com
> glassfish-jpa Application Servers 3.1.1-12 3.1.2-23 221KB
> release.javaeesdk.sun.com
> glassfish-cluster Application Servers 3.1.1-12 3.1.2-23 123KB
> release.javaeesdk.sun.com
> glassfish-ejb-lite Application Servers 3.1.1-12 3.1.2-23 4KB
> release.javaeesdk.sun.com
> glassfish-jdbc Application Servers 3.1.1-12 3.1.2-23 13KB
> release.javaeesdk.sun.com
> glassfish-gui Application Servers 3.1.1-12 3.1.2-23 -674KB
> release.javaeesdk.sun.com
> glassfish-web Application Servers 3.1.1-12 3.1.2-23 -51KB
> release.javaeesdk.sun.com
> shoal Application Servers 1.5.34-0 1.6.17-0 44KB
> release.javaeesdk.sun.com
> glassfish-jca Application Servers 3.1.1-12 3.1.2-23 9KB
> release.javaeesdk.sun.com
> glassfish-grizzly Application Servers 1.9.36-1 1.9.46-1 7KB
> release.javaeesdk.sun.com
> glassfish-common Application Servers 3.1.1-12 3.1.2-23 676KB
> release.javaeesdk.sun.com
> glassfish-nucleus Application Servers 3.1.1-12 3.1.2-23 941KB
> release.javaeesdk.sun.com
> glassfish-upgrade Application Servers 3.1.1-12 3.1.2-23 0KB
> release.javaeesdk.sun.com
> glassfish-jcdi Application Servers 3.1.1-12 3.1.2-23 26KB
> release.javaeesdk.sun.com
> glassfish-management Application Servers 3.1.1-12 3.1.2-23 5KB
> release.javaeesdk.sun.com
> glassfish-grizzly-full Application Servers 1.9.36-1 1.9.46-1 67KB
> release.javaeesdk.sun.com
> glassfish-osgi-http Application Servers 3.1.1-12 3.1.2-23 0KB
> release.javaeesdk.sun.com
> glassfish-ha Application Servers 3.1.1-12 3.1.2-23 0KB
> release.javaeesdk.sun.com
>
>
> --
>
> [Message sent by forum member 'dboucher']
>
> View Post: http://forums.java.net/node/884508
>
>