directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DIRAPI-155) Chain ANTLR exceptions to ParserException
Date Thu, 08 Jan 2015 19:34:34 GMT

     [ https://issues.apache.org/jira/browse/DIRAPI-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny resolved DIRAPI-155.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.0-M28

Fixed with http://svn.apache.org/r1650361

> 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
>             Fix For: 1.0.0-M28
>
>
> SchemaToLdif swallows the root cause when throwing ParserException
> Example exception:
> {code}
>   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)
> {code}
> Hidden exception found using a debugger:
> {code}
>   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)
> {code}
> Mailing List reference: https://mail-archives.apache.org/mod_mbox/directory-api/201308.mbox/%3CCABzFU-eOfmwiFpR1w0Fd-JhNFBVLO0NkHKa5w61ReFBEq%3DWkaw%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message