users@glassfish.java.net

Re: Unable to connect to database of type MSSQL: "RSA premaster secret error"

From: Bernhard Thalmayr <bernhard.thalmayr_at_painstakingminds.com>
Date: Fri, 09 Mar 2012 20:31:26 +0100

You may set the following JVM option
'-Djavax.net.debug=SSL,handshake,trustmanager'

output will go into 'server.log', may be this gives you more hints.

By 'security policy files' do you mean the unrestricted ones?

-Bernhard

Am 3/9/12 3:48 PM, schrieb Abdo:
> Hi team,
>
> i'm getting this error every time i try connect to my /MSSQL 2008 R2/
> database:
>
> 1.
> /Unable to connect to database of type MSSQL/
> 2.
> /org.springframework.jdbc.CannotGetJdbcConnectionException:
> Could not get JDBC Connection; nested exception is
> org.apache.commons.dbcp.SQLNestedException: Cannot create
> PoolableConnectionFactory (The driver could not establish a
> secure connection to SQL Server by using Secure Sockets Layer
> (SSL) encryption. Error: "RSA premaster secret error".)/
>
>
> i'm working on /Windows 7 32 bits/ and my /JDK /is
>
> /C:\Users\admin>java -version/
>
> /java version "1.6.0_31"/
>
> /Java(TM) SE Runtime Environment (build 1.6.0_31-b05)/
>
> /Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)/
>
> the security policy files are already in/jre/lib/security/ & im using
> /sqljdbc4.jar// and the "Encryption connection"/ checkbox is unchecked
> in the SQL Server.
>
> any suggestion ?
> Thanks !


-- 
Painstaking Minds
IT-Consulting Bernhard Thalmayr
Herxheimer Str. 5, 83620 Vagen (Munich area), Germany
Tel: +49 (0)8062 7769174
Mobile: +49 (0)176 55060699
bernhard.thalmayr_at_painstakingminds.com - Solution Architect
This e-mail may contain confidential and/or privileged information.If 
you are not the intended recipient (or have received this email in 
error) please notify the sender immediately and delete this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.