Results 1 to 2 of 2
  1. #1
    lads is offline Member
    Join Date
    Nov 2011
    Posts
    2
    Rep Power
    0

    Default How to get exceptions from Persistence methods?

    Dear all,

    I recently started working on a legacy web application that uses Vaadin and Persistence to connect to a mySQL data base. The application is working without trouble in the production environment and I reproduced a development environment on my laptop that doesn't work. Particularly, a call to Persistence.createEntityManagerFactory is hanging up the application, right at the start when the creation of a new data base connection is attempted. Using the debugger, the execution goes directly from that call into ThreadPoolExecutor.java where it doesn't do anything.

    In all likelihood this a problem with the Persistence configuration, but I haven't managed so far to get any exception message that may help identifying it. There are no error messages written to the console, no error messages showing up in Tomcat, anything. I tried to include the call to Persistence.createEntityManagerFactory inside a try block, but no exception is caught.

    Is there any other way to know what is causing the call to Persistence to fail? Thank you,

    Luís

    P.S.: I'm posting in this section because I didn't find one dedicated to Persistence. If the admins think it belongs some place else please move it there.

  2. #2
    lads is offline Member
    Join Date
    Nov 2011
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Persistence API with Java SE?
    By FlyNn in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 02-14-2012, 10:47 PM
  2. jboss 6 persistence
    By vikt0r87 in forum New To Java
    Replies: 1
    Last Post: 10-23-2011, 03:51 PM
  3. Persistence
    By frexjeff in forum Advanced Java
    Replies: 1
    Last Post: 01-21-2011, 04:03 PM
  4. help me with persistence
    By halyal in forum NetBeans
    Replies: 14
    Last Post: 09-04-2010, 10:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •