The Weld guys are calling it a bug on their side. Unfortunately they're fixing it for 2.4 and above, so I'll update the docs with some clearer information about the work around.
https://issues.jboss.org/browse/WELD-2221 John On Sun, Aug 14, 2016 at 7:26 PM John D. Ament <[email protected]> wrote: > The warnings seem to be caused by a change I put in heading to 1.7.0 to > break down the large interface of EntityRepository into more components > (mostly to make it easier to leverages parts of it when using a Java 8 > based repository). For some reason, even though EntityRepository brings > the other two in, Weld didn't like it and wanted me to directly inherit > those interfaces. I've pinged the weld guys to see why. > > There's a fix in master, and I think you can work around it in your > repository by directly implementing the new interfaces > (EntityCountRepository, EntityPersistenceRepository). > > John > > > On Sun, Aug 14, 2016 at 5:38 PM John D. Ament <[email protected]> > wrote: > >> Just created: https://issues.apache.org/jira/browse/DELTASPIKE-1192 >> >> I just noticed this as well, and was going to ask my scrum team why >> increased the logs :-) >> >> John >> >> >> On Sun, Aug 14, 2016 at 3:23 AM <[email protected]> wrote: >> >>> Same here. It started from 1.7.0. Before was ok. >>> >>> Paweł >>> >>> >>> >>> Od: Rodrigo Tessarollo <[email protected]> >>> Do: [email protected] >>> Data: 2016-08-14 08:40 >>> Temat: Too many Warnings using deltaspike 1.7.1 >>> >>> >>> >>> Hi, I'm facing of a annoyning issue when using deltaspike on wildfly 10. >>> >>> The console outputs too many warning messages like this: >>> >>> 03:07:12,809 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-5) >>> WELD-001117: Member refresh >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1030b45 >>> ) >>> does not belong to the actual class hierarchy of the annotatedType >>> org.apache.deltaspike.data.api.AbstractEntityRepository >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeImpl@1b91ea9 >>> ) >>> at >>> >>> org.apache.deltaspike.data.api.EntityPersistenceRepository.refresh(EntityPersistenceRepository.java:0) >>> StackTrace: >>> 03:07:12,809 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-5) >>> WELD-001117: Member saveAndFlush >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1d249da >>> ) >>> does not belong to the actual class hierarchy of the annotatedType >>> org.apache.deltaspike.data.api.AbstractEntityRepository >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeImpl@1b91ea9 >>> ) >>> >>> N other wanings ... >>> >>> >>> The warnigs above is about the EntityPersistenceRepository, but the same >>> occurs on my own repositories too, look: >>> >>> >>> 03:14:48,475 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-2) >>> WELD-001117: Member attachAndRemove >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1859a46 >>> ) >>> does not belong to the actual class hierarchy of the annotatedType >>> myapp.atendimento.repository.UFRepository >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeImpl@aa0c91 >>> ) >>> at >>> >>> org.apache.deltaspike.data.api.EntityPersistenceRepository.attachAndRemove(EntityPersistenceRepository.java:0) >>> StackTrace: >>> 03:14:48,476 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-2) >>> WELD-001117: Member refresh >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1f7dc7f >>> ) >>> does not belong to the actual class hierarchy of the annotatedType >>> myapp.atendimento.repository.UFRepository >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeImpl@aa0c91 >>> ) >>> at >>> >>> org.apache.deltaspike.data.api.EntityPersistenceRepository.refresh(EntityPersistenceRepository.java:0) >>> StackTrace: >>> 03:14:48,477 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-2) >>> WELD-001117: Member remove >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1ce88c3 >>> ) >>> does not belong to the actual class hierarchy of the annotatedType >>> myapp.atendimento.repository.UFRepository >>> >>> (org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeImpl@aa0c91 >>> ) >>> at >>> >>> org.apache.deltaspike.data.api.EntityPersistenceRepository.remove(EntityPersistenceRepository.java:0) >>> >>> >>> My repositories looks like: >>> >>> @Repository >>> public abstract class UFRepository >>> extends AbstractEntityRepository<UF, String> { >>> } >>> >>> >>> if I change way of repository declaring (using interfaces instead >>> abstract >>> classes) the warning disapear, but in some situations I need to build a >>> query using the method body, in this cases, only abstract classes can do >>> this. >>> >>> @Repository >>> public interface UFRepository >>> extends EntityRepository<UF, String> { >>> } >>> >>> ^ This works great, but no method bodies to write sql. >>> >>> Can someone help me? Thanks and sorry for the poor english. ;D >>> >>>
