Re: [VOTE] [RESULT] Release Apache DeltaSpike-1.9.5

2021-03-08 Thread Daniel Dias Dos Santos
Great :)

On Mon, Mar 8, 2021, 19:46 Mark Struberg  wrote:

> Hi folks!
>
> The VOTE did pass with the following
>
> +1: Daniel Dias, Romain, Thomas, Daniel Cunha, Mark
> +0 none
> -1 none
>
> txs to all who voted!
>
> LieGrue,
> strub
>
>
> > Am 05.03.2021 um 23:45 schrieb Mark Struberg  >:
> >
> > Hi Lords and Ladies!
> >
> > I'd like to call a VOTE for releasing Apache DeltaSpike-1.9.5
> >
> > The following tickets got closed:
> > Bug
> >
> > [DELTASPIKE-1314 ]
> - ContainerCtrlTckTest fails with tomee7-build-managed
> > [DELTASPIKE-1413 ]
> - dsrwid cookie should not be set to sameSite="None"
> > [DELTASPIKE-1416 ]
> - deltaspike-core-impl.jar does not contain the Main class to execute in
> your Manifest.MF to Crypto
> > [DELTASPIKE-1423 ]
> - JSF-2.3 managed() in FacesValidator and FacesConverter break CDI
> integration
> > Improvement
> >
> > [DELTASPIKE-1420 ]
> - Update ASM to 9.1
> >
> >
> > The staging repository is
> >
> https://repository.apache.org/content/repositories/orgapachedeltaspike-1056/
> <
> https://repository.apache.org/content/repositories/orgapachedeltaspike-1056/
> >
> >
> > The source zip can be found at
> >
> https://repository.apache.org/content/repositories/orgapachedeltaspike-1056/org/apache/deltaspike/deltaspike/1.9.5/
> <
> https://repository.apache.org/content/repositories/orgapachedeltaspike-1056/org/apache/deltaspike/deltaspike/1.9.5/
> >
> > sha1 is fa8779819026c86320959ffb7d1ce6546b6ad1e2
> >
> > Please VOTE
> >
> > [+1] yikes, go ship it!
> > [+0] meh, don't care
> > [-1] nah stop, there is a ${showstopper}
> >
> > The VOTE is open for 72h.
> >
> > LieGrue,
> > strub
> >
>
>


Re: [VOTE] [RESULT] Release Apache DeltaSpike-1.9.5

2021-03-08 Thread Mark Struberg
Hi folks!

The VOTE did pass with the following

+1: Daniel Dias, Romain, Thomas, Daniel Cunha, Mark
+0 none
-1 none

txs to all who voted!

LieGrue,
strub  


> Am 05.03.2021 um 23:45 schrieb Mark Struberg :
> 
> Hi Lords and Ladies!
> 
> I'd like to call a VOTE for releasing Apache DeltaSpike-1.9.5
> 
> The following tickets got closed:
> Bug
> 
> [DELTASPIKE-1314 ] - 
> ContainerCtrlTckTest fails with tomee7-build-managed
> [DELTASPIKE-1413 ] - 
> dsrwid cookie should not be set to sameSite="None"
> [DELTASPIKE-1416 ] - 
> deltaspike-core-impl.jar does not contain the Main class to execute in your 
> Manifest.MF to Crypto
> [DELTASPIKE-1423 ] - 
> JSF-2.3 managed() in FacesValidator and FacesConverter break CDI integration
> Improvement
> 
> [DELTASPIKE-1420 ] - 
> Update ASM to 9.1
> 
> 
> The staging repository is
> https://repository.apache.org/content/repositories/orgapachedeltaspike-1056/ 
> 
> 
> The source zip can be found at
> https://repository.apache.org/content/repositories/orgapachedeltaspike-1056/org/apache/deltaspike/deltaspike/1.9.5/
>  
> 
> sha1 is fa8779819026c86320959ffb7d1ce6546b6ad1e2
> 
> Please VOTE
> 
> [+1] yikes, go ship it!
> [+0] meh, don't care
> [-1] nah stop, there is a ${showstopper}
> 
> The VOTE is open for 72h.
> 
> LieGrue,
> strub
> 



[jira] [Commented] (DELTASPIKE-1424) BeanProvider.getContextualReference Failing After Upgrading to v1.9.2

2021-03-08 Thread Mark Struberg (Jira)


[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17297698#comment-17297698
 ] 

Mark Struberg commented on DELTASPIKE-1424:
---

