You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runing the XML smoketest with Maven results in an NullPointerException.
It seems that the OpenApi-parser accepts XML files as an input but then fails to return any informations out of it.
Check if the parser returns informations about errors so CobiGen could use them to continue with another parser.
If not, create a workaround until a bugfix has been released.
Caused by: java.lang.NullPointerException at com.reprezen.kaizen.oasparser.ovl3.OpenApi3Impl.getServers (OpenApi3Impl.java:188) at com.devonfw.cobigen.openapiplugin.inputreader.OpenAPIInputReader.extractServers (OpenAPIInputReader.java:206) at com.devonfw.cobigen.openapiplugin.inputreader.OpenAPIInputReader.extractComponents (OpenAPIInputReader.java:136) at com.devonfw.cobigen.openapiplugin.inputreader.OpenAPIInputReader.getInputObjects (OpenAPIInputReader.java:111) at com.devonfw.cobigen.impl.generator.TriggerMatchingEvaluatorImpl.getMatchingTriggers (TriggerMatchingEvaluatorImpl.java:80)
Richter-cg
changed the title
Taking the first fitting InputReader fails for smoketests
Fix the choice of the suitable InputReader for smoketests
Jun 6, 2018
Richter-cg
changed the title
Fix the choice of the suitable InputReader for smoketests
OpenApi-parser reads xml file and returns NullPointerException
Jun 20, 2018
It looks like the NPE occurs only when the input file has tabs instead of spaces at the begining of each line. But the OpenApi parser still accepts the xml input which results in "MojoFailureException: The execution 'generate' of cobigen-maven-plugin resulted in no file to be generated!"
Runing the XML smoketest with Maven results in an NullPointerException.
It seems that the OpenApi-parser accepts XML files as an input but then fails to return any informations out of it.
Caused by: java.lang.NullPointerException at com.reprezen.kaizen.oasparser.ovl3.OpenApi3Impl.getServers (OpenApi3Impl.java:188) at com.devonfw.cobigen.openapiplugin.inputreader.OpenAPIInputReader.extractServers (OpenAPIInputReader.java:206) at com.devonfw.cobigen.openapiplugin.inputreader.OpenAPIInputReader.extractComponents (OpenAPIInputReader.java:136) at com.devonfw.cobigen.openapiplugin.inputreader.OpenAPIInputReader.getInputObjects (OpenAPIInputReader.java:111) at com.devonfw.cobigen.impl.generator.TriggerMatchingEvaluatorImpl.getMatchingTriggers (TriggerMatchingEvaluatorImpl.java:80)
Related Issues:
#427
The text was updated successfully, but these errors were encountered: