pavor84 / acacia-business-ace

Automatically exported from code.google.com/p/acacia-business-ace
0 stars 0 forks source link

NullPointerException at com.cosmos.acacia.app.AcaciaSessionBean.setSpecialPermissions(AcaciaSessionBean.java:168) #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After adding the following new enumerations:
    SystemAdministrator,
    OrganizationAdministrator,
    BranchAdministrator,
to SpecialPermission enum the following exception was happen:
EJB5018: An exception was thrown during an ejb invocation on
[AcaciaSessionBean]
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean;
nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
        at
com.cosmos.acacia.app.AcaciaSessionBean.setSpecialPermissions(AcaciaSessionBean.
java:168)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurity
Manager.java:1067)
        at
com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
        at
com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2
895)
        at
com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvo
cationHandler.java:197)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalOb
jectInvocationHandlerDelegate.java:127)
        at $Proxy125.setSpecialPermissions(Unknown Source)
        at
com.cosmos.acacia.crm.bl.users.RightsManagerBean.setSpecialRights(RightsManagerB
ean.java:350)
        at
com.cosmos.acacia.crm.bl.users.RightsManagerBean.clearCachedRights(RightsManager
Bean.java:355)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurity
Manager.java:1067)
        at
com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
        at
com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2
895)
        at
com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvo
cationHandler.java:197)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalOb
jectInvocationHandlerDelegate.java:127)
        at $Proxy134.clearCachedRights(Unknown Source)
        at
com.cosmos.acacia.crm.security.PermissionsManager$ClearingTask.run(PermissionsMa
nager.java:241)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean;
nested exception is: java.lang.NullPointerException
        at
com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:3
728)
        at
com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3576)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvo
cationHandler.java:205)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalOb
jectInvocationHandlerDelegate.java:127)
        at $Proxy125.setSpecialPermissions(Unknown Source)
        at
com.cosmos.acacia.crm.bl.users.RightsManagerBean.setSpecialRights(RightsManagerB
ean.java:350)
        at
com.cosmos.acacia.crm.bl.users.RightsManagerBean.clearCachedRights(RightsManager
Bean.java:355)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurity
Manager.java:1067)
        at
com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
        at
com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2
895)
        at
com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvo
cationHandler.java:197)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalOb
jectInvocationHandlerDelegate.java:127)
        at $Proxy134.clearCachedRights(Unknown Source)
        at
com.cosmos.acacia.crm.security.PermissionsManager$ClearingTask.run(PermissionsMa
nager.java:241)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
EJB5018: An exception was thrown during an ejb invocation on
[RightsManagerBean]
javax.ejb.EJBTransactionRolledbackException
        at
com.sun.ejb.containers.BaseContainer.mapBusinessInterfaceException(BaseContainer
.java:1482)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1396)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvo
cationHandler.java:205)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalOb
jectInvocationHandlerDelegate.java:127)
        at $Proxy125.setSpecialPermissions(Unknown Source)
        at
com.cosmos.acacia.crm.bl.users.RightsManagerBean.setSpecialRights(RightsManagerB
ean.java:350)
        at
com.cosmos.acacia.crm.bl.users.RightsManagerBean.clearCachedRights(RightsManager
Bean.java:355)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurity
Manager.java:1067)
        at
com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
        at
com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2
895)
        at
com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvo
cationHandler.java:197)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalOb
jectInvocationHandlerDelegate.java:127)
        at $Proxy134.clearCachedRights(Unknown Source)
        at
com.cosmos.acacia.crm.security.PermissionsManager$ClearingTask.run(PermissionsMa
nager.java:241)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: javax.ejb.TransactionRolledbackLocalException: Exception thrown
from bean; nested exception is: java.lang.NullPointerException
        at
com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:3
728)
        at
com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3576)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
        ... 20 more
Exception in thread "Timer-45" 
javax.ejb.EJBTransactionRolledbackException
        at
com.sun.ejb.containers.BaseContainer.mapBusinessInterfaceException(BaseContainer
.java:1482)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1396)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvo
cationHandler.java:205)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalOb
jectInvocationHandlerDelegate.java:127)
        at $Proxy125.setSpecialPermissions(Unknown Source)
        at
com.cosmos.acacia.crm.bl.users.RightsManagerBean.setSpecialRights(RightsManagerB
ean.java:350)
        at
com.cosmos.acacia.crm.bl.users.RightsManagerBean.clearCachedRights(RightsManager
Bean.java:355)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurity
Manager.java:1067)
        at
com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
        at
com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2
895)
        at
com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvo
cationHandler.java:197)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalOb
jectInvocationHandlerDelegate.java:127)
        at $Proxy134.clearCachedRights(Unknown Source)
        at
com.cosmos.acacia.crm.security.PermissionsManager$ClearingTask.run(PermissionsMa
nager.java:241)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: javax.ejb.TransactionRolledbackLocalException: Exception thrown
from bean; nested exception is: java.lang.NullPointerException
        at
com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:3
728)
        at
com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3576)
        at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
        ... 20 more
WEB0303: Stopping Sun-Java-System/Application-Server.
WEB0713: Stopping Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0713: Stopping Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0713: Stopping Sun-Java-System/Application-Server HTTP/1.1 on 4848
CORE5051: Shutting down all J2EE applications ...
EJB5122:EJB Timer Service shutdown at [2008/10/26 19:03:47]
CORE 5060 :  Stopping all J2EE Connector 1.5 Compliant resource adapters ...
RAR7094: __ds shutdown successful.
RAR7094: __xa shutdown successful.
CORE 5061 : Resource adapters Stop() Complete
CORE5052: Application shutdown complete.
[AutoDeploy] Disabling AutoDeployment service.
JBIFW0042: JBI framework termination complete.

Original issue reported on code.google.com by mnac...@gmail.com on 26 Oct 2008 at 6:25

GoogleCodeExporter commented 9 years ago

Original comment by mnac...@gmail.com on 29 Mar 2009 at 7:03