User 9afd5de273
05-11-2013 13:30:07
Dear all,
I am running into a problem with the IJC database I am currently working with. In my form view, which combines several linked tables, I can query molecules based on their structure. No problems there. I can also query based on for example IC50 value, which also works fine.
However, if I query on both fields at the same time, I get the error below:
java.lang.NullPointerException
at com.im.df.impl.db.query2.BaseSelectBuilder.addJoinPath(BaseSelectBuilder.java:501)
at com.im.df.impl.db.query2.BaseSelectBuilder.addJoin(BaseSelectBuilder.java:546)
at com.im.df.impl.db.query2.BaseSelectBuilder.joinExistingTables(BaseSelectBuilder.java:693)
at com.im.df.impl.db.query2.BaseSelectBuilder.finish(BaseSelectBuilder.java:285)
at com.im.df.impl.db.query2.BaseSelectBuilder.getSelect(BaseSelectBuilder.java:327)
at com.im.df.impl.db.query2.QueryDefinitionBuilder.createStructureSearch2(QueryDefinitionBuilder.java:260)
at com.im.df.impl.db.query2.QueryDefinitionBuilder.compileSubQueries(QueryDefinitionBuilder.java:342)
at com.im.df.impl.db.query2.QueryDefinitionBuilder.build(QueryDefinitionBuilder.java:428)
at com.im.df.impl.db.DBSchemaDataProviderImpl.queryForValuesImpl(DBSchemaDataProviderImpl.java:442)
at com.im.df.impl.db.DBSchemaDataProviderImpl.queryForIds(DBSchemaDataProviderImpl.java:150)
at com.im.df.impl.db.DBSchemaDataProviderImpl.queryForIds(DBSchemaDataProviderImpl.java:138)
at com.im.df.impl.db.resultset.ResultSetImpl$2.executeQuery(ResultSetImpl.java:290)
at com.im.df.util.earlyresults.EarlyResultsBatcher.runQuery(EarlyResultsBatcher.java:40)
at com.im.df.impl.db.resultset.ResultSetImpl.applyQueryInternal(ResultSetImpl.java:295)
at com.im.df.impl.db.resultset.ResultSetImpl.applyWorkingQuery(ResultSetImpl.java:222)
at com.im.ijc.core.api.actions.ExecuteWorkingQueryAction.phase1(ExecuteWorkingQueryAction.java:52)
at com.im.ijc.core.api.actions.AbstractExecuteQueryAction$1.phase1InRequestProcessor(AbstractExecuteQueryAction.java:47)
at com.im.commons.progress.BackgroundRunner.processTheTask(BackgroundRunner.java:128)
at com.im.commons.progress.BackgroundRunner$1.run(BackgroundRunner.java:91)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
This only occurs if the criteria include a structure query. I can multiple other fields at the same time without trouble.
Any ideas what might be going on?
Many thanks,
Sander.