اذهب إلى المحتوى
  • 0

سوال فى java .كيف يمكن اصلاح ذلك الخطا عند الاتصال بقاعده البيانات MySQL

Aisha Safwat

السؤال

run:
[EL Config]: metadata: 2023-05-06 03:28:09.622--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Neadypeaple] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.651--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Person] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.658--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [field needypeople] is being defaulted to: class javaapplication26.Needypeople.
[EL Config]: metadata: 2023-05-06 03:28:09.659--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [field adminstrator] is being defaulted to: class javaapplication26.Adminstrator.
[EL Config]: metadata: 2023-05-06 03:28:09.665--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field volunteerList] is being defaulted to: class javaapplication26.Volunteer.
[EL Config]: metadata: 2023-05-06 03:28:09.667--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [field boardOfTrusts] is being defaulted to: class javaapplication26.BoardOfTrusts.
[EL Config]: metadata: 2023-05-06 03:28:09.668--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.BoardOfTrusts] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.669--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [field person] is being defaulted to: class javaapplication26.Person.
[EL Config]: metadata: 2023-05-06 03:28:09.67--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Volunteer] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.67--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field folders] is being defaulted to: class javaapplication26.Folders.
[EL Config]: metadata: 2023-05-06 03:28:09.67--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field person] is being defaulted to: class javaapplication26.Person.
[EL Config]: metadata: 2023-05-06 03:28:09.671--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field locality] is being defaulted to: class javaapplication26.Locality.
[EL Config]: metadata: 2023-05-06 03:28:09.672--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field campaignList] is being defaulted to: class javaapplication26.Campaign.
[EL Config]: metadata: 2023-05-06 03:28:09.673--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field campaign] is being defaulted to: class javaapplication26.Campaign.
[EL Config]: metadata: 2023-05-06 03:28:09.677--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field acceptList] is being defaulted to: class javaapplication26.Accept.
[EL Config]: metadata: 2023-05-06 03:28:09.677--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Material] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.682--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field donations] is being defaulted to: class javaapplication26.Donations.
[EL Config]: metadata: 2023-05-06 03:28:09.685--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Needypeople] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.688--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [field person] is being defaulted to: class javaapplication26.Person.
[EL Config]: metadata: 2023-05-06 03:28:09.689--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field donationsID] is being defaulted to: class javaapplication26.Donations.
[EL Config]: metadata: 2023-05-06 03:28:09.69--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Money] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.69--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field donations] is being defaulted to: class javaapplication26.Donations.
[EL Config]: metadata: 2023-05-06 03:28:09.693--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Donations] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.695--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field needypeopleList] is being defaulted to: class javaapplication26.Needypeople.
[EL Config]: metadata: 2023-05-06 03:28:09.696--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field materialList] is being defaulted to: class javaapplication26.Material.
[EL Config]: metadata: 2023-05-06 03:28:09.698--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field moneyList] is being defaulted to: class javaapplication26.Money.
[EL Config]: metadata: 2023-05-06 03:28:09.699--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to many mapping element [field campaignList] is being defaulted to: class javaapplication26.Campaign.
[EL Config]: metadata: 2023-05-06 03:28:09.699--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field acceptList] is being defaulted to: class javaapplication26.Accept.
[EL Config]: metadata: 2023-05-06 03:28:09.699--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Adminstrator] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.7--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field localityname] is being defaulted to: class javaapplication26.Locality.
[EL Config]: metadata: 2023-05-06 03:28:09.7--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to one mapping element [field person] is being defaulted to: class javaapplication26.Person.
[EL Config]: metadata: 2023-05-06 03:28:09.702--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Accept] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.702--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field volunteer] is being defaulted to: class javaapplication26.Volunteer.
[EL Config]: metadata: 2023-05-06 03:28:09.703--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field donations] is being defaulted to: class javaapplication26.Donations.
[EL Config]: metadata: 2023-05-06 03:28:09.704--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Campaign] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.707--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to many mapping element [field donationsList] is being defaulted to: class javaapplication26.Donations.
[EL Config]: metadata: 2023-05-06 03:28:09.707--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field volunteer] is being defaulted to: class javaapplication26.Volunteer.
[EL Config]: metadata: 2023-05-06 03:28:09.71--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field volunteerList] is being defaulted to: class javaapplication26.Volunteer.
[EL Config]: metadata: 2023-05-06 03:28:09.71--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.LocalityLocation] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.711--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the many to one mapping element [field locality] is being defaulted to: class javaapplication26.Locality.
[EL Config]: metadata: 2023-05-06 03:28:09.714--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Folders] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.715--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field volunteerList] is being defaulted to: class javaapplication26.Volunteer.
[EL Config]: metadata: 2023-05-06 03:28:09.716--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.Locality] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.718--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field adminstratorList] is being defaulted to: class javaapplication26.Adminstrator.
[EL Config]: metadata: 2023-05-06 03:28:09.718--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field localityLocationList] is being defaulted to: class javaapplication26.LocalityLocation.
[EL Config]: metadata: 2023-05-06 03:28:09.719--ServerSession(1463757745)--Thread(Thread[main,5,main])--The target entity (reference) class for the one to many mapping element [field volunteerList] is being defaulted to: class javaapplication26.Volunteer.
[EL Config]: metadata: 2023-05-06 03:28:09.719--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.MoneyPK] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.72--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.LocalityLocationPK] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.721--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.VolunteerPK] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.721--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.CampaignPK] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.722--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.AcceptPK] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.723--ServerSession(1463757745)--Thread(Thread[main,5,main])--The access type for the persistent class [class javaapplication26.MaterialPK] is set to [FIELD].
[EL Config]: metadata: 2023-05-06 03:28:09.723--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Neadypeaple] is being defaulted to: Neadypeaple.
[EL Config]: metadata: 2023-05-06 03:28:09.742--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Person] is being defaulted to: Person.
[EL Config]: metadata: 2023-05-06 03:28:09.747--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.BoardOfTrusts] is being defaulted to: BoardOfTrusts.
[EL Config]: metadata: 2023-05-06 03:28:09.749--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Volunteer] is being defaulted to: Volunteer.
[EL Config]: metadata: 2023-05-06 03:28:09.755--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Material] is being defaulted to: Material.
[EL Config]: metadata: 2023-05-06 03:28:09.756--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Needypeople] is being defaulted to: Needypeople.
[EL Config]: metadata: 2023-05-06 03:28:09.757--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Money] is being defaulted to: Money.
[EL Config]: metadata: 2023-05-06 03:28:09.757--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Donations] is being defaulted to: Donations.
[EL Config]: metadata: 2023-05-06 03:28:09.758--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Adminstrator] is being defaulted to: Adminstrator.
[EL Config]: metadata: 2023-05-06 03:28:09.758--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Accept] is being defaulted to: Accept.
[EL Config]: metadata: 2023-05-06 03:28:09.76--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Campaign] is being defaulted to: Campaign.
[EL Config]: metadata: 2023-05-06 03:28:09.761--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.LocalityLocation] is being defaulted to: LocalityLocation.
[EL Config]: metadata: 2023-05-06 03:28:09.761--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Folders] is being defaulted to: Folders.
[EL Config]: metadata: 2023-05-06 03:28:09.763--ServerSession(1463757745)--Thread(Thread[main,5,main])--The alias name for the entity class [class javaapplication26.Locality] is being defaulted to: Locality.
Exception in thread "main" Local Exception Stack: 
Exception [EclipseLink-30005] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@5c647e05
Internal Exception: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [JavaApplication26PU] failed.
Internal Exception: Exception [EclipseLink-7220] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The @JoinColumns on the annotated element [field campaign] from the entity class [class javaapplication26.Volunteer] is incomplete. When the source entity class uses a composite primary key, a @JoinColumn must be specified for each join column using the @JoinColumns. Both the name and the referencedColumnName elements must be specified in each such @JoinColumn.
    at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:127)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactoryImpl(PersistenceProvider.java:107)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:177)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)
    at javaapplication26.JavaApplication26.main(JavaApplication26.java:28)
Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [JavaApplication26PU] failed.
Internal Exception: Exception [EclipseLink-7220] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The @JoinColumns on the annotated element [field campaign] from the entity class [class javaapplication26.Volunteer] is incomplete. When the source entity class uses a composite primary key, a @JoinColumn must be specified for each join column using the @JoinColumns. Both the name and the referencedColumnName elements must be specified in each such @JoinColumn.
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:1954)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1945)
    at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(JPAInitializer.java:98)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactoryImpl(PersistenceProvider.java:96)
    ... 4 more
Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [JavaApplication26PU] failed.
Internal Exception: Exception [EclipseLink-7220] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The @JoinColumns on the annotated element [field campaign] from the entity class [class javaapplication26.Volunteer] is incomplete. When the source entity class uses a composite primary key, a @JoinColumn must be specified for each join column using the @JoinColumns. Both the name and the referencedColumnName elements must be specified in each such @JoinColumn.
    at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:230)
    ... 8 more
Caused by: Exception [EclipseLink-7220] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The @JoinColumns on the annotated element [field campaign] from the entity class [class javaapplication26.Volunteer] is incomplete. When the source entity class uses a composite primary key, a @JoinColumn must be specified for each join column using the @JoinColumns. Both the name and the referencedColumnName elements must be specified in each such @JoinColumn.
    at org.eclipse.persistence.exceptions.ValidationException.incompleteJoinColumnsSpecified(ValidationException.java:1847)
    at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.MappingAccessor.getJoinColumnsAndValidate(MappingAccessor.java:757)
    at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.MappingAccessor.getJoinColumns(MappingAccessor.java:657)
    at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.ObjectAccessor.processForeignKeyRelationship(ObjectAccessor.java:663)
    at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.ObjectAccessor.processOwningMappingKeys(ObjectAccessor.java:733)
    at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.ManyToOneAccessor.process(ManyToOneAccessor.java:123)
    at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processOwningRelationshipAccessors(MetadataProject.java:1580)
    at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processStage3(MetadataProject.java:1833)
    at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:580)
    at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:585)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1869)
    ... 6 more
BUILD FAILED (total time: 1 second)
 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

  • 0

السجلات التي تظهر في إخراج البرنامج هي رسائل تنبيه ومعلومات تقنية من إطار العمل EclipseLink (المستخدم كإطار مستعار JPA) المستخدم في تطبيقك، وتقدم بعض المعلومات حول تكوين الكائنات المستمرة (persistent entities) والعلاقات بينها.

وعليكي البحث عن رسائل خطأ أو استثناءات محددة في سجل الأخطاء الخاص بالتطبيق، فتلك الرسائل التي تظهر في إخراج البرنامج ليست ذات صلة مباشرة بقاعدة البيانات ولا توضح أي مشكلة محددة في الاتصال ب MySQL.

لذا، يرجى توضيح المشكلة التي تواجهها مع قاعدة البيانات MySQL وتقديم المزيد من التفاصيل أو رسائل الخطأ إذا كانت متاحة. 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...