java.lang.IllegalStateException: PWC2776: invalidate: Session already invalidated

Java.net JIRA | ljnelson | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hello; some of my developers are reporting that with Glassfish 3.1.2 build 9 any attempt to access the administration console remotely (from a different machine's web browser) fails. Here are the steps to reproduce the problem: Install Glassfish normally. Start the server: {noformat} asadmin start-domain {noformat} Change the administration password: {noformat} asadmin change-admin-password Enter admin user name [default: admin]> admin Enter admin password> <return> Enter new admin password> somepassword Enter new admin password again> somepassword Command change-admin-password executed successfully. {noformat} Enable "secure admin": {noformat} asadmin enable-secure-admin Enter admin user name> admin Enter admin password for user "admin"> Command enable-secure-admin executed successfully. {noformat} Stop the server: {noformat} asadmin stop-domain {noformoat} Start the server: {noformat} asadmin start-domain {noformat} Now navigate to that machine's port 4848 from another box. Put in {{admin}} for the username and {{somepassword}} for the password. A blank screen results (the URL reflects the {{j_security_check}} destination). The log file says, in part: {{noformat}} Caused by: java.io.EOFException: SSL peer shut down incorrectly at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:333) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798) ... 57 more {{noformat}}

    Java.net JIRA | 5 years ago | ljnelson
    java.lang.IllegalStateException: PWC2776: invalidate: Session already invalidated
  2. 0

    Hello; some of my developers are reporting that with Glassfish 3.1.2 build 9 any attempt to access the administration console remotely (from a different machine's web browser) fails. Here are the steps to reproduce the problem: Install Glassfish normally. Start the server: {noformat} asadmin start-domain {noformat} Change the administration password: {noformat} asadmin change-admin-password Enter admin user name [default: admin]> admin Enter admin password> <return> Enter new admin password> somepassword Enter new admin password again> somepassword Command change-admin-password executed successfully. {noformat} Enable "secure admin": {noformat} asadmin enable-secure-admin Enter admin user name> admin Enter admin password for user "admin"> Command enable-secure-admin executed successfully. {noformat} Stop the server: {noformat} asadmin stop-domain {noformoat} Start the server: {noformat} asadmin start-domain {noformat} Now navigate to that machine's port 4848 from another box. Put in {{admin}} for the username and {{somepassword}} for the password. A blank screen results (the URL reflects the {{j_security_check}} destination). The log file says, in part: {{noformat}} Caused by: java.io.EOFException: SSL peer shut down incorrectly at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:333) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798) ... 57 more {{noformat}}

    Java.net JIRA | 5 years ago | ljnelson
    java.lang.IllegalStateException: PWC2776: invalidate: Session already invalidated
  3. 0

    HazelcastHttpSession created twice with Spring Security redirect

    GitHub | 2 years ago | akerekes
    java.lang.IllegalStateException: invalidate: Session already invalidated
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Possible bug in session clustering with Spring Security when redirecting after logout

    Google Groups | 2 years ago | András Kerekes
    java.lang.IllegalStateException: invalidate: Session already invalidated
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    PWC2776: invalidate: Session already invalidated

    at org.apache.catalina.session.StandardSession.invalidate()
  2. Glassfish Core
    StandardSessionFacade.invalidate
    1. org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1467)
    2. org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:204)
    2 frames
  3. org.glassfish.admingui
    AdminConsoleAuthModule.validateRequest
    1. org.glassfish.admingui.common.security.AdminConsoleAuthModule.validateRequest(AdminConsoleAuthModule.java:280)
    1 frame
  4. Security Core Classes
    GFServerConfigProvider$GFServerAuthContext.validateRequest
    1. com.sun.enterprise.security.jmac.config.GFServerConfigProvider$GFServerAuthContext.validateRequest(GFServerConfigProvider.java:1171)
    1 frame
  5. Security
    RealmAdapter.invokeAuthenticateDelegate
    1. com.sun.web.security.RealmAdapter.validate(RealmAdapter.java:1452)
    2. com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1330)
    2 frames
  6. Glassfish Core
    StandardPipeline.doChainInvoke
    1. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)
    2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:623)
    3. org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
    3 frames
  7. Glassfish
    PESessionLockingStandardPipeline.invoke
    1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
    2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
    2 frames
  8. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
    2. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
    3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    3 frames
  9. Kernel Classes
    ContainerMapper.service
    1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:232)
    1 frame
  10. Grizzly WS
    AbstractThreadPool$Worker.run
    1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:833)
    2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:730)
    3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1031)
    4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
    5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    13 frames
  11. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:680)
    1 frame