[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Conflicting query

I have a web app that stopped working with the following error a few days ago. I can't see what might cause the error. I have confirmed that the query in the error message is not duplicated in queries.xml.

If I remove the query VstgJobScopeDescription.deleteAll I will get an identical error message but with another query. If I remove that one, again I get an identical error message with a third query etc etc...

Anyone got a clue??

Caused by: Exception [EclipseLink-7092] (Eclipse Persistence Services - 1.1.2.v20090612-r4475): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Cannot add a query whose types conflict with an existing query. Query To Be Added: [DeleteAllQuery(name="VstgJobScopeDescription.deleteAll" referenceClass=VstgJobScopeDescription jpql="DELETE FROM VstgJobScopeDescription")] is named: [VstgJobScopeDescription.deleteAll] with arguments [[]].The existing conflicting query: [DeleteAllQuery(name="VstgJobScopeDescription.deleteAll" referenceClass=VstgJobScopeDescription jpql="DELETE FROM VstgJobScopeDescription")] is named: [VstgJobScopeDescription.deleteAll] with arguments: [[]].
at org.eclipse.persistence.exceptions.ValidationException.existingQueryTypeConflict(ValidationException.java:878)
at org.eclipse.persistence.internal.sessions.AbstractSession.addQuery(AbstractSession.java:374)
at org.eclipse.persistence.internal.sessions.AbstractSession.addQuery(AbstractSession.java:346)
at org.eclipse.persistence.internal.sessions.AbstractSession.processJPAQueries(AbstractSession.java:1691)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:409)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:666)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:630)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:169)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:150)
at com.ford.vcc.menupricing.command.impl.importer.CheckMessageNotImportedCommand.execute(CheckMessageNotImportedCommand.java:28)
at com.ford.vcc.menupricing.command.AbstractCommandWrapper.execute(AbstractCommandWrapper.java:27)
at com.ford.vcc.menupricing.command.ConditionalChain.execute(ConditionalChain.java:104)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at com.ford.vcc.menupricing.command.ChainTraceDecorator.execute(ChainTraceDecorator.java:28)