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

ArrayIndexOutOfBoundsException on clean install #8

Open
asarkar opened this issue Apr 3, 2018 · 3 comments
Open

ArrayIndexOutOfBoundsException on clean install #8

asarkar opened this issue Apr 3, 2018 · 3 comments

Comments

@asarkar
Copy link

asarkar commented Apr 3, 2018

  1. Clone
  2. ./mvnw clean install
  3. Get coffee. Find build failed on return.
Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ minimal ---
[WARNING] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
java.lang.ExceptionInInitializerError
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
...
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
	at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>(AbstractZipArchiver.java:116)
	... 96 more
[INFO] Reactor Summary:
[INFO] 
[INFO] spring-cloud-sample-configserver ................... SUCCESS [02:39 min]
[INFO] demo ............................................... SUCCESS [ 30.017 s]
[INFO] minimal ............................................ FAILURE [ 22.581 s]

macOS 10.13.3

$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
$ docker --version
Docker version 18.03.0-ce, build 0520e24
@dsyer
Copy link
Owner

dsyer commented Apr 26, 2018

Works for me.

$ java -version
openjdk version "1.8.0_152"
OpenJDK Runtime Environment (Zulu 8.25.0.1-linux64) (build 1.8.0_152-b16)
OpenJDK 64-Bit Server VM (Zulu 8.25.0.1-linux64) (build 25.152-b16, mixed mode)

Try updating your JDK? Clear the maven cache?

@asarkar
Copy link
Author

asarkar commented Apr 26, 2018

Seems like the difference is Oracle vs OpenJDK?

@dsyer
Copy link
Owner

dsyer commented Apr 26, 2018

Works for me too with Oracle JDK. I guess there's something in your environment still.

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