[CDO] NPE in AbstractQueryIterator.close(AbstractQueryIterator.java:88) [message #1850111] |
Wed, 16 February 2022 13:43 |
Linuxhippy Mising name Messages: 72 Registered: July 2009 |
Member |
|
|
Hi,
We have a few places where we create a CDOQuery in the UIThread and pass it to some background threads where the actual query is performed (getResult() is called).
However, from time to time (rather seldom) we see Exceptions which should not be possible, like:
Exception in thread "Thread-548" java.lang.NullPointerException
at org.eclipse.emf.spi.cdo.AbstractQueryIterator.close(AbstractQueryIterator.java:88)
at org.eclipse.emf.internal.cdo.query.CDOQueryImpl.getResult(CDOQueryImpl.java:108)
at org.eclipse.emf.internal.cdo.query.CDOQueryImpl.getResult(CDOQueryImpl.java:116)
Therefore I wonder, is this use valid?
Thanks and best regards, Clemens
Some code to illustrate the issue:
CDOQuery query = cdoView.createQuery(SQLQueryHandler.QUERY_LANGUAGE, sql);
query.setParameter(SQLQueryHandler.CDO_OBJECT_QUERY, false);
new Thread() {
public void run() {
query.getResult();
}
}.start();
[Updated on: Wed, 16 February 2022 13:44] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03045 seconds