Import from Redmine (plan.io) error

pluff March 17, 2013

I'm trying to import my projects from Redmine instance using Redmine Importers Plugin for JIM and I receive "Cannot login to Redmine site: javax/security/auth/x500/X500Principal" error.

Chrome says everything is fine with plan.io certificate.

Jira version is "v5.2.8#851-sha1:3262fdc"

plugin version is "1.0.9"

Redmine version is "Redmine 1.4.7.planio"

Any ideas how to import issues from plan.io to Jira?

3 answers

1 accepted

0 votes
Answer accepted
ajakubowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 19, 2013

Hi Pawel,

This behavior turned out to be a bug in the Redmine importer.

The real problem was that java.lang.NoClassDefFoundError ('javax/security/auth/x500/X500Principal') was thrown. Unfortunately it was suppressed by eager error handling. Sorry for that.

The root cause we were not importing 'javax.*' in Redmine OSGi bundle that prevented this class from loading.

Please checkout new version (1.0.10) of the importer from marketplace that has this issue fixed.

pluff March 19, 2013

thank you :) Problem solved.

0 votes
ajakubowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2013

Hi Pavel,

I have small tool that can help you solve your problem. https://bitbucket.org/ajakubowski/sstester/src/840c71b3f586?at=master

This program basically connects to provided URL and if anything is wrong with certification path it writes which certificates are not contained in your keystore.

To run it use 'java -Djava.home='JAVA_HOME' -jar SSLTester.jar [HOST_URL]

Hopes this helps,

Adam Jakubowski

pluff March 18, 2013

Hi Adam. I just tried your tool and it shows me everything is OK, but the error is still there.

Loading KeyStore /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/lib/security/cacerts...
Opening connection to XXX.plan.io:443...
Starting SSL handshake...

No errors, certificate is already trusted

Server sent 4 certificate(s):

 1 Subject CN=*.plan.io, OU=Domain Control Validated, O=*.plan.io
   ....

 2 Subject ...

 3 Subject ...

 4 Subject ...

Connection to 'https://XXX.plan.io' is valid

0 votes
LucasA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2013

Hi Pavel,

This error often occurs due incorrect SSL configuration between JIRA and Redmine. Have you imported the Redmine SSL certificate into JIRA? You can do it according described here:

- https://confluence.atlassian.com/display/JIRA/Running+JIRA+over+SSL+or+HTTPS#RunningJIRAoverSSLorHTTPS-2.Importcertificateintothetruststore

After that, add the following parameter to the JIRA startup options:

-Djavax.net.ssl.trustStore=/path/to/keystore  -Djavax.net.ssl.trustStorePassword="changeit"

You can also temporarily disable the HTTPS support in Redmine for importing in JIRA.

Best regards,
Lucas Timm

pluff March 17, 2013

Hi Lucas,

I imported *.plan.io certificate to my keystore via

sudo /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/keytool -import -alias tomcatCACert -file ~/planio.cert -keystore "/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/lib/security/cacerts

It was imported successfully. Then I ran jira script ./start-jira.sh with options you provided with path to keystore, but the error is still there. Unfortunately I can't switch off https because plan.io is a service and I don't have access to their nginx configuration.

Suggest an answer

Log in or Sign up to answer