Closed sashikamw closed 1 month ago
This seems to be a caching error. Error happens if you added a template endpoint and try to add a API after that for the first time. Works fine if a template endpoint is added using this template before this or after a restart.
I was unable to consistently reproduce this in the scenario @vinok88 mentioned. It occurred only once when trying to save template endpoint after waiting for sometime in the edit mode. According to the source code, this could occur when following condition is false.
templateElement != null && templateElement.getLocalName().equals( XMLConfigConstants.TEMPLATE_ELT.getLocalPart())
i.e. templateElement is null or templateElement.getLocalName() is not equal to "template". If template element is present it is unlikely that templateElement.getLocalName() not being "template". Therefore somehow templateElement should have been null when this error ocurred.
Hi, it seems I have followed the steps differently to what @sashikamw has meant above. With the correct steps this could be reproduced.
The steps to reproduce are,
Error occurs when using the endpoint template created at the first step, for the first time.
Here at [1],
templateElement.getLocalName().equals( XMLConfigConstants.TEMPLATE_ELT.getLocalPart())
the value of templateElement.getLocalName().
is "endpoint" and the value of XMLConfigConstants.TEMPLATE_ELT.getLocalPart()
is "template" therefore the exception is thrown.
Environement Pack - EI 620 M1 OS - ubuntu 15.10 DB - mysql 5.6 JAVA - JDK 8
Steps to recreate the issue
Observations
Note - This work when we create from the source view or dev studio