question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

org.springframework.beans.factory.UnsatisfiedDependencyException out of the box

See original GitHub issue
Overview of the issue

Spring Boot app created by jHipster with OAuth2 auth doesn’t run out of the box, and fails with an unintuitive exception.

Motivation for or Use Case

This falls short of the premise that apps run out of the box, and isn’t trivial to fix. There should at least be documentation somewhere that covers a workaround/what to do.

Reproduce the error

Run the automatically created Spring rule after importing the project to IntelliJ.

Related issues

No

Suggest a Fix

Not sure. Either fix the root cause or document missing steps. From the stack trace, it seems there should be some server running on my machine, and there isn’t.

JHipster Version(s)

4.0.8

JHipster configuration
{
  "generator-jhipster": {
    "jhipsterVersion": "4.0.8",
    "baseName": "gfx2",
    "packageName": "com.google.gfx",
    "packageFolder": "com/google/gfx",
    "serverPort": "8080",
    "authenticationType": "oauth2",
    "hibernateCache": "no",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "mongodb",
    "devDatabaseType": "mongodb",
    "prodDatabaseType": "mongodb",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "clientFramework": "angular2",
    "useSass": false,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "en",
    "languages": [
      "en"
    ]
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System

Ubuntu

  • [x ] Checking this box is mandatory (this is just to show you read everything)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jduboiscommented, Mar 17, 2017

Oh yes you have a timeout while connecting to MongoDB, so that’s definitely the issue! You can of course run a “normal” MongoDB (I used to install it on my Mac with Homebrew), but now that we support Docker this is much easier.

Then, maybe we should have a better error message here: you can see it at the end of the Stacktrace, but it’s definitely not easy to find & read.

1reaction
jduboiscommented, Mar 17, 2017

Oh yes @ruddell is probably right -> for this run docker-compose -f src/main/docker/mongodb.yml up -d in your project

Read more comments on GitHub >

github_iconTop Results From Across the Web

hibernate - org.springframework.beans.factory ...
Spring boot does a lot of things out of the box for you. Configuring the DataSource. First of all, there is the datasource....
Read more >
REST Security with JWT using Java and Spring Security - Toptal
Let's try to examine the state of REST security today, using a straightforward Spring security tutorial to demonstrate it in action. REST (which...
Read more >
Re: Atlas UI is not working - Cloudera Community - 157097
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'notificationHookConsumer' defined in URL ...
Read more >
Spring Version Change for Hybris Upgrade - SAP Community
at java.lang.Thread.run(Unknown Source) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean ...
Read more >
Analytics agent fails to start: org.springframework.beans ...
Error Message : Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiKeyCache': ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found