SAP Knowledge Base Article - Preview

3044201 - jConnect: BCP arrayinsert causes java.lang.ClassCastException: class java.sql.Date cannot be cast to class com.sybase.jdbc4.jdbc.DateObject- SDK for SAP ASE

Symptom

jConnect: BCP arrayInsert causes java.sql.Date to fail with an insert statement

java.lang.ClassCastException: class java.sql.Date cannot be cast to class com.sybase.jdbc4.jdbc.DateObject (java.sql.Date is in module java.sql of loader 'platform'; com.sybase.jdbc4.jdbc.DateObject is in unnamed module of loader 'app')

at com.sybase.jdbc4.tds.TdsParam.checkDateRange(TdsParam.java:1721)

at com.sybase.jdbc4.tds.TdsParam.prepareForSend(TdsParam.java:977)

at com.sybase.jdbc4.jdbc.ParamManager.checkParams(ParamManager.java:1192)

at com.sybase.jdbc4.tds.Tds.language(Tds.java:1090)

at com.sybase.jdbc4.jdbc.SybStatement.sendQuery(SybStatement.java:2582)

at com.sybase.jdbc4.jdbc.SybPreparedStatement.sendQuery(SybPreparedStatement.java:3191)

at com.sybase.jdbc4.jdbc.SybStatement.execute(SybStatement.java:2854)

at com.sybase.jdbc4.jdbc.SybPreparedStatement.execute(SybPreparedStatement.java:1566)

at Test.main(Test.java:23)


Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0 SP03 PL09
  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0 SP04
  • jConnect
    • JDBC 16 ( is version 7.07 )
  • java

Product

SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0

Keywords

CR#824503, CR824503, CR# 824503, bcp, array, bulk copy, bcp, date, time, datetime, bigdatetime, insert, modify, , KBA , BC-SYB-SDK , SDK , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.