Glad it worked! Regarding bug fix: you have to ask Wildfly guys to fix it, as 
it's not a bug in DeltaSpike.

A quick explanation: Long before CDI introduced CDI.current() we already had 
our BeanManagerProvider/BeanProvider couple (the later internally uses the 
former). This observes BeforeBeanDiscovery and also has an injection of 
BeanManager. This bm gets stored away in the Extension. This works very robust, 
but might create mem leaks in very seldom cases where some Containers (afair 
WLS) do not fire the BeforeShutdown for all ClassLoaders which got triggered 
with BeforeBeanDiscovery. That was the initial reason to switch to using 
{{CDI.current()}} via Reflection. This works perfectly fine in all WAR 
scenarios and many containers with EARs as well. But on some Containers this 
leads to a nasty bug as you did encounter yourself. Using this magic flag 
should do the trick though.

> BeanProvider.getContextualReference Failing After Upgrading to v1.9.2
> -
>
> Key: DELTASPIKE-1424
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1424
> Project: DeltaSpike
>  Issue Type: Bug
>  Security Level: public(Regular issues) 
>  Components: Core
>Affects Versions: 1.9.2, 1.9.3, 1.9.4
> Environment: Ubuntu 18.04
> Java 1.8
> Jboss Wildfly 18.0.1
>Reporter: Patrick Buchheit
>Priority: Major
>
> I have been using deltaspike successfully to do injection of my entity 
> manager into a non-bean class. Recently, I decided to upgrade from version 
> 1.5.1 to the current version 1.9.4 to get access to variables in the 
> apache-deltaspike.properties file. As soon as I made the change, I started 
> seeing errors like this:
>  
> {code:java}
> Caused by: java.lang.IllegalStateException: Could not find beans for 
> Type=interface javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()]Caused
>  by: java.lang.IllegalStateException: Could not find beans for Type=interface 
> javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()] at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:154)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:121)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:100)
>  at 
> com.tura.product.service.test.Test.testUploadFrameImages(Test.java:9702){code}
>  
> Nothing in my code has changed; the only alteration I have made is to change 
> the deltaspike version in my pom. Just to make sure, I tried rolling back to 
> an earlier version of deltaspike. Versions 1.9.1 and earlier all work fine. 
> As soon as I change to 1.9.2 or earlier I get an error. I couldn't find 
> anything in the patch notes indicating changes I would need to make to 
> migrate to a newer version. Is this a bug, or is there some change I need to 
> make to my code to make it compatible again?
>  
> Some code snippets:
>  
> *entity manager lookup-*
> {code:java}
> EntityManager entityManager = 
> BeanProvider.getContextualReference(EntityManager.class, new 
> EntityManagerQualifierLiteral());{code}
>  
> *Producer Bean*
>  
> {code:java}
> @Alternative
> public class TestCDIModule
> {
> @PersistenceContext(unitName = "TestProductPersistenceUnit")
> private EntityManager entityManager;
>  
> @Produces
> @EntityManagerQualifier
> public EntityManager getEntityManager()
> {
> return this.entityManager;
> }
> }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Resolved] (DELTASPIKE-1424) BeanProvider.getContextualReference Failing After Upgrading to v1.9.2

2021-03-08 Thread Mark Struberg (Jira)


 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Struberg resolved DELTASPIKE-1424.
---
  Assignee: Mark Struberg
Resolution: Not A Bug

> BeanProvider.getContextualReference Failing After Upgrading to v1.9.2
> -
>
> Key: DELTASPIKE-1424
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1424
> Project: DeltaSpike
>  Issue Type: Bug
>  Security Level: public(Regular issues) 
>  Components: Core
>Affects Versions: 1.9.2, 1.9.3, 1.9.4
> Environment: Ubuntu 18.04
> Java 1.8
> Jboss Wildfly 18.0.1
>Reporter: Patrick Buchheit
>Assignee: Mark Struberg
>Priority: Major
>
> I have been using deltaspike successfully to do injection of my entity 
> manager into a non-bean class. Recently, I decided to upgrade from version 
> 1.5.1 to the current version 1.9.4 to get access to variables in the 
> apache-deltaspike.properties file. As soon as I made the change, I started 
> seeing errors like this:
>  
> {code:java}
> Caused by: java.lang.IllegalStateException: Could not find beans for 
> Type=interface javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()]Caused
>  by: java.lang.IllegalStateException: Could not find beans for Type=interface 
> javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()] at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:154)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:121)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:100)
>  at 
> com.tura.product.service.test.Test.testUploadFrameImages(Test.java:9702){code}
>  
> Nothing in my code has changed; the only alteration I have made is to change 
> the deltaspike version in my pom. Just to make sure, I tried rolling back to 
> an earlier version of deltaspike. Versions 1.9.1 and earlier all work fine. 
> As soon as I change to 1.9.2 or earlier I get an error. I couldn't find 
> anything in the patch notes indicating changes I would need to make to 
> migrate to a newer version. Is this a bug, or is there some change I need to 
> make to my code to make it compatible again?
>  
> Some code snippets:
>  
> *entity manager lookup-*
> {code:java}
> EntityManager entityManager = 
> BeanProvider.getContextualReference(EntityManager.class, new 
> EntityManagerQualifierLiteral());{code}
>  
> *Producer Bean*
>  
> {code:java}
> @Alternative
> public class TestCDIModule
> {
> @PersistenceContext(unitName = "TestProductPersistenceUnit")
> private EntityManager entityManager;
>  
> @Produces
> @EntityManagerQualifier
> public EntityManager getEntityManager()
> {
> return this.entityManager;
> }
> }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (DELTASPIKE-1424) BeanProvider.getContextualReference Failing After Upgrading to v1.9.2

2021-03-08 Thread Patrick Buchheit (Jira)


[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17297667#comment-17297667
 ] 

Patrick Buchheit commented on DELTASPIKE-1424:
--

That seems to work. Are there plans to fix this in the future?

> BeanProvider.getContextualReference Failing After Upgrading to v1.9.2
> -
>
> Key: DELTASPIKE-1424
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1424
> Project: DeltaSpike
>  Issue Type: Bug
>  Security Level: public(Regular issues) 
>  Components: Core
>Affects Versions: 1.9.2, 1.9.3, 1.9.4
> Environment: Ubuntu 18.04
> Java 1.8
> Jboss Wildfly 18.0.1
>Reporter: Patrick Buchheit
>Priority: Major
>
> I have been using deltaspike successfully to do injection of my entity 
> manager into a non-bean class. Recently, I decided to upgrade from version 
> 1.5.1 to the current version 1.9.4 to get access to variables in the 
> apache-deltaspike.properties file. As soon as I made the change, I started 
> seeing errors like this:
>  
> {code:java}
> Caused by: java.lang.IllegalStateException: Could not find beans for 
> Type=interface javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()]Caused
>  by: java.lang.IllegalStateException: Could not find beans for Type=interface 
> javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()] at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:154)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:121)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:100)
>  at 
> com.tura.product.service.test.Test.testUploadFrameImages(Test.java:9702){code}
>  
> Nothing in my code has changed; the only alteration I have made is to change 
> the deltaspike version in my pom. Just to make sure, I tried rolling back to 
> an earlier version of deltaspike. Versions 1.9.1 and earlier all work fine. 
> As soon as I change to 1.9.2 or earlier I get an error. I couldn't find 
> anything in the patch notes indicating changes I would need to make to 
> migrate to a newer version. Is this a bug, or is there some change I need to 
> make to my code to make it compatible again?
>  
> Some code snippets:
>  
> *entity manager lookup-*
> {code:java}
> EntityManager entityManager = 
> BeanProvider.getContextualReference(EntityManager.class, new 
> EntityManagerQualifierLiteral());{code}
>  
> *Producer Bean*
>  
> {code:java}
> @Alternative
> public class TestCDIModule
> {
> @PersistenceContext(unitName = "TestProductPersistenceUnit")
> private EntityManager entityManager;
>  
> @Produces
> @EntityManagerQualifier
> public EntityManager getEntityManager()
> {
> return this.entityManager;
> }
> }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


Re: [VOTE] Release Apache DeltaSpike-1.9.5

2021-03-08 Thread Mark Struberg
And my own +1


LieGrue,
strub

> Am 05.03.2021 um 23:45 schrieb Mark Struberg :
> 
> Hi Lords and Ladies!
> 
> I'd like to call a VOTE for releasing Apache DeltaSpike-1.9.5
> 
> The following tickets got closed:
> Bug
> 
> [DELTASPIKE-1314 ] - 
> ContainerCtrlTckTest fails with tomee7-build-managed
> [DELTASPIKE-1413 ] - 
> dsrwid cookie should not be set to sameSite="None"
> [DELTASPIKE-1416 ] - 
> deltaspike-core-impl.jar does not contain the Main class to execute in your 
> Manifest.MF to Crypto
> [DELTASPIKE-1423 ] - 
> JSF-2.3 managed() in FacesValidator and FacesConverter break CDI integration
> Improvement
> 
> [DELTASPIKE-1420 ] - 
> Update ASM to 9.1
> 
> 
> The staging repository is
> https://repository.apache.org/content/repositories/orgapachedeltaspike-1056/ 
> 
> 
> The source zip can be found at
> https://repository.apache.org/content/repositories/orgapachedeltaspike-1056/org/apache/deltaspike/deltaspike/1.9.5/
>  
> 
> sha1 is fa8779819026c86320959ffb7d1ce6546b6ad1e2
> 
> Please VOTE
> 
> [+1] yikes, go ship it!
> [+0] meh, don't care
> [-1] nah stop, there is a ${showstopper}
> 
> The VOTE is open for 72h.
> 
> LieGrue,
> strub
> 



[jira] [Commented] (DELTASPIKE-1424) BeanProvider.getContextualReference Failing After Upgrading to v1.9.2

2021-03-08 Thread Mark Struberg (Jira)


[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17297492#comment-17297492
 ] 

Mark Struberg commented on DELTASPIKE-1424:
---

+1 Do you have an EAR scenario? In which case it is a known bug in some newer 
Containers. Using the option Thomas mentioned switches back to the old CDI-1.0 
mechanism we still have around in DeltaSpike.

> BeanProvider.getContextualReference Failing After Upgrading to v1.9.2
> -
>
> Key: DELTASPIKE-1424
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1424
> Project: DeltaSpike
>  Issue Type: Bug
>  Security Level: public(Regular issues) 
>  Components: Core
>Affects Versions: 1.9.2, 1.9.3, 1.9.4
> Environment: Ubuntu 18.04
> Java 1.8
> Jboss Wildfly 18.0.1
>Reporter: Patrick Buchheit
>Priority: Major
>
> I have been using deltaspike successfully to do injection of my entity 
> manager into a non-bean class. Recently, I decided to upgrade from version 
> 1.5.1 to the current version 1.9.4 to get access to variables in the 
> apache-deltaspike.properties file. As soon as I made the change, I started 
> seeing errors like this:
>  
> {code:java}
> Caused by: java.lang.IllegalStateException: Could not find beans for 
> Type=interface javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()]Caused
>  by: java.lang.IllegalStateException: Could not find beans for Type=interface 
> javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()] at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:154)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:121)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:100)
>  at 
> com.tura.product.service.test.Test.testUploadFrameImages(Test.java:9702){code}
>  
> Nothing in my code has changed; the only alteration I have made is to change 
> the deltaspike version in my pom. Just to make sure, I tried rolling back to 
> an earlier version of deltaspike. Versions 1.9.1 and earlier all work fine. 
> As soon as I change to 1.9.2 or earlier I get an error. I couldn't find 
> anything in the patch notes indicating changes I would need to make to 
> migrate to a newer version. Is this a bug, or is there some change I need to 
> make to my code to make it compatible again?
>  
> Some code snippets:
>  
> *entity manager lookup-*
> {code:java}
> EntityManager entityManager = 
> BeanProvider.getContextualReference(EntityManager.class, new 
> EntityManagerQualifierLiteral());{code}
>  
> *Producer Bean*
>  
> {code:java}
> @Alternative
> public class TestCDIModule
> {
> @PersistenceContext(unitName = "TestProductPersistenceUnit")
> private EntityManager entityManager;
>  
> @Produces
> @EntityManagerQualifier
> public EntityManager getEntityManager()
> {
> return this.entityManager;
> }
> }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (DELTASPIKE-1424) BeanProvider.getContextualReference Failing After Upgrading to v1.9.2

2021-03-08 Thread Thomas Andraschko (Jira)


[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17297464#comment-17297464
 ] 

Thomas Andraschko commented on DELTASPIKE-1424:
---

can you set deltaspike.bean-manager.delegate_lookup = false?

probably this issue: https://issues.apache.org/jira/browse/DELTASPIKE-1398

