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

InMemoryWebSessionStore makes blocking calls to UUID.randomUUID #24027

Closed
wilkinsona opened this issue Nov 19, 2019 · 1 comment
Closed

InMemoryWebSessionStore makes blocking calls to UUID.randomUUID #24027

wilkinsona opened this issue Nov 19, 2019 · 1 comment
Assignees
Milestone

Comments

@wilkinsona
Copy link
Member

@wilkinsona wilkinsona commented Nov 19, 2019

Affects: 5.1.11.RELEASE

Via @kschlesselmann on Gitter:

java.lang.Error: Blocking call! java.io.FileInputStream#readBytes
    at reactor.blockhound.BlockHound$Builder.lambda$new$0(BlockHound.java:196) ~[blockhound-1.0.1.RELEASE.jar:na]
    at reactor.blockhound.BlockHound$Builder.lambda$install$6(BlockHound.java:318) ~[blockhound-1.0.1.RELEASE.jar:na]
    at reactor.blockhound.BlockHoundRuntime.checkBlocking(BlockHoundRuntime.java:46) ~[na:na]
    at java.base/java.io.FileInputStream.readBytes(FileInputStream.java) ~[na:na]
    at java.base/java.io.FileInputStream.read(FileInputStream.java:279) ~[na:na]
    at java.base/java.io.FilterInputStream.read(FilterInputStream.java:133) ~[na:na]
    at java.base/sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:424) ~[na:na]
    at java.base/sun.security.provider.NativePRNG$RandomIO.ensureBufferValid(NativePRNG.java:526) ~[na:na]
    at java.base/sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:545) ~[na:na]
    at java.base/sun.security.provider.NativePRNG.engineNextBytes(NativePRNG.java:220) ~[na:na]
    at java.base/java.security.SecureRandom.nextBytes(SecureRandom.java:741) ~[na:na]
    at java.base/java.util.UUID.randomUUID(UUID.java:150) ~[na:na]
    at org.springframework.util.JdkIdGenerator.generateId(JdkIdGenerator.java:31) ~[spring-core-5.1.11.RELEASE.jar:5.1.11.RELEASE]
    at org.springframework.web.server.session.InMemoryWebSessionStore$InMemoryWebSession.<init>(InMemoryWebSessionStore.java:165) ~[spring-web-5.1.11.RELEASE.jar:5.1.11.RELEASE]
    at org.springframework.web.server.session.InMemoryWebSessionStore.lambda$createWebSession$0(InMemoryWebSessionStore.java:116) ~[spring-web-5.1.11.RELEASE.jar:5.1.11.RELEASE]
    at reactor.core.publisher.MonoSupplier.subscribe(MonoSupplier.java:56) ~[reactor-core-3.2.12.RELEASE.jar:3.2.12.RELEASE]
...
@rstoyanchev

This comment has been minimized.

Copy link
Contributor

@rstoyanchev rstoyanchev commented Nov 19, 2019

Scheduling for 5.2.2 with consideration for backport once a solution is identified.

@rstoyanchev rstoyanchev self-assigned this Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.