raml-org / raml-java-parser-2

Other
19 stars 5 forks source link

java.lang.VerifyError when trying to parse any raml file #4

Closed left closed 8 years ago

left commented 8 years ago

Tried to parse raml-js-parser-2/raml-specs/XKCD/api.raml file, got VerifyError exception.

JRE 1.8.0.31, 64 bit

java.lang.VerifyError: Code generation bug in "L:4609$L:4890$L:5569$L:5572": likely stack misaligned: java.lang.NullPointerException at jdk.nashorn.internal.codegen.CodeGenerator.leaveFunctionNode(CodeGenerator.java:1127) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:309) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CodeGenerator$1.enterFunctionNode(CodeGenerator.java:456) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:308) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:424) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:359) at jdk.nashorn.internal.codegen.CodeGenerator.loadArgs(CodeGenerator.java:640) at jdk.nashorn.internal.codegen.CodeGenerator.loadArgs(CodeGenerator.java:619) at jdk.nashorn.internal.codegen.CodeGenerator.access$700(CodeGenerator.java:154) at jdk.nashorn.internal.codegen.CodeGenerator$2.enterAccessNode(CodeGenerator.java:771) at jdk.nashorn.internal.ir.AccessNode.accept(AccessNode.java:63) at jdk.nashorn.internal.codegen.CodeGenerator.enterCallNode(CodeGenerator.java:667) at jdk.nashorn.internal.codegen.CodeGenerator.access$200(CodeGenerator.java:154) at jdk.nashorn.internal.codegen.CodeGenerator$1.enterCallNode(CodeGenerator.java:468) at jdk.nashorn.internal.ir.CallNode.accept(CallNode.java:186) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.CallNode.accept(CallNode.java:38) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:424) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:359) at jdk.nashorn.internal.codegen.CodeGenerator.enterDISCARD(CodeGenerator.java:2348) at jdk.nashorn.internal.ir.visitor.NodeOperatorVisitor.enterUnaryNode(NodeOperatorVisitor.java:57) at jdk.nashorn.internal.ir.UnaryNode.accept(UnaryNode.java:124) at jdk.nashorn.internal.codegen.CodeGenerator.enterExpressionStatement(CodeGenerator.java:857) at jdk.nashorn.internal.ir.ExpressionStatement.accept(ExpressionStatement.java:66) at jdk.nashorn.internal.ir.Node.accept(Node.java:291) at jdk.nashorn.internal.ir.Block.accept(Block.java:143) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.Block.accept(Block.java:361) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:309) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CodeGenerator$1.enterFunctionNode(CodeGenerator.java:456) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:308) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:424) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:359) at jdk.nashorn.internal.codegen.CodeGenerator$8.evaluate(CodeGenerator.java:2476) at jdk.nashorn.internal.codegen.CodeGenerator$Store.store(CodeGenerator.java:3209) at jdk.nashorn.internal.codegen.CodeGenerator.enterASSIGN(CodeGenerator.java:2479) at jdk.nashorn.internal.ir.visitor.NodeOperatorVisitor.enterBinaryNode(NodeOperatorVisitor.java:117) at jdk.nashorn.internal.ir.BinaryNode.accept(BinaryNode.java:168) at jdk.nashorn.internal.codegen.CodeGenerator$1.enterDefault(CodeGenerator.java:479) at jdk.nashorn.internal.ir.visitor.NodeVisitor.enterBinaryNode(NodeVisitor.java:178) at jdk.nashorn.internal.ir.BinaryNode.accept(BinaryNode.java:168) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:424) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:359) at jdk.nashorn.internal.codegen.CodeGenerator.enterDISCARD(CodeGenerator.java:2348) at jdk.nashorn.internal.ir.visitor.NodeOperatorVisitor.enterUnaryNode(NodeOperatorVisitor.java:57) at jdk.nashorn.internal.ir.UnaryNode.accept(UnaryNode.java:124) at jdk.nashorn.internal.codegen.CodeGenerator.enterExpressionStatement(CodeGenerator.java:857) at jdk.nashorn.internal.ir.ExpressionStatement.accept(ExpressionStatement.java:66) at jdk.nashorn.internal.ir.Node.accept(Node.java:291) at jdk.nashorn.internal.ir.Block.accept(Block.java:143) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.Block.accept(Block.java:361) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:309) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CodeGenerator$2.enterFunctionNode(CodeGenerator.java:780) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:308) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CodeGenerator.enterCallNode(CodeGenerator.java:667) at jdk.nashorn.internal.codegen.CodeGenerator.access$200(CodeGenerator.java:154) at jdk.nashorn.internal.codegen.CodeGenerator$1.enterCallNode(CodeGenerator.java:468) at jdk.nashorn.internal.ir.CallNode.accept(CallNode.java:186) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.CallNode.accept(CallNode.java:38) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:424) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:403) at jdk.nashorn.internal.codegen.CodeGenerator.enterVarNode(CodeGenerator.java:2183) at jdk.nashorn.internal.ir.VarNode.accept(VarNode.java:125) at jdk.nashorn.internal.ir.Node.accept(Node.java:291) at jdk.nashorn.internal.ir.Block.accept(Block.java:143) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.Block.accept(Block.java:361) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:309) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CodeGenerator$1.enterFunctionNode(CodeGenerator.java:456) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:308) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:424) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:403) at jdk.nashorn.internal.codegen.CodeGenerator.storeElement(CodeGenerator.java:1274) at jdk.nashorn.internal.codegen.CodeGenerator.loadArray(CodeGenerator.java:1259) at jdk.nashorn.internal.codegen.CodeGenerator.loadLiteral(CodeGenerator.java:1382) at jdk.nashorn.internal.codegen.CodeGenerator.enterLiteralNode(CodeGenerator.java:1432) at jdk.nashorn.internal.codegen.CodeGenerator.access$300(CodeGenerator.java:154) at jdk.nashorn.internal.codegen.CodeGenerator$1.enterLiteralNode(CodeGenerator.java:473) at jdk.nashorn.internal.ir.LiteralNode$ArrayLiteralNode.accept(LiteralNode.java:853) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:424) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:403) at jdk.nashorn.internal.codegen.CodeGenerator.loadArgs(CodeGenerator.java:638) at jdk.nashorn.internal.codegen.CodeGenerator.access$1300(CodeGenerator.java:154) at jdk.nashorn.internal.codegen.CodeGenerator$2.enterFunctionNode(CodeGenerator.java:792) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:308) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CodeGenerator.enterCallNode(CodeGenerator.java:667) at jdk.nashorn.internal.codegen.CodeGenerator.access$200(CodeGenerator.java:154) at jdk.nashorn.internal.codegen.CodeGenerator$1.enterCallNode(CodeGenerator.java:468) at jdk.nashorn.internal.ir.CallNode.accept(CallNode.java:186) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.CallNode.accept(CallNode.java:38) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:424) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:403) at jdk.nashorn.internal.codegen.CodeGenerator$8.evaluate(CodeGenerator.java:2474) at jdk.nashorn.internal.codegen.CodeGenerator$Store.store(CodeGenerator.java:3209) at jdk.nashorn.internal.codegen.CodeGenerator.enterASSIGN(CodeGenerator.java:2479) at jdk.nashorn.internal.ir.visitor.NodeOperatorVisitor.enterBinaryNode(NodeOperatorVisitor.java:117) at jdk.nashorn.internal.ir.BinaryNode.accept(BinaryNode.java:168) at jdk.nashorn.internal.codegen.CodeGenerator$1.enterDefault(CodeGenerator.java:479) at jdk.nashorn.internal.ir.visitor.NodeVisitor.enterBinaryNode(NodeVisitor.java:178) at jdk.nashorn.internal.ir.BinaryNode.accept(BinaryNode.java:168) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:424) at jdk.nashorn.internal.codegen.CodeGenerator.load(CodeGenerator.java:359) at jdk.nashorn.internal.codegen.CodeGenerator.enterDISCARD(CodeGenerator.java:2348) at jdk.nashorn.internal.ir.visitor.NodeOperatorVisitor.enterUnaryNode(NodeOperatorVisitor.java:57) at jdk.nashorn.internal.ir.UnaryNode.accept(UnaryNode.java:124) at jdk.nashorn.internal.codegen.CodeGenerator.enterExpressionStatement(CodeGenerator.java:857) at jdk.nashorn.internal.ir.ExpressionStatement.accept(ExpressionStatement.java:66) at jdk.nashorn.internal.ir.Node.accept(Node.java:291) at jdk.nashorn.internal.ir.Block.accept(Block.java:143) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.Block.accept(Block.java:361) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:309) at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57) at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:50) at jdk.nashorn.internal.codegen.CompilationPhase$8.transform(CompilationPhase.java:379) at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:513) at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:361) at jdk.nashorn.internal.runtime.Context.compile(Context.java:1071) at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:514) at jdk.nashorn.api.scripting.NashornScriptEngine.asCompiledScript(NashornScriptEngine.java:609) at jdk.nashorn.api.scripting.NashornScriptEngine.compile(NashornScriptEngine.java:214) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.init(JavaNodeFactory.java:257) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.(JavaNodeFactory.java:42) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:17) Caused by: java.lang.NullPointerException at jdk.internal.org.objectweb.asm.Frame.merge(Unknown Source) at jdk.internal.org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source) at jdk.nashorn.internal.codegen.MethodEmitter.end(MethodEmitter.java:200) at jdk.nashorn.internal.codegen.CodeGenerator.leaveFunctionNode(CodeGenerator.java:1116) ... 157 more javax.script.ScriptException: TypeError: null is not a function in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.Wrapper.getApiJsObject(Wrapper.java:44) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.createApi(JavaNodeFactory.java:57) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:19) Caused by: :1 TypeError: null is not a function at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:176) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 7 more javax.script.ScriptException: TypeError: null has no such function "errors" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getErrors(JavaNodeFactory.java:278) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getErrors(JavaElementNode.java:42) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:20) Caused by: :1 TypeError: null has no such function "errors" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 7 more javax.script.ScriptException: TypeError: null has no such function "annotations" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValueList(JavaNodeFactory.java:138) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttributes(JavaNodeFactory.java:65) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttributes(JavaElementNode.java:30) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.annotations(ApiImpl.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "annotations" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "name" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValue(JavaNodeFactory.java:97) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttribute(JavaNodeFactory.java:61) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttribute(JavaElementNode.java:26) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.name(ApiImpl.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "name" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "displayName" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValue(JavaNodeFactory.java:97) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttribute(JavaNodeFactory.java:61) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttribute(JavaElementNode.java:26) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.displayName(ApiImpl.java:95) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "displayName" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "version" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValue(JavaNodeFactory.java:97) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttribute(JavaNodeFactory.java:61) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttribute(JavaElementNode.java:26) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.version(ApiImpl.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "version" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "securitySchemaTypes" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.securitySchemaTypes(ApiImpl.java:119) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "securitySchemaTypes" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "baseUriParameters" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.baseUriParameters(ApiImpl.java:59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "baseUriParameters" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "title" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValue(JavaNodeFactory.java:97) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttribute(JavaNodeFactory.java:61) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttribute(JavaElementNode.java:26) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.title(ApiImpl.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "title" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "resources" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.resources(ApiImpl.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "resources" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "protocols" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValueList(JavaNodeFactory.java:138) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttributes(JavaNodeFactory.java:65) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttributes(JavaElementNode.java:30) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.protocols(ApiImpl.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "protocols" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "mediaType" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValue(JavaNodeFactory.java:97) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttribute(JavaNodeFactory.java:61) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttribute(JavaElementNode.java:26) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.mediaType(ApiImpl.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "mediaType" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "baseUri" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValue(JavaNodeFactory.java:97) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttribute(JavaNodeFactory.java:61) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttribute(JavaElementNode.java:26) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.baseUri(ApiImpl.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "baseUri" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "securedBy" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValueList(JavaNodeFactory.java:138) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttributes(JavaNodeFactory.java:65) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttributes(JavaElementNode.java:30) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.securedBy(ApiImpl.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "securedBy" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "documentation" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.documentation(ApiImpl.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "documentation" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "description" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getValue(JavaNodeFactory.java:97) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getAttribute(JavaNodeFactory.java:61) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getAttribute(JavaElementNode.java:26) at com.mulesoft.raml1.java.parser.impl.api.ApiImpl.description(ApiImpl.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "description" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "schemas" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.OLibraryImpl.schemas(OLibraryImpl.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "schemas" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "traits" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.OLibraryImpl.traits(OLibraryImpl.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "traits" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "annotationTypes" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.OLibraryImpl.annotationTypes(OLibraryImpl.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "annotationTypes" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "resourceTypes" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.OLibraryImpl.resourceTypes(OLibraryImpl.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "resourceTypes" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "securitySchemes" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.OLibraryImpl.securitySchemes(OLibraryImpl.java:82) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "securitySchemes" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "uses" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.OLibraryImpl.uses(OLibraryImpl.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "uses" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more javax.script.ScriptException: TypeError: null has no such function "types" in at line number 1 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:570) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:525) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521) at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192) at javax.script.AbstractScriptEngine.eval(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getObjectList(JavaNodeFactory.java:202) at com.mulesoft.raml1.java.parser.core.JavaNodeFactory.getElements(JavaNodeFactory.java:73) at com.mulesoft.raml1.java.parser.core.JavaElementNode.getElements(JavaElementNode.java:38) at com.mulesoft.raml1.java.parser.impl.api.OLibraryImpl.types(OLibraryImpl.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:67) at com.mulesoft.raml1.java.parser.core.JavaElementNode.toJSON(JavaElementNode.java:46) at com.mulesoft.raml1.java.patser.test.Launcher.print(Launcher.java:28) at com.mulesoft.raml1.java.patser.test.Launcher.main(Launcher.java:24) Caused by: :1 TypeError: null has no such function "types" at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:214) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:186) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:173) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:179) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:66) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:144) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:232) at jdk.nashorn.internal.scripts.Script$^eval_.runScript(:1) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:535) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:209) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:378) at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:568) ... 16 more

KonstantinSviridov commented 8 years ago

I get the same error on JDK1.8.0_31 when the JUnit test is executed in maven build. (But it passes fine when executed separately) But it's fine with JDK1.8.0_45 and JDK1.8.0_65. Could you try some later JDK?

left commented 8 years ago

JDK1.8.0_65 works for me as well, thanks

ddenisenko commented 8 years ago

Closing the issue as resolved.

We should state this requirement in readme : https://github.com/raml-org/raml-java-parser-2/issues/6