directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Turner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRAPI-155) Chain ANTLR exceptions to ParserException
Date Wed, 21 Aug 2013 18:23:54 GMT
Gerald Turner created DIRAPI-155:
------------------------------------

             Summary: Chain ANTLR exceptions to ParserException
                 Key: DIRAPI-155
                 URL: https://issues.apache.org/jira/browse/DIRAPI-155
             Project: Directory Client API
          Issue Type: Improvement
    Affects Versions: 1.0.0-M20
            Reporter: Gerald Turner
            Priority: Minor


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message