search cancel

Create Virtual Service from RAML throws parsing error


Article ID: 113004


Updated On:


CA Application Test CA Continuous Application Insight (PathFinder)


When creating a virtual service from a RAML file throws the below parsing error.

java.lang.Exception: RAML failed to parse 
at com.itko.lisa.vse.stateful.protocol.http.RAMLPanel.processNewRAML( 
at com.itko.lisa.vse.stateful.protocol.http.RAMLPanel.processRAMLChangeAndSelect( 
at com.itko.lisa.vse.stateful.protocol.http.RAMLPanel.setRAMLUrl( 
at com.itko.lisa.vse.stateful.protocol.http.RAMLPanel$1.actionPerformed( 
at javax.swing.AbstractButton.fireActionPerformed( 
at javax.swing.AbstractButton$Handler.actionPerformed( 
at javax.swing.DefaultButtonModel.fireActionPerformed( 
at javax.swing.DefaultButtonModel.setPressed( 
at javax.swing.AbstractButton.doClick( 


All supported DevTest environments.


One cause could be the "protocols" property is not defined properly.

As per RAML spec, the protocols property MUST be an array of strings of values "HTTP" and/or "HTTPS" : Protocols. Optionally, a RESTful API can be reached via HTTP, HTTPS, or both. The protocols property MAY be used to specify the protocols that an API supports. If the protocols property is not specified, the protocol specified at the baseUri property is used. 

If the protocols property is specified as below in the RAML file, this could be causing the RAML parsing error.
protocols: HTTPS


Changing the protocols property in RAML file as below will resolve the issue.

protocols: HTTPS ===> protocols: [HTTPS]