Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 3

Install Anywhere Issue with plugins on Windows 2008

Hopefully someone here can help me figure this issue out.

I am using the JTDS-1.2.2 JDBC driver in an IA plugin to connect to SQL Server. The plugin works fine on XP, Vista and Windows 2003 and is something I've used in my installers for a good 9 months now. However when the plugin is run from an installer on Windows 2008 64 bit (R2) I get a very odd error.

Network error IOException: Protocol wrong type for socket: create
Caused by: java.sql.SQLException: Network error IOException: Protocol wrong type for socket: create
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(

This error only occurs when the installer is run on Windows 2008 R2 64 bit. If I take the same code in the plugin and just run it as a java app it runs fine and does the DB access as it should.

I pulled the JTDS JDBC driver apart and tracked down the error to a simple opening of a socket. I tested a plugin that just opens a socket and it fails inside of install anywhere but runs fine outside of install anywhere.

This is the final test code I narrowed the issue down to. The error line is in bold.

Socket socket = new Socket();
InetSocketAddress address = new InetSocketAddress("localhost",1433);
socket.connect(address, 2000);
Labels (1)
0 Kudos
(4) Replies
Level 5

Hi, I was wondering if you got this issue resolved? I am having the same issue. It works on a 32-bit machine, but not for a 64 bit machine with 64-bit SQL server.
0 Kudos
Level 6


Is this plugin/custom code running in the install/ uninstall phases ?

0 Kudos
Level 5

Hi, yes, it is running during the install phase
0 Kudos
Level 3

We found the similar problem on 2008 64bit when using httpconnection.
0 Kudos