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

DuplicateMemberException #39

Open
Halimegenc opened this issue Apr 11, 2023 · 1 comment
Open

DuplicateMemberException #39

Halimegenc opened this issue Apr 11, 2023 · 1 comment

Comments

@Halimegenc
Copy link

How to fix this issue?
DuplicateMemberException Method already exists

Stacktrace:
org.jboss.classfilewriter.ClassFile.addMethod(ClassFile.java:180)
org.jboss.classfilewriter.ClassFile.addMethod(ClassFile.java:195)
org.jboss.weld.bean.proxy.ProxyFactory.addMethodsFromClass(ProxyFactory.java:611)
org.jboss.weld.bean.proxy.ProxyFactory.addMethods(ProxyFactory.java:564)
org.jboss.weld.bean.proxy.ClientProxyFactory.addMethods(ClientProxyFactory.java:113)
org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:457)
org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:370)
org.jboss.weld.bean.proxy.ProxyFactory.run(ProxyFactory.java:331)
org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:323)
org.jboss.weld.bean.proxy.ClientProxyFactory.create(ClientProxyFactory.java:83)
org.jboss.weld.bean.proxy.ClientProxyProvider.createClientProxy(ClientProxyProvider.java:205)
org.jboss.weld.bean.proxy.ClientProxyProvider.createClientProxy(ClientProxyProvider.java:195)
org.jboss.weld.bean.proxy.ClientProxyProvider.access$
org.jboss.weld.bean.proxy.ClientProxyProvider$CreateClientProxy.apply(ClientProxyProvider.java:52)
org.jboss.weld.bean.proxy.ClientProxyProvider$CreateClientProxy.apply(ClientProxyProvider.java:48)
org.jboss.weld.util.cache.ReentrantMapBackedComputingCache.lambda$
org.jboss.weld.util.cache.ReentrantMapBackedComputingCache$$Lambda$.get
org.jboss.weld.util.LazyValueHolder$1.computeValue(LazyValueHolder.java:32)
org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:46)
org.jboss.weld.util.cache.ReentrantMapBackedComputingCache.getValue(ReentrantMapBackedComputingCache.java:72)
org.jboss.weld.util.cache.ReentrantMapBackedComputingCache.getCastValue(ReentrantMapBackedComputingCache.java:78)
org.jboss.weld.bean.proxy.ClientProxyProvider.getClientProxy(ClientProxyProvider.java:229)
org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:688)
org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:794)
org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92)
org.jboss.weld.util.Beans.injectBoundFields(Beans.java:336)
org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:347)
org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:69)
com.ibm.ws.cdi.impl.weld.injection.WebSphereInjectionServicesImpl$3.run(WebSphereInjectionServicesImpl.java:323)
com.ibm.ws.cdi.impl.weld.injection.WebSphereInjectionServicesImpl$3.run(WebSphereInjectionServicesImpl.java:320)
java.security.AccessController.doPrivileged(AccessController.java:678)
com.ibm.ws.cdi.impl.weld.injection.WebSphereInjectionServicesImpl.aroundInject(WebSphereInjectionServicesImpl.java:320)
org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)
org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:71)
org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:117)
org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:161)
org.jboss.weld.contexts.unbound.DependentContextImpl.get(DependentContextImpl.java:64)
org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:694)
org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:794)
org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92)

@manovotn
Copy link
Contributor

How to fix this issue?

How to reproduce this issue? Can you create a tiny reproducer? You could use Weld SE to avoid having to use Websphere (which I can see in the stacktrace).
What class/method hierarchy do you have to see such stacktrace?
Also, what Java version do you run?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants