[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] EclipseLink 2.3.3-M1/2.4.0-RC1 & WebSphere 7.0.0.23

Lets see if we can get the 2.4 version running first.

We changed to a new JPQL parser. Try reverting to the old parser using persistence unit property:

eclipselink.jpql.parser=org.eclipse.persistence.queries.ANTLRQueryBuilder

-Tom

On 07/06/2012 11:49 AM, Nathan Drew wrote:
Hi,

I was testing upgrading WebSphere from 7.0.0.17 to 7.0.0.23 and was forced into
trying EclipseLink 2.4.0-RC1, we were on 2.3.3-M1. We do need to patch to this
level as it contains some official fixes for PMRs that we had open before.

The original error was that 2.3.3-M1 didn't like the Transaction Manager:

[6/7/12 12:05:32:626 UTC] 0000002a SystemOut O [EL Severe]: 2012-06-07
12:05:32.624--ServerSession(1169376691)--Local Exception Stack:

Exception [EclipseLink-23004] (Eclipse Persistence Services -
2.3.3.v20120111-r10668): org.eclipse.persistence.exceptions.TransactionException

Exception Description: Error obtaining the Transaction Manager

Internal Exception: java.lang.ClassCastException:
com.ibm.ws.tx.jta.TranManagerSet incompatible with
javax.transaction.TransactionManager

at
org.eclipse.persistence.exceptions.TransactionException.errorObtainingTransactionManager(TransactionException.java:125)

at
org.eclipse.persistence.transaction.JTATransactionController.<init>(JTATransactionController.java:69)

at
org.eclipse.persistence.transaction.was.WebSphereTransactionController.<init>(WebSphereTransactionController.java:43)

at java.lang.J9VMInternals.newInstanceImpl(Native Method)

at java.lang.Class.newInstance(Class.java:1345)

at
org.eclipse.persistence.internal.security.PrivilegedAccessHelper.newInstanceFromClass(PrivilegedAccessHelper.java:410)

at
org.eclipse.persistence.platform.server.ServerPlatformBase.initializeExternalTransactionController(ServerPlatformBase.java:284)

at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.preConnectDatasource(DatabaseSessionImpl.java:659)

at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:581)

at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206)

at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488)

at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)

at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277)

at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294)

at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:279)

at com.ibm.ws.jpa.management.JPAEMPool.getEntityManager(JPAEMPool.java:140)

at
com.ibm.ws.jpa.management.JPATxEntityManager.getEMInvocationInfo(JPATxEntityManager.java:248)

at
com.ibm.ws.jpa.management.JPATxEntityManager.getEMInvocationInfo(JPATxEntityManager.java:173)

at
com.ibm.ws.jpa.management.JPAEntityManager.createNamedQuery(JPAEntityManager.java:332)

at
biz.wss.server.services.local.system.ApplicationStateDAOEJB.getApplicationGlobalStateFromDb(ApplicationStateDAOEJB.java:175)

at
biz.wss.server.services.local.system.ApplicationStateDAOEJB.applicationStateFlaggedAsUpInDb(ApplicationStateDAOEJB.java:219)


So I tried 2.4.0-RC1 and it fails our unit tests and also fails on the server,
but seems to be fine with the Transaction Manager…

[EL Severe]: ejb: 2012-06-07 15:27:26.382--ServerSession(940667589)--Exception
[EclipseLink-0] (Eclipse Persistence Services - 2.4.0.v20120604-r11619):
org.eclipse.persistence.exceptions.JPQLException

[testng] Exception Description: Syntax error parsing [SELECT r FROM
RuleCondition r WHERE r.ruleType = :ruleType AND r.operator = :operator AND
(SELECT Count(rcc) FROM r.components rcc ) = :componentCount AND (SELECT
Count(rc2) FROM r.components rc2 WHERE rc2.componentId IN :componentIds) =
:componentCount].

[testng] [154, 252] The right expression is missing from the logical expression.

[testng] 2012-06-07 15:27:26,422 WARN
org.springframework.test.context.TestContextManager [main]
(TestContextManager.java:361) - Caught exception while allowing
TestExecutionListener
[org.springframework.test.context.transaction.TransactionalTestExecutionListener@47bb2cb]
to process 'before' execution of test method [public void
biz.wss.server.services.NamedQueryExeTest.checkNamedQueryNames() throws
java.lang.Exception] for test instance
[biz.wss.server.services.NamedQueryExeTest@ee51b2c]

[testng] org.springframework.transaction.CannotCreateTransactionException: Could
not open JPA EntityManager for transaction; nested exception is
javax.persistence.PersistenceException: Exception [EclipseLink-28019] (Eclipse
Persistence Services - 2.4.0.v20120604-r11619):
org.eclipse.persistence.exceptions.EntityManagerSetupException

[testng] Exception Description: Deployment of PersistenceUnit [WSSJPA] failed.
Close all factories for this PersistenceUnit.

[testng] Internal Exception: Exception [EclipseLink-0] (Eclipse Persistence
Services - 2.4.0.v20120604-r11619): org.eclipse.persistence.exceptions.JPQLException

*[testng] Exception Description: Syntax error parsing [SELECT r FROM
RuleCondition r WHERE r.ruleType = :ruleType AND r.operator = :operator AND
(SELECT Count(rcc) FROM r.components rcc ) = :componentCount AND (SELECT
Count(rc2) FROM r.components rc2 WHERE rc2.componentId IN :componentIds) =
:componentCount].*

*[testng] [154, 252] The right expression is missing from the logical expression.*

[testng] at
org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:382)
~[org.springframework.orm_3.0.5.RELEASE.jar:3.0.5.RELEASE]

[testng] at
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
~[org.springframework.transaction_3.0.5.RELEASE.jar:3.0.5.RELEASE]

[testng] at
org.springframework.test.context.transaction.TransactionalTestExecutionListener$TransactionContext.startTransaction(TransactionalTestExecutionListener.java:507)
~[org.springframework.test_3.0.5.RELEASE.jar:3.0.5.RELEASE]

[testng] at
org.springframework.test.context.transaction.TransactionalTestExecutionListener.startNewTransaction(TransactionalTestExecutionListener.java:269)
~[org.springframework.test_3.0.5.RELEASE.jar:3.0.5.RELEASE]

[testng] at
org.springframework.test.context.transaction.TransactionalTestExecutionListener.beforeTestMethod(TransactionalTestExecutionListener.java:162)
~[org.springframework.test_3.0.5.RELEASE.jar:3.0.5.RELEASE]

[testng] at
org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:358)
~[org.springframework.test_3.0.5.RELEASE.jar:3.0.5.RELEASE]

[testng] at
org.springframework.test.context.testng.AbstractTestNGSpringContextTests.springTestContextBeforeTestMethod(AbstractTestNGSpringContextTests.java:146)
[org.springframework.test_3.0.5.RELEASE.jar:3.0.5.RELEASE]

[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.6.0_31]

[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_31]

[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_31]

[testng] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_31]

[testng] at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:613)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) [testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.TestRunner.runWorkers(TestRunner.java:1125)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.TestRunner.privateRun(TestRunner.java:749)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.TestRunner.run(TestRunner.java:600)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:223)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.TestNG.runSuitesSequentially(TestNG.java:995)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:920)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.TestNG.run(TestNG.java:856)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.TestNG.privateMain(TestNG.java:1137)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] at org.testng.TestNG.main(TestNG.java:1101)
[testng-5.14.6.jar:5.14.6-201012231135]

[testng] Caused by: javax.persistence.PersistenceException: Exception
[EclipseLink-28019] (Eclipse Persistence Services - 2.4.0.v20120604-r11619):
org.eclipse.persistence.exceptions.EntityManagerSetupException

