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] [Commented] (DIRAPI-155) Chain ANTLR exceptions to ParserException
Date Fri, 23 Aug 2013 04:04:51 GMT

    [ https://issues.apache.org/jira/browse/DIRAPI-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748265#comment-13748265
] 

Emmanuel Lecharny commented on DIRAPI-155:
------------------------------------------

This needs to be fixed.
                
> 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