SAP Knowledge Base Article - Preview

2640889 - jConnect : Truncate and warn on unmappable character (rather than throw exception) - SDK for SAP ASE


jConnect application throws exception:

java.lang.IllegalArgumentException: Non-positive length
at java.nio.charset.CoderResult$Cache.get(
at java.nio.charset.CoderResult$Cache.access$200(
at java.nio.charset.CoderResult.unmappableForLength(
at com.sybase.jdbc4.charset.SybUTF8CharsetDecoder.decodeLoop(
at java.nio.charset.CharsetDecoder.decode(
at java.nio.charset.CharsetDecoder.decode(
at com.sybase.jdbc4.charset.CharsetUtil.toUnicode(
at com.sybase.jdbc4.charset.CharsetUtil.toSybUTF8(
at com.sybase.jdbc4.charset.PureConverter.toUnicode(
at com.sybase.jdbc4.tds.TdsDataInputStream.readString(
at com.sybase.jdbc4.tds.DynamicToken.<init>(
at com.sybase.jdbc4.tds.Tds.nextResult(
at com.sybase.jdbc4.tds.Tds.dynamicDeallocate(
at com.sybase.jdbc4.jdbc.SybPreparedStatement.deallocateDynamic(
at com.sybase.jdbc4.jdbc.SybStatement.close(
at com.sybase.jdbc4.jdbc.SybStatement.close(



  • SAP Sybase Software Developer Kit (SDK) 15.7 SP134
  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0 SP02 PL04
  • jConnect
    • JDBC 7.07
    • JDBC 16 (is version 7.07)
  • java


SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0 ; Sybase Software Developer Kit 15.7


CR#811124, CR811124, CR 811124, CR#, jconn, jconn4, jconn4.jar , KBA , BC-SYB-SDK , SDK , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

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.