The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by sean.peters]

When running the standalone program in example 5_2, I get this error:

CsmilieOCUME~1PETERSSDESKTOP>java Example_5_2
org.omg.CORBA.COMM_FAILURE: minor code: 6 completed: No
at com.ibm.CORBA.iiop.RepImpl.invoke(RepImpl.java:394)
at com.ibm.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:36)
at lotus.domino.corba._IObjectServerStub.createSession(_IObjectServerStu
b.java)
at lotus.domino.cso.Session.OREFtoSession(Session.java:819)
at lotus.domino.cso.Session.<init>(Session.java:73)
at lotus.domino.cso.Session.createSession(Session.java:41)
at lotus.domino.NotesFactory.createSession(NotesFactory.java:67)
at Example_5_2.run(Example_5_2.java:13)
at java.lang.Thread.run(Thread.java:484)
ID: 4062 -- Name: Could not open Notes session

It's as if the application is trying to raise the server, but the server
doesn't answer. This is how I'm creating the session:

Session s = NotesFactory.createSession("xxx.xxx.xxx.xxx","name","inetpword");

where the x's are the server's IP, "name" is my shortname/userid in the
address book, and "inetpword" is my internet password.

Any ideas what the problem might be? Could there be a firewall issue? Or do I
have the session line fouled up somehow? Appreciate any help.

Sean
import-bot (20211) [Avatar] Offline
#2
Solved! Re: Example 5_2 trouble - "Could not open Notes Session"
[Originally posted by sean.peters]

It turned out that the port was closed at the firewall. Opening the port,
well, actually led to other problems, but I was able to resolve all. Example
works good now.

Sean
dev_gohey (2) [Avatar] Offline
#3
Re: Solved! Re: Example 5_2 trouble - "Could not open Notes Session"
Hi,
Am Implementing mailing funtionality in java and using LotusNotes server for sending mails. But getting below mentioned error,
Can somebody help me ?

Regds
Dev


[4/26/07 20:13:33:388 IST] df99793 SystemErr R org.omg.CORBA.OBJ_ADAPTER: ORB_CONNECT_ERROR (5) - couldn't get Server Subcontract:org.omg.CORBA.INTERNAL: CREATE_LISTENER_FAILED_4 vmcid: 0x49421000 minor code: 56 completed: No vmcid: IBM minor code: B8F completed: No
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.corba.ORB.connect(ORB.java:3399)
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.corba.ORB.createServantIOR(ORB.java:4062)
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.corba.ORB.getServantIOR(ORB.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.iiop.ORB.getServantIOR(ORB.java(Inlined Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.CORBA.iiop.ORB.getServantIOR(ORB.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.corba.ClientDelegate.getServiceContexts(ClientDelegate.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.iiop.GIOPImpl.createRequest(GIOPImpl.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.iiop.GIOPImpl.createRequest(GIOPImpl.java(Inlined Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java(Inlined Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java(Inlined Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at lotus.domino.corba._IObjectServerStub.createSession(_IObjectServerStub.java)
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at lotus.domino.cso.Session.OREFtoSession(Session.java:813)
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at lotus.domino.cso.Session.<init>(Session.java:67)
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at lotus.domino.cso.Session.createSession(Session.java:40)
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at lotus.domino.NotesFactory.createSession(NotesFactory.java:67)
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.hsbc.smart.util.SendMail.send(SendMail.java:82)
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at com.hsbc.smart.util.GenerateMail.run(GenerateMail.java:146)
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at java.util.TimerThread.mainLoop(Timer.java(Compiled Code))
[4/26/07 20:13:33:388 IST] df99793 SystemErr R at java.util.TimerThread.run(Timer.java:396)
2007-04-26 20:13:33,388 [Thread-656] DEBUG (SendMail.java:127) com.hsbc.smart.util.SendMail - Mail has not been send to :: Smart User/Dev/GLT
2007-04-26 20:13:33,388 [Thread-656] DEBUG (SendMail.java:129) com.hsbc.smart.util.SendMail - 4062
lotus.domino.NotesException
at lotus.domino.cso.Session.OREFtoSession(Session.java:819)
at lotus.domino.cso.Session.<init>(Session.java:67)
at lotus.domino.cso.Session.createSession(Session.java:40)
at lotus.domino.NotesFactory.createSession(NotesFactory.java:67)
at com.hsbc.smart.util.SendMail.send(SendMail.java:82)
at com.hsbc.smart.util.GenerateMail.run(GenerateMail.java:146)
at java.util.TimerThread.mainLoop(Timer.java(Compiled Code))
at java.util.TimerThread.run(Timer.java:396)
2007-04-26 20:13:33,388 [Thread-656] DEBUG (SendMail.java:130) com.hsbc.smart.util.SendMail - Could not open Notes session
lotus.domino.NotesException
at lotus.domino.cso.Session.OREFtoSession(Session.java:819)
at lotus.domino.cso.Session.<init>(Session.java:67)
at lotus.domino.cso.Session.createSession(Session.java:40)
at lotus.domino.NotesFactory.createSession(NotesFactory.java:67)
at com.hsbc.smart.util.SendMail.send(SendMail.java:82)
at com.hsbc.smart.util.GenerateMail.run(GenerateMail.java:146)
at java.util.TimerThread.mainLoop(Timer.java(Compiled Code))
at java.util.TimerThread.run(Timer.java:396)
2007-04-26 20:13:33,388 [Thread-656] DEBUG (SendMail.java:131) com.hsbc.smart.util.SendMail -
lotus.domino.NotesException
at lotus.domino.cso.Session.OREFtoSession(Session.java:819)
at lotus.domino.cso.Session.<init>(Session.java:67)
at lotus.domino.cso.Session.createSession(Session.java:40)
at lotus.domino.NotesFactory.createSession(NotesFactory.java:67)
at com.hsbc.smart.util.SendMail.send(SendMail.java:82)
at com.hsbc.smart.util.GenerateMail.run(GenerateMail.java:146)
at java.util.TimerThread.mainLoop(Timer.java(Compiled Code))
at java.util.TimerThread.run(Timer.java:396)
hemahema (2) [Avatar] Offline
#4
Re: Example 5_2 trouble - "Could not open Notes Session"
im getting this error while im trying to create session in a jsp page. i can import lotus.domino.*; can anybody help me

Internal Error:
javax.servlet.ServletException: NCreateSession
Root cause:
java.lang.UnsatisfiedLinkError: NCreateSession
at lotus.domino.local.Session.NCreateSession(Native Method)
at lotus.domino.local.Session.createSession(Session.java:94)
at lotus.domino.NotesFactory.createSession(Unknown Source)