On 2016-08-15 18:00 (-0300), "John D. Ament" <[email protected]> wrote:
> Rodrigo,
>
> Could you paste your warnings?
>
> John
>
> On Mon, Aug 15, 2016 at 2:53 PM [email protected] <
> [email protected]> wrote:
>
> >
> >
> > On 2016-08-14 20:26 (-0300), "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
> > > >>
> > > >>
> > > The workaround fix works great, but EntityPersistenceRepository still
> > outputing warnings (as expected, since it is part of the detalspike lib).
> > I'll use this for now. Any news about the problem is welcome.
> > Many thanks guys.
> >
> >
>
-
Hi John,
Yes, I can.
Logs:
19:51:01,222 WARN [org.jboss.weld.Validator] (MSC service thread 1-3)
WELD-001478: Interceptor class
org.apache.deltaspike.core.impl.throttling.ThrottledInterceptor is enabled for
the application and for the bean archive
guardian-rest.war/WEB-INF/lib/deltaspike-core-impl-1.7.1.jar. It will only be
invoked in the @Priority part of the chain.
19:51:01,222 WARN [org.jboss.weld.Validator] (MSC service thread 1-3)
WELD-001478: Interceptor class
org.apache.deltaspike.core.impl.lock.LockedInterceptor is enabled for the
application and for the bean archive
guardian-rest.war/WEB-INF/lib/deltaspike-core-impl-1.7.1.jar. It will only be
invoked in the @Priority part of the chain.
19:51:01,222 WARN [org.jboss.weld.Validator] (MSC service thread 1-3)
WELD-001478: Interceptor class
org.apache.deltaspike.core.impl.future.FutureableInterceptor is enabled for the
application and for the bean archive
guardian-rest.war/WEB-INF/lib/deltaspike-core-impl-1.7.1.jar. It will only be
invoked in the @Priority part of the chain.
19:51:01,222 WARN [org.jboss.weld.Validator] (MSC service thread 1-3)
WELD-001478: Interceptor class
org.apache.deltaspike.proxy.util.EnableInterceptorsInterceptor is enabled for
the application and for the bean archive
guardian-rest.war/WEB-INF/lib/deltaspike-proxy-module-api-1.7.1.jar. It will
only be invoked in the @Priority part of the chain.
19:51:01,223 WARN [org.jboss.weld.Validator] (MSC service thread 1-3)
WELD-001478: Interceptor class
org.apache.deltaspike.jpa.impl.transaction.TransactionalInterceptor is enabled
for the application and for the bean archive
guardian-rest.war/WEB-INF/lib/deltaspike-jpa-module-impl-1.7.1.jar. It will
only be invoked in the @Priority part of the chain.
19:51:01,814 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member getPrimaryKey
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@e8c0c)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityPersistenceRepository.getPrimaryKey(EntityPersistenceRepository.java:0)
StackTrace:
19:51:01,815 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member removeAndFlush
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@aa796e)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityPersistenceRepository.removeAndFlush(EntityPersistenceRepository.java:0)
StackTrace:
19:51:01,815 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member saveAndFlush
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1bb53f3)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityPersistenceRepository.saveAndFlush(EntityPersistenceRepository.java:0)
StackTrace:
19:51:01,816 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member remove
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1f99233)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityPersistenceRepository.remove(EntityPersistenceRepository.java:0)
StackTrace:
19:51:01,816 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member save
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@14bbb14)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityPersistenceRepository.save(EntityPersistenceRepository.java:0)
StackTrace:
19:51:01,816 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member countLike
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@186a3a4)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityCountRepository.countLike(EntityCountRepository.java:0)
StackTrace:
19:51:01,817 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member count
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1922576)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityCountRepository.count(EntityCountRepository.java:0)
StackTrace:
19:51:01,817 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member count
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@6dd503)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityCountRepository.count(EntityCountRepository.java:0)
StackTrace:
19:51:01,818 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member saveAndFlushAndRefresh
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@19ee5aa)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityPersistenceRepository.saveAndFlushAndRefresh(EntityPersistenceRepository.java:0)
StackTrace:
19:51:01,819 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member attachAndRemove
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1fac183)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityPersistenceRepository.attachAndRemove(EntityPersistenceRepository.java:0)
StackTrace:
19:51:01,819 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member refresh
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@1d70dad)
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@35e06a)
at
org.apache.deltaspike.data.api.EntityPersistenceRepository.refresh(EntityPersistenceRepository.java:0)
StackTrace:
19:51:01,820 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3)
WELD-001117: Member flush
(org.apache.deltaspike.core.util.metadata.builder.AnnotatedMethodImpl@82535)
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@35e06a)
As I'll said, only ramain logs of
org.apache.deltaspike.data.api.AbstractEntityRepository after i'd implemented
the EntityCountRepository and EntityPersistenceRepository on my own abastract
repositories.
Now, my repositories looks like:
@Repository
public abstract class UFRepository
extends AbstractEntityRepository<UF, String>
implements EntityCountRepository<UF>,
EntityPersistenceRepository<UF, String> {
}
Many thanks. :D