« Java is lek | Main| Joel Spolsky: "Keus is koppijn" »

Problem with Java application after upgrade to 8.5

Category
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 

A customer has a Java application that displays the content of a users inbox and let's the user copy email to the application.The application uses NotesFactory.CreateSession((String)null,(String)null,[password]) to create the session. The user is first prompted to enter his Notes password and the user.id location is being retrieved from the notes.ini.The application ran fine for a couple of years but stopped working after the upgrade to 8.5. We added the 8.5 notes.jar to the application and ran a bunch of other test, all unsuccessfull. I ended up going through all the calls and threads using SysInternals Process Monitor and finally found the problem. The users notes.ini is in h:\notes\ini but the Java application scans all directory in the environment path for notes.ini. The first one it found was in c:\program files\notes but that's just a left-over from the Notes installation. This ini contains no KeyFileName= line and therefore NotesFactory.CreateSession tried to create the connection with a blank username.Deleted the extra notes.ini and the application works just fine again.

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

OpenNTF random projects

PlanetLotus