Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
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
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT Text(CSV)
replace com.sun.net.ssl.internal.ssl.Provider
Lucy
2010-04-06 14:31:46
Hi,there,

We are customer of HXTT3.0 and are happy about it. However, recently we have encountered a problem because we switch to IBM JVM which doesn't have com.sun.net.ssl.internal.ssl and using com.ibm.jsse2.IBMJSSEProvider2 instead.Provider.class and using . We get a NoClassDefFoundError. Could you solve this issue for us? It will be better if the ssl provider can be configurable, Thanks!
Re:replace com.sun.net.ssl.internal.ssl.Provider
HXTT Support
2010-04-06 17:51:36
Configure the Java Runtime Environment for the SSL socket factory providers by adding entries to the java.security file.

The format of SSL socket factory provider entries are:

ssl.SocketFactory.provider=provider-package-name
ssl.ServerSocketFactory.provider=provider-package-name

Specify the SSL socket factory provider for the Java security provider that you are using.

Example: Include SSL socket factory provider entries like these in the java.security file when you enable FIPS mode in the IBMJSSE2 provider:

# Set the SSL socket factory provider
ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl
ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl

Example: Include SSL socket factory provider entries like these in the java.security file when you enable FIPS mode in the IBMJSSE provider:

# Set the SSL socket factory provider
ssl.SocketFactory.provider=com.ibm.fips.jsse.JSSESocketFactory
ssl.ServerSocketFactory.provider=com.ibm.fips.jsse.JSSEServerSocketFactory

Example: Include SSL socket factory provider entries like these when you use the Sun JSSE provider:

# Set the SSL socket factory provider
ssl.SocketFactory.provider=com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl
ssl.ServerSocketFactory.provider=com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl

Re:Re:replace com.sun.net.ssl.internal.ssl.Provider
Lucy
2010-04-07 17:57:10
Thanks for your answer. However it does not work for version3.0. Could you send me a demo of version4.0 to see if it will work? And if it does not, could you fix it in the new version?

Thanks!

Lucy
Re:Re:Re:replace com.sun.net.ssl.internal.ssl.Provider
Lucy
2010-04-07 19:56:21
I downloaded the latest evaluation version. It seems to still have this problem. Could you fix it for us? Thanks a lot!
Re:Re:Re:Re:replace com.sun.net.ssl.internal.ssl.Provider
HXTT Support
2010-04-08 06:17:34
Thanks for your patience. According to our test for IBM JDK, you should be using an older JDK version belows JDK 1.4 so that HXTT Text (CSV) think you should download JSSE 1.0.3 package for https support in JDK 1.2.x and 1.3.x, and try to load com.sun.net.ssl.internal.ssl to check it. For IBM JRE 5.0, it seems that issue won't happen without any special setting. We will support it soon.
Re:Re:Re:Re:Re:replace com.sun.net.ssl.internal.ssl.Provider
HXTT Support
2010-04-08 08:35:14
The latest package detects automatically IBM JVM. Please download it.
Re:Re:Re:Re:Re:Re:replace com.sun.net.ssl.internal.ssl.Provider
Lucy
2010-04-08 18:37:04
Thanks! However I downloaded the latest package and still have some problem.

This is my test:
import java.sql.*;
import java.util.*;
public class HxttTest
{

public static void main(String[] args) throws Exception {
Class.forName("com.hxtt.sql.text.TextDriver");
Properties prop = new Properties();
Connection con = DriverManager.getConnection("jdbc:csv:ftp://jumbo", prop);
con.close();
}

}

The environment is IBMJDK1.6 for linux

After I compile and run the following command:
/home/ibm-java-i386-60-6.0-7.0/bin/java -cp .:/tmp/Text_JDBC40.jar:jcifs.jar HxttTest
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: com.sun.net.ssl.internal.ssl.Provider
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at com.hxtt.sql.bq.a(Unknown Source)
at com.hxtt.sql.bq.a(Unknown Source)
at com.hxtt.sql.text.e.(Unknown Source)
at com.hxtt.sql.text.EmbeddedDriver.connect(Unknown Source)
at com.hxtt.global.SQLState.getConnection(Unknown Source)
at com.hxtt.sql.HxttDriver.if(Unknown Source)
at com.hxtt.sql.HxttDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:317)
at java.sql.DriverManager.getConnection(DriverManager.java:297)
at HxttTest.main(HxttTest.java:9)
Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider
at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 13 more

Could you run the same test and help us solve this issue? It is important for us, Thanks!

Rui
Re:Re:Re:Re:Re:Re:Re:replace com.sun.net.ssl.internal.ssl.Provider
HXTT Support
2010-04-08 19:51:42
Supported. Please download the latest package, which needn't special setting or jar file. If you wish your older package disappear that issue, yon can try to add JSSE package.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap