Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-303

Unknown datatype in generation of schema from database causes NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0
    • 5.0
    • Generator
    • None

    Description

      When database schema information is read by the generator from the database and an unknown datatype is encountered, a NullPointerException occurs:
      java.lang.NullPointerException
      at org.apache.torque.generator.source.jdbc.JdbcMetadataSource.createRootElement(JdbcMetadataSource.java:215)
      at org.apache.torque.generator.source.SourceImpl.getRootElement(SourceImpl.java:48)
      at org.apache.torque.generator.control.Controller.processSourceInOutput(Controller.java:256)

      In such cases, type information should be omitted from the generated schema to indicate that the type is unknown.

      Attachments

        Activity

          People

            tfischer Thomas Fox
            tfischer Thomas Fox
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: