raml-java-parser

Getting java.lang.NoSuchFieldError: VALUE in RamlValidationService

末鹿安然 提交于 2020-01-02 09:56:36
问题 I want to create a RAML validator that will get the RAML URLs resturn validation results. For that Im using raml-java-parser. As per its readme file I try to execute below line of code: String sourceUrl = "http://api.apihub.com/onpositive/api/espn-raml-api/espn.raml"; List<ValidationResult> results = RamlValidationService.createDefault().validate(sourceUrl); And get below error message: java.lang.NoSuchFieldError: VALUE Why I'm getting this error? Before that I got some class not found

Raml validator throws an error in javax.xml.validation.SchemaFactory.newSchema

扶醉桌前 提交于 2019-12-10 21:11:37
问题 When trying to validate espn.raml I got the below error. Same code is working fine for gmail.raml. Why is this happening? For your reference I have included the results I found what are the jars that SchemaFactory includes. $ find *.jar | xargs grep SchemaFactory.class Binary file axiom_1.2.11.wso2v6.jar matches Binary file org.apache.openjpa_2.2.0.wso2v1.jar matches Binary file solr_5.2.1.wso2v1.jar matches This is the exception I'm getting: Caused by: java.lang.LinkageError: loader

Getting java.lang.NoSuchFieldError: VALUE in RamlValidationService

最后都变了- 提交于 2019-12-06 15:35:28
I want to create a RAML validator that will get the RAML URLs resturn validation results. For that Im using raml-java-parser . As per its readme file I try to execute below line of code: String sourceUrl = "http://api.apihub.com/onpositive/api/espn-raml-api/espn.raml"; List<ValidationResult> results = RamlValidationService.createDefault().validate(sourceUrl); And get below error message: java.lang.NoSuchFieldError: VALUE Why I'm getting this error? Before that I got some class not found exceptions therefore I have applied below jar libraries manually. > juniversalchardet_1.0.3_1.0.0.jar > raml