1 Reply Latest reply on Jul 3, 2009 5:30 AM by Wolfgang Knauf

    security intercepter error

    vaibhav singh Newbie

      hi all,

      I am facing this issue in jboss5.1.0GA. It is inside jboss server log.

      Please help me to fixed this issue.



      java.lang.SecurityException: Denied: caller with subject=Subject:
      
       Principal: jkl
      
       Principal: Roles(members)
      
       and security context post-mapping roles=Roles(): ejbMethod=public abstract java.util.Collection com._360commerce.commerceservices.transaction.salereturn.ejb.SaleReturnLineItemTaxLocalHome.findBySaleReturnLineItem(com._360commerce.commerceservices.transaction.TransactionKey,int) throws javax.ejb.FinderException
      
       at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityContext(SecurityInterceptor.java:368)
      
       at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:243)
      
       at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)
      
       at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
      
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
      
       at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:527)
      
       at org.jboss.ejb.Container.invoke(Container.java:1046)
      
       at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:362)
      
       at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
      
       at $Proxy916.findBySaleReturnLineItem(Unknown Source)
      
       at com._360commerce.commerceservices.transaction.ejb.TransactionServiceBean.getItemsForTransaction(TransactionServiceBean.java:1769)
      
       at com._360commerce.commerceservices.transaction.ejb.TransactionServiceBean.createSaleReturnTransactionDTO(TransactionServiceBean.java:1484)
      
       at com._360commerce.commerceservices.transaction.ejb.TransactionServiceBean.retrieveTransaction(TransactionServiceBean.java:908)
      
       at sun.reflect.GeneratedMethodAccessor772.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
       at java.lang.reflect.Method.invoke(Unknown Source)
      
       at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
      
       at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:228)
      
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
      
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
      
       at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      
       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      
       at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:267)
      
       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
      
       at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:134)
      
       at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
      
       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      
       at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
      
       at org.jboss.ejb.Container.invoke(Container.java:1029)
      
       at sun.reflect.GeneratedMethodAccessor483.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
       at java.lang.reflect.Method.invoke(Unknown Source)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      
       at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
      
       at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
      
       at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
      
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
      
       at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      
       at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)
      
       at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
      
       at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
      
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
      
       at $Proxy996.retrieveTransaction(Unknown Source)
      
       at com._360commerce.commerceservices.postprocessor.ejb.PostProcessorHelperBean.processTransaction(PostProcessorHelperBean.java:88)
      
       at sun.reflect.GeneratedMethodAccessor771.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
       at java.lang.reflect.Method.invoke(Unknown Source)
      
       at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
      
       at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:228)
      
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
      
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
      
       at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:404)
      
       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      
       at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:267)
      
       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
      
       at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:134)
      
       at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
      
       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      
       at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
      
       at org.jboss.ejb.Container.invoke(Container.java:1029)
      
       at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
      
       at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
      
       at $Proxy609.processTransaction(Unknown Source)
      
       at com._360commerce.commerceservices.postprocessor.ejb.PostProcessorServiceBean.processTransactions(PostProcessorServiceBean.java:97)
      
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
       at java.lang.reflect.Method.invoke(Unknown Source)
      
       at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
      
       at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:228)
      
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
      
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
      
       at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      
       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      
       at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:267)
      
       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
      
       at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:134)
      
       at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
      
       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      
       at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
      
       at org.jboss.ejb.Container.invoke(Container.java:1029)
      
       at sun.reflect.GeneratedMethodAccessor483.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
       at java.lang.reflect.Method.invoke(Unknown Source)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      
       at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
      
       at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
      
       at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
      
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
      
       at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      
       at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)
      
       at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
      
       at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
      
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
      
       at $Proxy605.processTransactions(Unknown Source)
      
       at com._360commerce.commerceservices.postprocessor.ejb.PostProcessorTaskExecutionBean.onMessage(PostProcessorTaskExecutionBean.java:45)
      
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
       at java.lang.reflect.Method.invoke(Unknown Source)
      
       at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
      
       at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:513)
      
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
      
       at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:115)
      
       at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      
       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      
       at org.jboss.ejb.plugins.RunAsSecurityInterceptor.process(RunAsSecurityInterceptor.java:133)
      
       at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:103)
      
       at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      
       at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:415)
      
       at org.jboss.ejb.Container.invoke(Container.java:1029)
      
       at sun.reflect.GeneratedMethodAccessor483.invoke(Unknown Source)
      
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
       at java.lang.reflect.Method.invoke(Unknown Source)
      
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      
       at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
      
       at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
      
       at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
      
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
      
       at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      
       at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:249)
      
       at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:128)
      
       at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
      
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
      
       at $Proxy1046.onMessage(Unknown Source)
      
       at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
      
       at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:160)
      
       at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:831)
      
       at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_20004366.invoke(SessionAspect_z_handleRun_20004366.java)
      
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      
       at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
      
       at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
      
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      
       at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)
      
       at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)
      
       at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:234)
      
       at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
      
       at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
      
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      
       at java.lang.Thread.run(Unknown Source)
      
      2009-07-01 20:17:23,378 ERROR [com._360commerce.commerceservices.postprocessor.ejb.PostProcessorHelperBean] Error processing transaction
      
      javax.transaction.TransactionRolledbackException: SecurityException; nested exception is: java.lang.SecurityException: Denied: caller with subject=Subject:
      
       Principal: jkl