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

Webscript 500 error when using the scheduled jobs tool. #224

Open
douglascrp opened this issue Aug 13, 2024 · 3 comments
Open

Webscript 500 error when using the scheduled jobs tool. #224

douglascrp opened this issue Aug 13, 2024 · 3 comments
Labels

Comments

@douglascrp
Copy link
Contributor

BUG

Webscript 500 error when using the scheduled jobs tool.

Expected behavior

The list of scheduled jobs should be shown.

Actual behavior

Web Script Status 500 - Internal Error

The Web Script /alfresco/s/ootbee/admin/scheduled-jobs has responded with a status of 500 - Internal Error.

500 Description: An error inside the HTTP server which prevented it from fulfilling the request.

Message: 07130017 Wrapped Exception (with status template): 07130408 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/scheduled-jobs.get.js': 07130407 TypeError: Cannot call property instanceDefinitionFor in object [JavaPackage com.cronutils.model.definition.CronDefinitionBuilder]. It is not a function, it is "object". (classpath*:alfresco/templates/webscripts/org/orderofthebee/support-tools/admin/ootbee-support-tools/scheduled-jobs.get.js#247)
Server: Community schema 18.000

Steps to reproduce the behavior

Just click on the tool.

Additional details (analysis so far, log statements, references, etc.)

Logs: https://pastebin.com/u3Nzmk5R

Tell us about your environment

Alfresco Community 7.4.0.1
Support Tools 1.2.2.0

FEATURE / ENHANCEMENT

@douglascrp douglascrp added the bug label Aug 13, 2024
@AFaust
Copy link
Contributor

AFaust commented Aug 13, 2024

Is this reproducible in an out-of-the-box Alfresco with only OOTBee Support Tools? I am using scheduled jobs all the time in various Alfresco versions (7.3, 7.4, and 23.2 as well), and have not encountered this yet. We did update cron-utils from 5.0.3 to 9.1.6 as result of a dependabot PR end of 2022 (for 1.2.0.0 of this module), but then again that has been in use for quite a while already....

@douglascrp
Copy link
Contributor Author

I'm not sure, but I can give it a try and let you know when it's done.

@douglascrp
Copy link
Contributor Author

Answering again, actually, we have been using it with Alfresco 7.4 too, and it really works.
This makes me wonder what can be causing this issue with this specific server.
I will investigate it

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