castor
  1. castor
  2. CASTOR-1659

Source Code Generator v1.0.4 throws a NPE

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.4, 1.0.5
    • Fix Version/s: 1.1 M1
    • Component/s: XML code generator
    • Labels:
      None
    • Environment:
      Win XP SP2
    • Testcase included:
      yes
    • Number of attachments :
      3

      Description

      Receiving a NPE when running the order.xsd through:

      java.lang.NullPointerException
      at org.exolab.castor.builder.SourceFactory.processAttributes(SourceFactory.java:148
      at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.java:16
      at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.java:63
      at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java:337)
      at org.exolab.castor.builder.SourceFactory.processComplexType(SourceFactory.java:59
      at org.exolab.castor.builder.SourceFactory.createSourceCode(SourceFactory.java:337)
      at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java:817
      at org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerator.ja
      at org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerator.ja
      at org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator.jav
      at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java:824
      at org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerator.ja
      at org.exolab.castor.builder.SourceGenerator.processContentModel(SourceGenerator.ja
      at org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator.jav
      at org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java:824
      at org.exolab.castor.builder.SourceGenerator.generateAllClassFiles(SourceGenerator.
      at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:64
      at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:58
      at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:48
      at org.exolab.castor.builder.SourceGeneratorMain.main(SourceGeneratorMain.java:245)

      Run the order-SourceGenerator.cmd in the SCG-NPE.zip file.

        Activity

        Werner Guttmann made changes -
        Field Original Value New Value
        Assignee Werner Guttmann [ wguttmn ]
        Werner Guttmann made changes -
        Attachment patch.c1659.20061127.txt [ 24336 ]
        Werner Guttmann made changes -
        Attachment patch.c1659.20061209.txt [ 24544 ]
        Werner Guttmann made changes -
        Affects Version/s 1.0.5 [ 12953 ]
        Original Estimate 1 hour, 30 minutes [ 5400 ]
        Remaining Estimate 1 hour, 30 minutes [ 5400 ]
        Fix Version/s 1.0.6 [ 13030 ]
        Werner Guttmann made changes -
        Time Spent 20 minutes [ 1200 ]
        Remaining Estimate 1 hour, 30 minutes [ 5400 ] 1 hour, 10 minutes [ 4200 ]
        Werner Guttmann made changes -
        Remaining Estimate 1 hour, 10 minutes [ 4200 ] 55 minutes [ 3300 ]
        Time Spent 20 minutes [ 1200 ] 35 minutes [ 2100 ]
        Werner Guttmann made changes -
        Time Spent 35 minutes [ 2100 ] 1 hour [ 3600 ]
        Remaining Estimate 55 minutes [ 3300 ] 30 minutes [ 1800 ]
        Werner Guttmann made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ralf Joachim made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Tom Carey
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour, 30 minutes
              1h 30m
              Remaining:
              Time Spent - 1 hour Remaining Estimate - 30 minutes
              30m
              Logged:
              Time Spent - 1 hour Remaining Estimate - 30 minutes
              1h