0 Replies Latest reply on Aug 1, 2016 12:53 PM by Tejas Shah

    How to Enable Statistics for secured cache ?

    Tejas Shah Novice

      Hello sebastian.laskawiec nadirx  rvansa,

       

      How to Enable Statistics for secured cache?

       

      I was created a secure cache using digest-md5 ? but when i see in mangment console it doen't show me a Statistics of secured cache. which screenshot i was attached.

       

      please find attached domain.xml file for your refrence.

       

      there is no error in log file but console show me a  below error. ?

       

      [Server:ServerOne]     ("subsystem" => "datagrid-infinispan"),

      [Server:ServerOne]     ("cache-container" => "clustered"),

      [Server:ServerOne]     ("distributed-cache" => "TestCache")

      [Server:ServerOne] ]): java.lang.SecurityException: ISPN000287: Unauthorized acc

      ess: subject 'Subject with principal(s): [user.admin@ManagementRealm, InetAddres

      sPrincipal <192.168.156.104/192.168.156.104>]' lacks 'ADMIN' permission

      [Server:ServerOne]      at org.infinispan.security.impl.AuthorizationHelper.chec

      kPermission(AuthorizationHelper.java:86)

      [Server:ServerOne]      at org.infinispan.security.impl.AuthorizationManagerImpl

      .checkPermission(AuthorizationManagerImpl.java:42)

      [Server:ServerOne]      at org.infinispan.security.impl.SecureCacheImpl.getCompo

      nentRegistry(SecureCacheImpl.java:332)

      [Server:ServerOne]      at org.jboss.as.clustering.infinispan.subsystem.Clustere

      dCacheMetricsHandler.executeRuntimeStep(ClusteredCacheMetricsHandler.java:141)

      [Server:ServerOne]      at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.

      execute(AbstractRuntimeOnlyHandler.java:53)

      [Server:ServerOne]      at org.jboss.as.controller.AbstractOperationContext.exec

      uteStep(AbstractOperationContext.java:890)

      [Server:ServerOne]      at org.jboss.as.controller.AbstractOperationContext.proc

      essStages(AbstractOperationContext.java:659)

      [Server:ServerOne]      at org.jboss.as.controller.AbstractOperationContext.exec

      uteOperation(AbstractOperationContext.java:370)

      [Server:ServerOne]      at org.jboss.as.controller.OperationContextImpl.executeO

      peration(OperationContextImpl.java:1344)

      [Server:ServerOne]      at org.jboss.as.controller.ModelControllerImpl.internalE

      xecute(ModelControllerImpl.java:392)

      [Server:ServerOne]      at org.jboss.as.controller.ModelControllerImpl.execute(M

      odelControllerImpl.java:217)

      [Server:ServerOne]      at org.jboss.as.controller.remote.TransactionalProtocolO

      perationHandler.internalExecute(TransactionalProtocolOperationHandler.java:247)

      [Server:ServerOne]      at org.jboss.as.controller.remote.TransactionalProtocolO

      perationHandler$ExecuteRequestHandler.doExecute(TransactionalProtocolOperationHa

      ndler.java:185)

      [Server:ServerOne]      at org.jboss.as.controller.remote.TransactionalProtocolO

      perationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandle

      r.java:138)

      [Server:ServerOne]      at org.jboss.as.controller.remote.TransactionalProtocolO

      perationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandle

      r.java:134)

      [Server:ServerOne]      at java.security.AccessController.doPrivileged(Native Me

      thod)

      [Server:ServerOne]      at javax.security.auth.Subject.doAs(Subject.java:360)

      [Server:ServerOne]      at org.jboss.as.controller.AccessAuditContext.doAs(Acces

      sAuditContext.java:81)

      [Server:ServerOne]      at org.jboss.as.controller.remote.TransactionalProtocolO

      perationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHand

      ler.java:157)

      [Server:ServerOne]      at org.jboss.as.controller.remote.TransactionalProtocolO

      perationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHand

      ler.java:153)

      [Server:ServerOne]      at java.security.AccessController.doPrivileged(Native Me

      thod)

      [Server:ServerOne]      at org.jboss.as.controller.remote.TransactionalProtocolO

      perationHandler$ExecuteRequestHandler$2.execute(TransactionalProtocolOperationHa

      ndler.java:153)

      [Server:ServerOne]      at org.jboss.as.protocol.mgmt.AbstractMessageHandler$Man

      agementRequestContextImpl$1.doExecute(AbstractMessageHandler.java:363)

      [Server:ServerOne]      at org.jboss.as.protocol.mgmt.AbstractMessageHandler$Asy

      ncTaskRunner.run(AbstractMessageHandler.java:472)

      [Server:ServerOne]      at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr

      eadPoolExecutor.java:1142)

      [Server:ServerOne]      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th

      readPoolExecutor.java:617)

      [Server:ServerOne]      at java.lang.Thread.run(Thread.java:745)

      [Server:ServerOne]      at org.jboss.threads.JBossThread.run(JBossThread.java:32

      0)

      [Server:ServerOne]