On Fri, Jun 15, 2012 at 11:17 AM, Waruna Ranasinghe <[email protected]> wrote:

> Hi Ajith,
>
> I could recall that someone from registry team upgraded the OpenJPA
> version for JUDDI from jpa version 1.x to 2.0.0, sometime back. was this
> sample executed successfully then? I think this should be fixed in JUDDI
> anyway and I can see that the solution is already proposed in the exception
> itself.
>
> It is also great if we can have some tests cases in the registry uddi
> component as well as integration tests.


+ 1


> I ran these tests before commit the version update from 2.0.0 to 2.2.0 and
> did not find any issues.


> Thanks,
> Waruna
>
>
> On Fri, Jun 15, 2012 at 2:32 AM, Ajith Vitharana <[email protected]> wrote:
>
>> Hi All,
>>
>> I'm getting the following error while running the JAXR sample with the
>> latest trunk build.
>> Is this a regression issue of latest updates in openjpa  ?
>>
>> Caused by: <openjpa-2.2.0-wso2v1-r128166:129108 nonfatal user error>
>> org.apache.openjpa.persistence.InvalidStateException: Encountered unmanaged
>> object "org.apache.juddi.model.BusinessEntity@6030db35" in life cycle
>> state  unmanaged while cascading persistence via field
>> "org.apache.juddi.model.BusinessService.businessEntity" during flush.
>> However, this field does not allow cascade persist. You cannot flush
>> unmanaged objects or graphs that have persistent associations to unmanaged
>> objects.
>>  Suggested actions: a) Set the cascade attribute for this field to
>> CascadeType.PERSIST or CascadeType.ALL (JPA annotations) or "persist" or
>> "all" (JPA orm.xml),
>>  b) enable cascade-persist globally,
>>  c) manually persist the related field value prior to flushing.
>>  d) if the reference belongs to another context, allow reference to it by
>> setting StoreContext.setAllowReferenceToSiblingContext().
>> FailedObject: org.apache.juddi.model.BusinessEntity@6030db35
>>     at
>> org.apache.openjpa.kernel.SingleFieldManager.preFlushPC(SingleFieldManager.java:786)
>>     at
>> org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:621)
>>     at
>> org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:589)
>>     at
>> org.apache.openjpa.kernel.SingleFieldManager.preFlush(SingleFieldManager.java:505)
>>     at
>> org.apache.openjpa.kernel.StateManagerImpl.preFlush(StateManagerImpl.java:2982)
>>     at org.apache.openjpa.kernel.PNewState.beforeFlush(PNewState.java:40)
>>     at
>> org.apache.openjpa.kernel.StateManagerImpl.beforeFlush(StateManagerImpl.java:1054)
>>     at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2112)
>>     at
>> org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:2072)
>>     at
>> org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1990)
>>     at
>> org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:81)
>>     at org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1514)
>>     at
>> org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:933)
>>     at
>> org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:570)
>>     at
>> org.apache.juddi.api.impl.UDDIPublicationImpl.saveService(UDDIPublicationImpl.java:539)
>>     ... 41 more
>>
>> Thanks
>> Ajith
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  [email protected]
>> Mobile : +94714631794
>>
>>
>>
>
>
> --
> -------------------------------------------------------------------------
> Waruna Ranasinghe
> Senior Software Engineer, WSO2
>
> Mobile: +94 724 318285
> BLOG: http://warunapw.blogspot.com
>
> www.wso2.com - "Lean . Enterprise . Middleware"
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to