Sign in to follow this  
Jourei

Java problem: Failed to validate certificate [SOLVED]

Recommended Posts

Haven't been on Wurm for a long time, and decided to check it out.

Well, while attempting to launch wurmclient, I only get an error message: "Failed to validate certificate. The application will not be executed."

Details, incase these would be any help:

java.io.IOException: Invalid keystore format

at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)

at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)

at java.security.KeyStore.load(Unknown Source)

at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at com.sun.deploy.security.DeploySigningCertStore.loadCertStore(Unknown Source)

at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)

at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)

at com.sun.deploy.security.ImmutableCertStore.load(Unknown Source)

at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)

at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)

at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)

at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)

at com.sun.javaws.Launcher.prepareResources(Unknown Source)

at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)

at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)

at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)

at com.sun.javaws.Launcher.launch(Unknown Source)

at com.sun.javaws.Main.launchApp(Unknown Source)

at com.sun.javaws.Main.continueInSecureThread(Unknown Source)

at com.sun.javaws.Main$1.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

I'm using Windows 7 and been able to run the game before. Also, I just updated java to the latest through their site.

Search did pop up a few threads with the same topic, without solution though. But I'd still like a solution for this.

Share this post


Link to post
Share on other sites

I know it is an hard subject, but I doubt it's an taboo?

Share this post


Link to post
Share on other sites

Remove your previous installation of wurm from Java. Type javaws -viewer in the windows search prompt. In the Java cache viewer that should be open now, remove all installations of wurm and re-install from the wurm website.

Share this post


Link to post
Share on other sites

Thank you for the reply!

I successfully did what you wrote, but I still get the same error.

Looks like the details are exactly the same too.

Share this post


Link to post
Share on other sites

Can you double check the time and date are set correctly on your PC, also may want to verify you have it set to the correct time zone.

Share this post


Link to post
Share on other sites

According to the clock settings, my PC syncs the time from time.windows.com constantly.

Timezone is correct.

And, the time itself seems to be correct the correct time too.

Share this post


Link to post
Share on other sites

ok last one, go back into javaws -viewer, close the cache page and open up the security page. Click certificates and remove the one belonging to 'Onetoofree AB'

Share this post


Link to post
Share on other sites

I can't see any certificates at all.

Not in any of the Certificate type droplist.

Could this be the issue itself?

Share this post


Link to post
Share on other sites

Certainly sounds like it.

May have to wait on one of the client developers to answer on how to get the certificate re-installed.

But for now I will do some investigating.

Share this post


Link to post
Share on other sites

:(  Although the application has a digital signature, the application's associated file (JNLP) does not have one.....

:) The digital signnature was generated witha a trusted certificate.

Oh, and when I log into the Wurmonline shop, I don't get the padlock indicating a secure connection....

Share this post


Link to post
Share on other sites

Solution!

Go to "C:\Users\YOUR USERNAME HERE\AppData\LocalLow\Sun\Java\Deployment\security" and delete trusted.certs. Then launch the Wurm client and the file should reappear and Wurm launch normally.

At least it did it for me! :)

Share this post


Link to post
Share on other sites

same problem.. the fix listed did not work

re-installing Wurm seemed to fix it

re-installing Java did not

Share this post


Link to post
Share on other sites

Same problem, nothing so far has solved it.


 


I updated java


#java -version shows the following:



$ java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b119)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b61, mixed mode)
$

Then I did the whole # javaws -viewer, deleted wurm, and removed the trusted cert.


Then I went into the java folder, and removed the trusted.cert file,


Then I went into wurm folder and removed the wurm.install file, just  to make sure it would try to reset and install wurm again.


 


Here is the output of the General Exception Details (which I get when clicking the More Information button on the wurm launcher:



java.lang.ClassCastException: com.sun.deploy.security.X509CertificateWrapper cannot be cast to sun.security.x509.X509CertImpl
at sun.security.provider.certpath.OCSPResponse.verify(OCSPResponse.java:430)
at sun.security.provider.certpath.OCSP.check(OCSP.java:290)
at sun.security.provider.certpath.OCSP.check(OCSP.java:179)
at sun.security.provider.certpath.OCSP.check(OCSP.java:159)
at com.sun.deploy.security.RevocationChecker.checkOCSP(Unknown Source)
at com.sun.deploy.security.RevocationChecker.check(Unknown Source)
at com.sun.deploy.security.TrustDecider.checkRevocationStatus(Unknown Source)
at com.sun.deploy.security.TrustDecider.getValidationState(Unknown Source)
at com.sun.deploy.security.TrustDecider.validateChain(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.prepareResources(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)


Even going into the javaws -viewer and turning the security down to medium (lowest it would go) still causes the problem.


 


And here is a screenshot:


(and in case the img insert dosnt work:



https://drive.google.com/file/d/0B0AFqe6IKupraHdLRFpNbGhRVk0/edit?usp=sharing

Nothing has helped. any suggestion ... i seem to be burning through my prim time.

Edited by phreekbird

Share this post


Link to post
Share on other sites

Java 8 is not ready for productive use. Use Java 7.

Share this post


Link to post
Share on other sites

Yea, well, Java 8 has been working for months now, But just to make sure i installed Java 7.



$java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
$

yea same problem, that didn't fix it either. going back to java 8 now.


Share this post


Link to post
Share on other sites

So, this problem still exist, anyone with any ideas? just wasting away my prim time.


Share this post


Link to post
Share on other sites

https://bugs.openjdk.java.net/browse/JDK-8029788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Looks like disabling Certificate revocation list checking might solve it.

All applets/applications using CRL/OCSP are failing(including Entrust test applets) due to this bug and everything works fine if I disable the OCSP/CRL check.

In the Java control panel, advanced settings look for some entries that says CRLs and OCSP and select another option for this entry.

Share this post


Link to post
Share on other sites

Thats great, but once i disabled the checking, I got another error.



Error: Missing required Permissions manifest attribute in main jar: http://www.wurmonline.com/client/wurmclient.jar

Launch File Tab:




<jnlp spec="1.0" codebase="http://www.wurmonline.com/client/" href="wurmclient.jnlp">
<information>
<title>Wurm Online</title>
<vendor>Code Club AB</vendor>
<homepage href="http://www.wurmonline.com/"/>
<description>Wurm Online client</description>
<icon href="wurm-icon-128-w.jpg" width="128" height="128"/>
<icon href="wurm-icon-64-w.jpg" width="64" height="64"/>
<icon href="wurm-icon-32-w.jpg" width="32" height="32"/>
<icon href="wurm-icon-16-w.jpg" width="16" height="16"/>
<icon kind="splash" href="splash.gif"/>
<shortcut online="true">
<desktop/>
<menu submenu="Wurm Online"/>
</shortcut>
</information>
<update check="timeout" policy="always"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+" initial-heap-size="128M" max-heap-size="800M"/>
<property name="sun.java2d.noddraw" value="true"/>
<property name="org.lwjgl.input.Mouse.allowNegativeMouseCoords" value="true"/>
<jar href="wurmclient.jar" main="true"/>
<jar href="wurmres.jar"/>
<jar href="libraries-stable-2013/colladabind.jar" version="1.0.0"/>
<jar href="libraries-stable-2013/irclib.jar" version="1.10"/>
<jar href="libraries-stable-2013/jogg.jar" version="0.0.7"/>
<jar href="libraries-stable-2013/jorbis.jar" version="0.0.15"/>
<jar href="libraries-stable-2013/joXSI.jar" version="1.0.0"/>
<jar href="libraries-stable-2013/jzipupdate.jar" version="0.9.1"/>
<jar href="libraries-stable-2013/lwjgl.jar" version="2.9.0"/>
<jar href="libraries-stable-2013/lwjgl_util.jar" version="2.9.0"/>
<jar href="libraries-stable-2013/PNGDecoder.jar" version="0.0.1"/>
<jar href="libraries-stable-2013/slick-util.jar" version="b208"/>
<jar href="libraries-stable-2013/vecmath.jar" version="1.5.2"/>
<jar href="libraries-stable-2013/jbullet.jar" version="1.0.0"/>
<jar href="libraries-stable-2013/commons-httpclient.jar" version="3.1"/>
</resources>
<resources os="Win" arch="x86">
<nativelib href="libraries-stable-2013/lwjgl-natives-windows.jar" version="2.9.0"/>
</resources>
<resources os="Win" arch="amd64">
<nativelib href="libraries-stable-2013/lwjgl-natives-windows.jar" version="2.9.0"/>
</resources>
<resources os="Mac" arch="ppc">
<nativelib href="libraries-stable-2013/lwjgl-natives-macosx.jar" version="2.9.0"/>
</resources>
<resources os="Mac" arch="i386">
<nativelib href="libraries-stable-2013/lwjgl-natives-macosx.jar" version="2.9.0"/>
</resources>
<resources os="Mac" arch="x86_64">
<nativelib href="libraries-stable-2013/lwjgl-natives-macosx.jar" version="2.9.0"/>
</resources>
<resources os="Linux" arch="i386">
<nativelib href="libraries-stable-2013/lwjgl-natives-linux.jar" version="2.9.0"/>
</resources>
<resources os="Linux" arch="x86">
<nativelib href="libraries-stable-2013/lwjgl-natives-linux.jar" version="2.9.0"/>
</resources>
<resources os="Linux" arch="amd64">
<nativelib href="libraries-stable-2013/lwjgl-natives-linux.jar" version="2.9.0"/>
</resources>
<resources os="Linux" arch="x86_64">
<nativelib href="libraries-stable-2013/lwjgl-natives-linux.jar" version="2.9.0"/>
</resources>
<resources os="SunOS" arch="sparc">
<nativelib href="libraries-stable-2013/lwjgl-natives-solaris.jar" version="2.9.0"/>
</resources>
<application-desc main-class="com.wurmonline.client.WurmLauncher">
<argument>jenn001.game.wurmonline.com</argument>
</application-desc>
</jnlp>

Exception Tab:



java.lang.SecurityException: Missing required Permissions manifest attribute in main jar: http://www.wurmonline.com/client/wurmclient.jar
at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)


Thanks for the reply, but that still didnt fix it.


Share this post


Link to post
Share on other sites

This is something the current Java 7 announced as a change for the next Java 7 update (build 45). I guess it's already activated in Java 8. Use Java 7 build 40.

Edited by ago

Share this post


Link to post
Share on other sites

I got an error message about the game's certificate tonight. The warning is always on the app when I launch it (about the jar), but this was different. It was a popup warning about the certificate.


Share this post


Link to post
Share on other sites

you know seeing my name after the word Failed  is giving me a complex  ;)


Share this post


Link to post
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
Sign in to follow this