GeoServer
  1. GeoServer
  2. GEOS-1448

GetLog DifferenceQuery throws NullPointerException

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0-beta3
    • Fix Version/s: 1.6.0-RC1
    • Component/s: Versioning
    • Labels:
      None
    • Number of attachments :
      1

      Description

      This problem was encountered in TOPP's NYC map project using the database on artois.

      The request and ServiceExceptionReport can be found here.

      http://pastebin.ca/749695

      Email sbenthall for more information if needed.

        Issue Links

          Activity

          Hide
          Sebastian Benthall added a comment -

          cholmes reminds me that pastebins shouldn't go in these tickets. I'm attaching the request and service exception report as a file now.

          Show
          Sebastian Benthall added a comment - cholmes reminds me that pastebins shouldn't go in these tickets. I'm attaching the request and service exception report as a file now.
          Hide
          Andrea Aime added a comment -

          This happens because the changesets feature type has not been registered as a public one in geoserver.
          I've added better error reporting, not sure I can make it work without having that feature type registered thought.

          Show
          Andrea Aime added a comment - This happens because the changesets feature type has not been registered as a public one in geoserver. I've added better error reporting, not sure I can make it work without having that feature type registered thought.
          Hide
          Chris Holmes added a comment -

          Can we have the feature type automatically register in some way? Maybe when people enable versioning?

          Show
          Chris Holmes added a comment - Can we have the feature type automatically register in some way? Maybe when people enable versioning?
          Hide
          Andrea Aime added a comment -

          Not easily.
          In a perfect world, I would have a configuration subsystem that would throw events when stuff gets added, this way I could register a listener so that when that datastore gets added the changesets type would get configured. I would also have a config system that would guarantee me the availability of certain basic styles.

          With current config subsystem I have to make the data module directly depend on the versioning datastore to do so (and using the single listener that Justin added some weeks ago to flush the feature type schema cache)... moreover, I have no guarantee I can find a style that's compatible with changesets, for what I know the user may have only styles that do depend on certain attributes being available. So I would need to scan the styles looking for one that I can use, and inject on the fly one if I don't find it.

          Show
          Andrea Aime added a comment - Not easily. In a perfect world, I would have a configuration subsystem that would throw events when stuff gets added, this way I could register a listener so that when that datastore gets added the changesets type would get configured. I would also have a config system that would guarantee me the availability of certain basic styles. With current config subsystem I have to make the data module directly depend on the versioning datastore to do so (and using the single listener that Justin added some weeks ago to flush the feature type schema cache)... moreover, I have no guarantee I can find a style that's compatible with changesets, for what I know the user may have only styles that do depend on certain attributes being available. So I would need to scan the styles looking for one that I can use, and inject on the fly one if I don't find it.
          Hide
          Chris Holmes added a comment -

          Ok. I guess we just need to be sure to add good documentation that says the featureType must be enabled.

          Show
          Chris Holmes added a comment - Ok. I guess we just need to be sure to add good documentation that says the featureType must be enabled.
          Show
          Andrea Aime added a comment - Documentation added: http://docs.codehaus.org/display/GEOSDOC/Versioning+PostGIS+datastore

            People

            • Assignee:
              Andrea Aime
              Reporter:
              Sebastian Benthall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: