Hi,

Can you send the output of running 'java
org.apache.openjpa.conf.OpenJPAVersion'?

I suspect that the error has something to do with recent changes that we
made to how OpenJPA integrates with WebSphere application servers.

Note that the SynchronizeMappings property and registerSynchronization
call just happen to both use the word 'synchronize'. It is possible that
setting one would have an impact on the other, but the settings are not
directly related.

-Patrick

-- 
Patrick Linskey
BEA Systems, Inc. 

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it. 

> -----Original Message-----
> From: Ritika Maheshwari [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 15, 2006 11:59 AM
> To: open-jpa-dev
> Subject: InvalidStateException
> 
> Hi,
>        I changed my persistence.xml to comment out Synchronization
> 
> <!-- <property name="openjpa.jdbc.SynchronizeMappings"
> 
> value="buildSchema(ForeignKeys=true)"/> -->
> 
> 
> 
> Then I started getting following error
> 
> R Caused by: <4|false|0.9.6-incubating-SNAPSHOT>
> org.apache.openjpa.persistence.InvalidStateException: An error occured
> reflecting WebSphere proprietary interfaces. Please ensure 
> that you are
> running the application from within WebSphere Application 
> Server (version
> 5.0.2 or newer).
> 
> at
> org.apache.openjpa.ee.WASManagedRuntime$WASTransaction.registe
rSynchronization
> (WASManagedRuntime.java:134)
> 
> at
> org.apache.openjpa.kernel.AbstractBrokerFactory.syncWithManage
> dTransaction(
> AbstractBrokerFactory.java:613)
> 
> at 
> org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:292)
> 
> at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(
> AbstractBrokerFactory.java:165)
> 
> at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(
> DelegatingBrokerFactory.java:139)
> 
> at
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.create
> EntityManager(
> EntityManagerFactoryImpl.java:187)
> 
> at
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.create
> EntityManager(
> EntityManagerFactoryImpl.java:140)
> 
> at
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.create
> EntityManager(
> EntityManagerFactoryImpl.java:52)
> 
> at helpers.ClientEJB.<init>(Unknown Source)
> 
> 
> 
> Now even though I uncomment the Synchronization setting in my
> persistence.xml I am still getting InvalidStateException.Any 
> suggestions
> what to do? I am running within Websphere 6.1.
> 
> 
> 
> ritika
> 

Reply via email to