Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdi-dev] Question about NullPointerException in CDI TCK BeanLookupUtils.java and arquillian test enricher
  • From: Anil Kedia <anil.kedia@xxxxxxxxxx>
  • Date: Wed, 27 Sep 2023 14:13:57 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=f5WnAug6VhaVyICbnmC0PKPhgRwodpQN4FptFDUTA7Y=; b=EDv/GmEIaQ4EsRRxXsllduhaLbstuIom30zUB/Umam5qB3TeGsUNh4wuhvHlgMHovtf+cslcBFprCLAZ09ZZFdx1pcS8HqLh4ERZoY+Nh8vV5T6yAVfEl1HQBTy/G4leY7/4juUVTY9zbr6OphxPjTO+Ld4ffxD1PxempBIabhRVcg6dVi8zRn5A1oS9DsRq6BAhRLspe+EyBHlsFF+n/euC87mWGqDp283fInqlbu/XRyCvwOA6pe9gpx7fszUE65q9P3WnekS0mvbgA4/U0Bdoykip/x+QFRc6VABopVe1RoWNU7YixvKrv42J4x93s5M+wII5vneEX7Cv096aWw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FXUZCetP35G1jCbkC62OyfdaGkCjnpVLSilwosOfICn6c/dmASo+U5j5RsgQ+ELuERA9uV2Oke5MXwk7bc2YEr0V24MQOM9PZ25d15n7++1DSHuxjbgkhT3Du2w4qg+BmEmeOv5CpqbdNrNIcL14+rpupWlupgq3NNYzR+SJY6OIDVejpVs0ugqSbV8r0xmB3phZWTL/RBpUA8Sb1DyPEoNMmZ5T69Q2VNgvNypcFMzk6YUV4ggNGi8BRsO6sGgNYYjYtG0aZGjh6ub2XMLl5yED0bpPM88FVDhJg8RW7yjMv/XyGMUVam06ElwyHqpWZD2DZ0ffdyicGZDTFKPwVA==
  • Delivered-to: cdi-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdi-dev/>
  • List-help: <mailto:cdi-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdi-dev>, <mailto:cdi-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdi-dev>, <mailto:cdi-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHZ8UtNUab+PNcA3kKRphOaruFaIrAutwxT
  • Thread-topic: Question about NullPointerException in CDI TCK BeanLookupUtils.java and arquillian test enricher

Hi,

I work on the WebLogic server team and currently working on getting the CDI TCK 3.0.3 to work with a Jakarta EE9 compliant release of the WebLogic server. We are using CDI TCK 3.0.3 and seeing below “java.lang.NullPointerException”. The BeanManager is null, I checked everything and don’t see anything obvious.

 

My understanding is that CDI TCK 3.0.3 maps to Jakarta EE9 release. It uses “org.jboss.arquillian: arquillian-parent” version “1.7.0.Alpha10” and some of the classes in this version such as use “javax.*” packages instead of “jakarta.*” (e. g. CDIExtension.java in org.jboss.arquillian.testenricher.cdi.container package). I’m not sure if that will cause any issues or not.

 

Any ideas why the following NullPointerException might happen and if the CDI TCK 3.0.3 is jakarta EE9 compliant?

 

java.lang.NullPointerException

                at org.jboss.cdi.tck.util.BeanLookupUtils.getBeans(BeanLookupUtils.java:88)

                at org.jboss.cdi.tck.util.BeanLookupUtils.getContextualReference(BeanLookupUtils.java:51)

                at org.jboss.cdi.tck.AbstractTest.getContextualReference(AbstractTest.java:152)

                at org.jboss.cdi.tck.interceptors.tests.contract.invocationContext.InvocationContextTest.testGetTimerMethod(InvocationContextTest.java:60)

                at org.jboss.arquillian.testng.Arquillian$3.invoke(Arquillian.java:146)

                at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:57)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)

                at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)

 

Thanks

Anil


Back to the top