Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-185

NPE from StscState due to BindingConfigImpl.error()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: Version 2.1
    • Fix Version/s: Version 2.1
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      Windows

      Description

      Will attach test01.xsd and test01.xsdconfig which refers to an extension interface. The command and resulting NPE are below:
      \svnwork\xmlbeans\trunk\bin\scomp.cmd -verbose -cp \svnwork\xmlbeans\trunk\build\lib\xbean.jar;\svnwork\xmlbeans
      \trunk\build\lib\jsr173_api.jar;. -src src test01.xsd test01.xsdconfig
      JAVA_HOME = C:\PROGRA~1\Java\jdk1.5.0
      Apache Software Foundation, org.apache.xmlbeans.XmlBeans version 2.0.1-r226289
      Loading schema file test01.xsd
      Loading config file test01.xsdconfig
      Exception in thread "main" java.lang.NullPointerException
      at org.apache.xmlbeans.impl.schema.StscState.get(StscState.java:1215)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfig
      Impl.java:289)
      at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(I
      nterfaceExtensionImpl.java:91)
      at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterf
      ace(InterfaceExtensionImpl.java:66)
      at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(In
      terfaceExtensionImpl.java:38)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSett
      ing(BindingConfigImpl.java:234)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfi
      gImpl.java:109)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(
      BindingConfigImpl.java:69)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCom
      piler.java:940)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
      ava:1068)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
      :368)

        Attachments

        1. FooHandler.java
          0.8 kB
          Lawrence Aston Jones
        2. IFoo.java
          0.7 kB
          Lawrence Aston Jones
        3. test01.xsd
          1 kB
          Lawrence Aston Jones
        4. test01.xsdconfig
          0.9 kB
          Lawrence Aston Jones

          Activity

            People

            • Assignee:
              ljones Lawrence Aston Jones
              Reporter:
              ljones Lawrence Aston Jones
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: