Skip to main content



      Home
Home » Eclipse Projects » Equinox » Errors when storing passwords in secure storage
Errors when storing passwords in secure storage [message #116619] Wed, 27 August 2008 14:52 Go to next message
Eclipse UserFriend
The first time we try to store credentials in a brand new installation of
Eclipse with no existing storage file we get an exception:

java.lang.NoClassDefFoundError
at javax.crypto.SecretKeyFactory.getInstance(DashoA12275)
at
org.eclipse.equinox.internal.security.storage.JavaEncryption .internalEncrypt(JavaEncryption.java:137)
at
org.eclipse.equinox.internal.security.storage.JavaEncryption .encrypt(JavaEncryption.java:132)
at
org.eclipse.equinox.internal.security.storage.SecurePreferen cesRoot.getModulePassword(SecurePreferencesRoot.java:257)
at
org.eclipse.equinox.internal.security.storage.SecurePreferen cesRoot.getPassword(SecurePreferencesRoot.java:219)

at
org.eclipse.equinox.internal.security.storage.SecurePreferen ces.put(SecurePreferences.java:224)

at
org.eclipse.equinox.internal.security.storage.SecurePreferen cesWrapper.put(SecurePreferencesWrapper.java:110)



The encryption algorithms dropdown on the Advanced tab is blank.

If I simply open the secure storage file preference page and close it I
can then successfully store credentials.

I tried the same test with CVS and got a similar result. I did not get an
exception but the password was not stored.

In either case I was not prompted to supply a password for the secure
storage.

Any ideas on what might be wrong?
Re: Errors when storing passwords in secure storage [message #116655 is a reply to message #116619] Thu, 28 August 2008 11:45 Go to previous message
Eclipse UserFriend
Most likely this is caused by the VM configuration. I'd suggest the
following:

1) Find the VM that is picked up by the Eclipse instance ( Help -> About
Eclipse SDK -> Configuration details)

2) For that VM, was the java.security file modified (usually in the
jre\lib\security folder)? Especially check the list of the security
providers (security.provider.1, security.provider.2, and so on). If this
file was modified, try to revert back to the original and see if the error
persists.

3) If that does not help, is there anything else unusual about the VM setup?
I'd try to install a clean VM, check environment variables, and try to run
Eclipse with it to see if the error persists.

If the error still persists, please open a bug against Equinox / Security.
Please attach the full log and a copy of the "Configuration details" to it.

Thanks,
Oleg

"Jason " <jason.levine@softwareagusa.com> wrote in message
news:3618d3e02834fdde40cbf8bf375bcab4$1@www.eclipse.org...
> The first time we try to store credentials in a brand new installation of
> Eclipse with no existing storage file we get an exception:
>
> java.lang.NoClassDefFoundError
> at javax.crypto.SecretKeyFactory.getInstance(DashoA12275)
> at
> org.eclipse.equinox.internal.security.storage.JavaEncryption .internalEncrypt(JavaEncryption.java:137)
> at
> org.eclipse.equinox.internal.security.storage.JavaEncryption .encrypt(JavaEncryption.java:132)
> at
> org.eclipse.equinox.internal.security.storage.SecurePreferen cesRoot.getModulePassword(SecurePreferencesRoot.java:257)
> at
> org.eclipse.equinox.internal.security.storage.SecurePreferen cesRoot.getPassword(SecurePreferencesRoot.java:219)
>
> at
> org.eclipse.equinox.internal.security.storage.SecurePreferen ces.put(SecurePreferences.java:224)
>
> at
> org.eclipse.equinox.internal.security.storage.SecurePreferen cesWrapper.put(SecurePreferencesWrapper.java:110)
>
>
>
> The encryption algorithms dropdown on the Advanced tab is blank.
> If I simply open the secure storage file preference page and close it I
> can then successfully store credentials.
> I tried the same test with CVS and got a similar result. I did not get an
> exception but the password was not stored.
> In either case I was not prompted to supply a password for the secure
> storage.
> Any ideas on what might be wrong?
>
>
>
Previous Topic:ManagedServices - update Configuration
Next Topic:[equinox security] JAAS: Principal based authorization
Goto Forum:
  


Current Time: Thu Jul 03 12:04:08 EDT 2025

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

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

Back to the top