Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1583

context.getObjectStore() returning null causing NullpointerException in DataMergeHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.1M3, 3.0.3
    • Core Library
    • None
    • sun Java 6 jre under both debian (squeeze) and ubuntu (maverik) linux with MySQL 5.1 using InnoDB.

    Description

      context.getObjectStore() return null, but nowhere in the code the constructor is called with null as objectStore

      This looks like a multithreading problem (object accessed before full initialization) or deserialization issue.

      However, I have a patch that's either, solve the issue, or at least make it almost impossible to trigger. Simply switch position of
      // use a setter to properly initialize EntityResolver
      setChannel(channel);

      form before the objectContext to after.

      Attachments

        Activity

          People

            demitri Dzmitry Kazimirchyk
            deadalnix Amaury SECHET
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: