Menu

#38 Index Array Out Of Bound in DrillThrough / XMLA / no slicer

open
nobody
None
5
2006-10-17
2006-10-17
No

Using JPivot in XMLA mode against mondrian database. If
the query does not have a slicer, an
ArrayIndexOfBoundException is shown instead of the
expected Drillthrough table.
Here is the fix, just testing if there is really a
slicers :
+add
if (!slicerList.isEmpty()) {
+add
XMLA_Position slicerPosition = (XMLA_Position)
slicerList.get(0);
Member[] slicerMembers = slicerPosition.getMembers();
for (int j = 0; j < slicerMembers.length; j++) {
XMLA_Member member = (XMLA_Member) slicerMembers[j];
if (j == 0) {
mdxBuf.append(" Where ( ");
} else if (j > 0) {
mdxBuf.append(" , ");
}
mdxBuf.append(member.getUniqueName());
}
if (slicerMembers.length > 0) {
mdxBuf.append(")");
}
+add
}
+add

Discussion


Log in to post a comment.