Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT Text(CSV)
can't use ssl
Lucy
2007-06-26 13:09:44.0
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)

Re:can't use ssl
HXTT Support
2007-06-26 17:43:01.0
>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.
Re:Re:can't use ssl
Lucy
2007-06-26 21:20:37.0
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?
Re:Re:Re:can't use ssl
HXTT Support
2007-06-26 21:38:29.0
>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.
Re:Re:Re:Re:can't use ssl
Lucy
2007-06-27 05:04:24.0
Yes. I'm running a web server at localhost and 443 is the encrypted port. Is there a way to support https?
Re:Re:Re:Re:Re:can't use ssl
HXTT Support
2007-06-27 06:29:36.0
We will check the possibility to implement https url support.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap