cancel
Showing results for 
Search instead for 
Did you mean: 

Loading RAML in ReadyAPI

SOLVED
Highlighted
Occasional Contributor

Loading RAML in ReadyAPI

Hi,

I am trying to load RAML file in Ready API latest version and observe below error. There is no clue on this ,could anyone be able to guide me in resolving this issue?

Tue Nov 05 16:48:36 GMT 2019: ERROR: java.lang.NullPointerException

  • java.lang.NullPointerException
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.generateRule(TypeToRuleVisitor.java:89)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.visitArray(TypeToRuleVisitor.java:323)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.visitArray(TypeToRuleVisitor.java:66)
  • at org.raml.v2.internal.impl.v10.type.ArrayResolvedType.visit(ArrayResolvedType.java:149)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.generateRule(TypeToRuleVisitor.java:89)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.visitObject(TypeToRuleVisitor.java:158)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.visitObject(TypeToRuleVisitor.java:66)
  • at org.raml.v2.internal.impl.v10.type.ObjectResolvedType.visit(ObjectResolvedType.java:275)
  • at org.raml.v2.internal.impl.v10.phase.ExampleValidationPhase.validateJson(ExampleValidationPhase.java:134)
  • at org.raml.v2.internal.impl.v10.phase.ExampleValidationPhase.validate(ExampleValidationPhase.java:121)
  • at org.raml.v2.internal.impl.v10.phase.ExampleValidationPhase.apply(ExampleValidationPhase.java:81)
  • at org.raml.v2.internal.impl.v10.Raml10Builder.runPhases(Raml10Builder.java:114)
  • at org.raml.v2.internal.impl.v10.Raml10Builder.build(Raml10Builder.java:93)
  • at org.raml.v2.internal.impl.v10.phase.LibraryLinkingTransformation.transform(LibraryLinkingTransformation.java:69)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:45)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:54)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:54)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:54)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:54)
  • at org.raml.v2.internal.impl.v10.Raml10Builder.runPhases(Raml10Builder.java:114)
  • at org.raml.v2.internal.impl.v10.Raml10Builder.build(Raml10Builder.java:93)
  • at org.raml.v2.internal.impl.RamlBuilder.build(RamlBuilder.java:110)
  • at org.raml.v2.internal.impl.RamlBuilder.build(RamlBuilder.java:98)
  • at org.raml.v2.api.RamlModelBuilder.buildApi(RamlModelBuilder.java:124)
  • at org.raml.v2.api.RamlModelBuilder.buildApi(RamlModelBuilder.java:92)
  • at org.raml.v2.api.RamlModelBuilder$buildApi.call(Unknown Source)
  • at com.smartbear.soapui.raml.RamlV10Importer.importRaml(RamlV10Importer.groovy:48)
  • at com.smartbear.soapui.raml.actions.RamlImporterWorker.construct(RamlImporterWorker.java:55)
  • at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:47)
  • at com.eviware.soapui.support.swing.SwingWorker.run(SwingWorker.java:88)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Loading RAML in ReadyAPI

Hi @ElavarasanR 

 

I've never tried creating a project via a .raml file before - so I installed the plugin and downloaded a small example .raml from git - but when it tried expanding when creating the new project I got a nullpointer exception too - a different one - but still...

 

I'd raise a service request (unless anyone else has any better ideas) as it sounds like there are issues with plugin - the link to do so is here

 

Sorry I can't be of more help!

 

cheers.

 

rich

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

6 REPLIES 6
Highlighted
Community Hero

Re: Loading RAML in ReadyAPI

Hi @ElavarasanR 

 

I've never tried creating a project via a .raml file before - so I installed the plugin and downloaded a small example .raml from git - but when it tried expanding when creating the new project I got a nullpointer exception too - a different one - but still...

 

I'd raise a service request (unless anyone else has any better ideas) as it sounds like there are issues with plugin - the link to do so is here

 

Sorry I can't be of more help!

 

cheers.

 

rich

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

Highlighted
Community Manager

Re: Loading RAML in ReadyAPI

Thank you for the investigation, richie. 

 

Hi @ElavarasanR! It is sad to hear that you are facing this issue. To understand the situation better, could you confirm that you have the SoapUI RAML Plugin installed?

 


Sonya Mihaljova
Community and Education Specialist
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Occasional Contributor

Re: Loading RAML in ReadyAPI

Hi Sonya,

Thanks a lot for looking into this, i have installed the RAML plugin (latest version) in ready api 2.8.2 version. There are many raml projects, which are getting loaded successfully. Only couple of projects are throwing error and this error is one of among them.

 

Thanks

Ela

Highlighted
Occasional Contributor

Re: Loading RAML in ReadyAPI

Thanks a lot @richie  for your valuable feedback.

Highlighted
Occasional Contributor

Re: Loading RAML in ReadyAPI

@sonya_m 

Hi Sonya,

Thanks a lot for looking into this, i have installed the RAML plugin (latest version) in ready api 2.8.2 version. There are many raml projects, which are getting loaded successfully. Only couple of projects are throwing error and this error is one of among them.

Highlighted
Occasional Contributor

Re: Loading RAML in ReadyAPI

@richie @sonya_m 

The issue has been bottomed out.

The problem was in the raml file example declaration where ( items: string) was missing. After adding that raml is loading successfully.
type: array
items: string

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors