glassfish
  1. glassfish
  2. GLASSFISH-18791

EJB-Client hangs after changing client's system clock

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2
    • Fix Version/s: None
    • Component/s: orb
    • Labels:
      None
    • Environment:

      Server side: Windows 7, Java 1.6.0_27-b07
      Client side: Mac OSX, Java 1.7.0._04

      Description

      EJB-Client hangs after changing client's system clock:
      We have deployed a simple ejb stateless bean with a simple method that just returns a static string.
      On the client side we create an initial context, do a lookup for a remote facade of our stateless session bean and call the simple method.
      Everything works fine until we change the system clock of the client machine to a time in future.
      The first ejb-call after time change hangs until we get an timeout after 30 minutes.

      1. dump.txt
        8 kB
        olafj

        Activity

        olafj created issue -
        Hide
        olafj added a comment -

        Netbeans projects (Source files)

        Show
        olafj added a comment - Netbeans projects (Source files)
        olafj made changes -
        Field Original Value New Value
        Attachment TestEA-ejb.zip [ 50327 ]
        Attachment TestEA-Client.zip [ 50328 ]
        Hide
        olafj added a comment -

        Same scenario using JBoss AS 6 works fine.

        Show
        olafj added a comment - Same scenario using JBoss AS 6 works fine.
        Hide
        olafj added a comment -

        Attached dump created via jstack for freezed java process on windows. Dump was created directly after first call after change of client time.

        Show
        olafj added a comment - Attached dump created via jstack for freezed java process on windows. Dump was created directly after first call after change of client time.
        olafj made changes -
        Attachment dump.txt [ 50332 ]
        Hide
        olafj added a comment -

        Is there any progress on this issue? Are you need more information? Can i help to clearify open questions?

        Show
        olafj added a comment - Is there any progress on this issue? Are you need more information? Can i help to clearify open questions?
        Hide
        Harshad Vilekar added a comment -

        What version/build of GlassFish is used on the client machine ? The attached thread dump doesn't match the ORB 3.1.2 source code.

        Show
        Harshad Vilekar added a comment - What version/build of GlassFish is used on the client machine ? The attached thread dump doesn't match the ORB 3.1.2 source code.
        Hide
        olafj added a comment -

        I was able to reproduce the problem with glassfish 3.0.1 / 3.1.2 / 4.X server-side and with corresponding gf-client-libs on the client machine.
        It is a big problem for us in production mode due to automatic time correction in all client machines. So every time a client machine has in incorrect time a scheduled tasks in local network will correct the time, mostly from the past to current time, and after that gf-client hangs.

        Show
        olafj added a comment - I was able to reproduce the problem with glassfish 3.0.1 / 3.1.2 / 4.X server-side and with corresponding gf-client-libs on the client machine. It is a big problem for us in production mode due to automatic time correction in all client machines. So every time a client machine has in incorrect time a scheduled tasks in local network will correct the time, mostly from the past to current time, and after that gf-client hangs.
        Hide
        olafj added a comment -

        Any new ideas? How can i help?

        Show
        olafj added a comment - Any new ideas? How can i help?
        Hide
        olafj added a comment -

        Another customer told us that their installation has run into the same problem. Do you know any workaround?

        Show
        olafj added a comment - Another customer told us that their installation has run into the same problem. Do you know any workaround?
        Hide
        boernd added a comment -

        Hi,

        did you find a workaround for this issue? We also run in a very similiar problem where threads get stuck in TIMED_WAITING in the ResponseWaitingRoomImpl.waitForResponse Method (Solaris 10, JDK7 Update25 64bit).

        Regards
        Bernd

        Show
        boernd added a comment - Hi, did you find a workaround for this issue? We also run in a very similiar problem where threads get stuck in TIMED_WAITING in the ResponseWaitingRoomImpl.waitForResponse Method (Solaris 10, JDK7 Update25 64bit). Regards Bernd

          People

          • Assignee:
            Harshad Vilekar
            Reporter:
            olafj
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: