SAP Knowledge Base Article - Preview

2155585 - jConnect: 'Illegal value set for JCE_PROVIDER_CLASS connection property' error with password encryption enabled - SAP SDK

Symptom

  • Use connection string similar to this:
    • String url_testlogin = "jdbc:sybase:Tds:aseHOST:Port?ENCRYPT_PASSWORD=true&JCE_PROVIDER_CLASS=com.certicom.ecc.jcae.Certicom"
  • Error message:
    • Connection String: jdbc:sybase:Tds:AseHost:1570?ENCRYPT_PASSWORD=true&JCE_PROVIDER_CLASS=com.certicom.ecc.jcae.Certicom
      Connection has exception: java.sql.SQLException: JZ028: Illegal value set for JCE_PROVIDER_CLASS connection property. The property value must be a fully qualified provider class name passed as a String or an instance of java.security.Provider.
      java.sql.SQLException: JZ028: Illegal value set for JCE_PROVIDER_CLASS connection property. The property value must be a fully qualified provider class name passed as a String or an instance of java.security.Provider.
              at com.sybase.jdbc4.jdbc.ErrorMessage.raiseError(ErrorMessage.java:784)
              at com.sybase.jdbc4.tds.SecLoginContext.<init>(SecLoginContext.java:113)
              at com.sybase.jdbc4.tds.Tds.doLogin(Tds.java:766)
              at com.sybase.jdbc4.tds.Tds.login(Tds.java:578)
              at com.sybase.jdbc4.jdbc.SybConnection.tryLogin(SybConnection.java:418)
              at com.sybase.jdbc4.jdbc.SybConnection.handleHAFailover(SybConnection.java:3285)
              at com.sybase.jdbc4.jdbc.SybConnection.<init>(SybConnection.java:344)
              at com.sybase.jdbc4.jdbc.SybConnection.<init>(SybConnection.java:249)
              at com.sybase.jdbc4.jdbc.SybDriver.connect(SybDriver.java:233)
              at java.sql.DriverManager.getConnection(DriverManager.java:571)
              at java.sql.DriverManager.getConnection(DriverManager.java:215)
              at PwdEnc_Test7.main(PwdEnc_Test7.java:58)
      Caused by: java.lang.ClassNotFoundException: com.certicom.ecc.jcae.Certicom
              at java.net.URLClassLoader$1.run(URLClassLoader.java:428)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:417)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:416)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:351)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:427)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:191)
              at com.sybase.jdbc4.utils.JCEProviderUtil.initProvider(JCEProviderUtil.java:62)
              at com.sybase.jdbc4.tds.SecLoginContext.<init>(SecLoginContext.java:109)

Read more...

Environment

  • jConnect 7.07
  • SAP Sybase Software Developers Kit (SDK) 15.7

Product

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

Keywords

net password encryption , 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.