This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Why can't you ... (WAS: Database access from another class - Java) ~Joseph Brenitexjip 2.Oct.03 12:24 PM a Web browser General All ReleasesWindows 2000
HI!
I wrote this class:
class platform1 extends NotesThread
{
public static void main()
{
platform1 t = new platform1();
t.start();
}
public void runNotes()
{
try
{
lotus.domino.Session s = NotesFactory.createSession();
String p = s.getPlatform();
System.out.println("Platform = " + p);
lotus.domino.Database db =s.getAgentContext().getCurrentDatabase();
System.out.println(db.getTitle());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
------------------------------
Now my "SendToAll
public void SendToAll()
{
platform1 plat= new platform1();
plat.start();
}
It still doesn't work and i have this massage:
Platform = Windows/32 - this is OK
java.lang.NullPointerException:
at platform1.runNotes(JavaAgent.java:145)
at lotus.domino.NotesThread.run(NotesThread.java:203)