|
OS:windows 7
Maven: 3.1.1
git: autocrlf true safecrlf true
[WARNING] [swagger] Error processing D:\repos\opendaylight\controller\opendaylight\northbound\connectionmanager\target\enunciate\generate\swagger\ui\ConnectionManagerNorthbound.json.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] connectionmanager.northbound ...................... FAILURE [3.025s]
[INFO] containermanager.implementation ................... SKIPPED
[INFO] web ............................................... SKIPPED
[INFO] containermanager.northbound ....................... SKIPPED
[INFO] controllermanager.northbound ...................... SKIPPED
[ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs (default) on project connectionmanager.northbound: Problem assembling the
enunciate app. Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value
[ERROR] at [Source: java.io.FileReader@33665da7; line: 39, column: 85]
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.28:docs (default) on project conn
ectionmanager.northbound: Problem assembling the enunciate app.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Problem assembling the enunciate app.
at org.codehaus.enunciate.DocsMojo.execute(DocsMojo.java:100)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: org.codehaus.jackson.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in strin
g value
at [Source: java.io.FileReader@33665da7; line: 39, column: 85]
at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
at org.codehaus.jackson.impl.JsonParserMinimalBase._throwUnquotedSpace(JsonParserMinimalBase.java:482)
at org.codehaus.jackson.impl.ReaderBasedParser._finishString2(ReaderBasedParser.java:1359)
at org.codehaus.jackson.impl.ReaderBasedParser._finishString(ReaderBasedParser.java:1330)
at org.codehaus.jackson.impl.ReaderBasedParser.getText(ReaderBasedParser.java:200)
at org.codehaus.jackson.map.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:203)
at org.codehaus.jackson.map.deser.std.BaseNodeDeserializer.deserializeArray(JsonNodeDeserializer.java:224)
at org.codehaus.jackson.map.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:200)
at org.codehaus.jackson.map.deser.std.BaseNodeDeserializer.deserializeArray(JsonNodeDeserializer.java:224)
at org.codehaus.jackson.map.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:200)
at org.codehaus.jackson.map.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:58)
at org.codehaus.jackson.map.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:15)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2725)
at org.codehaus.jackson.map.ObjectMapper.readTree(ObjectMapper.java:1519)
at org.codehaus.enunciate.modules.swagger.SwaggerDeploymentModule.doFreemarkerGenerate(SwaggerDeploymentModule.java:190)
at org.codehaus.enunciate.modules.FreemarkerDeploymentModule.doGenerate(FreemarkerDeploymentModule.java:51)
at org.codehaus.enunciate.modules.BasicDeploymentModule.step(BasicDeploymentModule.java:107)
at org.codehaus.enunciate.apt.EnunciateAnnotationProcessor.process(EnunciateAnnotationProcessor.java:128)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:84)
at com.sun.tools.apt.comp.Apt.main(Apt.java:480)
at com.sun.tools.apt.main.AptJavaCompiler.compile(AptJavaCompiler.java:270)
at com.sun.tools.apt.main.Main.compile(Main.java:1127)
at com.sun.tools.apt.main.Main.compile(Main.java:989)
at com.sun.tools.apt.Main.processing(Main.java:113)
at com.sun.tools.apt.Main.process(Main.java:103)
at com.sun.tools.apt.Main.process(Main.java:85)
at org.codehaus.enunciate.main.Enunciate.invokeApt(Enunciate.java:817)
at org.codehaus.enunciate.main.Enunciate.doGenerate(Enunciate.java:401)
at org.codehaus.enunciate.ConfigMojo$MavenSpecificEnunciate.doGenerate(ConfigMojo.java:670)
at org.codehaus.enunciate.main.Enunciate$Stepper.step(Enunciate.java:1799)
at org.codehaus.enunciate.main.Enunciate$Stepper.stepTo(Enunciate.java:1831)
at org.codehaus.enunciate.DocsMojo.execute(DocsMojo.java:96)
... 21 more
|
|
@pinghe
Can you provide us with the version of the code you got?
Something like:
git log -1 --pretty=oneline
In the meantime I'm going to mark this as major, not blocker.
|
|
RC candidate code builds under windows 7 with IBM Java 7
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41:09.747s
[INFO] Finished at: Mon Sep 22 17:58:54 CDT 2014
[INFO] Final Memory: 377M/512M
[INFO] ------------------------------------------------------------------------
|
|
D:\repos\odl\controller>git log -1 --pretty=oneline
WARNING: terminal is not fully functional
fa5acdd778437e7085c6b7fb9e4f7bbe71b376c3 Merge "GBP-4: Have FeatureConfigPusher retry installedFeature check until it succeeds (or 100ms pass)."
D:\repos\odl\controller>c:\jdk\bin\java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
D:\repos\odl\controller>ver
Microsoft Windows [版本 6.1.7601]
x64
|
|
Are you still getting the same exact error?
My gut reaction is that there's some character which windows doesn't like at line 39, column 85 of the file:
D:\repos\opendaylight\controller\opendaylight\northbound\connectionmanager\target\enunciate\generate\swagger\ui\ConnectionManagerNorthbound.json
However, my copy of that file after building with the same git-hash (fa5acdd778437e7085c6b7fb9e4f7bbe71b376c3) doesn't have a column 85 on line 39.
If you could re-run and see if you're getting the same exact error, and include the file that it's complaining about, that would be useful.
Also, I'm 99% sure that you could compile this just fine under Linux if you just want to make progress. We provide nice test VMs here:
https://wiki.opendaylight.org/view/CrossProject:Integration_Group:Test_VMs
|
|
Attachment out.txt has been added with description: mvn output – out.txt
|
|
Attachment target.7z has been added with description: northbound\connectionmanager -->target.7z
|
|
Are you still getting the same exact error?
// yes
D:\repos\odl\controller>git log -1 --pretty=oneline
WARNING: terminal is not fully functional
fa5acdd778437e7085c6b7fb9e4f7bbe71b376c3 Merge "GBP-4: Have FeatureConfigPusher retry installedFeature check until it succeeds (or 100ms pass)."
|
|
enunciate plugin bug.
controller\opendaylight\commons\opendaylight\pom.xml
<enunciate.version>1.28</enunciate.version>
1.28 --> 1.27
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
|
|
I wonder.. does the last comment mean this issue occurs with 1.27 or with 1.28?
|
|
issue occurs with 1.28. change to 1.27 fixed.
|
|
Does upgrade to 1.29 help? If not, I think we may need to contact upstream, or migrate away (as per BUG-2626).
|
|
This bug is part of the project to Move all ADSAL associated component bugs to ADSAL
|
|
@pinghe, can you let us know if you're still having this issue? If so, can you try to build with the enunciate version locally set to 1.3.0 and see if that works?
If so, maybe we can create a patch to upgrade to 1.3.0 and see if that works for Helium and Lithium.
Also, on the current master (post-Lithium) I think that the controller is going to no longer use enunciate and we don't use enunciate at all when building with Java 8 since it's incompatible.
|
Generated at Wed Feb 07 19:54:01 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.