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

Too many sessions gives 'java.lang.IllegalStateException: null #72

Closed
ghkarmseveer opened this issue Nov 27, 2019 · 2 comments · Fixed by #88
Closed

Too many sessions gives 'java.lang.IllegalStateException: null #72

ghkarmseveer opened this issue Nov 27, 2019 · 2 comments · Fixed by #88
Milestone

Comments

@ghkarmseveer
Copy link

ghkarmseveer commented Nov 27, 2019

When the maxActiveSessions limit is reached on tomcat 8.5 we get

java.lang.IllegalStateException: null
at com.hazelcast.session.HazelcastSessionManager.checkMaxActiveSessions(HazelcastSessionManager.java:354) ~[hazelcast-tomcat85-sessionmanager-1.1.4-SNAPSHOT.jar!/:na]
at com.hazelcast.session.HazelcastSessionManager.createSession(HazelcastSessionManager.java:136) ~[hazelcast-tomcat85-sessionmanager-1.1.4-SNAPSHOT.jar!/:na]
at org.apache.catalina.connector.Request.doGetSession(Request.java:3075) ~[tomcat-embed-core-8.5.34.jar!/:8.5.34]

this is because the wrong String reference is used, standardManager.createSession.ise, should be managerBase.createSession.ise

throw new IllegalStateException(sm.getString("standardManager.createSession.ise"));

@ghkarmseveer ghkarmseveer changed the title Too many sessions gives Too many sessions gives 'java.lang.IllegalStateException: null Nov 27, 2019
@ghkarmseveer
Copy link
Author

also appears wrong in tomcat9 version (possibly 8 and 7 too)

@alparslanavci
Copy link
Contributor

Hi @ghkarmseveer, do you have any reproducer for this issue? If so, can you please share it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants