GeoTools
  1. GeoTools
  2. GEOT-2949

app-schema java.lang.IllegalStateException: Subject type not loaded yet

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.7-M0
    • Component/s: app-schema plugin
    • Labels:
      None

      Description

      From http://jira.codehaus.org/browse/GEOS-3805:

      As GeoServer only allows one FeatureType of same type per instance, in order to achieve more than one silimar type, a new schema been created to have the similar type with different element name:

      1) Created a new schema under a new profiles directory
      (profiles/Borehole.xsd)
      <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:gsml="urn:cgi:xmlns:CGI:GeoSciML:2.0" xmlns:sa="http://www.opengis.net/sampling/1.0" xmlns:om="http://www.opengis.net/om/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" targetNamespace="urn:cgi:xmlns:CGI:GeoSciML:2.0">
      <annotation>
      <documentation>Profile wrapper for Borehole</documentation>
      </annotation>
      <import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/>
      <import namespace="http://www.opengis.net/sampling/1.0" schemaLocation="http://schemas.opengis.net/sampling/1.0.0/sampling.xsd"/>
      <include schemaLocation="http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd"/>
      <element name="BoreholeHeader" type="gsml:BoreholeType" substitutionGroup="sa:SamplingCurve"/>
      </schema>

      2) Have the geoserver config file pointing to the new schema file :
      <targetTypes>
      <FeatureType>
      <schemaUri>../profiles/Borehole.xsd</schemaUri>
      </FeatureType>
      </targetTypes>

      3) Running the config file will receive the following java exception :
      <ows:ExceptionReport version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">

      • <ows:Exception exceptionCode="NoApplicableCode">
        <ows:ExceptionText>java.lang.IllegalStateException: Subject type not loaded yet Subject type not loaded yet</ows:ExceptionText>
        </ows:Exception>
        </ows:ExceptionReport>

        Activity

        Hide
        Rini Angreani added a comment -
        GT-trunk:
        =========
        Modified: src/GeoTools-trunk/modules/unsupported/app-schema/app-schema/src/main/java/org/geotools/data/complex/config/FeatureTypeRegistry.java
        Committed revision 34904.
        GT-2.6:
        =======
        Modified: src\Geotools-2.6\modules\unsupported\app-schema\app-schema\src\main\java\org\geotools\data\complex\config\FeatureTypeRegistry.java
        Completed: At revision: 34905
        Show
        Rini Angreani added a comment - GT-trunk: ========= Modified: src/GeoTools-trunk/modules/unsupported/app-schema/app-schema/src/main/java/org/geotools/data/complex/config/FeatureTypeRegistry.java Committed revision 34904. GT-2.6: ======= Modified: src\Geotools-2.6\modules\unsupported\app-schema\app-schema\src\main\java\org\geotools\data\complex\config\FeatureTypeRegistry.java Completed: At revision: 34905
        Hide
        Andrea Aime added a comment -
        Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update
        Show
        Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

          People

          • Assignee:
            Rini Angreani
            Reporter:
            Rini Angreani
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: