polyspace-​report-gen​erator: an error occurred while parsing class rptgen.DAObject

10 visualizaciones (últimos 30 días)
Problem is reporoducing on Polyspace Bug Finder R2020b,
OS: Ubuntu 16.04 or 18.04.
polyspace-report-generator -format PDF -results-dir results -template /usr/local/Polyspace/R2019a/toolbox/polyspace/psrptgen/templates/bug_finder/BugFinder.rpt
Location: null, user name: andrew, id: 16608@polyspace, print mode: false
Polyspace Report Generator
Loading results
Loaded "polyspace - results"
Generating Report
Template : /usr/local/Polyspace/R2019a/toolbox/polyspace/psrptgen/templates/bug_finder/BugFinder.rpt
Results-dir : /home/andrew/results
Format : dom-pdf-direct
Output-Name : results/Polyspace-Doc/polyspace_BugFinder.pdf
Loading report template
Warning: an error occurred while parsing class rptgen.DAObject:
> In rptgen.rptcomponent/schema
In rptgen.rpt_section/schema
In rptgen.coutline/schema
In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class rptgen.rptcomponent:
Invalid superclass handle.
> In rptgen.rpt_section/schema
In rptgen.coutline/schema
In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class rptgen.rpt_section:
Invalid superclass handle.
> In rptgen.coutline/schema
In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class rptgen.coutline:
Invalid superclass handle.
> In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class RptgenML.CReport:
Invalid superclass handle.
> In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: Variable 'rptgen_component_v2' originally saved as a RptgenML.CReport cannot be instantiated as an object and will be read in as a cell.
> In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Dot indexing is not supported for variables of this type.
Error in rptgen/loadRpt
Error in polyspace_report_internal (line 290)
Error in psrptgenprivate (line 19)
Error in polyspace_report (line 7)
ERROR: Loading report template: /usr/local/Polyspace/R2019a/toolbox/polyspace/psrptgen/templates/bug_finder/BugFinder.rpt
Check if the file is a valid report (.rpt) template.
For more information, enter polyspace-report-generator -h.
Warning: an error occurred while parsing class rptgen.DAObject:
> In polyspace_report_internal/rptgen_unlock (line 942)
In polyspace_report_internal (line 384)
In psrptgenprivate (line 19)
In polyspace_report (line 7)

Respuestas (3)

Andrew Kornilov
Andrew Kornilov el 5 de Mzo. de 2021
Editada: Andrew Kornilov el 5 de Mzo. de 2021
Java doesn't matter in this case. Installation of additional dependencies helps:
locales \
libxt6 \
libasound2 \
libgtk-3-0 \
libnss3
  2 comentarios
