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

Bug Report: EJB Timer Service is not available? / FISH-7815 #6381

Open
cidylong opened this issue Aug 28, 2023 · 8 comments
Open

Bug Report: EJB Timer Service is not available? / FISH-7815 #6381

cidylong opened this issue Aug 28, 2023 · 8 comments
Assignees
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect

Comments

@cidylong
Copy link

Brief Summary

Create an EJB module (jar), deploy it to a payara service instance, payara server throws:

"remote failure: Error occurred during deployment: Failed to create automatic timers for ThssAppScheduler -- EJB Timer Service is not available. Please see server.log for more details.
Command deploy failed."

Expected Outcome

EJB timer should works fine

Current Outcome

"remote failure: Error occurred during deployment: Failed to create automatic timers for ThssAppScheduler -- EJB Timer Service is not available. Please see server.log for more details.
Command deploy failed."

Reproducer

Develop a simple EJB module with maven build by NetBeans -18

@Singleton
@ApplicationScoped
@Startup
public class ThssAppScheduler implements Serializable {
 .......
@Schedule(hour = "12", minute = "4", second = "5", info = "Lunch time event scratcher.")
public void eventScratcher() {
.......
}
.......
}

compile and deploy it to payara server instance result as:

Screenshot 2023-08-28 at 8 25 10 pm

server log as:
server_293.log

tired to configure payara server instance by add-opens and checked payara server instance configure, seems --add-opens is fine,
Screenshot 2023-08-28 at 8 36 14 pm

tried to re-configure payara-executor-service-configuration as well. configure as:
Screenshot 2023-08-28 at 8 39 40 pm

restart-domain and redeploy it to server instance.

There is nothing changed, same error.

Operating System

Rocky Linux 9

JDK Version

Oracle JDK 17.0.7

Payara Distribution

Payara Server Full Profile

@cidylong cidylong added Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect labels Aug 28, 2023
@svendiedrichsen
Copy link
Contributor

svendiedrichsen commented Aug 28, 2023

@cidylong You are mixing CDI and EJB annotations with your provided code example class. Please remove the ApplicationScoped annotation and try again.

@cidylong
Copy link
Author

Tried to check service instance configure to make sure
Screenshot 2023-08-28 at 9 01 45 pm

change EJB Timer service to database by given jdbc/__TimerPool to Timer Datasouces and change Persistence Service to DataGrid and Database, restart domain and redeploy application.

EJB Timer service is still not available.

@cidylong
Copy link
Author

@svendiedrichsen , Thank you for your advice, ApplicationScoped removed, re-compile, re-deploy it, failed again, same error. "EJB Timer Service is not available"

@cidylong
Copy link
Author

@svendiedrichsen , from server log, we can see:

[2023-08-28T19:31:17.295+1000] [Payara 6.2023.8] [INFO] [] [org.eclipse.persistence.session./file:/home/payara/payara6/glassfish/domains/production/applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App] [tid: _ThreadID=125 _ThreadName=admin-thread-pool::admin-listener(2)] [timeMillis: 1693215077295] [levelValue: 800] [[

EclipseLink, version: Eclipse Persistence Services - 4.0.1.payara-p1.v202304041433]]

seems EJB Time service is fine, very confused.

@svendiedrichsen
Copy link
Contributor

@cidylong I don't know about how to configure the timer service. I have always used the default configured one.

@cidylong
Copy link
Author

Please help on this issue anyone if you have an idea? this is quite important for regular application.

@kalinchan
Copy link
Member

Hi @cidylong, I have been able to reproduce this issue and have raised FISH-7815

@kalinchan kalinchan added Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification labels Sep 20, 2023
@kalinchan kalinchan changed the title Bug Report: EJB Timer Service is not available? Bug Report: EJB Timer Service is not available? / FISH-7815 Sep 20, 2023
@cidylong
Copy link
Author

cidylong commented Oct 7, 2023

@kalinchan, When the bug will be fixed or which version expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect
Projects
None yet
Development

No branches or pull requests

3 participants