Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

error when using Jconnect in a Servlet

3 posts in JDBC Connect (product renamed to JConnect) Last posting was on 1997-05-05 17:52:18.0Z
George Kallab Posted on 1997-04-30 16:27:51.0Z
Message-ID: <33677306.563B@usfg.com>
Date: Wed, 30 Apr 1997 12:27:51 -0400
From: George Kallab <kallab@usfg.com>
Reply-To: kallab@usfg.com
Organization: USF+G Insurance
X-Mailer: Mozilla 3.01 (Win95; I)
MIME-Version: 1.0
Subject: error when using Jconnect in a Servlet
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 25
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:895
Article PK: 252649

All,

I'm using jConnect(GA) on NT4.0 in a Servlet and JDK 1.02 and netscape
www server.

the driver is loaded correctly, the connection is established, get the
meta data, but when we call getString() of the resultset i get the
following error.

jdbc.sql.sqlexception: bad conversion

This the following stack when we ennable debug:

jdbc.sql.SQLException: Bad conversion :
d:\Netscape3b3\SuiteSpot\js\samples\java\text\resources\LocaleElements_en_US.properties
at jdbc.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java:338)
at jdbc.sybase.tds.TdsJdbcInputStream.getString(Unknown Source)
* at jdbc.sybase.jdbc.SybResultSet.getString(SybResultSet.java:161)
at
ServerLoginToSystemCoordinator.processing(ServerLoginToSystemCoordinator.java:120)
at ServerLoginToSystem.run(ServerLoginToSystem.java:111)
at
netscape.server.applet.ServerApplet.handleRequest(ServerApplet.java:69)
at netscape.server.applet.HttpApplet.handleRequest(HttpApplet.java:677)


David Clegg Posted on 1997-05-05 17:52:18.0Z
Message-ID: <336E1E52.75119C59@sybase.com>
Date: Mon, 05 May 1997 10:52:18 -0700
From: David Clegg <davec@sybase.com>
X-Mailer: Mozilla 2.01 (X11; I; Linux 1.2.13 i586)
MIME-Version: 1.0
To: kallab@usfg.com
Subject: Re: error when using Jconnect in a Servlet
References: <33677306.563B@usfg.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 43
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:873
Article PK: 252627

Sorry about the delay in getting back to you.

You are using some of the new JDK1.1 internationalization classes
here - the jConnect driver has not been enhanced to take advantage
of them yet. The best guess I have is that your Netscape www
server's version of the String constructor:
public String(byte ascii[], int hibyte)
which is depricated in JDK1.1 has been implemented to attempt to
localize somehow? This is the only report of this problem that
I have seen, I don't know what to suggest to you.
Have you reported this to Netscape?

I guess I want aware that Netscape had released a JDK1.1 compatible
server yet.

dave

>
> All,
>
> I'm using jConnect(GA) on NT4.0 in a Servlet and JDK 1.02 and netscape
> www server.
>
> the driver is loaded correctly, the connection is established, get the
> meta data, but when we call getString() of the resultset i get the
> following error.
>
> jdbc.sql.sqlexception: bad conversion
>
> This the following stack when we ennable debug:
>
> jdbc.sql.SQLException: Bad conversion :
> d:\Netscape3b3\SuiteSpot\js\samples\java\text\resources\LocaleElements_en_US.properties
> at jdbc.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java:338)
> at jdbc.sybase.tds.TdsJdbcInputStream.getString(Unknown Source)
> * at jdbc.sybase.jdbc.SybResultSet.getString(SybResultSet.java:161)
> at
> ServerLoginToSystemCoordinator.processing(ServerLoginToSystemCoordinator.java:120)
> at ServerLoginToSystem.run(ServerLoginToSystem.java:111)
> at
> netscape.server.applet.ServerApplet.handleRequest(ServerApplet.java:69)
> at netscape.server.applet.HttpApplet.handleRequest(HttpApplet.java:677)


George Kallab Posted on 1997-04-30 19:23:07.0Z
Message-ID: <33679C1B.30EC@usfg.com>
Date: Wed, 30 Apr 1997 15:23:07 -0400
From: George Kallab <kallab@usfg.com>
Reply-To: kallab@usfg.com
Organization: USF+G Insurance
X-Mailer: Mozilla 3.01 (Win95; I)
MIME-Version: 1.0
Subject: Re: error when using Jconnect in a Servlet
References: <33677306.563B@usfg.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 33
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:893
Article PK: 252645

I have more details for this problem
the error is occuring when i retreive a date feild using the getstring
method.
the same program works fine if compiled as a regular program.

any help would be appritiated..

thanks
-George
kallab@usfg.com

George Kallab wrote:
>
> All,
>
> I'm using jConnect(GA) on NT4.0 in a Servlet and JDK 1.02 and netscape
> www server.
>
> the driver is loaded correctly, the connection is established, get the
> meta data, but when we call getString() of the resultset i get the
> following error.
>
> jdbc.sql.sqlexception: bad conversion
>
> This the following stack when we ennable debug:
>
> jdbc.sql.SQLException: Bad conversion :
> d:\Netscape3b3\SuiteSpot\js\samples\java\text\resources\LocaleElements_en_US.properties
> at jdbc.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java:338)
> at jdbc.sybase.tds.TdsJdbcInputStream.getString(Unknown Source)
> * at jdbc.sybase.jdbc.SybResultSet.getString(SybResultSet.java:161)
> at
> ServerLoginToSystemCoordinator.processing(ServerLoginToSystemCoordinator.java:120)
> at ServerLoginToSystem.run(ServerLoginToSystem.java:111)
> at
> netscape.server.applet.ServerApplet.handleRequest(ServerApplet.java:69)
> at netscape.server.applet.HttpApplet.handleRequest(HttpApplet.java:677)