Generator-jhipster: Your request cannot be processed

Created on 27 Sep 2017  路  12Comments  路  Source: jhipster/generator-jhipster

Overview of the issue

After my project generation, and without any local change, I started my application.
When I try to access http://localhost:8080/ I get an error screen :
"Your request cannot be processed"
Sorry, an error has occurred.

Status: Not Found (Not Found)
Message: Not Found

Motivation for or Use Case

My application is inaccessible.

Reproduce the error
  • Generate a new project with no entities.
Related issues
Suggest a Fix
JHipster Version(s)

4.8.2

JHipster configuration

jhipster info :

JHipster Version(s)
[email protected] D:\Work\workspace\ads
+-- [email protected]
`-- UNMET PEER DEPENDENCY popper.js@^1.11.0

##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**
.yo-rc.json file
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.ads",
      "nativeLanguage": "fr"
    },
    "jhipsterVersion": "4.8.2",
    "baseName": "ads",
    "packageName": "com.ads",
    "packageFolder": "com/ads",
    "serverPort": "8080",
    "authenticationType": "oauth2",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "searchEngine": "elasticsearch",
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "enableSwaggerCodegen": true,
    "clientFramework": "angularX",
    "useSass": false,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "fr",
    "languages": [
      "fr",
      "ar-ly",
      "en"
    ]
  }
}

JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory


JDL entity definitions






Environment and Tools

java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) Client VM (build 25.144-b01, mixed mode)

git version 2.14.1.windows.1

node: v6.11.3

npm: 3.10.10

yarn: 1.0.2

Execution complete

Entity configuration(s) entityName.json files generated in the .jhipster directory

No entities.

Browsers and Operating System

Windows 7 Ultimate, and Chrome browser.

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

All 12 comments

Can you provide us a stacktrace? Or your server lots?

I just used your configuration to generate an application and run it, no problem whatsoever...

I'm closing this as I can't reproduce: next time, please provide more information (what is your stacktrace? how do you start your application?), so we don't all lose time! I can't work with incomplete information.

And please also do a better ticket title, this is going to be annoying in the next release, as nobody will understand what this is

I encountered this problem some time ago randomly in Windows 7. In my case sometimes version compiled by Jenkins gave this error, but version compiled in my local computer didn't gave this error. I couldn't fix it, just some new build fixed this issue.
Seems to be related to Undertow. Switching Undertow logs to debug may give more information, in logback-spring.xml switch from:

    <logger name="io.undertow" level="WARN"/>

to:

    <logger name="io.undertow" level="DEBUG"/>

I get this output in my console after changing the io.undertow level :

2017-09-28 14:47:47.806 DEBUG 4160 --- [ XNIO-2 task-3] io.undertow.request.security : Attempting to authenticate /, authentication required: false
2017-09-28 14:47:47.810 DEBUG 4160 --- [ XNIO-2 task-3] io.undertow.request.security : Authentication outcome was NOT_ATTEMPTED with method io.undertow.security.impl.CachedAuthenticatedSessionMechanism@c61884 for /
2017-09-28 14:47:47.811 DEBUG 4160 --- [ XNIO-2 task-3] io.undertow.request.security : Authentication result was ATTEMPTED for /

@ehatime You said you got the error at http://localhost:8080 but this works only if you run yarn webpack:build otherwise the recommended workflow in dev is to run both yarn start and mvnw and to access your app at http://localhst:9000 as explained in doc: http://www.jhipster.tech/development/#working-with-angular

I have a GC memory error when I run yarn start, I'll increase memory and see.

ran into the same probelm and had to run yarn webpack:build

ran into the same probelm and had to run yarn webpack:build

Worked for me. Thanks @gwokudasam !!
More details.

  1. worked with mvnw command from command prompt.
  2. failed when imported that project in eclipse and deployed on tomcat. Worked after running yarn webpack:build from command prompt

ran into the same probelm and had to run yarn webpack:build

Worked for me. Thanks @gwokudasam !!
More details.

  1. worked with mvnw command from command prompt.
  2. failed when imported that project in eclipse and deployed on tomcat. Worked after running yarn webpack:build from command prompt

you're welcome

I am facing the same issue, and I have followed everything I found from running npm install, yarn install, yarn webpack:build, yarn start. I am still getting the same error. I even used https://start.jhipster.tech/ to see if something was wrong with the app generated in my machine. Not sure what else I could try, or how I could provide you with more information to help you.

@mustafa-almulla :

Please don't comment on an old issue. If you think this issue still applies, please create a new ticket with proper details.

If you have a question please use Stack Overflow, and tag the question with jhipster. This helps the project to keep the issue tracker clean. Also, Stack Overflow will give your question a larger audience:

  • This will increase your chances to get an answer
  • Answers will be of higher quality, as there is a voting system
  • This will also help other users who might have the same issue, as questions are tagged and easily searchable

Finally, you can also use our chat room on gitter.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trajakovic picture trajakovic  路  4Comments

SudharakaP picture SudharakaP  路  3Comments

ahmedeldeeb25 picture ahmedeldeeb25  路  3Comments

edvjacek picture edvjacek  路  3Comments

kaidohallik picture kaidohallik  路  3Comments