Project

General

Profile

Actions

Bug #12515

open

APIForNG. Метод 24. Вызов генерации отчета. Отличие статуса отчета при запуске генерации из APIForNG от Requality

Added by Радек Мария over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Start date:
07/06/2023
Due date:
% Done:

100%

Estimated time:
Detected in build:
git
Platform:
Published in build:
1.4.813

Description

Проблема воспроизводится в версии:
Version: 1.4.807
Build id: on , built at 04.07.2023 22:35:59

При генерации отчета по одному и тому же шаблону ReportSettings через APIForNG и интерфейс по разному отрабатывает функционал возвращения статуса отчета.
Шаблон в приложении. Настройки на скриншоте.

Запуск генерации отчета через APIForNG
1. Вызвать метод генерации /projects/{project}/reportSettings/{uuid}/generate
2. По окончании операции отчет сформируется с ошибкой:

freemarker.core._TemplateModelException: Java method "com.unitesk.gosniias.core.RevisionComparator.compareRevisions(String, String, com.unitesk.requality.core.attribute.IReqURIResolver)" threw an exception when invoked on com.unitesk.gosniias.core.RevisionComparator object "com.unitesk.gosniias.core.RevisionComparator@5d8986fa"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related):- Failed at: ${comporator.compareRevisions(revisio... [in template "revision/revision.ftl" at line 596, column 1] ---- FreeMarker template error: Java method "com.unitesk.gosniias.core.RevisionComparator.compareRevisions(String, String, com.unitesk.requality.core.attribute.IReqURIResolver)" threw an exception when invoked on com.unitesk.gosniias.core.RevisionComparator object "com.unitesk.gosniias.core.RevisionComparator@5d8986fa"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related):- Failed at: ${comporator.compareRevisions(revisio... [in template "revision/revision.ftl" at line 596, column 1] ---- Java stack trace (for programmers): ---- freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...]at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:289)at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:252)at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:77)at freemarker.core.MethodCall._eval(MethodCall.java:65)at freemarker.core.Expression.eval(Expression.java:83)at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:100)at freemarker.core.DollarVariable.accept(DollarVariable.java:63)at freemarker.core.Environment.visit(Environment.java:330)at freemarker.core.Environment.visit(Environment.java:336)at freemarker.core.Environment.process(Environment.java:309)at freemarker.template.Template.process(Template.java:384)at com.unitesk.requality.report.ReportGenerator$1.process(ReportGenerator.java:204)at com.unitesk.requality.report.ReportGenerator.generateReport(ReportGenerator.java:178)at com.unitesk.requality.core.operation.GenerateReportHandler.actualGenerateReport(GenerateReportHandler.java:394)at com.unitesk.requality.core.operation.GenerateReportHandler.execute(GenerateReportHandler.java:135)at com.unitesk.requality.core.operation.GenerateReportHandler.execute(GenerateReportHandler.java:145)at com.unitesk.requality.eclipse.handlers.report.GenerateReportHandler.execute(GenerateReportHandler.java:193)at com.unitesk.requality.api.services.report.ReportSettingsService$1.run(ReportSettingsService.java:281)at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.NoSuchMethodError: 'com.unitesk.requality.repo.RevisionInfo com.unitesk.requality.repo.RepoManager.getRevisionInfoByRev(java.lang.String)'at com.unitesk.gosniias.core.RevisionComparator.compareRevisions(RevisionComparator.java:322)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:568)at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1505)at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:72)... 16 more 

3. При вызове метода проверки статуса /projects/{project}/reports/{r}/generationStatus
Возвращается сообщение:
{
   "success": true,
   "result":    {
      "task": "clean tree - Generate report on example_project",
      "percentage": 106.66
   }
}

Запуск генерации отчета через интерфейс Requality
1. Вызвать метод генерации через интерфейс Requality нажатием на кнопку Generate
2. По окончании операции отчет сформируется с ошибкой:

freemarker.core._TemplateModelException: Java method "com.unitesk.gosniias.core.RevisionComparator.compareRevisions(String, String, com.unitesk.requality.core.attribute.IReqURIResolver)" threw an exception when invoked on com.unitesk.gosniias.core.RevisionComparator object "com.unitesk.gosniias.core.RevisionComparator@31df5b1"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related):- Failed at: ${comporator.compareRevisions(revisio... [in template "revision/revision.ftl" at line 596, column 1] ---- FreeMarker template error: Java method "com.unitesk.gosniias.core.RevisionComparator.compareRevisions(String, String, com.unitesk.requality.core.attribute.IReqURIResolver)" threw an exception when invoked on com.unitesk.gosniias.core.RevisionComparator object "com.unitesk.gosniias.core.RevisionComparator@31df5b1"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related):- Failed at: ${comporator.compareRevisions(revisio... [in template "revision/revision.ftl" at line 596, column 1] ---- Java stack trace (for programmers): ---- freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...]at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:289)at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:252)at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:77)at freemarker.core.MethodCall._eval(MethodCall.java:65)at freemarker.core.Expression.eval(Expression.java:83)at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:100)at freemarker.core.DollarVariable.accept(DollarVariable.java:63)at freemarker.core.Environment.visit(Environment.java:330)at freemarker.core.Environment.visit(Environment.java:336)at freemarker.core.Environment.process(Environment.java:309)at freemarker.template.Template.process(Template.java:384)at com.unitesk.requality.report.ReportGenerator$1.process(ReportGenerator.java:204)at com.unitesk.requality.report.ReportGenerator.generateReport(ReportGenerator.java:178)at com.unitesk.requality.core.operation.GenerateReportHandler.actualGenerateReport(GenerateReportHandler.java:394)at com.unitesk.requality.core.operation.GenerateReportHandler.execute(GenerateReportHandler.java:135)at com.unitesk.requality.core.operation.GenerateReportHandler.execute(GenerateReportHandler.java:145)at com.unitesk.requality.core.operation.GenerateReportHandler.execute(GenerateReportHandler.java:111)at com.unitesk.requality.eclipse.handlers.report.GenerateReportHandler$3.runInWorkspace(GenerateReportHandler.java:161)at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:43)at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: java.lang.NoSuchMethodError: 'com.unitesk.requality.repo.RevisionInfo com.unitesk.requality.repo.RepoManager.getRevisionInfoByRev(java.lang.String)'at com.unitesk.gosniias.core.RevisionComparator.compareRevisions(RevisionComparator.java:322)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:568)at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1505)at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:72)... 17 more 

3. При вызове метода проверки статуса /projects/{project}/reports/{r}/generationStatus
Возвращается сообщение:
{
   "success": true,
   "result":    {
      "task": "no generation data",
      "percentage": -0.01
   }
}


Files

001.json (405 Bytes) 001.json Радек Мария, 07/06/2023 01:29 PM
clipboard-202307061330-cmwhq.png (11.5 KB) clipboard-202307061330-cmwhq.png Радек Мария, 07/06/2023 01:30 PM
Actions #1

Updated by Радек Мария over 1 year ago

  • Subject changed from APIForNG. Метод 24. Вызов генерации отчета to APIForNG. Метод 24. Вызов генерации отчета. Отличие статуса отчета при запуске генерации из APIForNG от Requality
Actions #2

Updated by Denis Kildishev over 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Denis Kildishev over 1 year ago

  • Published in build set to 1.4.813
Actions

Also available in: Atom PDF