Skip to content

Conversation

@iroqueta
Copy link
Collaborator

@iroqueta iroqueta commented Mar 1, 2023

Sometimes when a webapplications reload and Redis is used to save web sessions a cast exception is throwed when GXNavigationHelper is retrived and it have a diferente classloader.

This is the error throwed:
[com.genexus.servlet.ServletException: com.genexus.servlet.ServletException: com.genexus.servlet.ServletException: com.genexus.servlet.ServletException: java.lang.ClassCastException: class com.genexus.internet.GXNavigationHelper cannot be cast to class com.genexus.internet.GXNavigationHelper (com.genexus.internet.GXNavigationHelper is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @20888aa8; com.genexus.internet.GXNavigationHelper is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @63854e64)

Error can not be reproduced so a catch is implemented to avoid a runtime error Issue: 101399

…sessions a cast exception is throwed when GXNavigationHelper is retrived and it have a diferente classloader.

This is the error throwed:
[com.genexus.servlet.ServletException: com.genexus.servlet.ServletException: com.genexus.servlet.ServletException: com.genexus.servlet.ServletException: java.lang.ClassCastException: class com.genexus.internet.GXNavigationHelper cannot be cast to class com.genexus.internet.GXNavigationHelper (com.genexus.internet.GXNavigationHelper is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @20888aa8; com.genexus.internet.GXNavigationHelper is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @63854e64)

Error can not be reproduced so a catch is implemented to avoid a runtime error
Issue: 101399
@iroqueta iroqueta requested a review from ggallotti March 1, 2023 21:15
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@ggallotti ggallotti changed the title Sometimes when a webapplications reload and Redis is used to save web… GXNavigationHelper Exception when using Http Redis WebSession. Mar 2, 2023
@iroqueta iroqueta merged commit 31bb1a8 into master Mar 3, 2023
@iroqueta iroqueta deleted the CastErrorInGXNavigationHelper branch March 3, 2023 20:13
iroqueta added a commit that referenced this pull request Mar 9, 2023
…sessions a cast exception is throwed when GXNavigationHelper is retrived and it have a diferente classloader. (#679)

This is the error throwed:
[com.genexus.servlet.ServletException: com.genexus.servlet.ServletException: com.genexus.servlet.ServletException: com.genexus.servlet.ServletException: java.lang.ClassCastException: class com.genexus.internet.GXNavigationHelper cannot be cast to class com.genexus.internet.GXNavigationHelper (com.genexus.internet.GXNavigationHelper is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @20888aa8; com.genexus.internet.GXNavigationHelper is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @63854e64)

Error can not be reproduced so a catch is implemented to avoid a runtime error
Issue: 101399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants