Skip to main content

Posts

Showing posts from May, 2015

XPages and Java security troubles

This is more a rant than classic post, but I hope it may help someone or someone could prove me wrong, which would be even better.

In recent app I use  XPages Scaffolding from Jesse Gallagher. He does some magic in his code that relies on Java reflection to access classes that you can define in your NSF as your model. As my dev server had Java AllPermission grant in global block of java.policy everything worked just fine. But just until I moved the app to production server, where this setting is not possible.

I started to get Exceptions like:
java.lang.SecurityException: not allowed to access members in class class model.Problemlotus.notes.AgentSecurityManager.checkMemberAccess(Unknown Source) java.lang.Class.checkMemberAccess(Class.java:123) java.lang.Class.getDeclaredFields(Class.java:601) frostillicus.xsp.model.AbstractModelObject.getGenericType(AbstractMo delObject.java:215) frostillicus.xsp.model.domino.AbstractDominoModel.setValueImmediate (AbstractDominoModel.java:271) frostill…