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

Exception in thread "main"... etc #924

Closed
CouldBeThis opened this issue Dec 30, 2019 · 1 comment
Closed

Exception in thread "main"... etc #924

CouldBeThis opened this issue Dec 30, 2019 · 1 comment
Labels

Comments

@CouldBeThis
Copy link

CouldBeThis commented Dec 30, 2019

Hello, I hope everyone in the northern hemisphere is enjoying the darkness. 🌌 And those in the south the long daylight. ☀️

I followed instructions "The very short version (download precompiled package)":

mkdir commafeed && cd commafeed
wget https://github.com/Athou/commafeed/releases/download/2.4.0/commafeed.jar
wget https://raw.githubusercontent.com/Athou/commafeed/2.4.0/config.yml.example -O config.yml
vi config.yml
java -Djava.net.preferIPv4Stack=true -jar commafeed.jar server config.yml 

on the raspberry pi (updated/upgraded as of yesterday) I've been fiddling with. Once I figured out how to get out of vi and got to the last step I get these errors:

pi@raspberrypi:~/commafeed $ java -Djava.net.preferIPv4Stack=true -jar commafeed.jar server config.yml 
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
	at org.hibernate.validator.internal.util.Version.getJavaRelease(Version.java:36)
	at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:120)
	at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:106)
	at org.hibernate.validator.HibernateValidator.createSpecializedConfiguration(HibernateValidator.java:27)
	at org.hibernate.validator.HibernateValidator.createSpecializedConfiguration(HibernateValidator.java:24)
	at javax.validation.Validation$ProviderSpecificBootstrapImpl.configure(Validation.java:220)
	at io.dropwizard.validation.BaseValidator.newConfiguration(BaseValidator.java:28)
	at io.dropwizard.jersey.validation.Validators.newConfiguration(Validators.java:35)
	at io.dropwizard.jersey.validation.Validators.newValidatorFactory(Validators.java:27)
	at io.dropwizard.setup.Bootstrap.<init>(Bootstrap.java:68)
	at io.dropwizard.Application.run(Application.java:72)
	at com.commafeed.CommaFeedApplication.main(CommaFeedApplication.java:172)

(I did open the config file in the GUI text editor to check it seemed to be intact despite my misadventure in vi.)

Search issues and found the following related:

in #908 @Athou says

I made changes recently to support java 9+ (#904). The app works fine but there are warning like these.
They can be ignored for now. It would be nice if Jackson was updated though. The discussion takes place here FasterXML/jackson-modules-base#37

So attempted to load http://localhost:8082/ (and http://localhost:8084 for good measure) in firefox but get error "Unable to connect".

so to see what java I'm running:

pi@raspberrypi:~/commafeed $ java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Raspbian-1deb10u1)
OpenJDK Server VM (build 11.0.5+10-post-Raspbian-1deb10u1, mixed mode)

Not sure what else to try?

Probably I am making some very elementary mistake. I am perpetually new at this. So best not to make any assumptions, if you understand.

Would appreciate any thoughts on this. If further info is missing let me know.

@stale
Copy link

stale bot commented Jan 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 1, 2022
@stale stale bot closed this as completed Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant