I want to develop some additional features to existing Notes applications for a customer. The nature of the features makes it necessary to use XPages.
Using XPages side by side with classic Notes using Composite Applications seems to work now (9.0.1). There are still some weird caching issues and sometimes I need to recreate a Composite Application to get rid of them, but once the CA works, it seems to be reliable.
But quite often when trying to view an XPage in the client I get this:
I guess everyone developing XPages for the Notes client knows this error very well. For me, I can reproduce it as follows:
- open XPage (even the most simple one) in Designer
- make some change, for example, at a space somehwere and save
- preview the XPage in Notes
- you will see Error 500
Then, when I close the Error 500 page in Notes and preview the XPage again (without making another change) the XPage works fine.
I could live with that. But: other Notes clients get the Error 500 page most of the times, too, especially when the XPage is used in a Composite Application.
Here is what I do not understand: XPages in Notes are around since 8.5.3 at least. That means: FOR FOUR YEARS!
FOUR YEARS! FOUR YEARS! FOUR YEARS!
Why do we still get these kind of errors?
I really don’t get it. I do nothing fancy. I just want to use a supported and documented feature, and that is: using XPages in Notes in a reliable manner. And what do I get? Error 500 without any useful information. Even with the most basic XPage.
Ok, getting upset does not solve the issue. So I tried to get some kind of workaround. And I found that after adding the NSF to Notes Preferences -> XPages Performance -> Preload XPages in the following appliations the XPages seems to work more reliable:
That means: the XPages work in Notes as long as I don’t make any change in Designer. After making a change, the Error 500 comes back until I preview the XPage a second time.
Is this a solution for my customer? How does this scale with let’s say 10 NSFs, each having various XPages with lots of Custom Controls? I don’t know. Yet.
All I know is that I really WANT to use XPages in Notes. And I’m very unsatisfied that I still have to fight these kind of basic issues.