Search This Blog

Monday, September 10, 2018

(RESOLVED) Issues with Notes plugin after upgrading to 9.0.1FP10 - need some ideas from Notes/Java community where to dig up...

Hi

You've might already see this post: http://www-01.ibm.com/support/docview.wss?uid=swg22014562

Before choosing any direction for deep dive I would like to hear your opinion, may be this issue can be fixed with changes in Notes configuration or with some variable in plugin_customization.ini...

Here is the case.

There is a plugin (spell checker) working OK for ages for all versions of Notes prior FP10.

At first glance the problem happens because of lack of access rights - however I do not know now if this is because plugin was built for Eclipse 3x or because it is a bug or any other reason.

Let me show you some screenshots:

1) IBM Notes 9.0.1 FP9 - all works good.
The plugin can be successfully installed on IBM Notes 9.0.1 FP9 with or without administrator's access and it goes there:


The plugin-jars were copied to C:\Users\<username>\AppData\Local\IBM\Notes\Data\workspace\applications\eclipse\plugins\ and C:\Users\<username>\AppData\Local\IBM\Notes\Data\workspace\applications\eclipse\features\



2) IBM Notes 9.0.1 FP10 - there are issues.

2.1 Installation with administrator access rights - works OK but looks different

The plugin can  be successfully installed on IBM Notes 9.0.1 FP10 with administrator's access but it goes there:


The plugin-jars were copied to C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\plugins\ and C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\


2.2 Installation without administrator access rights - does not work 

Obviously, regular users usually do not have access to write anything into "Program Files (x86)" folder and that's most probably is a root of the problem.

I used some file monitoring software during plugin installation and saw a following picture during pluginc installation:

.......
New C:\Users\User01\AppData\Local\VirtualStore\Program Files (x86)\IBM\Notes\framework\tmp.txt
New C:\Users\User01\AppData\Local\VirtualStore\Program Files (x86)\IBM\Notes\framework\shared\eclipse\tmp.txt
New C:\Users\User01\AppData\Local\VirtualStore\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features
New C:\Users\User01\AppData\Local\VirtualStore\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\tmp.txt
New  C:\Users\User01\AppData\Local\VirtualStore\Program Files (x86)\IBM\Notes\framework\shared\eclipse\plugins\tmp.txt
New C:\Users\User01\AppData\Local\VirtualStore\Program Files (x86)\IBM\Notes\framework\shared\eclipse\plugins\com.mycompany.contributed.custom.engine_1.0.1.jar1536594068341.tmp
...........

Installation completed without any errors and Lotus Notes asked to restart.

Before restart I checked jar-files and found them in C:\Users\User01\AppData\Local\VirtualStore\Program Files (x86)\IBM\Notes\framework\shared\eclipse\...

When I tried to restart Lotus Notes - it never launched, hanged up on first windows with "Loading...Please wait".



I tried a following scenario: I reverted my VM back to the very beginning and before installing plugin again I provided EDITOR access to C:\Program Files (x86)\IBM\Notes\framework - with this change I successfully installed plugin with regular user.

Monitoring software showed following changes:



New C:\Program Files (x86)\IBM\Notes\framework\tmp.txt

New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\tmp.txt
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\tmp.txt
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\plugins\tmp.txt
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\plugins\com.mycompany.contributed.custom.engine_1.0.1.jar1536591689505.tmp
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\plugins\com.mycompany.contributed.custom.engine.dictionary_1.0.1.jar1536591689521.tmp
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\com.mycompany.contributed.custom.engine.feature_1.0.1\META-INF\MANIFEST.MF
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\com.mycompany.contributed.custom.engine.feature_1.0.1
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\com.mycompany.contributed.custom.engine.feature_1.0.1\META-INF
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\com.mycompany.contributed.custom.engine.feature_1.0.1\META-INF\LE-0A401.SF
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\com.mycompany.contributed.custom.engine.feature_1.0.1\META-INF\LE-0A401.RSA
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\com.mycompany.contributed.custom.engine.feature_1.0.1\feature.xml
New C:\Program Files (x86)\IBM\Notes\framework\shared\eclipse\features\com.mycompany.contributed.custom.engine.feature_1.0.1\feature1536591689552.xml
Modified C:\Program Files (x86)\IBM\Notes\framework\rcp\deploy\install.xml
Modified C:\Program Files (x86)\IBM\Notes\framework\rcp\rcplauncher.properties

So, that's all basically...
My current issue is that I am not sure if it is a configuration issue or if I have to rebuild plugin using Eclipse 4x or something else...


I would be grateful for any ideas...

------------------------------------------------------------------------------------------------------
Update on 11.09.2018

Mikkel Flindt Heisterberg gave a head-shot (see comments under post).
So I managed to resolve the problem by adding 

colocation-affinity="com.ibm.rcp.site.anchor.user.feature"

to feature.xml and plugin was installed to user's directory instead of C:\Program Files (x86)\ and that was exactly I needed to.

5 comments:

  1. Why don't you use an install site to install the plugin?

    ReplyDelete
    Replies
    1. Sorry, what do you mean, updateSite.nsf ?
      I installed plugin using File\Application\Install menu because I was told that users did it the same.

      Delete
  2. Another reason for using '\IBM\Notes' for program dir, which let's me assign more relaxed right to users without compromising '\Program Files (x86)'
    Also easier to type when needing to do local admin stuff like upgrading the ODS after a FixPack, FeaturePack or Intermediairy Fix

    ReplyDelete
    Replies
    1. Yes :-) But what to do now?
      Customer has hundreds of users with Notes in "Program Files (x86)"...

      Delete
  3. You are the best!
    It worked like a charm and I fixed the problem with notepad only - added colocation-affinity="com.ibm.rcp.site.anchor.user.feature" to feature.xml and plugin was installed to user's directory instead of \Program Files\.
    Thank you very much :-)

    ReplyDelete