Wicket
  1. Wicket
  2. WICKET-3910

o.a.w.pageStore.AsynchronousDataStore#getData() returns null if the StoreEntryRunnable is currently running

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC5.1
    • Fix Version/s: 1.5-RC6
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      Hostspot 1.6.0_26, 1.5.0_22

      Description

      I am running "mvn clean package" on the command line and based on the jdk I get different results (reproducable).

      With jdk6 the test fails and the following is logged:
      ERROR - DiskDataStoreTest - data[] should never be null
      ERROR - DiskDataStoreTest - Detected error number: 1
      ERROR - DiskDataStoreTest - data[] should never be null
      ERROR - DiskDataStoreTest - Detected error number: 2
      Exception in thread "Thread-22" java.lang.NullPointerException
      at org.apache.wicket.page.persistent.disk.DiskDataStoreTest$Read1Runnable.run(DiskDataStoreTest.java:231)
      at java.lang.Thread.run(Thread.java:662)
      Exception in thread "Thread-42" java.lang.NullPointerException
      at org.apache.wicket.page.persistent.disk.DiskDataStoreTest$Read2Runnable.run(DiskDataStoreTest.java:264)
      at java.lang.Thread.run(Thread.java:662)

      With jdk5 everything goes fine and above message is not logged.

      The datastore in the test is returning null in the Read1Runnable and Read2Runnable which is causing the NPE.

      1. fix-WICKET-3910.patch
        5 kB
        Attila Király
      2. modify-test-WICKET-3910.patch
        3 kB
        Attila Király

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Attila Király
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development