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

LazyInitialization failed to lazily initialize a collection: could not initialize proxy - no Session #21434

Closed
igortregub opened this issue Mar 15, 2023 · 5 comments

Comments

@igortregub
Copy link

igortregub commented Mar 15, 2023

Overview of the issue

I tried to create and test application using latest version of jhipster-generator (from main branch), but I've got issue when tried to execute tests

[ERROR] Errors: 
[ERROR]   DomainUserDetailsServiceIT.assertThatUserCanBeFoundByLogin:75 » LazyInitialization failed to lazily initialize a collection: could not initialize proxy - no Session
[ERROR]   PublicUserResourceIT.setup:49 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   PublicUserResourceIT.setup:49 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   PublicUserResourceIT.setup:49 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
[ERROR]   UserResourceIT.setup:81 » Cache org.redisson.client.RedisException: Unexpected exception while processing command
Reproduce the error

./mvnw -ntp verify -P-webapp

JHipster Version(s)

dev version from main branch

JHipster configuration
.yo-rc.json file
{
  "applicationIndex": 0,
  "applicationType": "monolith",
  "authenticationType": "jwt",
  "baseName": "Test",
  "blueprints": [],
  "buildTool": "maven",
  "cacheProvider": "redis",
  "clientFramework": "react",
  "clientPackageManager": "npm",
  "clientTheme": "none",
  "clientThemeVariant": "",
  "creationTimestamp": 1678913585184,
  "databaseType": "sql",
  "devDatabaseType": "mariadb",
  "devServerPort": 9060,
  "dtoSuffix": "DTO",
  "enableGradleEnterprise": false,
  "enableHibernateCache": true,
  "enableSwaggerCodegen": false,
  "enableTranslation": true,
  "entities": [],
  "entitySuffix": "",
  "gradleEnterpriseHost": "",
  "incrementalChangelog": true,
  "jhiPrefix": "jhi",
  "jhipsterVersion": "7.9.3",
  "languages": [
    "en",
    "ru"
  ],
  "messageBroker": false,
  "nativeLanguage": "en",
  "otherModules": [],
  "packageFolder": "dev/test/test",
  "packageName": "dev.test.test",
  "pages": [],
  "prodDatabaseType": "mariadb",
  "reactive": false,
  "searchEngine": false,
  "serverPort": "8080",
  "serviceDiscoveryType": false,
  "skipCheckLengthOfIdentifier": false,
  "skipClient": false,
  "skipFakeData": false,
  "skipUserManagement": false,
  "testFrameworks": [],
  "websocket": false,
  "withAdminUi": true
}
Environment and Tools

openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment GraalVM CE 22.3.1 (build 17.0.6+10-jvmci-22.3-b13)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.1 (build 17.0.6+10-jvmci-22.3-b13, mixed mode, sharing)

git version 2.40.0

node: v16.19.1
npm: 8.19.3

Docker version 20.10.22, build 3a2c30b

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

@mshima
Copy link
Member

mshima commented Mar 17, 2023

Redis and infinispan are currently broken at main.
See #20398.

@igortregub
Copy link
Author

igortregub commented May 7, 2023

Hello, is there any changes or update relating to the issue with redis? Thank you

Copy link
Contributor

github-actions bot commented Nov 10, 2023

JHipster has completed the sample check
.yo-rc.json: valid
Entities JDL: blank
Application: successfully generated
Frontend check: success
Backend check: failure
E2E check: success

@mshima
Copy link
Member

mshima commented Jan 5, 2024

Closing if favor of #22889

@mshima
Copy link
Member

mshima commented Jan 5, 2024

Duplicated of #22889

@mshima mshima closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2024
@deepu105 deepu105 added this to the 8.2.0 milestone Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants