Getting below error randomly in the Prod environment for an application. However with the next run the error was not reported and it got successfully started.
Error:-
java.lang.NoClassDefFoundError: Could not initialize class sun.security.provider.SecureRandom$SeederHolder
at sun.security.provider.SecureRandom.engineNextBytes(Unknown Source) ~[na:1.8.0_51]
at java.security.SecureRandom.nextBytes(Unknown Source) ~[na:1.8.0_51]
at java.util.UUID.randomUUID(Unknown Source) ~[na:1.8.0_51]
at org.springframework.integration.MessageHeaders.<init>(MessageHeaders.java:96) ~[spring-integration-core-2.1.0.RELEASE.jar:na]
at org.springframework.integration.message.GenericMessage.<init>(GenericMessage.java:68) ~[spring-integration-core-2.1.0.RELEASE.jar:na]
at org.springframework.integration.message.GenericMessage.<init>(GenericMessage.java:49) ~[spring-integration-core-2.1.0.RELEASE.jar:na]
at org.springframework.integration.message.ErrorMessage.<init>(ErrorMessage.java:33) ~[spring-integration-core-2.1.0.RELEASE.jar:na]
at org.springframework.integration.channel.MessagePublishingErrorHandler.handleError(MessagePublishingErrorHandler.java:83) ~[spring-integration-core-2.1.0.RELEASE.jar:na]
Could anyone please share some suggestion on above error, how can we resolve?? What could be the cause of sudden classDefNotFound?? Nothing was changed in the application. So far have received only once.
Aucun commentaire:
Enregistrer un commentaire