Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Jakarta Messaging (EE mode) tests #1495

Open
starksm64 opened this issue Aug 23, 2024 · 4 comments
Open

Refactor Jakarta Messaging (EE mode) tests #1495

starksm64 opened this issue Aug 23, 2024 · 4 comments
Assignees
Labels
11.0 Issues related to the Jakarta EE 11 Platform TCK release

Comments

@starksm64
Copy link
Contributor

No description provided.

@starksm64 starksm64 converted this from a draft issue Aug 23, 2024
@starksm64 starksm64 moved this to In progress in Jakarta EE11 TCK Release Aug 23, 2024
@starksm64 starksm64 self-assigned this Aug 23, 2024
starksm64 added a commit to starksm64/platform-tck that referenced this issue Aug 24, 2024
Related to jakartaee#1495

Signed-off-by: Scott M Stark <[email protected]>
starksm64 added a commit that referenced this issue Aug 26, 2024
* Initial jms refactor
Related to #1495

Signed-off-by: Scott M Stark <[email protected]>

* Fix the ear missing desciptors

Signed-off-by: Scott M Stark <[email protected]>

* Fix the jsp_vehicle.jsp import of the old javatest Status

Signed-off-by: Scott M Stark <[email protected]>

* Remove obsolete innerclasses in applcient tests

Signed-off-by: Scott M Stark <[email protected]>

---------

Signed-off-by: Scott M Stark <[email protected]>
@gurunrao gurunrao added the 11.0 Issues related to the Jakarta EE 11 Platform TCK release label Oct 4, 2024
@starksm64 starksm64 removed their assignment Oct 16, 2024
@alwin-joseph
Copy link
Contributor

alwin-joseph commented Oct 30, 2024

Current Status :

Total Tests : 3510 , Passing: 3318, Failed: 192

Appclient Tests :
https://ci.eclipse.org/jakartaee-tck/job/11/job/platform-tck/job/jms-platform-tck-appclient-run
[ERROR] Tests run: 1932, Failures: 0, Errors: 192, Skipped: 0
Logs : https://ci.eclipse.org/jakartaee-tck/job/11/job/platform-tck/job/jms-platform-tck-appclient-run/6/console

Failing Tests :
com.sun.ts.tests.jms.ee.ejb.sessionTtests.ClientTest.simpleSendReceiveT
com.sun.ts.tests.jms.ee.mdb.mdb_exceptQ.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_exceptT.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_msgHdrT.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_msgPropsQ.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_msgPropsT.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_msgTypesQ1.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_msgTypesQ2.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_msgTypesQ3.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_msgTypesT1.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_msgTypesT2.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_msgTypesT3.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_rec.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_sndQ.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_sndToQueue.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_sndToTopic.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.mdb_synchrec.ClientTest.*
com.sun.ts.tests.jms.ee.mdb.xa.ClientTest.*
com.sun.ts.tests.jms.ee20.cditests.ejbweb.ClientTest.*
com.sun.ts.tests.jms.ee20.cditests.mdb.ClientTest.*
com.sun.ts.tests.jms.ee20.cditests.usecases.ClientTest.*
com.sun.ts.tests.jms.ee20.ra.activationconfig.queue.selectorauto.annotated.ClientTest.test1
com.sun.ts.tests.jms.ee20.ra.activationconfig.queue.selectorauto.descriptor.ClientTest.test1
com.sun.ts.tests.jms.ee20.ra.activationconfig.queue.selectordups.annotated.ClientTest.test1
com.sun.ts.tests.jms.ee20.ra.activationconfig.queue.selectordups.descriptor.ClientTest.test1
com.sun.ts.tests.jms.ee20.ra.activationconfig.topic.noselnocidautodurable.annotated.ClientTest.test1
com.sun.ts.tests.jms.ee20.ra.activationconfig.topic.noselnocidautodurable.descriptor.ClientTest.test1
com.sun.ts.tests.jms.ee20.ra.activationconfig.topic.selectorautociddurable.annotated.ClientTest.test1
com.sun.ts.tests.jms.ee20.ra.activationconfig.topic.selectorautociddurable.descriptor.ClientTest.test1
com.sun.ts.tests.jms.ee20.ra.activationconfig.topic.selectordupsnondurable.annotated.ClientTest.test1
com.sun.ts.tests.jms.ee20.ra.activationconfig.topic.selectordupsnondurable.descriptor.ClientTest.test1
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.checkClientIDOnDurableConnFactoryTest
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.sendAndRecvQueueTestFromAppClient
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.sendAndRecvQueueTestFromJspClient
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.sendAndRecvTopicTestFromAppClient
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.sendAndRecvTopicTestFromJspClient
com.sun.ts.tests.jms.ee20.resourcedefs.descriptor.ClientAppclientTest.*

