deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kettil, Mattias" <mattias.ket...@cgi.com>
Subject Spurious NullPointerException in DelegateQueryBuilder
Date Fri, 17 Jun 2016 12:01:53 GMT
Hello,

We have an application that uses Deltaspike 1.6.1 on TomEE 1.7.1 with EclipseLink 2.6.2. Java
version is 1.8.0_74.

During a batch operation (BatchEE 0.3-incubating) using 32 threads we sometimes get the following
exception:

java.lang.NullPointerException
                             at org.apache.deltaspike.data.impl.builder.DelegateQueryBuilder.selectDelegate(DelegateQueryBuilder.java:79)
                             at org.apache.deltaspike.data.impl.builder.DelegateQueryBuilder.execute(DelegateQueryBuilder.java:52)
                             at org.apache.deltaspike.data.impl.builder.QueryBuilder.executeQuery(QueryBuilder.java:59)
                             at org.apache.deltaspike.data.impl.tx.TransactionalQueryRunner$1.proceed(TransactionalQueryRunner.java:77)
                             at org.apache.deltaspike.jpa.impl.transaction.ResourceLocalTransactionStrategy.execute(ResourceLocalTransactionStrategy.java:133)
                             at org.apache.deltaspike.data.impl.tx.TransactionalQueryRunner.executeTransactional(TransactionalQueryRunner.java:72)
                             at org.apache.deltaspike.data.impl.tx.TransactionalQueryRunner.executeQuery(TransactionalQueryRunner.java:54)
                             at org.apache.deltaspike.data.impl.tx.TransactionalQueryRunner$$OwbNormalScopeProxy0.executeQuery(org/apache/deltaspike/data/impl/tx/TransactionalQueryRunner.java)
                             at org.apache.deltaspike.data.impl.handler.QueryHandler.process(QueryHandler.java:147)
                             at org.apache.deltaspike.data.impl.handler.QueryHandler.invoke(QueryHandler.java:129)
                             at org.apache.deltaspike.data.impl.handler.QueryHandler$$OwbNormalScopeProxy0.invoke(org/apache/deltaspike/data/impl/handler/QueryHandler.java)
                             at org.apache.deltaspike.proxy.impl.invocation.DelegateManualInvocationHandler.proceedOriginal(DelegateManualInvocationHandler.java:46)
                             at org.apache.deltaspike.proxy.impl.invocation.AbstractManualInvocationHandler.invoke(AbstractManualInvocationHandler.java:63)
                             at org.apache.deltaspike.proxy.impl.invocation.DelegateManualInvocationHandler.staticInvoke(DelegateManualInvocationHandler.java:39)
                             at se.company.OurRepository$$DSPartialBeanProxy.save(Unknown
Source)...

Our repository class is defined like this:
@Repository
@ApplicationScoped
public interface OurRepository extends EntityRepository<OurEntity, Long> {
...
}

And is called from a @Stateless bean.

The entity itself is not null, since when we tried that in a unit test we got a different
exception.
The stacktrace suggests that the bean manager instance is null, but we have no idea how that
can be. Are we missing something here? Do you have any idea how this exception can arise?

Best regards,
Mattias Kettil

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message