mulesoft-labs / raml-jaxrs-codegen

Tools to enable RAML-first development in JAX-RS projects
Other
40 stars 44 forks source link

Codegen Core: compile errors in Generator and YamlValidationService #8

Open renzok opened 10 years ago

renzok commented 10 years ago

Hi,

Trying to to compile codegen core with:

Apache Maven 3.2.1 
Java version: 1.7.0_51, vendor: Oracle Corporation
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

against the master-branch and newest master of raml-java-parser, I get the below error.

Is it a source code bug or do I overlook important configuration settings?

Thanks for your help.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project raml-j
axrs-codegen-core: Compilation failure: Compilation failure:
[ERROR] /E:/github/raml-jaxrs-codegen/core/src/main/java/org/raml/jaxrs/codegen/core/Generator.java:[111,85] no suitable meth
od found for validate(java.lang.String,java.lang.String)
[ERROR] method org.raml.parser.visitor.YamlValidationService.validate(java.io.Reader) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method org.raml.parser.visitor.YamlValidationService.validate(java.lang.String) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method org.raml.parser.visitor.YamlValidationService.validate(java.io.InputStream) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method org.raml.parser.visitor.YamlValidationService.validate(org.yaml.snakeyaml.nodes.MappingNode) is not applicable

[ERROR] (actual and formal argument lists differ in length)
[ERROR] /E:/github/raml-jaxrs-codegen/core/src/main/java/org/raml/jaxrs/codegen/core/Generator.java:[115,49] no suitable meth
od found for build(java.lang.String,java.lang.String)
[ERROR] method org.raml.parser.visitor.YamlDocumentBuilder.build(java.lang.String) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method org.raml.parser.visitor.YamlDocumentBuilder.build(java.io.InputStream) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method org.raml.parser.visitor.YamlDocumentBuilder.build(java.io.Reader) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] /E:/github/raml-jaxrs-codegen/core/src/main/java/org/raml/jaxrs/codegen/core/Generator.java:[192,24] cannot find symb
ol
[ERROR] symbol:   method hasBody()
[ERROR] location: variable action of type org.raml.model.Action
[ERROR] /E:/github/raml-jaxrs-codegen/core/src/main/java/org/raml/jaxrs/codegen/core/Generator.java:[303,22] cannot find symb
ol
[ERROR] symbol:   method hasBody()
[ERROR] location: variable response of type org.raml.model.Response
[ERROR] /E:/github/raml-jaxrs-codegen/core/src/main/java/org/raml/jaxrs/codegen/core/Generator.java:[458,25] cannot find symb
ol
[ERROR] symbol:   method hasBody()
[ERROR] location: variable response of type org.raml.model.Response
[ERROR] /E:/github/raml-jaxrs-codegen/core/src/main/java/org/raml/jaxrs/codegen/core/Generator.java:[649,56] incompatible typ
es
[ERROR] required: java.math.BigDecimal
[ERROR] found:    java.lang.Double
[ERROR] /E:/github/raml-jaxrs-codegen/core/src/main/java/org/raml/jaxrs/codegen/core/Generator.java:[655,56] incompatible typ
es
[ERROR] required: java.math.BigDecimal
[ERROR] found:    java.lang.Double
justin-calleja commented 10 years ago

Hi renzo,

With the latest you should be able to compile correct? (Asking as this was filed quite a while ago and issue can probably be closed).

Regards, Justin