Stefan Janecek
Stefan Janecek el 6 de Mzo. de 2021
On my Fedora 33 system (I'm not the OP), package names are of course a bit different. I have installed:
  • libXt (contains libXtst.so.6)
  • gtk3 (contains libgtk-3.so.0)
  • nss (contains libnss3.so)
  • alsa-lib (contains libasound.so.2)
I'm not sure what the "locales" package contains on Ubuntu, though. With these libraries installed, Polyspace report generator produces the errors shown in my post from Jan 22.
Alessio Moscatello
Alessio Moscatello el 27 de Abr. de 2021
I confirm that the above libraries fixed the issue in PS 2020a and PS 2020b report generator.
Thanks.
BR,
Alessio

Iniciar sesión para comentar.


Anirban
Anirban el 15 de En. de 2021
Editada: Anirban el 19 de En. de 2021
Please contact MathWorks Technical Support for a more detailed analysis of the issue: https://www.mathworks.com/support/contact_us.html .
One possibility is that the Java version needs to be updated. You can update your Java version and then try running the polyspace-report-generator command again.
  2 comentarios
Stefan Janecek
Stefan Janecek el 22 de En. de 2021
I'm seeing exactly the same error:
  • OS: Fedora 33
  • Polyspace Versions: R2020b and R2020a
  • Java versions: 8.0.275 and 11.0.9
  • Reports: Bugfinder Report, Bugfinder Summary, PDF and HTML output
I have reinstalled both versions twice to exclude file corruption while downloading Polyspace, and I have tried both installations with JAVA_HOME set to Java 8.0.275 and 11.0.9. All combinations produce a similar error message as the one shown by OP above, for both the Bugfinder Report and the Bugfinder Summary (tried both PDF and HTML output for both reports).
Initializing...
Location: null, user name: stefan, id: 554479@helium.birdsixty.local, print mode: false
Polyspace Report Generator
Loading results
Loaded "injmould - polyspace-results"
Generating Report
Template : /home/stefan/.local/opt/Polyspace/R2020b/toolbox/polyspace/psrptgen/templates/bug_finder/BugFinder.rpt
Results-dir : [removed in post]
Format : dom-pdf-direct
Output-Name : [removed in post]
Loading report template
Warning: an error occurred while parsing class rptgen.DAObject:
> In rptgen.rptcomponent/schema
In rptgen.rpt_section/schema
In rptgen.coutline/schema
In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class rptgen.rptcomponent:
Invalid superclass handle.
> In rptgen.rpt_section/schema
In rptgen.coutline/schema
In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class rptgen.rpt_section:
Invalid superclass handle.
> In rptgen.coutline/schema
In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class rptgen.coutline:
Invalid superclass handle.
> In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class RptgenML.CReport:
Invalid superclass handle.
> In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: Variable 'rptgen_component_v2' originally saved as a RptgenML.CReport cannot be instantiated as an object and will be read in as a cell.
> In rptgen/loadRpt
In polyspace_report_internal (line 290)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Dot indexing is not supported for variables of this type.
Error in rptgen/loadRpt
Error in polyspace_report_internal (line 290)
Error in psrptgenprivate (line 19)
Error in polyspace_report (line 7)
ERROR: Loading report template: /home/stefan/.local/opt/Polyspace/R2020b/toolbox/polyspace/psrptgen/templates/bug_finder/BugFinder.rpt
Check if the file is a valid report (.rpt) template.
For more information, enter polyspace-report-generator -h.
Warning: an error occurred while parsing class rptgen.DAObject:
> In polyspace_report_internal/rptgen_unlock (line 978)
In polyspace_report_internal (line 384)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Anirban
Anirban el 27 de En. de 2021
This could be a bug related to some specific aspect of your environment.
Please contact MathWorks Technical Support for a detailed analysis:https://www.mathworks.com/support/contact_us.html
For information that Technical Support might need, see Contact Technical Support About Issues Running Polyspace.

Iniciar sesión para comentar.


Qiong Lan
Qiong Lan el 5 de Oct. de 2021
I had same issue as when I created a Polyspace Server R2021b container image on ubuntu:focal-20200423 with the following libs installed:
RUN apt-get update && apt-get install -y \
language-pack-en-base \
locales \
libxt6 \
libx11-xcb1 \
libxtst6 \
libasound2 \
libgtk-3-0 \
libnss3 \
&& rm -rf /var/lib/apt/lists/*
The error message is as below:
> In rptgen.rptcomponent/schema
In rptgen.rpt_section/schema
In rptgen.coutline/schema
In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 150)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class rptgen.rptcomponent:
Invalid superclass handle.
> In rptgen.rpt_section/schema
In rptgen.coutline/schema
In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 150)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class rptgen.rpt_section:
Invalid superclass handle.
> In rptgen.coutline/schema
In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 150)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class rptgen.coutline:
Invalid superclass handle.
> In RptgenML.CReport/schema
In rptgen/loadRpt
In polyspace_report_internal (line 150)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: an error occurred while parsing class RptgenML.CReport:
Invalid superclass handle.
> In rptgen/loadRpt
In polyspace_report_internal (line 150)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Warning: Variable 'rptgen_component_v2' originally saved as a RptgenML.CReport cannot be instantiated as an object and will be read in as a cell.
> In rptgen/loadRpt
In polyspace_report_internal (line 150)
In psrptgenprivate (line 19)
In polyspace_report (line 7)
Dot indexing is not supported for variables of this type.
For more information, enter polyspace-report-generator -h.
Warning: an error occurred while parsing class rptgen.DAObject:
> In polyspace_report_internal/rptgen_unlock (line 1049)
In polyspace_report_internal (line 444)
In psrptgenprivate (line 19)
In polyspace_report (line 7)

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by