> BeanProvider.getContextualReference Failing After Upgrading to v1.9.2
> -
>
> Key: DELTASPIKE-1424
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1424
> Project: DeltaSpike
>  Issue Type: Bug
>  Security Level: public(Regular issues) 
>  Components: Core
>Affects Versions: 1.9.2, 1.9.3, 1.9.4
> Environment: Ubuntu 18.04
> Java 1.8
> Jboss Wildfly 18.0.1
>Reporter: Patrick Buchheit
>Priority: Major
>
> I have been using deltaspike successfully to do injection of my entity 
> manager into a non-bean class. Recently, I decided to upgrade from version 
> 1.5.1 to the current version 1.9.4 to get access to variables in the 
> apache-deltaspike.properties file. As soon as I made the change, I started 
> seeing errors like this:
>  
> {code:java}
> Caused by: java.lang.IllegalStateException: Could not find beans for 
> Type=interface javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()]Caused
>  by: java.lang.IllegalStateException: Could not find beans for Type=interface 
> javax.persistence.EntityManager and 
> qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()] at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:154)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:121)
>  at 
> org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:100)
>  at 
> com.tura.product.service.test.Test.testUploadFrameImages(Test.java:9702){code}
>  
> Nothing in my code has changed; the only alteration I have made is to change 
> the deltaspike version in my pom. Just to make sure, I tried rolling back to 
> an earlier version of deltaspike. Versions 1.9.1 and earlier all work fine. 
> As soon as I change to 1.9.2 or earlier I get an error. I couldn't find 
> anything in the patch notes indicating changes I would need to make to 
> migrate to a newer version. Is this a bug, or is there some change I need to 
> make to my code to make it compatible again?
>  
> Some code snippets:
>  
> *entity manager lookup-*
> {code:java}
> EntityManager entityManager = 
> BeanProvider.getContextualReference(EntityManager.class, new 
> EntityManagerQualifierLiteral());{code}
>  
> *Producer Bean*
>  
> {code:java}
> @Alternative
> public class TestCDIModule
> {
> @PersistenceContext(unitName = "TestProductPersistenceUnit")
> private EntityManager entityManager;
>  
> @Produces
> @EntityManagerQualifier
> public EntityManager getEntityManager()
> {
> return this.entityManager;
> }
> }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (DELTASPIKE-1424) BeanProvider.getContextualReference Failing After Upgrading to v1.9.2

2021-03-08 Thread Patrick Buchheit (Jira)
Patrick Buchheit created DELTASPIKE-1424:


 Summary: BeanProvider.getContextualReference Failing After 
Upgrading to v1.9.2
 Key: DELTASPIKE-1424
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1424
 Project: DeltaSpike
  Issue Type: Bug
  Security Level: public (Regular issues)
  Components: Core
Affects Versions: 1.9.4, 1.9.3, 1.9.2
 Environment: Ubuntu 18.04
Java 1.8
Jboss Wildfly 18.0.1
Reporter: Patrick Buchheit


I have been using deltaspike successfully to do injection of my entity manager 
into a non-bean class. Recently, I decided to upgrade from version 1.5.1 to the 
current version 1.9.4 to get access to variables in the 
apache-deltaspike.properties file. As soon as I made the change, I started 
seeing errors like this:

 
{code:java}
Caused by: java.lang.IllegalStateException: Could not find beans for 
Type=interface javax.persistence.EntityManager and 
qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()]Caused 
by: java.lang.IllegalStateException: Could not find beans for Type=interface 
javax.persistence.EntityManager and 
qualifiers:[@com.tura.common.service.qualifier.EntityManagerQualifier()] at 
org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:154)
 at 
org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:121)
 at 
org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:100)
 at 
com.tura.product.service.test.Test.testUploadFrameImages(Test.java:9702){code}
 

Nothing in my code has changed; the only alteration I have made is to change 
the deltaspike version in my pom. Just to make sure, I tried rolling back to an 
earlier version of deltaspike. Versions 1.9.1 and earlier all work fine. As 
soon as I change to 1.9.2 or earlier I get an error. I couldn't find anything 
in the patch notes indicating changes I would need to make to migrate to a 
newer version. Is this a bug, or is there some change I need to make to my code 
to make it compatible again?

 

Some code snippets:

 

*entity manager lookup-*
{code:java}
EntityManager entityManager = 
BeanProvider.getContextualReference(EntityManager.class, new 
EntityManagerQualifierLiteral());{code}
 

*Producer Bean*

 
{code:java}
@Alternative
public class TestCDIModule
{
@PersistenceContext(unitName = "TestProductPersistenceUnit")
private EntityManager entityManager;
 
@Produces
@EntityManagerQualifier
public EntityManager getEntityManager()
{
return this.entityManager;
}
}
{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)