polyspace-report-generator: an error occurred while parsing class rptgen.DAObject
조회 수: 12 (최근 30일)
이전 댓글 표시
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)
댓글 수: 0
답변 (3개)
Andrew Kornilov
2021년 3월 5일
편집: Andrew Kornilov
2021년 3월 5일
댓글 수: 2
Stefan Janecek
2021년 3월 6일
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
2021년 4월 27일
I confirm that the above libraries fixed the issue in PS 2020a and PS 2020b report generator.
Thanks.
BR,
Alessio
Anirban
2021년 1월 15일
편집: Anirban
2021년 1월 19일
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
Stefan Janecek
2021년 1월 22일
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
2021년 1월 27일
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.
Qiong Lan
2021년 10월 5일
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)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Run Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!