NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Carolina355
Joined: 28 Nov 2008 Posts: 2 Location: Durham, NC
|
Posted: Wed Dec 17, 2008 6:43 pm Post subject: Exception in NetBeans database app tutorial. |
|
|
I'm doing the "Creating a Custom Java Desktop Database Application" NetBeans tutorial. There's a section called "Customizing the Master/Detail View". Everything is fine until I get to the end of that section. I've completed all the instructions and checked all the changes the instructions said to make. The instructions say that the application should run OK but without some of its functions. The program compiles fine but when I run it I get the following error messages:
Dec 17, 2008 12:08:56 PM org.jdesktop.application.Application$1 run
SEVERE: Application class customerrecords.CustomerRecordsApp failed to launch
javax.persistence.PersistenceException: No Persistence provider for EntityManager named MyBusinessRecordsPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory:
oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Local Exception Stack:
Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
Internal Exception: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [MyBusinessRecordsPU] failed.
Internal Exception: Exception [TOPLINK-7244] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: An incompatible mapping has been encountered between [class customerrecords.resources.Products] and [class customerrecords.Orders]. This usually occurs when the cardinality of a mapping does not correspond with the cardinality of its backpointer.
at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at customerrecords.CustomerRecordsView.initComponents(CustomerRecordsView.java:337)
The exception is triggered by the line of code referenced in the last line of the above messages, i.e. CustomerRecordsView.java:337. I guess the problem is something about the mapping between two of my entity classes, especially since this mapping was manually modified as part of the tutorial. I've checked the edits that are supposed to create the mapping. But I don't know enough Java or NetBeans to find the problem.
Anyone else had this problem or can give me any ideas?
I'm running NetBeans 6.5 IDE with all updates as of this date.
Windows XP Pro
Java 1.6.0_10
Thanks. |
|
| Back to top |
|
 |
yangseng
Joined: 01 Apr 2009 Posts: 1
|
Posted: Wed Apr 01, 2009 10:57 am Post subject: Same problem! |
|
|
Hi,
I think i have the same problem as you. Did you manage to solve it?
If yes can you tell what's the solution.
Thanks in advance,
Nuno |
|
| Back to top |
|
 |
K1
Joined: 22 Nov 2009 Posts: 1
|
Posted: Sun Nov 22, 2009 7:07 pm Post subject: Re: Same problem! |
|
|
| yangseng wrote: | Hi,
I think i have the same problem as you. Did you manage to solve it?
If yes can you tell what's the solution.
Thanks in advance,
Nuno |
I am having the same problem. Did you find the solution? |
|
| Back to top |
|
 |
kororos
Joined: 22 Dec 2009 Posts: 1
|
Posted: Tue Dec 22, 2009 1:59 pm Post subject: Same Problem |
|
|
| I am having exactly the same problem... please help. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|