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

Crash After Master Password Recovery #1

Open
stephen-smith opened this issue May 16, 2017 · 5 comments
Open

Crash After Master Password Recovery #1

stephen-smith opened this issue May 16, 2017 · 5 comments

Comments

@stephen-smith
Copy link

Exception in thread "main" org.sonatype.plexus.components.cipher.PlexusCipherException: java.lang.NegativeArraySizeException
        at org.sonatype.plexus.components.cipher.PBECipher.decrypt64(PBECipher.java:193)
        at org.sonatype.plexus.components.cipher.DefaultPlexusCipher.decrypt(DefaultPlexusCipher.java:72)
        at org.sonatype.plexus.components.cipher.DefaultPlexusCipher.decryptDecorated(DefaultPlexusCipher.java:89)
        at org.github.jelmerk.maven.settings.Decorder.decodePassword(Decorder.java:66)
        at org.github.jelmerk.maven.settings.Decorder.printPasswords(Decorder.java:107)
        at org.github.jelmerk.maven.settings.Decorder.main(Decorder.java:61)
Caused by: java.lang.NegativeArraySizeException
        at org.sonatype.plexus.components.cipher.PBECipher.decrypt64(PBECipher.java:179)
        ... 5 more
@stephen-smith
Copy link
Author

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

@stephen-smith
Copy link
Author

Using the compiled distributable on CYGWIN_NT-6.1-WOW ADMINIB-T02RGPK 2.6.0(0.304/5/3) 2016-08-31 14:27 i686 Cygwin

@stephen-smith
Copy link
Author

Caused by having a server that does not have a encrypted password, I think. I commented out the entries with a plain-text password and it gave me the rest.

@stephen-smith
Copy link
Author

PR #2 is my proposed fix.

@lgrill-pentaho
Copy link

lgrill-pentaho commented Jun 23, 2017

Duplicated the behavior that Stephen describes:
Apache Maven 3.3.9
java version 1.8.0_111
Darwin Kernel Version 16.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants