@@ -366,7 +366,6 @@ public EntityManagerFactory call() {
366366 // application-managed EntityManager proxy that automatically joins
367367 // existing transactions.
368368 this .entityManagerFactory = createEntityManagerFactoryProxy (this .nativeEntityManagerFactory );
369- System .out .println ("Returning: " + System .currentTimeMillis ());
370369 }
371370
372371 private EntityManagerFactory buildNativeEntityManagerFactory () {
@@ -381,7 +380,6 @@ private EntityManagerFactory buildNativeEntityManagerFactory() {
381380 if (logger .isInfoEnabled ()) {
382381 logger .info ("Initialized JPA EntityManagerFactory for persistence unit '" + getPersistenceUnitName () + "'" );
383382 }
384- System .out .println ("Done: " + System .currentTimeMillis ());
385383 return emf ;
386384 }
387385
@@ -481,15 +479,16 @@ public EntityManagerFactory getNativeEntityManagerFactory() {
481479 return this .nativeEntityManagerFactory ;
482480 }
483481 else {
484- System .out .println ("Requested: " + System .currentTimeMillis ());
485482 try {
486483 return this .nativeEntityManagerFactoryFuture .get ();
487484 }
488485 catch (InterruptedException ex ) {
489- throw new IllegalStateException ("Interrupted during initialization of native EntityManagerFactory" , ex );
486+ throw new IllegalStateException ("Interrupted during initialization of native EntityManagerFactory: " +
487+ ex .getMessage ());
490488 }
491489 catch (ExecutionException ex ) {
492- throw new IllegalStateException ("Failed to asynchronously initialize native EntityManagerFactory" , ex );
490+ throw new IllegalStateException ("Failed to asynchronously initialize native EntityManagerFactory: " +
491+ ex .getMessage (), ex .getCause ());
493492 }
494493 }
495494 }
0 commit comments