2640889 - jConnect : Truncate and warn on unmappable character (rather than throw exception) - SAP SDK | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

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

Symptom

jConnect application throws exception:

java.lang.IllegalArgumentException: Non-positive length
	at java.nio.charset.CoderResult$Cache.get(CoderResult.java:202)
	at java.nio.charset.CoderResult$Cache.access$200(CoderResult.java:194)
	at java.nio.charset.CoderResult.unmappableForLength(CoderResult.java:255)
	at com.sybase.jdbc4.charset.SybUTF8CharsetDecoder.decodeLoop(SybUTF8CharsetDecoder.java:121)
	at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:579)
	at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:802)
	at com.sybase.jdbc4.charset.CharsetUtil.toUnicode(CharsetUtil.java:136)
	at com.sybase.jdbc4.charset.CharsetUtil.toSybUTF8(CharsetUtil.java:109)
	at com.sybase.jdbc4.charset.PureConverter.toUnicode(PureConverter.java:90)
	at com.sybase.jdbc4.tds.TdsDataInputStream.readString(TdsDataInputStream.java:69)
	at com.sybase.jdbc4.tds.DynamicToken.<init>(DynamicToken.java:127)
	at com.sybase.jdbc4.tds.Tds.nextResult(Tds.java:3209)
	at com.sybase.jdbc4.tds.Tds.dynamicDeallocate(Tds.java:1735)
	at com.sybase.jdbc4.jdbc.SybPreparedStatement.deallocateDynamic(SybPreparedStatement.java:3168)
	at com.sybase.jdbc4.jdbc.SybStatement.close(SybStatement.java:745)
	at com.sybase.jdbc4.jdbc.SybStatement.close(SybStatement.java:711)

Read more...

Environment

  • 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

Product

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

Keywords

CR#811124, CR811124, CR 811124, CR# , 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.