Is plug-in development broken in 8.0.2?
Category plug-in development 8.0.2 Session
Bookmark :
Help! Since 8.0.2 none of my plug-ins work in my development environment! They all worked fine in 8.0.1, 8.0 and 8 beta. Is plug-in development broken in 8.0.2?
Before the weekend someone contacted me and asked for some help with the DocViewer plug-in. They had imported the source code into Eclipse but when they tried to run the plug-in it wasn't working correctly. When a Document is selected in Notes the DocViewer is supposed to show details of all the Items but nothing was happening no Items were being displayed.
Let me be clear, the plug-in works fine from a users point of view when they are installed in Notes 8. The problem only occurs if you are developing plug-ins and launching them from Eclipse.
After a bit of digging around I found the problem. The Notes Session object did not have access to any database. None of them. Uh? Here's what happens every time the plug-in tries to access a Database/Document:
NotesException: Password or other security violation for database Server1/Dev!!names.nsf
at lotus.domino.local.Session.NgetDatabase(Native Method)
at lotus.domino.local.Session.getDatabase(Unknown Source)
Very strange since my ID is God in my own development environment. Even stranger when, by definition, the database must already be open in the Client for any documents to be selected!
I tried using the Repton plug-in and it fails too for the same reason. I created a small test plug-in which has the following code on an Action button and it fails...
NotesThread.sinitThread();
Session session = NotesFactory.createSession() ;
Database names = session.getDatabase( "Server1/Dev", "names.nsf") ;
View people = names.getView("People") ;
Document person = people.getFirstDocument() ;
Now all of this code runs perfectly on every other version of Notes I have used. It just seems to have broken in 8.0.2.
Does anyone have any idea what might be happening and how it might be fixed? Is anyone using Eclipse/Notes 8.0.2 to develop plug-ins successfully?
Bookmark :
Help! Since 8.0.2 none of my plug-ins work in my development environment! They all worked fine in 8.0.1, 8.0 and 8 beta. Is plug-in development broken in 8.0.2?
Before the weekend someone contacted me and asked for some help with the DocViewer plug-in. They had imported the source code into Eclipse but when they tried to run the plug-in it wasn't working correctly. When a Document is selected in Notes the DocViewer is supposed to show details of all the Items but nothing was happening no Items were being displayed.
Let me be clear, the plug-in works fine from a users point of view when they are installed in Notes 8. The problem only occurs if you are developing plug-ins and launching them from Eclipse.
After a bit of digging around I found the problem. The Notes Session object did not have access to any database. None of them. Uh? Here's what happens every time the plug-in tries to access a Database/Document:
NotesException: Password or other security violation for database Server1/Dev!!names.nsf
at lotus.domino.local.Session.NgetDatabase(Native Method)
at lotus.domino.local.Session.getDatabase(Unknown Source)
Very strange since my ID is God in my own development environment. Even stranger when, by definition, the database must already be open in the Client for any documents to be selected!
I tried using the Repton plug-in and it fails too for the same reason. I created a small test plug-in which has the following code on an Action button and it fails...
NotesThread.sinitThread();
Session session = NotesFactory.createSession() ;
Database names = session.getDatabase( "Server1/Dev", "names.nsf") ;
View people = names.getView("People") ;
Document person = people.getFirstDocument() ;
Now all of this code runs perfectly on every other version of Notes I have used. It just seems to have broken in 8.0.2.
Does anyone have any idea what might be happening and how it might be fixed? Is anyone using Eclipse/Notes 8.0.2 to develop plug-ins successfully?
Comments
Great blog! I'm running into the same problem with Notes 8.0.2 and was wondering if you ever found a solution or workaround.
Thanks,
Jan :)
Posted by Jan At 00:46:57 On 24/09/2009 | - Website - |
I never did find a solution to the problem. I ended up un-installing Notes and Eclipse and then re-installing Notes in a different location.
Now I use Mojopac ({ Link } to create different virtual Windows installations, one for 8.0.1, one for 8.5, one for 8.5.1 beta etc.
Regards, Keith
Posted by Keith Smillie At 10:19:05 On 24/09/2009 | - Website - |
Thanks for the quick response. I guess my plugin won't work on Notes 8.0.2 for now.
Great idea about using Mojopack!
Best,
Jan :)
Posted by Jan At 16:55:44 On 24/09/2009 | - Website - |