Subject: Can not create session by java application
Are you handling exceptions in your code? If so, what is the NotesException returned? That can tell you quite a lot – for example, whether DIIOP’s running at all, whether you’re using the correct host name, and so forth. There are some DIIOP-related error codes which aren’t properly documented in Designer Help, and I’ve detailed them here:
Subject: RE: Can not create session by java application
Dear Benpoole,The DIIOP task is running on the Domino Server.
When I use the servername “CIBDev/Alex” as a hoststring I get the following exception:
java.net.UnknownHostException: CIBDev
at java.net.InetAddress.getAllByName0(InetAddress.java:604)
at java.net.InetAddress.getAllByName0(InetAddress.java:560)
at java.net.InetAddress.getByName(InetAddress.java:514)
at java.net.Socket.<init>(Socket.java:122)
at com.ibm.websphere.workflow.sample.controller.CIBTest.main(CIBTest.java:28)
And when I use the IP Address as a hoststring I get the following exception:
lotus.domino.NotesException
at com.ibm.websphere.workflow.sample.controller.DM.getDocumentsByItem(DM.java:56)
at com.ibm.websphere.workflow.sample.controller.CIBTest.main(CIBTest.java:28)
at com.ibm.websphere.workflow.sample.controller.CIBTest.main(CIBTest.java:36)