SAP Knowledge Base Article - Preview

3799359 - jConnect: ssl connection with a underscore ("_") hostname gives error Contains non-LDH ASCII characters - SDK for SAP ASE

Symptom

jconn42.jar fails to connect to a host with an underscore ("_") in the hostname with:

java Test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by Test (file:/C:/SAP/jConnect-16_1/sample2/) to field java.net.URI.host
WARNING: Please consider reporting this to the maintainers of Test
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
java.lang.IllegalArgumentException: Contains non-LDH ASCII characters
        at java.base/java.net.IDN.toASCIIInternal(IDN.java:296)
        at java.base/java.net.IDN.toASCII(IDN.java:122)
        at java.base/javax.net.ssl.SNIHostName.<init>(SNIHostName.java:99)
        at com.sybase.jdbc42.jdbc.SybSSLSocketFactory.createSocket(SybSSLSocketFactory.java:444)
        at com.sybase.jdbc42.timedio.SocketDbio.doConnect(SocketDbio.java:99)
        at com.sybase.jdbc42.timedio.InStreamMgr.<init>(InStreamMgr.java:109)
        at com.sybase.jdbc42.tds.Tds.login(Tds.java:538)
        at com.sybase.jdbc42.jdbc.SybConnection.tryLogin(SybConnection.java:539)
        at com.sybase.jdbc42.jdbc.SybConnection.handleHAFailover(SybConnection.java:3871)
        at com.sybase.jdbc42.jdbc.SybConnection.<init>(SybConnection.java:392)
        at com.sybase.jdbc42.jdbc.SybConnection.<init>(SybConnection.java:285)
        at com.sybase.jdbc42.jdbc.SybDriver.connect(SybDriver.java:260)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
        at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
        at Test.main(Test.java:26)


Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0
  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.1
  • jConnect
    • JDBC 16
    • JDBC 16.1
  • java

Keywords

KBA , BC-SYB-SDK , SDK , Problem

About this page

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

Search for additional results

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