Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M20
    • Fix Version/s: 1.0.0-M28
    • Labels:
      None

      Description

      SchemaToLdif swallows the root cause when throwing ParserException

      Example exception:

        org.apache.directory.api.converter.schema.ParserException: ERR_06004_CANNOT_GENERATE_SOURCES Failed while generating sources for xocust
          at org.apache.directory.api.converter.schema.SchemaToLdif.transform(SchemaToLdif.java:108)
          at net.xoint.usermanager.UserManagerTest.test3(UserManagerTest.java:234)
      

      Hidden exception found using a debugger:

        java.text.ParseException: ERR_06002_PARSER_FAILURE Parser failure on:
          schema input stream ==> java.io.FileInputStream@75806022
        Antlr exception trace:
        line 19:1: expecting "END", found 'attributetypes'
          at antlr.Parser.match(Parser.java:211)
          at org.apache.directory.api.converter.schema.antlrSchemaConverterParser.parseSchema(antlrSchemaConverterParser.java:116)
          at org.apache.directory.api.converter.schema.SchemaParser.invokeParser(SchemaParser.java:137)
          at org.apache.directory.api.converter.schema.SchemaParser.parse(SchemaParser.java:175)
          at org.apache.directory.api.converter.schema.SchemaToLdif.generate(SchemaToLdif.java:134)
          at org.apache.directory.api.converter.schema.SchemaToLdif.transform(SchemaToLdif.java:104)
          at net.xoint.usermanager.UserManagerTest.test3(UserManagerTest.java:234)
      

      Mailing List reference: https://mail-archives.apache.org/mod_mbox/directory-api/201308.mbox/%3CCABzFU-eOfmwiFpR1w0Fd-JhNFBVLO0NkHKa5w61ReFBEq%3DWkaw%40mail.gmail.com%3E

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -
        Show
        elecharny Emmanuel Lecharny added a comment - Fixed with http://svn.apache.org/r1650361
        Hide
        elecharny Emmanuel Lecharny added a comment -

        This needs to be fixed.

        Show
        elecharny Emmanuel Lecharny added a comment - This needs to be fixed.

          People

          • Assignee:
            Unassigned
            Reporter:
            gturner Gerald Turner
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development