Das sagt die KBASE:
Problem
The following message occurs when compiling a Java application, even though the code appears to match examples in the Domino Designer Help:
"The method createSession(String, String, String) is ambiguous for the type NotesFactory"
The Help for Notesfactory describing createSession states:
"createSession(null, userString, passwordString) -- Internet access is granted to the session if the password matches the Internet password in the user's Person record in the Domino Directory."
However,
The following code, which is intended to open a session on the local Domino server for the user and password specified, fails with the above error:
Session session = NotesFactory.createSession(null, "John Doe", "mypassword");
Solution
This issue has been reported to Quality Engineering, and is currently under investigation.
The correct syntax (which is specified correctly in the full specification of the createSession() method at the end of the Help document, as well as in the examples, shows the first parameter in this method must be a string.
The following shows the corrected code for the example described above:
Session session = NotesFactory.createSession((String)null, "John Doe", "mypassword");
Andreas