Hi,
I've tried to use ssl and custom socket and the application doen't seem to pick up the specified socket.
Following the documentation, I'm using ssl socket by:java -Djavax.net.ssl.trustStore=/home/.truststore -Djavax.net.ssl.trustStorePassword=xxx -Dhxtt.socketclass=SSL -cp Text_JDBC30.jar:. myApp
and get the following Exception:
java.sql.SQLException: java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:684)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:682)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554)
I'm using customer connection by(I basically copied the sample XorSocketLayer and XorServerSocketLayer from the documentation):
java -Dhxtt.socketclass=default1.HxttSocketLayer -cp .:Text_JDBC30.jar myApp
and get the same error.
I know my custom socket is not picked up because I add a print statement in the static initialier of HxttSocketLayer and the expected text is not printed out.
Could you take a look at this?Is it because the package I'm using doesn't support this? Thanks!
By the way, do you know if I can implement ssl socket by using customer connection? (I want to customize the TrustManger to trust all certificates while the JSSE socket is not modifiable)
|
>java.sql.SQLException: java.net.SocketException: Unexpected end of file from
>server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:684)
What's your jdbc url? Have you started a HXTT Text (CSV) server?
>By the way, do you know if I can implement ssl socket by using customer connection?
You can. Cusotmer connection can be socket stream, I/O stream, and so on, but you need to write many code according to the guide.
|
The jdbc url is like jdbc:csv:http://localhost:8443.
No I did not started a HXTT Text(CSV) server.I only
use the hxtt jdbc driver as a client. Does
Dhxtt.socketclass=SSL only
works with HXTT Text server?
It seems to implement ssl sokcet with customer connection is
at low level and I have to write many codes. Is it possible
to provide the ability to let SocketFactory be customizable
for some types of urls like http?
|
>The jdbc url is like jdbc:csv:http://localhost:8443.
>No I did not started a HXTT Text(CSV) server.I only
>use the hxtt jdbc driver as a client. Does
>Dhxtt.socketclass=SSL only
>works with HXTT Text server?
You should failed. But if you are running a web server at 8443, it can be supported since HXTT Text (CSV) support http protocol.
>It seems to implement ssl sokcet with customer connection is
>at low level and I have to write many codes. Is it possible
>to provide the ability to let SocketFactory be customizable
>for some types of urls like http?
You confused two things. Customer connection is using for server-client mode. Protocol support is using for data mine. You can find http, ftp, and smaba support at here.
|
Yes. I'm running a web server at localhost and 443 is the encrypted port. Is there a way to support https?
|
We will check the possibility to implement https url support.
|