Opened 12 years ago

Closed 12 years ago

RuntimeException on connecting to server

Reported by: Owned by: rechtien@… Ivan normal WikiEditorForEclipsePlugin normal wiki eclipse xmlrpc 0.11

Hi,

when trying to validate the connection settings or manually (context menu) connecting to the configured server a RuntimeException occurs. This is either shown in the connection configuration dialog - or in a error dialog when connecting via context menu. In the second case the error message is:

Error performing action "Connect Server"

The trac server url is correctly working with Mylyns trac connector and on the server the trac version is 0.11.4 with the following modules installed !TracXMLRPC 1.0.5 and TracExtendedXmlRpc 0.1 .

Kind regards,

Markus

comment:1 Changed 12 years ago by rechtien@…

My Eclipse version is 3.4.2 with Mylyn-* 3.2.0 and Mylyn WikiText 1.1.0 installed.

Greets,

Markus

comment:2 Changed 12 years ago by anonymous

can you include the relevant part of the log file <your_eclipse_workspace>/.metadata/.log and if is internet accessible site the url would also be helpful

comment:3 Changed 12 years ago by rechtien@…

I already checked this (but of course should have mentioned that) there is no log entry in the .log file related to that exception. I checked this two times. The site is a test site you can reach via https://dotq . dotquality . de/trac/

comment:4 Changed 12 years ago by Ivan

Description: modified (diff)

It may be related to the ssl certificate being self signed. Try importing the certificate into the java jre keystore.

/usr/lib/jvm/java-6-openjdk/jre/bin/keytool -keystore /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts -import -file dotq.dotquality.de -alias dotquality


comment:5 Changed 12 years ago by rechtien@…

I imported the root cert my cert was signed with - shouldnt this do the job? When using Mylyns Trac connector everything works fine with this server. Do you still think that this is the issue?

comment:6 Changed 12 years ago by Ivan

I don't have enough information to diagnose it.

Can you connect to other sites or is just to this one?

I you are still having trouble connecting and you don't mind send me an user/password to see if I can debug the problem (ivangsa at gmail.com)

Changed 12 years ago by Ivan

Modified plugin version that logs to Eclipse log view

Changed 12 years ago by Ivan

Connection Successful screenshot

comment:7 Changed 12 years ago by rechtien@…

Resolution: → wontfix new → closed

Finally I got it working!

The problem seems to be to use the java control panel?! Or maybe to import the self signed certificate into "user keystore"? Exactly using the keytool as you described previously did the trick.

Sorry for all that trouble!

comment:8 Changed 12 years ago by Ivan

Hi Markus

I was about to say the dreaded it works for me :-(

it seems that was the self signed certificate causing the connection exception:

java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid
certification path to requested target
at org.trachacks.wikieditor.rpc.xmlrpc.WikiRPCClientFactory.testConnection(WikiRPCClientFactory.java:153)
at org.trachacks.wikieditor.rpc.WikiClientImpl.testConnection(WikiClientImpl.java:51)
at org.trachacks.wikieditor.service.WikiServiceImpl.testConnection(WikiServiceImpl.java:48)
at org.trachacks.wikieditor.eclipse.plugin.model.Server.testConnection(Server.java:181)
at org.trachacks.wikieditor.eclipse.plugin.model.Server.connect(Server.java:97)


The plugin will include better loggin in next release to help figure out this exceptions

Thanks
Ivan

comment:9 Changed 12 years ago by rechtien@…

Hi Ivan,

yeah, I saw the attachments you added, while I was trying out some "java ssl debug class" to get a more low level perspective. Now it feels a bit embarrassing to hit you with such an issue :-/

Finally I must say thank you for your time and effort!

Regards,

Markus

Modify Ticket

Change Properties