Hi,
I’m trying to use the Java View methods getAllUnreadEntries and getAllReadEntries, but cannot get any useful results. They both return the error java.lang.reflect.InvocationTargetException.
The methods are used in a Web Service on a Domino 8.0.2 server, made with a 8.5 Developer Client. (Well, actually I’m using Ecplise 3.3.2 while programming, and pasting the code to the Web Service when finished).
The resulting error message is seen in the SOAP Response Envelope while using the Web Service Explorer in Eclipse.
Here is an extract of the failing Web Service method, that has viewname, unreadOnly and readOnly as parameters:
…
view = bm_database.getView(viewName);
view.refresh();
if(unreadOnly) {
vec = view.getAllUnreadEntries(bm_session.getEffectiveUserName());
} else if (readOnly) {
vec = view.getAllReadEntries(bm_session.getEffectiveUserName());
} else vec = view.getAllEntries();
System.out.print(“Found " + vec.getCount() + " entries”); //Only for debugging
…
getAllEntries works fine, not the two other methods.
Any suggestions or workarounds are welcome