Welcome to dbForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

JDBC 2005 Driver

 
   Database Forums (Home) -> JDBC Driver RSS
Next:  Where is the customer.mdb file in Tang/MacLennan'..  
Author Message
Shane

External


Since: Apr 03, 2006
Posts: 1



(Msg. 1) Posted: Wed Sep 19, 2007 10:16 pm
Post subject: JDBC 2005 Driver
Archived from groups: microsoft>public>sqlserver>jdbcdriver (more info?)

Hi guys,
I'm finding that if I run a query that returns a large amount of data I get
java heap crashes. I have already set the jvm heap size but it's made no
difference.

Below is an exception trace - any comments appreciated!

Thanks
Shane
<<
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
at sun.nio.cs.StreamDecoder$CharsetSD.<init>(StreamDecoder.java:378)
at sun.nio.cs.StreamDecoder$CharsetSD.<init>(StreamDecoder.java:358)
at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:74)
at java.io.InputStreamReader.<init>(InputStreamReader.java:83)
at com.microsoft.sqlserver.jdbc.DDC.convertNonUnicodeNonPLPToObject(Unknown
Source)
at com.microsoft.sqlserver.jdbc.ServerDTVImpl.getValue(Unknown Source)
at com.microsoft.sqlserver.jdbc.DTV.getValue(Unknown Source)
at com.microsoft.sqlserver.jdbc.Column.getValue(Unknown Source)
at com.microsoft.sqlserver.jdbc.Column.getValue(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getObject(Unknown Source)
at
org.apache.commons.dbcp.DelegatingResultSet.getObject(DelegatingResultSet.java:287)
at
aam.spring.SpringBeanContextHelperImpl.populateBeanFromResultSet(SpringBeanContextHelperImpl.java:110)
at
aam.spring.SpringBeanContextHelperImpl.populateBeanFromResultSet(SpringBeanContextHelperImpl.java:138)
at
aam.calypso.prototype.dao.MethodCallBackImpl.callback(MethodCallBackImpl.java:55)
at
aam.calypso.prototype.dao.RowCallBackHandlerImpl.processRow(RowCallBackHandlerImpl.java:3Cool
at
org.springframework.jdbc.core.JdbcTemplate$RowCallbackHandlerResultSetExtractor.extractData(JdbcTemplate.java:1250)
at
org.springframework.jdbc.core.JdbcTemplate.processResultSet(JdbcTemplate.java:1035)
at
org.springframework.jdbc.core.JdbcTemplate.extractReturnedResultSets(JdbcTemplate.java:953)
at
org.springframework.jdbc.core.JdbcTemplate$5.doInCallableStatement(JdbcTemplate.java:924)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:882)
at org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:914)
at
org.springframework.jdbc.object.StoredProcedure.execute(StoredProcedure.java:113)
>>

 >> Stay informed about: JDBC 2005 Driver 
Back to top
Login to vote
David Olix

External


Since: Feb 17, 2006
Posts: 19



(Msg. 2) Posted: Thu Sep 27, 2007 4:57 pm
Post subject: RE: JDBC 2005 Driver [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Shane,

If you need to retrieve a very large column value, then you should use one
of the ResultSet getter methods that returns a stream: getAsciiStream,
getBinaryStream, or getCharacterStream.

It looks like you are using the v1.2 JDBC driver CTP, so you'll also want
to enable adaptive response buffering to minimize memory usage (e.g. set
"responseBuffering=adaptive" in the connection properties). See
http://blogs.msdn.com/jdbcteam/archive/2007/05/02/what-is-adaptive-response-
buffering-and-why-should-i-use-it.aspx for more details on its usage and
restrictions.

Regards,
--David Olix [MSFT]

 >> Stay informed about: JDBC 2005 Driver 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to install 2005 JDBC driver v1.2 on weblogic - The driver download page says that new driver has been tested against all major app servers including Weblogic. I can't find proper installation instructions to install the new driver for weblogic 9.2. Can anyone share what needs to be done?

JDBC Driver Support for SQL 2005 Schemas? - Anyone know if the JDBC driver supports SQL 2005 schemas? If so, which version. When we use the JDBC driver, it seems to report back database roles instead of schemas, SQL 2000 style. Thanks

JDBC Driver for SQL 7.0 ? - Hi; I'm installing an application that requires a JDBC driver for SQL Server. The thing is I am running SQL Server 7.0 and a look at Microsoft seems to show there are lots of these drivers for SQL 2000 but not for 7.0 I know little about these things -...

New JDBC Driver 1/19/06 & SSL ? - Does the today release new JDBC Driver support SSL encryption ?

SQL 2K JDBC driver with WebSphere - Hi, I am trying to use SQL 2K JDBC driver SP3 in WebSphere app server. I created an new JDBC provider, point the class path to where msbase.jar, mssqlserver.jar, and msutil.jar files are. I did not put anything in the "Native Library Path"....
   Database Forums (Home) -> JDBC Driver All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]