JavaTests:
https://ci.eclipse.org/jakartaee-tck/job/11/job/platform-tck/job/jms-platform-tck-javatest-run
[ERROR] Tests run: 1578, Failures: 0, Errors: 1, Skipped: 0
(The one test failed com/sun/ts/tests/jms/core20/jmscontexttopictests/ClientServletTest#createSharedDurableConsumerTest2. It passes when the suite is run individually.)

@alwin-joseph

This comment was marked as outdated.

@alwin-joseph
Copy link
Contributor

alwin-joseph commented Nov 20, 2024

com.sun.ts.tests.jms.ee20.cditests.ejbweb.ClientTest.*
com.sun.ts.tests.jms.ee20.cditests.mdb.ClientTest.*
com.sun.ts.tests.jms.ee20.cditests.usecases.ClientTest.*

Below is the exception for these failing tests:

com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=ejb/CDITestsEjbWebClntBean,Remote 3.x interface =com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF,ejb-link=null,lookup=,mappedName=,jndi-name=com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF,refType=Session into class com.sun.ts.tests.jms.ee20.cditests.ejbweb.Client: Lookup failed for java:comp/env/ejb/CDITestsEjbWebClntBean in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}]
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:530)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:362)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:165)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:160)
	at org.glassfish.appclient.client.acc.AppClientContainer$ClientMainClassSetting.getClientMainClass(AppClientContainer.java:514)
	at org.glassfish.appclient.client.acc.AppClientContainer.getMainMethod(AppClientContainer.java:425)
	at org.glassfish.appclient.client.acc.AppClientContainer.completePreparation(AppClientContainer.java:335)
	at org.glassfish.appclient.client.acc.AppClientContainer.prepare(AppClientContainer.java:254)
	at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:224)
	at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:60)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
Caused by: javax.naming.NamingException: Lookup failed for java:comp/env/ejb/CDITestsEjbWebClntBean in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}] [Root exception is javax.naming.NameNotFoundException: No object bound for java:comp/env/ejb/CDITestsEjbWebClntBean]
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:836)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:269)
	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:413)
	at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:565)
	at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:470)
	... 15 more
Caused by: javax.naming.NameNotFoundException: No object bound for java:comp/env/ejb/CDITestsEjbWebClntBean
	at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:135)
	at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:818)
	... 19 more
	Suppressed: javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=ejb/CDITestsEjbWebClntBean,Remote 3.x interface =com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF,ejb-link=null,lookup=,mappedName=,jndi-name=com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF,refType=Session' .  Actual (possibly internal) Remote JNDI name used for lookup is 'com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF#com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF' [Root exception is javax.naming.NamingException: Lookup failed for com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF#com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}] [Root exception is javax.naming.NameNotFoundException: com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF#com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF not found]]
		at com.sun.ejb.EjbNamingReferenceManagerImpl.resolveEjbReference(EjbNamingReferenceManagerImpl.java:159)
		at com.sun.enterprise.container.common.impl.ComponentEnvManagerImpl$EjbReferenceProxy.create(ComponentEnvManagerImpl.java:975)
		at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:621)
		at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:587)
		at com.sun.enterprise.naming.impl.JavaURLContext.lambda$lookup$0(JavaURLContext.java:153)
		at com.sun.enterprise.naming.impl.JavaURLContext.lookupOrCollectException(JavaURLContext.java:550)
		at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:153)
		... 20 more
	Caused by: javax.naming.NamingException: Lookup failed for com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF#com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}] [Root exception is javax.naming.NameNotFoundException: com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF#com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF not found]
		at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:836)
		at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:257)
		at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
		at com.sun.ejb.EjbNamingReferenceManagerImpl.resolveEjbReference(EjbNamingReferenceManagerImpl.java:154)
		... 26 more
	Caused by: javax.naming.NameNotFoundException: com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF#com.sun.ts.tests.jms.ee20.cditests.ejbweb.EjbClientIF not found
		at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:234)
		at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:202)
		at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:37)
		at com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:85)
		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.base/java.lang.reflect.Method.invoke(Method.java:568)
		at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:122)
		at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:152)
		at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:501)
		at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:172)
		at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1529)
		at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1405)
		at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:910)
		at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:192)
		at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:674)
		at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:476)
		at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2202)
		at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:476)
		at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:519)

Full logs :
cditests.log

@alwin-joseph
Copy link
Contributor

alwin-joseph commented Nov 25, 2024

Current Status :

#1674 should fix most of mdb test failures, if approved.

Pending Test failures:

CDI Tests (Total 25)
com.sun.ts.tests.jms.ee20.cditests.ejbweb.ClientTest.*
com.sun.ts.tests.jms.ee20.cditests.mdb.ClientTest.*
com.sun.ts.tests.jms.ee20.cditests.usecases.ClientTest.*

Optional tests (Total 8) :
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.checkClientIDOnDurableConnFactoryTest
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.sendAndRecvQueueTestFromAppClient
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.sendAndRecvQueueTestFromJspClient
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.sendAndRecvTopicTestFromAppClient
com.sun.ts.tests.jms.ee20.resourcedefs.annotations.ClientTest.sendAndRecvTopicTestFromJspClient
com.sun.ts.tests.jms.ee20.resourcedefs.descriptor.ClientAppclientTest.*

Below 2 are failing only when run after the corresponding test in other vehicle, passes when only its suite is run:

  • com.sun.ts.tests.jms.core20.jmscontexttopictests.ClientEjbTest.createSharedDurableConsumerTest2 (fails when ClientAppclientTest.createSharedDurableConsumerTest2 is run first, must be related to cleanup/setup)
  • com.sun.ts.tests.jms.core20.jmscontexttopictests.ClientServletTest.createSharedDurableConsumerTest2 (fails when ClientJspTest.createSharedDurableConsumerTest2 is run first, must be related to cleanup/setup)

@arjantijms arjantijms changed the title Refactor jms (EE mode) tests Refactor Jakarta Messaging (EE mode) tests Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11.0 Issues related to the Jakarta EE 11 Platform TCK release
Projects
Status: In progress
Development

No branches or pull requests

3 participants