Announcement Announcement Module
Collapse
No announcement yet.
Object reference no longer valid Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Object reference no longer valid

    Hi.

    I use a SimpleRemoteStatelessSessionProxyFactoryBean to connect to an EJB on an OC4J appserver. While stresstesting some transaction logic, I kept killing the server to see if the transaction was able to complete on reconnect. This worked well most times, however, som times I got the error:

    Object reference no longer valid (Disconnected)

    With this error, Spring was not able to reload. I have set RefreshHomeOnConnectFailure, and as I said it works most of the time. It seems spring holds on to a connection it thinks is valid somehow. Is there anyway to make a complete refresh of the context, so that it can "start fresh"? If I restart the client without restarting the server after an error like this, everything works normally, so there must be something on the client.

    Any ideas?

  • #2
    Maybe there is a case for which Spring could not detect that a connect failure happened. I suggest opening a Jira report (if none already exists) providing a full stacktrace.

    Regards,
    Andreas

    Comment


    • #3
      Done

      Here is the solution. Check it out.

      http://opensource.atlassian.com/proj...rowse/SPR-3113

      Comment

      Working...
      X