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

crnk-jpa error, application unable to start #15

Open
rozak5151 opened this issue May 26, 2018 · 3 comments
Open

crnk-jpa error, application unable to start #15

rozak5151 opened this issue May 26, 2018 · 3 comments

Comments

@rozak5151
Copy link

Hey, I'm using Spring Boot 2. When I add crnk-setup-spring-boot2 application is able to start. However when I add crnk-jpa dependency i get this during application start:

Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'crnkFilter' defined in class path resource [io/crnk/spring/setup/boot/core/CrnkCoreAutoConfiguration.class]: Unsatisfied dependency expressed through method 'crnkFilter' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crnkBoot' defined in class path resource [io/crnk/spring/setup/boot/core/CrnkCoreAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.crnk.core.boot.CrnkBoot]: Factory method 'crnkBoot' threw exception; nested exception is java.lang.IllegalStateException: java.util.NoSuchElementException: No value present

I've tried to solve this but ran out of ideas. Please help. :( Feel free to ask questions. I aware I might have not provided enough amount of needed information.

@remmeier
Copy link
Contributor

have you set a breapoint for that exception? what is the full stack trace?

@rozak5151
Copy link
Author

It was my bad. I've had some crap in my JPA models defined. Deep debugging helped to realize what was the issue. Thanks. :)

@remmeier
Copy link
Contributor

do you nevertheless have that stacktrace? maybe to improve the error message

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