Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#5422 closed defect (wontfix)

RuntimeException on connecting to server

Reported by: rechtien@… Owned by: Ivan
Priority: normal Component: WikiEditorForEclipsePlugin
Severity: normal Keywords: wiki eclipse xmlrpc
Cc: Trac Release: 0.11

Description (last modified by Ivan)

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

Attachments (2)

org.trachacks.wikieditor.eclipse.plugin-0.0.4.jar (176.5 KB) - added by Ivan 15 years ago.
Modified plugin version that logs to Eclipse log view
Screenshot.png (32.2 KB) - added by Ivan 15 years ago.
Connection Successful screenshot

Download all attachments as: .zip

Change History (11)

comment:1 Changed 15 years ago by rechtien@…

...actually I should add information about Eclipse I guess? ...

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

Greets,

Markus

comment:2 Changed 15 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 15 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 15 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.

After downloading the certificate it's something like:

/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 15 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 15 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 15 years ago by Ivan

Modified plugin version that logs to Eclipse log view

Changed 15 years ago by Ivan

Attachment: Screenshot.png added

Connection Successful screenshot

comment:7 Changed 15 years ago by rechtien@…

Resolution: wontfix
Status: newclosed

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 15 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 15 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
Set your email in Preferences
Action
as closed The owner will remain Ivan.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.