QDox
  1. QDox
  2. QDOX-112

Following file crashes in QDOX 1.6.1

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: Parser
    • Labels:
      None
    • Environment:
      Any
    • Testcase included:
      yes
    • Number of attachments :
      2

      Description

      I get the following error:

      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Maven i18n Plugin
      [INFO] task-segment: [clean, install]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Deleting directory E:\jdevadf\modules\ADFFaces\Trinidad\plugins\maven-i18n-plugin\target
      [INFO] Deleting directory E:\jdevadf\modules\ADFFaces\Trinidad\plugins\maven-i18n-plugin\target\classes
      [INFO] Deleting directory E:\jdevadf\modules\ADFFaces\Trinidad\plugins\maven-i18n-plugin\target\test-classes
      [INFO] [plugin:descriptor]
      [INFO] Using 2 extractors.
      [INFO] Applying extractor for language: java
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] syntax error @[861,1] in file:/E:/jdevadf/modules/ADFFaces/Trinidad/plugins/maven-i18n-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/i18n/uixtools/JSLocaleElementsGenerator.java
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      com.thoughtworks.qdox.parser.ParseException: syntax error @[861,1] in file:/E:/jdevadf/modules/ADFFaces/Trinidad/plugins/maven-i18n-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/i18n/uixtools/JSLocaleElementsGenerator.java
      at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:638)
      at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:747)
      at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:619)
      at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:300)
      at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:316)
      at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:312)
      at com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:369)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52)
      at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:366)
      at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor.execute(JavaMojoDescriptorExtractor.java:520)
      at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:84)
      at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:135)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      I have uploaded the file that gives the error.

      1. JSLocaleElementsGenerator.java
        28 kB
        Paul Hammant
      2. JSLocaleElementsGenerator.java
        27 kB
        Michael Elges

        Activity

        Hide
        Mauro Talevi added a comment -

        Changed fix version to 1.7

        Show
        Mauro Talevi added a comment - Changed fix version to 1.7
        Mauro Talevi made changes -
        Field Original Value New Value
        Fix Version/s 1.6 [ 10814 ]
        Fix Version/s 1.7 [ 11160 ]
        Hide
        Paul Hammant added a comment -

        Same test file re-uploaded. Now part of qdox test model , and with missing deps hacked to end of file as static inner classes (null impl).

        Show
        Paul Hammant added a comment - Same test file re-uploaded. Now part of qdox test model , and with missing deps hacked to end of file as static inner classes (null impl).
        Paul Hammant made changes -
        Attachment JSLocaleElementsGenerator.java [ 32720 ]
        Hide
        Paul Hammant added a comment -

        This no longer barfs against pending 1.7 trunk. The lexer runs over it just fine.

        I've not committed the example code to the sourcebase as it is copyrighted to Oracle.

        Show
        Paul Hammant added a comment - This no longer barfs against pending 1.7 trunk. The lexer runs over it just fine. I've not committed the example code to the sourcebase as it is copyrighted to Oracle.
        Paul Hammant made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Paul Hammant [ paul ]
        Resolution Cannot Reproduce [ 5 ]

          People

          • Assignee:
            Paul Hammant
            Reporter:
            Michael Elges
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: