abhiram.myneni Posted October 16, 2018 Share Posted October 16, 2018 Hi,I am trying to connect to Hybris from jaspersoft studio. I followed the below steps listed in Hybris help and I am still facing an issue with it. Please find the details below.Added Jar files in the classpath:C:UsersDesktopjasper-setupjasper-setupvjdbc.jarC:UsersDesktopjasper-setupjasper-setuphybris-virtualjdbc.jarSetings which i have used:JDBC Driver:de.hybris.vjdbc.VirtualDriverJDBC URL:jdbc:hybris:sql:https://gave ip address:9002/virtualjdbc/serviceUsername:adminAdded the below line of code in the jaspersoftstudio.ini file.-Djavax.net.ssl.trustStore=/opt/hybris/bin/platform/resources/devcerts/yourCert.jks(Added the cert file that exists on hybris -Djavax.net.ssl.trustStoreType=JKS -Djavax.net.ssl.trustStorePassword= (How to get a password for the certificate which is on the server?)Error: net.sf.jasperreports.engine.JRException: java.sql.SQLException: java.sql.SQLException: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200) at java.security.cert.PKIXParameters.(PKIXParameters.java:120) at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:104) at sun.security.validator.PKIXValidator.(PKIXValidator.java:89) at sun.security.validator.Validator.getInstance(Validator.java:179) at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:312)Can you please let me know if i am missing anything, attached are the settings which i used to connect. Link to comment Share on other sites More sharing options...
kdoolmitta Posted February 5, 2019 Share Posted February 5, 2019 I am facing the same issue, is there a solution for this issue? Please can you share how did it resolve? Link to comment Share on other sites More sharing options...
abhiram.myneni Posted February 6, 2019 Author Share Posted February 6, 2019 My issue was resolved when i added the correct password for my .jks fileDjavax.net.ssl.trustStore=/opt/hybris/bin/platform/resources/devcerts/yourCert.jksDjavax.net.ssl.trustStoreType=JKS -Djavax.net.ssl.trustStorePassword=You can search the passwords in Hybris admin console for devcerts related to your environment. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now