suiwenfeng
suiwenfeng

Reputation: 2003

net.sourceforge.jtds.jdbc.clobimpl cannot be cast to java.lang.string(jTDS)

useBlobs=false using XAPoolDataSource.

Throws an exception like 'title description while call resultset.getObject()'

I don`t know what the issue is.

Upvotes: 2

Views: 4480

Answers (1)

suiwenfeng
suiwenfeng

Reputation: 2003

Common Connection String

jdbc:jtds:sqlserver://ServerName;DatabaseName=xxx;instance=xxx

Rule from official site

jdbc:jtds:<server_type>://<server>[:<port>][/<database>][;<property>=<value>[;...]]

My Solution to solve exception as title mentioned

jdbc:jtds:sqlserver://ServerName;useLOBs=false;DatabaseName=xxx;instance=xxx

please put useLOBs=false; as first param

Upvotes: 6

Related Questions