[testng] Exception Description: Deployment of PersistenceUnit [WSSJPA] failed.
Close all factories for this PersistenceUnit.

[testng] Internal Exception: Exception [EclipseLink-0] (Eclipse Persistence
Services - 2.4.0.v20120604-r11619): org.eclipse.persistence.exceptions.JPQLException

[testng] Exception Description: Syntax error parsing [SELECT r FROM
RuleCondition r WHERE r.ruleType = :ruleType AND r.operator = :operator AND
(SELECT Count(rcc) FROM r.components rcc ) = :componentCount AND (SELECT
Count(rc2) FROM r.components rc2 WHERE rc2.componentId IN :componentIds) =
:componentCount].

[testng] [154, 252] The right expression is missing from the logical expression.

[testng] at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createDeployFailedPersistenceException(EntityManagerSetupImpl.java:616)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:596)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:186)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:278)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:304)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:282)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:400)
~[org.springframework.orm_3.0.5.RELEASE.jar:3.0.5.RELEASE]

[testng] at
org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:321)
~[org.springframework.orm_3.0.5.RELEASE.jar:3.0.5.RELEASE]

[testng] ... 32 common frames omitted

[testng] Caused by: org.eclipse.persistence.exceptions.EntityManagerSetupException:

[testng] *Exception Description: Deployment of PersistenceUnit [WSSJPA] failed.
Close all factories for this PersistenceUnit.*

[testng] Internal Exception: Exception [EclipseLink-0] (Eclipse Persistence
Services - 2.4.0.v20120604-r11619): org.eclipse.persistence.exceptions.JPQLException

[testng] Exception Description: Syntax error parsing [SELECT r FROM
RuleCondition r WHERE r.ruleType = :ruleType AND r.operator = :operator AND
(SELECT Count(rcc) FROM r.components rcc ) = :componentCount AND (SELECT
Count(rc2) FROM r.components rc2 WHERE rc2.componentId IN :componentIds) =
:componentCount].

[testng] [154, 252] The right expression is missing from the logical expression.

[testng] at
org.eclipse.persistence.exceptions.EntityManagerSetupException.deployFailed(EntityManagerSetupException.java:229)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] ... 40 common frames omitted

[testng] Caused by: org.eclipse.persistence.exceptions.JPQLException:

[testng] Exception Description: Syntax error parsing [SELECT r FROM
RuleCondition r WHERE r.ruleType = :ruleType AND r.operator = :operator AND
(SELECT Count(rcc) FROM r.components rcc ) = :componentCount AND (SELECT
Count(rc2) FROM r.components rc2 WHERE rc2.componentId IN :componentIds) =
:componentCount].

[testng] [154, 252] The right expression is missing from the logical expression.

[testng] at
org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildException(HermesParser.java:150)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.jpql.HermesParser.validate(HermesParser.java:325)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.jpql.HermesParser.populateQueryImp(HermesParser.java:270)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildQuery(HermesParser.java:157)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:138)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.JPAQuery.processJPQLQuery(JPAQuery.java:108) ~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.JPAQuery.prepare(JPAQuery.java:92)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.queries.DatabaseQuery.checkPrepare(DatabaseQuery.java:614)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.queries.DatabaseQuery.checkPrepare(DatabaseQuery.java:575)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.sessions.AbstractSession.processJPAQueries(AbstractSession.java:2244)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:540)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:777)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:735)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:215)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:542)
~[Bedrock.libs.jpa.eclipselink.jar:na]

[testng] ... 38 common frames omitted

[testng] org.springframework.transaction.CannotCreateTransactionException: Could
not open JPA EntityManager for transaction; nested exception is
javax.persistence.PersistenceException: Exception [EclipseLink-28019] (Eclipse
Persistence Services - 2.4.0.v20120604-r11619):
org.eclipse.persistence.exceptions.EntityManagerSetupException

Any ideas?

Kind Regards

Nathan



_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users