org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'main': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No enum constant POGOProtos.Enums.PokemonIdOuterClass.PokemonId.


Solutions on the web294

Solution icon of github
via GitHub by Forty-Tw0
, 1 year ago
Error creating bean with name 'main': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No enum constant POGOProtos.Enums.PokemonIdOuterClass.PokemonId.

Solution icon of github
via GitHub by Lenovotro
, 1 year ago
Error creating bean with name 'main': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No enum constant POGOProtos.Enums.PokemonIdOuterClass.PokemonId.

Solution icon of github
via GitHub by RioRizkyRainey
, 1 year ago
Error creating bean with name 'main': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No save file found for name: .DS_Store

Solution icon of github
via GitHub by mpwer
, 1 year ago
Error creating bean with name 'main': Invocation of init method failed; nested exception is com.pokegoapi.exceptions.LoginFailedException: Error in API Url

Solution icon of github
via GitHub by KyleBoyer
, 1 year ago
Error creating bean with name 'main': Invocation of init method failed; nested exception is com.pokegoapi.exceptions.LoginFailedException: Error in API Url

Solution icon of github
via GitHub by Rishabhpatted24
, 1 year ago
Error creating bean with name 'main': Invocation of init method failed; nested exception is com.pokegoapi.exceptions.LoginFailedException: Error in API Url

Solution icon of github
via GitHub by ditrih
, 1 year ago
Error creating bean with name 'modService': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException

Solution icon of github
Error creating bean with name 'nisMain': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: host is unknown

Solution icon of github
via GitHub by kravell
, 11 months ago
Error creating bean with name 'ecsService': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: "segments" parameter is null.

Solution icon of github
via GitHub by anujgandharv
, 9 months ago
Error creating bean with name 'mockService': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Unknown entity: khs.trouble.model.Event

Stack trace

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'main': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No enum constant POGOProtos.Enums.PokemonIdOuterClass.PokemonId.
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:760)
	at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:360)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)
	at ink.abb.pogo.scraper.MainKt.main(Main.kt:106)
Caused by: java.lang.IllegalArgumentException: No enum constant POGOProtos.Enums.PokemonIdOuterClass.PokemonId.
	at java.lang.Enum.valueOf(Unknown Source)
	at POGOProtos.Enums.PokemonIdOuterClass$PokemonId.valueOf(PokemonIdOuterClass.java:14)
	at ink.abb.pogo.scraper.Main.createBot(Main.kt:68)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:354)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:305)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
	... 17 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 month ago
2 times, 1 month ago
47 more bugmates