I am running a web service from an instance of Salesforce to our client's Lotus Notes server. I am able to get hard-coded content to return, so I feel certain that the connection itself is working as intended.
However, as noted in the subject, I am running into a NotesException. This is being thrown on the last line of the code below (db and path are simply parameters I pass into the function, I am able to view records from the nsf they correspond to):
s = WebServiceBase.getCurrentSession();
Database data = s.getDatabase(db, path);
data.open();
If I try not opening the database, I get an exception that says I need to open the database. We had been developing this web service for a while without ever opening the database or knowing that this was something to concern ourselves with. Obviously something changed, but as my office is full of Salesforce devs and not LN devs, we don't know what.
Any help in tracking down the root cause of this issue would be greatly appreciated.
Edit:
Comments want to know what I meant by hardcoded content. The function returns a 2d String array, so it would be something like:
result[0][0] = "Hello World";
return result;