-
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
payara-micro-4.1.1.162 - [SEVERE and java.io.NotSerializableException] #885
Comments
Hi @gilbertoca, this is the best place so far to raise issues like this. Payara has plans to introduce a mailing list too, but it is not ready yet. However, even with a mailing list, github issues would be the best place to raise issues like this. Thank you for letting us know, I will investigate from here. When I have questions, I will come back to you. |
@gilbertoca can you try adding |
@gilbertoca I would also use SecurityUtils.getSubject() in all the calls instead of saving it to the session, thus bypassing this problem completely. I think this would also be more secure and less error-prone. |
Ok, We've followed you advice - use SecurityUtils.getSubject(). No more NotSerializableException exception. Hope you find the Deployment conflict problem. If you need more info, just ask! |
@gilbertoca I didn't even notice the "original" issue, can you open a separate ticket and close this one? |
Also, I do not think |
Payara Micro is clustered out of the box and all deployed applications are treated as "clusterable" in that they are deployed with the availability service enabled. Have you tried running Payara Micro with the --noCluster option? |
Done #907 .
I'm following the topic:
from Java EE 7 Platform Spec. |
@gilbertoca Let me clarify. Just name your DS jdbc/MyDS, and you can look it up via java:app/jdbc/MyDS I think you are confusing JNDI lookup names with resource names as named in the Payara console |
Ah, understood! Thank you @lprimak
Searching on internet(about this topic) make it even more complicated. |
@smillidge I've tested the app with --noCluster option. The NotSerializableException exception does not occur. |
OK thanks. Payara Micro is clustered by default so will try to serialize anything you put into the web session unless you use the --noCluster option. |
It would be convenient if the info message was logged only if there are multiple instances in the cluster (or lower the message severity in that case). However, I consider this issue as solved, as the other issue is being handled in #907. |
Hi,
I didn't find the mail list to discuss this issue, so sorry if it is not the right place for it.
First one is the SEVERE [1]:
The DataSource definition is here [2]. Even complaining about the deployment the app works.
The other one is about NotSerializableException exception:
Every time the app checks the permission through the AuthorizationBean bean[3], this exception is thrown causing the log to keep growing.
I've test the app with Wildfly and TomEE, there is no problem with them.
Regards,
[1] https://gist.github.com/gilbertoca/a45b6b74b1e48293c620eb4629d8720b
[2] https://gist.github.com/gilbertoca/f2a386f52373e2826ff7b99926f9f4e7
[3] https://gist.github.com/gilbertoca/f89e03309ad9bf9f628e9f67a66912fe
The text was updated successfully, but these errors were encountered: