Jump to content
We've recently updated our Privacy Statement, available here ×

Connection to the Jaspersoft Studio Community edition


Mlynarek

Recommended Posts

Hi, I downloaded Jaspersoft studio community edition 6.21.1 but whenever I try to sign into the software it gives me an exception message :

 

Exception, if you want to more information look into details

Reason: An error occurred while verifying the credentials. 

when I open the details this is the information I see:

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
    at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
    at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
    at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
    at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(Unknown Source)
    at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(Unknown Source)
    at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(Unknown Source)
    at java.base/sun.security.ssl.SSLHandshake.consume(Unknown Source)
    at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
    at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
    at java.base/sun.security.ssl.TransportContext.dispatch(Unknown Source)
    at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
    at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
    at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
    at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
    at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
    at com.jaspersoft.studio.statistics.heartbeat.CommunityLogin.getCsrf(CommunityLogin.java:54)
    at com.jaspersoft.studio.statistics.heartbeat.CommunityLogin.verifyCredentials(CommunityLogin.java:106)
    at com.jaspersoft.studio.statistics.heartbeat.CommunityLoginDialog.buttonPressed(CommunityLoginDialog.java:269)
    at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
    at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4274)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
    at org.eclipse.jface.window.Window.open(Window.java:799)
    at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:96)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1459)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at java.base/sun.security.validator.PKIXValidator.doBuild(Unknown Source)
    at java.base/sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
    at java.base/sun.security.validator.Validator.validate(Unknown Source)
    at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
    at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    ... 50 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
    at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
    at java.base/java.security.cert.CertPathBuilder.build(Unknown Source)
    ... 55 more
 

Can you advise what I should do to b able to sign in? 

 

Thanks 

 

Link to comment
Share on other sites

I/we have the exact same situation/error. 

Running on Windows PC with Windows 10 Enterprise 
Version 10.0.19045 Build 19045
Java version 8 update 401 (Build 1.8.0_401-10

Did not have any issues before the update. 

 

2024-02-15_23h41_48.png.65befe8b1281cb08cdb17fa8cd9070d0.png

2024-02-15_23h41_20.png

Edited by PNIEL
Double screen dump removed.
Link to comment
Share on other sites

Hi all,
This little guide should help people having issues with the login dialog in Jaspersoft Studio.

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

This error happens if the community.jaspersoft.com certificate cannot be recognised by Java. This is pretty uncommon, since the CA of the certificate is provided by Amazon RSA. To resolve this problem, the certificate can be added to the Java cacerts file.
To do it:
1. download the certificate with the browser. The video below shows how to do it in Chrome:
2. import the certificate by using this command:
<JAVA_HOME>/bin/keytool -importcert -alias jaspersoft.com  -keystore <JAVA_HOME>/lib/security/cacerts -file _.jaspersoft.com.cer
On Mac you may need to use sudo to run this command as admin:
sudo keytool -importcert -alias jaspersoft.com  -keystore <JAVA_HOME>/lib/security/cacerts -file community.jaspersoft.com.cer

community.jaspersoft.com.cer is the certificate downloaded with the browser at point 1.


org.apache.http.conn.HttpHostConnectException: Connect to community.jaspersoft.com:443 [community.jaspersoft.com/54.192.95.8, community.jaspersoft.com/54.192.95.70, community.jaspersoft.com/54.192.95.116, community.jaspersoft.com/54.192.95.61] failed: Connection timed out: connect

This issue is related to a network being blocked by either a proxy or a firewall, you should check the problem with your system administrator.
To verify the issue, try to ping the community website from a command prompt or terminal.
The result should be something like:
ping community.jaspersoft.com
PING i328763.invisionservice.com (54.192.95.116): 56 data bytes
64 bytes from 54.192.95.116: icmp_seq=0 ttl=244 time=36.161 ms
64 bytes from 54.192.95.116: icmp_seq=1 ttl=244 time=31.265 ms



java.net.UnknownHostException: unknown host (community.jaspersoft.com)
This issue is related to a network with a private DNS which filters hosts resolution.
Can be easily verified by running the command in a command prompt or terminal:
nslookup community.jaspersoft.com
and verify that the domain can be resolved or not.
The issue can be solved by either set (at least temporarily) the DNS of the machine to 8.8.8.8 (Google DNS), or by modifying the file hosts (on mac /etc/hosts, on windows c:\Windows\System32\Drivers\etc\hosts) by adding the following line:
54.192.95.70 community.jaspersoft.com

How to configure Jaspersoft Studio to use a proxy
To specify proxy settings in Jaspersoft Studio, you need to modify the file "Jaspersoft Studio.ini" by setting the following java system properties:
http.proxyHost
http.proxyPort
http.nonProxyHosts
It can by done by adding lines at the end of the INI file with a text editor:
...
-Dhttp.proxyHost=example.proxy.host
-Dhttp.proxyHost=123
-Dhttp.proxyHost=some_host_to_exclude

Hope this helps,

Giulio
 

  • Like 3
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...