0 Replies Latest reply on Feb 13, 2009 1:43 PM by Dave Oxley

    Drools RuleBasedPermission NullPointerException

    Dave Oxley Newbie

      I get this NullPointerException when calling identity.login immediately after startup. The same also happens when then calling identity.logout. But after these 2 occurrences it will no longer happen for subsequent logon/logout.


      It also does not occur at every startup. About 1 in 4 times it works perfectly. Does anyone have any ideas?


      Cheers,
      Dave.


      Feb 13, 2009 11:33:59 PM com.sun.faces.application.ActionListenerImpl processAction                                                                                          
      SEVERE: java.lang.NullPointerException                                                                                                                                       
      javax.faces.el.EvaluationException: java.lang.NullPointerException                                                                                                           
              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)                                                  
              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)                                                                           
              at javax.faces.component.UICommand.broadcast(UICommand.java:387)                                                                                                     
              at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)                                                                                          
              at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)                                                                                        
              at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)                                                                                           
              at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)                                                                                     
              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)                                                                            
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)                                                                                                             
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)                                                                                             
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)                                                                                                    
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)                                                                 
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)                                                                         
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:532)                                                                                                      
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)                                                                 
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)                                                                         
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)                                                                                    
              at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:63)                                                                                                  
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)                                                                                    
              at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)                                                                                                
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)                                                                                    
              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)                                                                                              
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)                                                                                    
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)                                                                                              
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)                                                                                    
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)                                                                                                
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)                                                                                    
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)                                                                                             
              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)                                                                                                 
              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)                                                                                
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)                                                                                                      
              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)                                                                                                
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)                                                                                    
              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)                                                                                                  
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)                                                                                    
              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)                                                                                                   
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)                                                                 
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)                                                                         
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)                                                                               
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)                                                                               
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)                                                                            
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)                                                                                     
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)                                                                                     
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)                                                                                 
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)                                                                                       
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)                                                                                        
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)                                                                  
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)                                                                                           
              at java.lang.Thread.run(Thread.java:619)                                                                                                                             
      Caused by: java.lang.NullPointerException                                                                                                                                    
              at org.drools.common.AbstractWorkingMemory.addHandleToMaps(AbstractWorkingMemory.java:1067)                                                                          
              at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:786)                                                                                    
              at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:684)                                                                                    
              at org.jboss.seam.security.permission.RuleBasedPermissionResolver.setUserAccountInSecurityContext(RuleBasedPermissionResolver.java:300)                              
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                                       
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                                                                     
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                                                             
              at java.lang.reflect.Method.invoke(Method.java:597)                                                                                                                  
              at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)                                                                                                       
              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)                                                                                               
              at org.jboss.seam.Component.callComponentMethod(Component.java:2211)                                                                                                 
              at org.jboss.seam.core.Events.raiseEvent(Events.java:85)                                                                                                             
              at org.jboss.seam.security.Identity.postAuthenticate(Identity.java:397)                                                                                              
              at org.jboss.seam.security.Identity.authenticate(Identity.java:345)                                                                                                  
              at org.jboss.seam.security.Identity.authenticate(Identity.java:332)                                                                                                  
              at org.jboss.seam.security.Identity.login(Identity.java:259)                                                                                                         
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                                       
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                                                                     
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                                                             
              at java.lang.reflect.Method.invoke(Method.java:597)                                                                                                                  
              at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)                                                                                            
              at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)                                                                                            
              at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)                                                                                           
              at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)                                                                                                             
              at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)                                                                                           
              at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)                                                                                       
              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)                                                   
              ... 48 more