-
Notifications
You must be signed in to change notification settings - Fork 304
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
EJB Timer not available when restarting /CUSTCOM-65 #1596
Comments
Hi @ctabin, |
Hello @MattGill98 Can you provide me some further explanation about your fix ? I don't get how you it solves the problem. I don't know if you have some code fix to do, so I let the issue open. Best regards, |
Hi @ctabin, I'll leave this issue open until a permanent fix is available. Kind regards, |
Please try Payara 5 and see if it is still a problem there. |
Hello @smillidge, I'm sorry to come back so late. So we've update to the latest version of Payara (5.193) and the error is still present without the configuration mentioned by @MattGill98:
By adding the |
@smillidge FYI the problem is still present in 5.194 (JDK 8). Even worse, without changing any configuration (the attributes |
I could get an interesting stack trace by activating the logging with
Hopefully it can help ! Also, it could be more related to #1606 🤔 |
Tracked now by |
Hi, due to how long ago this issue was raised we have decided to close the issue immediately, and not consider the implementation of the fix/improvement that was requested. Please understand that this decision was taken into consideration with the resources that we have available at the moment. In case of having reported a bug, if the issue is still pressing to you, feel free to verify if it’s applicable in the current release of Payara Community edition, and proceed to raise a new issue with details of the test reproducer. Many thanks for your understanding. |
Description
In an embedded payara server, the second time it is deployed, an Exception "EJB Timer Service is not available" is thrown.
Context
We want to use the payara server (or GlassFish embedded) for testing our application. Since there are complex workflows, this involves to start/stop GlassFish multiple times with different configurations (
domain.xml
).In order to do so, here is the piece of code we are using to start/stop an instance:
At this point, all works perfectly fine. After the
shutdown()
, I expect that the whole GlassFish container is stopped and all its resources have been released. However, once thedomain.xml
file has been updated and the server restarts:After some research, it seems there was a bug like this in Glassfish 3 (see here).
What I tried
ClassLoader
passed toGlassFishRuntime.bootstrap()
, but the only effect was to lose the runtime discovery, or dit nothingjdbc/__TimerPool
(ie mapping to a custom jdbc pool, as mentionned here, but the error is still present.domain.xml
of the__TimerPool
references. Then during the first pass I get a message in the log that the pool is not found (all works fine), and the second pass still crashes at the same place with the same error.glassfish-embedded-all
topayara-embedded-all
hoping the issue would be resolved.Some more logs
Here are the messages I have during the first pass before my EAR is deployed:
And then, during the second pass, up to the Exception:
Maven configuration
Environment
The text was updated successfully, but these errors were encountered: