persistence@glassfish.java.net

Re: ManyToOne/OneToMany Relationships are Broken in 10/27 PE Builds

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Sat, 29 Oct 2005 00:44:07 +0530

Guy,
  Its Shelly who reported this issue. But she is observing same error
both while using verifier as well as during deployment.
Shelly,
   Can you send Guy the server log?

Thanks,
Sahoo

Guy Pelletier wrote:

> Sahoo,
>
> Do you have a complete stack trace that you could send me?
>
> When is this exception being thrown exactly? Is during the verifier
> stage or on deploy?
>
> Thanks,
> Guy
>
> ----- Original Message ----- From: "Shelly (Donna) McGowan"
> <Shelly.McGowan_at_Sun.COM>
> To: <persistence_at_glassfish.dev.java.net>
> Sent: Friday, October 28, 2005 9:36 AM
> Subject: Re: ManyToOne/OneToMany Relationships are Broken in 10/27 PE
> Builds
>
>
>>
>> Sahoo,
>>
>> Yes I user installer.
>>
>>
>> Have you verified the problem in your workspace? This was a quick
>> assessment of the issue.
>>
>> Shelly
>>
>>
>> Sanjeeb Kumar Sahoo wrote On 10/28/05 09:20,:
>>
>>> Shelly,
>>> Thanks for giving a try. Do you use glassfish bundle or installer? I
>>> think you use installer build and you have just found a bug in my check
>>> in. I have not updated the packager script to add this new file in to
>>> the package.
>>>
>>> Thanks,
>>> Sahoo
>>>
>>> Shelly (Donna) McGowan wrote:
>>>
>>>
>>>> Sahoo,
>>>>
>>>> Attempting to verify causes a java.io.FileNotFoundException:
>>>> /opt/sjsas90-1027/lib/verifier/TestNamesPersistence.xml (No such
>>>> file or
>>>> directory)
>>>>
>>>>
>>>> which is not in the build; i.e.,
>>>>
>>>> willow 165 =>pwd/opt/sjsas90-1027/lib/verifier
>>>> willow 166 =>ls
>>>> TestExcludeList.xml TestNamesWeb.xml
>>>> sun-TestNamesEjb.xml
>>>> TestNamesApp.xml TestNamesWebServices.xml
>>>> sun-TestNamesWeb.xml
>>>> TestNamesAppClient.xml TestNamesWebServicesClient.xml
>>>> textFormatForVerifierSS.xsl
>>>> TestNamesConnector.xml apis_1_0.xsd
>>>> verifierhelp.jar
>>>> TestNamesEjb.xml standard-apis.xml
>>>>
>>>>
>>>> Shelly
>>>>
>>>>
>>>> Sanjeeb Kumar Sahoo wrote On 10/27/05 22:49,:
>>>>
>>>>
>>>>
>>>>> Hi Shelly,
>>>>> Please do me a favor. Would you mind running
>>>>> verifier <ear name> against that application and see if it catches
>>>>> or not.
>>>>>
>>>>> Thanks,
>>>>> Sahoo
>>>>> Shelly (Donna) McGowan wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> While performing a CTS run tonight using the latest 10/27 build, I
>>>>>>> discovered that applications containing ManyToOne, OneToMany
>>>>>>> relationships fail to load. OneToOne and ManyToMany seem OK.
>>>>>>>
>>>>>>> The same tests bundles successfully run using a 10/24 build.
>>>>>>>
>>>>>>>
>>>>>>> Shelly
>>>>>>>
>>>>>>>
>>>>>>> [#|2005-10-27T18:08:41.628-0400|WARNING|sun-appserver-pe9.0|javax.enterprise.system.core.classloading|_ThreadID=12;_ThreadName=
>>>>>>>
>>>>>>> SelectorThread-4848;|
>>>>>>> Exception Description: The attribute [orders] in entity class
>>>>>>> [class
>>>>>>> com.sun.ts.tests.ejb30.persistence.query.language.schema30
>>>>>>> .Customer] has a mappedBy value of [customer] which does not
>>>>>>> exist in
>>>>>>> its owning entity class [class com.sun.ts.tests.ejb30.persistence
>>>>>>> EmbeddableSuperclass, this is invalid, and your attribute should
>>>>>>> reference the correct subclass.
>>>>>>> Local Exception Stack:
>>>>>>> Exception [TOPLINK-7154] (Oracle TopLink Essentials - 10g release 4
>>>>>>> (10.1.4.0.0) (Build 051023Dev)): oracle.toplink.essentials.
>>>>>>> exceptions.ValidationException
>>>>>>> Exception Description: The attribute [orders] in entity class
>>>>>>> [class
>>>>>>> com.sun.ts.tests.ejb30.persistence.query.language.schema30
>>>>>>> Customer] has a mappedBy value of [customer] which does not
>>>>>>> exist in its
>>>>>>> owning entity class [class com.sun.ts.tests.ejb30.persistence
>>>>>>> EmbeddableSuperclass, this is invalid, and your attribute should
>>>>>>> reference the correct subclass.
>>>>>>> at
>>>>>>> oracle.toplink.essentials.exceptions.ValidationException.noMappedByAttributeFound(ValidationException.java:1020)
>>>>>>>
>>>>>>> at
>>>>>>> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.getOwnerMapping(EJBAnnotationsProcessor.java:
>>>>>>>
>>>>>>> 416)
>>>>>>> at
>>>>>>> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.getOwnerMappingForeignKeys(EJBAnnotationsProc
>>>>>>>
>>>>>>> esso
>>>>>>> r.java:428)
>>>>>>> at
>>>>>>> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processOneToMany(EJBAnnotationsProcessor.java
>>>>>>>
>>>>>>> :188
>>>>>>> 1)
>>>>>>> at
>>>>>>> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processRelationshipAccessor(EJBAnnotationsPro
>>>>>>>
>>>>>>> cess
>>>>>>> or.java:2224)
>>>>>>> at
>>>>>>> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processRelatedClass(EJBAnnotationsProcessor.j
>>>>>>>
>>>>>>> ava:
>>>>>>> 2195)
>>>>>>> at
>>>>>>> oracle.toplink.essentials.internal.annotations.EJBAnnotationsProcessor.processORAnnotations(EJBAnnotationsProcessor.
>>>>>>>
>>>>>>> java
>>>>>>> :1977)
>>>>>>> at
>>>>>>> oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:396)
>>>>>>>
>>>>>>> at
>>>>>>> oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFac
>>>>>>>
>>>>>>> tory
>>>>>>> Provider.java:133)
>>>>>>> at
>>>>>>> com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:170)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>