The transaction is marked for rollback when calling em.createNamedQuery with a query name that does not exist. This is a new behaviour in 4.3.0. An IllegalArgumentException shouldn't rollback the tx.