Home > Archive > IQ Server > January 2006 > Error getConnection() Sybase IQ









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error getConnection() Sybase IQ
carlosgyn

2005-12-15, 7:24 am

I am trying to make a connection with syabase IQ using SUN
ONE 7.
When I execute getConnection() I have the following error:
Error loading protocol
com.sybase.jdbc2.10.192.230.9.10.192.230.9.

I am using jconn3.jar.
I can decide this problem?
Tina Capadouca

2006-01-06, 9:25 am

carlosgyn wrote:
> I am trying to make a connection with syabase IQ using SUN
> ONE 7.
> When I execute getConnection() I have the following error:
> Error loading protocol
> com.sybase.jdbc2.10.192.230.9.10.192.230.9.
>
> I am using jconn3.jar.
> I can decide this problem?


What version of IQ are you trying to connect to? I don't think that
JConnect6.x is supported (jconn3.jar). Try using JConnect 5.x (jconn2.jar).

To register the driver:
Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();

Regards,
Tina
Jeff Tallman

2006-01-06, 11:24 am

Problem is the driver the program is calling is jdbc2.....if you can
access the java code, look for a line similar to:

SybDriver sybDriver = (SybDriver)
Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();

for jconn3.jar, you need:

SybDriver sybDriver = (SybDriver)
Class.forName("com.sybase.jdbc3.jdbc.SybDriver").newInstance();

....and it would work with IQ as well (no restriction there).

Tina Capadouca wrote:
> carlosgyn wrote:
>
>
>
> What version of IQ are you trying to connect to? I don't think that
> JConnect6.x is supported (jconn3.jar). Try using JConnect 5.x
> (jconn2.jar).
>
> To register the driver:
> Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
>
> Regards,
> Tina

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com