Sometimes, while checking the preview for any policy (Firewall, NAT, etc) will be stuck at "Calculating CLI and XML edit". But if we check the same in Job management, this will be failing with the error "javax.ejb.EJBTransactionRollbackException". This article explains how to fix such issues
This issue will occur when the Junos version between Primary and Secondary SRX is showing different in Security Director. But it is showing the same in the Network management platform.
WARNING: EJBTransactionRollbackException is a GENERIC message for any time a job has failed and aborted, an earlier log message (before this one) in jboss logs is the "real" error. This KB does not capture the "real" message to look for for this workaround