Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught Error: Call to a member function getRisk() on null in /usr/local/share/fossology/lib/php/Report/LicenseMainGetter.php:44 #2833

Open
dineshr93 opened this issue Sep 18, 2024 · 1 comment
Labels

Comments

@dineshr93
Copy link
Contributor

dineshr93 commented Sep 18, 2024

Description

generating readmeoss report throws below error. Escpecially while those package which have missing license reported here #2817

logs

PHP Fatal error:  Uncaught Error: Call to a member function getRisk() on null in /usr/local/share/fossology/lib/php/Report/LicenseMainGetter.php:44"
 "Stack trace:"
 "#0 /usr/local/share/fossology/lib/php/Report/LicenseMainGetter.php(57): Fossology\Lib\Report\LicenseMainGetter->getStatements()"
 "#1 /usr/local/share/fossology/readmeoss/agent/readmeoss.php(127): Fossology\Lib\Report\LicenseMainGetter->getCleared()"
 "#2 /usr/local/share/fossology/lib/php/Agent/Agent.php(328): ReadmeOssAgent->processUploadId()"
 "#3 /usr/local/share/fossology/readmeoss/agent/readmeoss.php(242): Fossology\Lib\Agent\Agent->run_scheduler_event_loop()"
 "#4 /usr/local/lib/fossology/fo_wrapper(65): require('/usr/local/shar...')"
 "#5 {main}"
 "  thrown in /usr/local/share/fossology/lib/php/Report/LicenseMainGetter.php on line 44
 agent failed, code: 255

when trying to get dep5 report I get


2024-09-18 06:33:44 dep5 [0] :: JOB[103546].dep5[852.localhost]: "PHP Fatal error:  Uncaught Error: Call to a member function getId() on null in /usr/local/share/fossology/spdx2/agent/spdx2.php:358"
2024-09-18 06:33:44 dep5 [0] :: JOB[103546].dep5[852.localhost]: "Stack trace:"
2024-09-18 06:33:44 dep5 [0] :: JOB[103546].dep5[852.localhost]: "#0 /usr/local/share/fossology/spdx2/agent/spdx2.php(228): Fossology\SpdxTwo\SpdxTwoAgent->renderPackage()"
2024-09-18 06:33:44 dep5 [0] :: JOB[103546].dep5[852.localhost]: "#1 /usr/local/share/fossology/lib/php/Agent/Agent.php(328): Fossology\SpdxTwo\SpdxTwoAgent->processUploadId()"
2024-09-18 06:33:44 dep5 [0] :: JOB[103546].dep5[852.localhost]: "#2 /usr/local/share/fossology/spdx2/agent/spdx2.php(895): Fossology\Lib\Agent\Agent->run_scheduler_event_loop()"
2024-09-18 06:33:44 dep5 [0] :: JOB[103546].dep5[852.localhost]: "#3 /usr/local/lib/fossology/fo_wrapper(65): require('/usr/local/shar...')"
2024-09-18 06:33:44 dep5 [0] :: JOB[103546].dep5[852.localhost]: "#4 {main}"
2024-09-18 06:33:44 dep5 [0] :: JOB[103546].dep5[852.localhost]: "  thrown in /usr/local/share/fossology/spdx2/agent/spdx2.php on line 358"
2024-09-18 06:33:45 dep5 [0] :: JOB[103546].dep5[852.localhost]: agent failed, code: 255

Screenshots

If applicable, add screenshots to help explain your problem.

Versions

  • Last commit id on master: Version: [4.4.0.63], Branch: [master], Commit: [#4e8e87] 2024/06/12 10:07 +00:00 built @ 2024/06/24 17:25 +00:00
  • Operating System (lsb_release -a): Ubuntu 20.04.6 LTS
@shaheemazmalmmd
Copy link
Member

@dineshr93 : can you please explain the clearing process involved in this ? example like in which group you have cleared this component and in which group this component is being cleared ?? and also let me know if the candidate license is being used ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants