Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error constructing implementation (algorithm: DEFAULT, provider: BC, #10908

Closed
cyberduck opened this issue Dec 15, 2019 · 3 comments
Closed

Error constructing implementation (algorithm: DEFAULT, provider: BC, #10908

cyberduck opened this issue Dec 15, 2019 · 3 comments
Assignees
Labels
bug cli Command Line Interface fixed
Milestone

Comments

@cyberduck
Copy link
Collaborator

ef2996d created the issue

On Win 10-64, updated Duck CLI from 7.1.2.31675 to 7.2.1.31913 via MSI. Any command now crashes:

Microsoft Windows [Version 10.0.18363.535]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\Mark>duck --version
log4j:WARN No appenders could be found for logger (ch.cyberduck.core.preferences.Preferences).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
java.lang.ExceptionInInitializerError
        at java.util.UUID.randomUUID(UUID.java:142)
        at ch.cyberduck.core.UUIDRandomStringService.random(UUIDRandomStringService.java:23)
        at ch.cyberduck.core.local.DefaultTemporaryFileService.create(DefaultTemporaryFileService.java:45)
        at ch.cyberduck.core.Profile.write(Profile.java:249)
        at ch.cyberduck.core.Profile.<init>(Profile.java:55)
        at ch.cyberduck.core.serializer.ProfileDictionary.deserialize(ProfileDictionary.java:69)
        at ch.cyberduck.core.serializer.impl.dd.ProfilePlistReader.deserialize(ProfilePlistReader.java:52)
        at ch.cyberduck.core.serializer.impl.dd.ProfilePlistReader.deserialize(ProfilePlistReader.java:28)
        at ch.cyberduck.core.serializer.impl.dd.PlistReader.read(PlistReader.java:89)
        at ch.cyberduck.core.serializer.impl.dd.PlistReader.read(PlistReader.java:81)
        at ch.cyberduck.core.ProtocolFactory.loadDefaultProfiles(ProtocolFactory.java:79)
        at ch.cyberduck.cli.Terminal.execute(Terminal.java:232)
        at ch.cyberduck.cli.Terminal.open(Terminal.java:172)
        at cli.Ch.Cyberduck.Cli.WindowsTerminal.Main(Unknown Source)
Caused by: java.lang.RuntimeException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: DEFAULT, provider: BC, class: org.bouncycastle.jcajce.provider.drbg.DRBG$Default)
        at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:213)
        at java.security.SecureRandom.<init>(SecureRandom.java:163)
        at java.util.UUID$Holder.<clinit>(UUID.java:96)
        ... 2 more
Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: DEFAULT, provider: BC, class: org.bouncycastle.jcajce.provider.drbg.DRBG$Default)
        at java.security.Provider$Service.newInstance(Provider.java:1619)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
        at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
        at java.security.SecureRandom.getInstance(SecureRandom.java:288)
        at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:205)
        at java.security.SecureRandom.<init>(SecureRandom.java:163)
        at java.util.UUID$Holder.<clinit>(UUID.java:96)
        at java.util.UUID.randomUUID(UUID.java:142)
        at ch.cyberduck.core.UUIDRandomStringService.random(UUIDRandomStringService.java:23)
        at ch.cyberduck.core.local.DefaultTemporaryFileService.create(DefaultTemporaryFileService.java:45)
        at ch.cyberduck.core.Profile.write(Profile.java:249)
        at ch.cyberduck.core.Profile.<init>(Profile.java:55)
        at ch.cyberduck.core.serializer.ProfileDictionary.deserialize(ProfileDictionary.java:69)
        at ch.cyberduck.core.serializer.impl.dd.ProfilePlistReader.deserialize(ProfilePlistReader.java:52)
        at ch.cyberduck.core.serializer.impl.dd.ProfilePlistReader.deserialize(ProfilePlistReader.java:28)
        at ch.cyberduck.core.serializer.impl.dd.PlistReader.read(PlistReader.java:89)
        at ch.cyberduck.core.serializer.impl.dd.PlistReader.read(PlistReader.java:81)
        at ch.cyberduck.core.ProtocolFactory.loadDefaultProfiles(ProtocolFactory.java:79)
        at ch.cyberduck.cli.Terminal.execute(Terminal.java:232)
        ... 2 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class Default
        at org.bouncycastle.jcajce.provider.drbg.DRBG$Default.<init>(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:414)
        at java.security.Provider$Service.newInstance(Provider.java:1595)
        ... 20 more

C:\Users\Mark>
@cyberduck
Copy link
Collaborator Author

@dkocher commented

Supposed to be fixed with 152b124.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Changeset 335cfd3 must also be applied to CLI preferences.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In 6217905.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug cli Command Line Interface fixed
Projects
None yet
Development

No branches or pull requests

2 participants