some improved error logging for NIHVIVO-1917
This commit is contained in:
parent
6d696a95c0
commit
47615a5289
1 changed files with 15 additions and 11 deletions
|
@ -360,7 +360,9 @@ public class IndividualSDB extends IndividualImpl implements Individual {
|
||||||
portalSet+=",";
|
portalSet+=",";
|
||||||
}
|
}
|
||||||
portalSet+=Integer.toString(portalNumber);
|
portalSet+=Integer.toString(portalNumber);
|
||||||
} catch (Exception e) {}
|
} catch (Exception e) {
|
||||||
|
log.error(e,e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}finally{
|
}finally{
|
||||||
|
@ -418,7 +420,9 @@ public class IndividualSDB extends IndividualImpl implements Individual {
|
||||||
flagSet+=",";
|
flagSet+=",";
|
||||||
}
|
}
|
||||||
flagSet+=flagValue;
|
flagSet+=flagValue;
|
||||||
} catch (Exception e) {}
|
} catch (Exception e) {
|
||||||
|
log.error(e,e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}finally{
|
}finally{
|
||||||
|
@ -583,7 +587,9 @@ public class IndividualSDB extends IndividualImpl implements Individual {
|
||||||
preferredClass.getName();
|
preferredClass.getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {}
|
} catch (Exception e) {
|
||||||
|
log.error(e,e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return moniker;
|
return moniker;
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -664,15 +670,13 @@ public class IndividualSDB extends IndividualImpl implements Individual {
|
||||||
Dataset dataset = w.getDataset();
|
Dataset dataset = w.getDataset();
|
||||||
dataset.getLock().enterCriticalSection(Lock.READ);
|
dataset.getLock().enterCriticalSection(Lock.READ);
|
||||||
try{
|
try{
|
||||||
try {
|
searchBoost = ((Literal)QueryExecutionFactory.create(
|
||||||
searchBoost =
|
QueryFactory.create(getPropertyValue),
|
||||||
((Literal)QueryExecutionFactory.create(
|
dataset).execSelect()).getFloat();
|
||||||
QueryFactory.create(getPropertyValue), dataset)
|
|
||||||
.execSelect()).getFloat();
|
|
||||||
} catch (Exception e) {
|
|
||||||
searchBoost = null;
|
|
||||||
}
|
|
||||||
return searchBoost;
|
return searchBoost;
|
||||||
|
} catch (Exception e){
|
||||||
|
log.error(e,e);
|
||||||
|
return null;
|
||||||
}finally{
|
}finally{
|
||||||
dataset.getLock().leaveCriticalSection();
|
dataset.getLock().leaveCriticalSection();
|
||||||
w.close();
|
w.close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue