more debugging lines to fix bug for

http://www.yacy-forum.de/viewtopic.php?p=34935#34935

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3629 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent 47e90f31b2
commit 35c660654d

@ -174,6 +174,8 @@ public class kelondroColumn {
this.encoder = encoder_bytes;
}
assert (this.celltype != celltype_cardinal) || (this.encoder == encoder_b64e) || (this.encoder == encoder_b256);
// parse/check description
if ((celldef.length() > 0) && (celldef.charAt(0) == '"')) {
p = celldef.indexOf('"', 1);

@ -261,6 +261,7 @@ public class kelondroRow {
try {
setCol(nick, Long.parseLong(elts[i].substring(p + 1).trim()));
} catch (NumberFormatException e) {
serverLog.logSevere("kelondroRow", "NumberFormatException for celltype_cardinal; row = " + i + ", celltype = " + row[i].celltype() + ", encoder = " + row[i].encoder() + ", value = '" + elts[i].substring(p + 1).trim() + "'");
setCol(nick, 0);
}
} else if ((decimalCardinal) && (row[i].celltype() == kelondroColumn.celltype_binary)) {
@ -268,6 +269,7 @@ public class kelondroRow {
try {
setCol(nick, new byte[]{(byte) Integer.parseInt(elts[i].substring(p + 1).trim())});
} catch (NumberFormatException e) {
serverLog.logSevere("kelondroRow", "NumberFormatException for celltype_binary; row = " + i + ", celltype = " + row[i].celltype() + ", encoder = " + row[i].encoder() + ", value = '" + elts[i].substring(p + 1).trim() + "'");
setCol(nick, new byte[]{0});
}
} else if ((decimalCardinal) && (row[i].celltype() == kelondroColumn.celltype_bitfield)) {

Loading…
Cancel
Save