Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » CertPathBuilderException from Plugin
CertPathBuilderException from Plugin [message #52245] Fri, 27 March 2009 01:21 Go to next message
Chris is currently offline ChrisFriend
Messages: 4
Registered: July 2009
Junior Member
I'm developing an Eclipse plugin that makes a REST call over https. The
SSL certificate on the server is not valid, changes frequently, and and
will remain that way. To compensate, I have added the following code,
which works when I run test cases (outside of the Eclipse plugin
environment).

Security.addProvider(new MyProvider());
Security.setProperty("ssl.TrustManagerFactory.algorithm",TrustAllCertificates ");

When I run the code as an eclipse plugin, I get I long stack trace, at the
bottom of which is:
Caused by: java.security.cert.CertPathBuilderException: unable to find
valid certification path to requested target
at
com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath( PKIXCertPathBuilderImpl.java:379)
at
com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PK IXCertPathBuilderImpl.java:195)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.jav a:215)
at com.ibm.jsse2.util.f.b(f.java:80)
... 31 more

The stack trace is the same as the one I get when I don't include the
compensating code and run as a test. Why am I getting different results in
the plugin environment? Are there any workarounds?
Re: CertPathBuilderException from Plugin [message #52351 is a reply to message #52245] Sat, 28 March 2009 00:53 Go to previous message
Chris is currently offline ChrisFriend
Messages: 4
Registered: July 2009
Junior Member
Problem resolved. The IBM JDK has different rules for static
initialization.
Re: CertPathBuilderException from Plugin [message #594092 is a reply to message #52245] Sat, 28 March 2009 00:53 Go to previous message
Chris is currently offline ChrisFriend
Messages: 4
Registered: July 2009
Junior Member
Problem resolved. The IBM JDK has different rules for static
initialization.
Previous Topic:getPackageFragmentRoots does not return dependent workspace plugins
Next Topic:3.5M6 Declarative Services
Goto Forum:
  


Current Time: Thu Apr 18 14:43:01 GMT 2024

Powered by FUDForum. Page generated in 0.02194 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top