NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Exception in NetBeans database app tutorial.

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Carolina355



Joined: 28 Nov 2008
Posts: 2
Location: Durham, NC

PostPosted: Wed Dec 17, 2008 6:43 pm    Post subject: Exception in NetBeans database app tutorial. Reply with quote

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

PostPosted: Wed Apr 01, 2009 10:57 am    Post subject: Same problem! Reply with quote

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

PostPosted: Sun Nov 22, 2009 7:07 pm    Post subject: Re: Same problem! Reply with quote

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

PostPosted: Tue Dec 22, 2009 1:59 pm    Post subject: Same Problem Reply with quote

I am having exactly the same problem... please help.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo