• Error NullPointerException in OKMAccessManager

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #2180  by cmiraval
 
Hello,

I do a debug in the Class OKMAccessManager show:

[org.jboss.security.SecurityAssociation] Using ThreadLocal: false
[STDOUT] 23:07:59,203 DEBUG [OKMAccessManager] init(org.apache.jackrabbit.core.security.AMContext@d8f55c)
[STDOUT] 23:07:59,203 INFO [OKMAccessManager] ##### [system, Roles(members:AdminRol)]
[STDOUT] 23:07:59,203 DEBUG [OKMAccessManager] ##### ##### ##### ##### ##### ##### #####
[STDOUT] 23:07:59,203 DEBUG [OKMAccessManager] ##### class org.jboss.security.SimplePrincipal
[STDOUT] 23:07:59,203 DEBUG [OKMAccessManager] ##### class org.jboss.security.SimpleGroup
[STDOUT] 23:07:59,203 INFO [OKMAccessManager] PrincipalUser: null
[STDOUT] 23:07:59,203 INFO [OKMAccessManager] PrincipalRoles: []

[STDOUT] 23:07:59,265 DEBUG [OKMAccessManager] checkRead(org.apache.jackrabbit.core.NodeImpl@1789a96)
[STDOUT] 23:07:59,328 DEBUG [OKMAccessManager] dm:authUsersRead User: system
java.lang.NullPointerException

this happens in:

if (principalUser.equals(users.getString())) {
access = true;
}


I note that none of the blocks \"if\" enter:

- if (obj instanceof org.jboss.security.SimpleGroup) {
- } else if (obj instanceof org.jboss.security.SimplePrincipal) {
- } else if (obj instanceof org.apache.jackrabbit.core.security.UserPrincipal) {

someone could help me to solve the problem.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.