Uploaded image for project: 'DistributedLog'
  1. DistributedLog
  2. DL-28

generate java code failed using scrooge

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • Important

    Description

      [INFO] Reactor Summary:
      [INFO]
      [INFO] distributedlog ..................................... SUCCESS [ 0.002 s]
      [INFO] DistributedLog Protocol ............................ FAILURE [ 1.081 s]
      [INFO] DistributedLog Core Library ........................ SKIPPED
      [INFO] DistributedLog Client .............................. SKIPPED
      [INFO] DistributedLog Service ............................. SKIPPED
      [INFO] DistributedLog Benchmark ........................... SKIPPED
      [INFO] DistributedLog Example ............................. SKIPPED
      [INFO] DistributedLog Basics .............................. SKIPPED
      [INFO] DistributedLog Messaging Tutorial .................. SKIPPED
      [INFO] DistributedLog Kafka Tutorial ...................... SKIPPED
      [INFO] DistributedLog MapReduce ........................... SKIPPED
      [INFO] DistributedLog Tutorials ........................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.321 s
      [INFO] Finished at: 2016-08-02T13:26:31+08:00
      [INFO] Final Memory: 12M/150M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Exception parsing: E:\incubator-distributedlog\distributedlog-protocol\src\main\thrift\service.thrift: [3.1] failure: string matching regex `\z' expected but `/' found
      [ERROR]
      [ERROR] // Response stats codes
      [ERROR]
      [ERROR] ^
      [ERROR] -> [Help 1]
      com.twitter.scrooge.frontend.FileParseException: Exception parsing: E:\isoftstone\workspacedeis\incubator-distributedlog\distributedlog-protocol\src\main\thrift\service.thrift
      at com.twitter.scrooge.frontend.ThriftParser$$anonfun$parse$1.apply(ThriftParser.scala:427)
      at com.twitter.scrooge.frontend.ThriftParser$$anonfun$parse$1.apply(ThriftParser.scala:427)
      at scala.Option.map(Option.scala:145)
      at com.twitter.scrooge.frontend.ThriftParser.parse(ThriftParser.scala:420)
      at com.twitter.scrooge.frontend.ThriftParser.parseFile(ThriftParser.scala:448)
      at com.twitter.scrooge.Compiler$$anonfun$run$2.apply(Compiler.scala:66)
      at com.twitter.scrooge.Compiler$$anonfun$run$2.apply(Compiler.scala:64)
      at scala.collection.immutable.List.foreach(List.scala:318)
      at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
      at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:45)
      at com.twitter.scrooge.Compiler.run(Compiler.scala:64)
      at com.twitter.ScroogeRunner.compile(ScroogeRunner.scala:45)
      at com.twitter.AbstractMavenScroogeMojo.execute(AbstractMavenScroogeMojo.java:239)
      at com.twitter.MavenScroogeCompileMojo.execute(MavenScroogeCompileMojo.java:22)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: com.twitter.scrooge.frontend.ParseException: [3.1] failure: string matching regex `\z' expected but `/' found

      // Response stats codes

      ^
      at com.twitter.scrooge.frontend.ThriftParser.parse(ThriftParser.scala:423)
      ... 31 more

      Attachments

        Issue Links

          Activity

            People

              fonan Tracy Martin
              JoshuaAndrew weiwei
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified