Summary: | [dstore] Connecting to an dstore server running SSL results in exception being on the target using dstore | ||
---|---|---|---|
Product: | [Tools] Target Management | Reporter: | David Dykstal <ddykstal.eclipse> |
Component: | RSE | Assignee: | David McKnight <dmcknigh> |
Status: | RESOLVED FIXED | QA Contact: | Martin Oberhuber <mober.at+eclipse> |
Severity: | trivial | ||
Priority: | P5 | ||
Version: | 2.0 | ||
Target Milestone: | 2.0.1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
David Dykstal
2007-06-19 20:43:39 EDT
Here are the stack traces for the terminated threads: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1173) at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:65) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at org.eclipse.dstore.core.server.ServerLauncher$ConnectionListener.listen(ServerLauncher.java:210) at org.eclipse.dstore.core.server.ServerLauncher$ConnectionListener.run(ServerLauncher.java:116) Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:525) at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:723) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1030) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1057) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(SSLSocketImpl.java:1757) at org.eclipse.dstore.core.server.ServerLauncher.run(ServerLauncher.java:623) Exception in thread "Thread-7" java.lang.NullPointerException at java.io.Writer.write(Writer.java:126) at org.eclipse.dstore.core.server.ServerLauncher$ConnectionListener.listen(ServerLauncher.java:295) at org.eclipse.dstore.core.server.ServerLauncher$ConnectionListener.run(ServerLauncher.java:116) javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1173) at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:65) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at org.eclipse.dstore.core.server.ServerLauncher$ConnectionListener.listen(ServerLauncher.java:210) at org.eclipse.dstore.core.server.ServerLauncher$ConnectionListener.run(ServerLauncher.java:116) Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150) at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1584) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:866) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1030) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1057) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(SSLSocketImpl.java:1757) at org.eclipse.dstore.core.server.ServerLauncher.run(ServerLauncher.java:623) Exception in thread "Thread-8" java.lang.NullPointerException at java.io.Writer.write(Writer.java:126) at org.eclipse.dstore.core.server.ServerLauncher$ConnectionListener.listen(ServerLauncher.java:295) at org.eclipse.dstore.core.server.ServerLauncher$ConnectionListener.run(ServerLauncher.java:116) Changing the title. Once I have gotten this I get these stack traces printed every time I attempt to use the server launcher. It doesn't appear to keep the connection from proceding however. I've taken out the stack trace prints. Shouldn't we be logging exceptions somehow? At least when we are running in "debug mode"? I understand that dstore does provide some -Dxxx settings for enabling verbosity and logging? DataStore provides logging once a datastore server is started but in this case we don't have a datastore yet - this is a separate process that launches datastores. If we want to provide logging here we should open a separate enhancement. |