You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pchakinala <pr...@ebix.com> on 2013/01/09 13:01:34 UTC

windows service : com.microsoft.sqlserver.jdbc.SQLServerException: RSA premaster secret error

Hi,
We are working with SMX 4.4 version and planning to publish SMX as a windows
service on Windows server 2008 64-bit machine.

We have seen below issue when trying to connect SQL Server 2008. However the
same is working  fine without if i start SMX without as windows service.

Exception
------------
17:28:09,116 | INFO  | gLogger-thread-1 | Channel                          | 
-  -  | java.security path: E:\Java\jdk1.6.0_23\jre\lib\security
Security providers: [SUN version 1.6, SunRsaSign version 1.5, SunJSSE
version 1.6, SunJGSS version 1.0, SunSASL version 1.5, XMLDSig version 1.0,
SunPCSC version 1.6]
SSLContext provider info: Sun JSSE provider(PKCS12, SunX509 key/trust
factories, SSLv3, TLSv1)
SSLContext provider services:
[SunJSSE: KeyFactory.RSA -> sun.security.rsa.RSAKeyFactory
  aliases: [1.2.840.113549.1.1, OID.1.2.840.113549.1.1]
, SunJSSE: KeyPairGenerator.RSA -> sun.security.rsa.RSAKeyPairGenerator
  aliases: [1.2.840.113549.1.1, OID.1.2.840.113549.1.1]
, SunJSSE: Signature.MD2withRSA -> sun.security.rsa.RSASignature$MD2withRSA
  aliases: [1.2.840.113549.1.1.2, OID.1.2.840.113549.1.1.2]
, SunJSSE: Signature.MD5withRSA -> sun.security.rsa.RSASignature$MD5withRSA
  aliases: [1.2.840.113549.1.1.4, OID.1.2.840.113549.1.1.4]
, SunJSSE: Signature.SHA1withRSA ->
sun.security.rsa.RSASignature$SHA1withRSA
  aliases: [1.2.840.113549.1.1.5, OID.1.2.840.113549.1.1.5, 1.3.14.3.2.29,
OID.1.3.14.3.2.29]
, SunJSSE: Signature.MD5andSHA1withRSA ->
com.sun.net.ssl.internal.ssl.RSASignature
, SunJSSE: KeyManagerFactory.SunX509 ->
com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509
, SunJSSE: KeyManagerFactory.NewSunX509 ->
com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$X509
, SunJSSE: TrustManagerFactory.SunX509 ->
com.sun.net.ssl.internal.ssl.TrustManagerFactoryImpl$SimpleFactory
, SunJSSE: TrustManagerFactory.PKIX ->
com.sun.net.ssl.internal.ssl.TrustManagerFactoryImpl$PKIXFactory
  aliases: [SunPKIX, X509, X.509]
, SunJSSE: SSLContext.SSL -> com.sun.net.ssl.internal.ssl.SSLContextImpl
, SunJSSE: SSLContext.SSLv3 -> com.sun.net.ssl.internal.ssl.SSLContextImpl
, SunJSSE: SSLContext.TLS -> com.sun.net.ssl.internal.ssl.SSLContextImpl
, SunJSSE: SSLContext.TLSv1 -> com.sun.net.ssl.internal.ssl.SSLContextImpl
, SunJSSE: SSLContext.Default ->
com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl
, SunJSSE: KeyStore.PKCS12 -> com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore
]
java.ext.dirs:
%JAVA_HOME%/jre/lib/ext;%JAVA_HOME%/lib/ext;E:\ihub3.1\app/lib/ext
17:28:09,117 | DEBUG | gLogger-thread-1 | SQLServerException               | 
-  -  | *** SQLException:ConnectionID:1 ClientConnectionId:
c488c7b1-d155-418e-b06f-c00c682ec031
com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not
establish a secure connection to SQL Server by using Secure Sockets Layer
(SSL) encryption. Error: "RSA premaster secret error".
ClientConnectionId:c488c7b1-d155-418e-b06f-c00c682ec031 The driver could not
establish a secure connection to SQL Server by using Secure Sockets Layer
(SSL) encryption.

 Error: "RSA premaster secret error".
ClientConnectionId:c488c7b1-d155-418e-b06f-c00c682ec031


17:28:09,117 | DEBUG | gLogger-thread-1 | SQLServerException               | 
-  -  |
com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1667)com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1668)com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1323)com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:572)org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636)org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:665)org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:673)org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:728)org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:744)org.springframework.jdbc.core.JdbcTemplate.queryForInt(JdbcTemplate.java:775)

Please find karaf-wrapper.conf file.

Regards,
Praveen Chakinala
karaf-wrapper.conf
<http://servicemix.396122.n5.nabble.com/file/n5715439/karaf-wrapper.conf>  



--
View this message in context: http://servicemix.396122.n5.nabble.com/windows-service-com-microsoft-sqlserver-jdbc-SQLServerException-RSA-premaster-secret-error-tp5715439.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.