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

15 views (last 30 days)
Andrew Kornilov
Andrew Kornilov on 13 Jan 2021
Answered: Qiong Lan on 5 Oct 2021
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)

Answers (3)

Andrew Kornilov
Andrew Kornilov on 5 Mar 2021
Edited: Andrew Kornilov on 5 Mar 2021
Java doesn't matter in this case. Installation of additional dependencies helps:
locales \
libxt6 \
libasound2 \
libgtk-3-0 \
libnss3
  2 Comments
Alessio Moscatello
Alessio Moscatello on 27 Apr 2021
I confirm that the above libraries fixed the issue in PS 2020a and PS 2020b report generator.
Thanks.
BR,
Alessio

Sign in to comment.


Anirban
Anirban on 15 Jan 2021
Edited: Anirban on 19 Jan 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 Comments
Anirban
Anirban on 27 Jan 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.

Sign in to comment.


Qiong Lan
Qiong Lan on 5 Oct 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)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by