[nbusers] entity relationship not working..

  • From: "Jdaniel13" < >
  • To:
  • Subject: [nbusers] entity relationship not working..
  • Date: Sat, 04 May 2013 04:20:34 -0400

May 4, 2013 12:12:31 PM org.jdesktop.application.Application$1 run
SEVERE: Application class adventure.AdventureApp failed to launch
javax.persistence.PersistenceException: No Persistence provider for 
EntityManager named AdventureParkPU: 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@35ce36
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 [AdventureParkPU] failed.
Internal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 
2.0.1 (Build b09d-fcs (12/06/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class adventure.Booking] uses a non-entity [class 
adventure.Payment] as target entity in the relationship attribute [private 
adventure.Payment adventure.Booking.paymentID].
        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 adventure.AdventureView.initComponents(AdventureView.java:337)
        at adventure.AdventureView.<init>(AdventureView.java:39)
        at adventure.AdventureApp.startup(AdventureApp.java:19)
        at org.jdesktop.application.Application$1.run(Application.java:171)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
        at java.awt.EventQueue.access$400(EventQueue.java:81)
        at java.awt.EventQueue$2.run(EventQueue.java:633)
        at java.awt.EventQueue$2.run(EventQueue.java:631)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
        at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: 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 [AdventureParkPU] failed.
Internal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 
2.0.1 (Build b09d-fcs (12/06/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class adventure.Booking] uses a non-entity [class 
adventure.Payment] as target entity in the relationship attribute [private 
adventure.Payment adventure.Booking.paymentID].
        at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:643)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:171)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:239)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
        at 
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
        ... 20 more
Caused by: 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 [AdventureParkPU] failed.
Internal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 
2.0.1 (Build b09d-fcs (12/06/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class adventure.Booking] uses a non-entity [class 
adventure.Payment] as target entity in the relationship attribute [private 
adventure.Payment adventure.Booking.paymentID].
        at 
oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:228)
        ... 25 more
Caused by: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 2.0.1 (Build 
b09d-fcs (12/06/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class adventure.Booking] uses a non-entity [class 
adventure.Payment] as target entity in the relationship attribute [private 
adventure.Payment adventure.Booking.paymentID].
        at 
oracle.toplink.essentials.exceptions.ValidationException.nonEntityTargetInRelationship(ValidationException.java:1140)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwNonEntityTargetInRelationship(MetadataValidator.java:321)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.RelationshipAccessor.getReferenceDescriptor(RelationshipAccessor.java:164)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ObjectAccessor.processOneToOneForeignKeyRelationship(ObjectAccessor.java:128)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ObjectAccessor.processOwningMappingKeys(ObjectAccessor.java:205)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ManyToOneAccessor.process(ManyToOneAccessor.java:121)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.RelationshipAccessor.processRelationship(RelationshipAccessor.java:290)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProject.processRelationshipDescriptors(MetadataProject.java:579)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProject.process(MetadataProject.java:512)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:246)
        at 
oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:370)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:607)
        ... 24 more


 The following providers:
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.

        at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
        at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
        at adventure.AdventureView.initComponents(AdventureView.java:337)
        at adventure.AdventureView.<init>(AdventureView.java:39)
        at adventure.AdventureApp.startup(AdventureApp.java:19)
        at org.jdesktop.application.Application$1.run(Application.java:171)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
        at java.awt.EventQueue.access$400(EventQueue.java:81)
        at java.awt.EventQueue$2.run(EventQueue.java:633)
        at java.awt.EventQueue$2.run(EventQueue.java:631)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
        at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class 
adventure.AdventureApp failed to launch
        at org.jdesktop.application.Application$1.run(Application.java:177)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
        at java.awt.EventQueue.access$400(EventQueue.java:81)
        at java.awt.EventQueue$2.run(EventQueue.java:633)
        at java.awt.EventQueue$2.run(EventQueue.java:631)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
        at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: javax.persistence.PersistenceException: No Persistence provider 
for EntityManager named AdventureParkPU: 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@35ce36
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 [AdventureParkPU] failed.
Internal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 
2.0.1 (Build b09d-fcs (12/06/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class adventure.Booking] uses a non-entity [class 
adventure.Payment] as target entity in the relationship attribute [private 
adventure.Payment adventure.Booking.paymentID].
        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 adventure.AdventureView.initComponents(AdventureView.java:337)
        at adventure.AdventureView.<init>(AdventureView.java:39)
        at adventure.AdventureApp.startup(AdventureApp.java:19)
        at org.jdesktop.application.Application$1.run(Application.java:171)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:672)
        at java.awt.EventQueue.access$400(EventQueue.java:81)
        at java.awt.EventQueue$2.run(EventQueue.java:633)
        at java.awt.EventQueue$2.run(EventQueue.java:631)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:642)
        at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: 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 [AdventureParkPU] failed.
Internal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 
2.0.1 (Build b09d-fcs (12/06/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class adventure.Booking] uses a non-entity [class 
adventure.Payment] as target entity in the relationship attribute [private 
adventure.Payment adventure.Booking.paymentID].
        at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:643)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:171)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:239)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
        at 
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
        ... 20 more
Caused by: 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 [AdventureParkPU] failed.
Internal Exception: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 
2.0.1 (Build b09d-fcs (12/06/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class adventure.Booking] uses a non-entity [class 
adventure.Payment] as target entity in the relationship attribute [private 
adventure.Payment adventure.Booking.paymentID].
        at 
oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:228)
        ... 25 more
Caused by: Exception [TOPLINK-7250] (Oracle TopLink Essentials - 2.0.1 (Build 
b09d-fcs (12/06/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: [class adventure.Booking] uses a non-entity [class 
adventure.Payment] as target entity in the relationship attribute [private 
adventure.Payment adventure.Booking.paymentID].
        at 
oracle.toplink.essentials.exceptions.ValidationException.nonEntityTargetInRelationship(ValidationException.java:1140)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwNonEntityTargetInRelationship(MetadataValidator.java:321)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.RelationshipAccessor.getReferenceDescriptor(RelationshipAccessor.java:164)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ObjectAccessor.processOneToOneForeignKeyRelationship(ObjectAccessor.java:128)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ObjectAccessor.processOwningMappingKeys(ObjectAccessor.java:205)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ManyToOneAccessor.process(ManyToOneAccessor.java:121)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.RelationshipAccessor.processRelationship(RelationshipAccessor.java:290)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProject.processRelationshipDescriptors(MetadataProject.java:579)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProject.process(MetadataProject.java:512)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:246)
        at 
oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:370)
        at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:607)
        ... 24 more


 The following providers:
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.

        at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
        at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
        at adventure.AdventureView.initComponents(AdventureView.java:337)
        at adventure.AdventureView.<init>(AdventureView.java:39)
        at adventure.AdventureApp.startup(AdventureApp.java:19)
        at org.jdesktop.application.Application$1.run(Application.java:171)
        ... 14 more
BUILD SUCCESSFUL (total time: 2 seconds)






[nbusers] entity relationship not working..

Jdaniel13 05/04/2013

[nbusers] Re: entity relationship not working..

Jeffrey H. Coffield 05/04/2013

[nbusers] Re: entity relationship not working..

Manuel Mall 05/05/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close