0
Ich habe einen Java-Web-Provider in IBM Notes. Ich versuche, über AgentBase auf die aktuelle Notessession zuzugreifen:Zugriff auf aktuelle Sitzung in IBM Notes Web-Provider
import lotus.domino.AgentBase;
import lotus.domino.Session;
import lotus.domino.AgentContext;
import lotus.domino.Database;
import lotus.domino.NotesException;
import lotus.domino.Document;
public class HwProvider extends AgentBase{
public String createOrder (String subject, String fio){
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
Database database = agentContext.getCurrentDatabase();
return subject + " " + fio;
}catch (Exception e) {
return e.toString();
}
}
}
erhalte ich diesen Fehler während in SOAP UI Prüfung:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<createOrderReturn xmlns="urn:DefaultNamespace">java.lang.NullPointerException</createOrderReturn>
</soapenv:Body>
</soapenv:Envelope>
Wie kann ich auf die aktuelle Sitzung zugreifen?