8 Replies Latest reply on Feb 26, 2015 7:58 AM by JYOTHI ALLA

    java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;

    JYOTHI ALLA Newbie

      I  used 7.1.1 Final jar.

      Using infinispan cache container that is defined wildfly standalone.xml.

      Have written below code to query from infinispan cache.

       

      SearchManager qf = Search.getSearchManager(infinispanCacheManager.getCache());

      org.apache.lucene.search.Query luceneQuery = qf.buildQueryBuilderForClass(AccessRoleMapModel.class).

      get().phrase().onField("storeId").

      sentence("1")

      .createQuery();

       

      CacheQuery query = qf.getQuery(luceneQuery ,AccessRoleMapModel.class)

       

       

      Getting following error

       

      16:33:12,097 ERROR [io.undertow.request] (default task-3) UT005023: Exception handling request to /participant/v1/accessrolemapcache: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;

        at org.infinispan.security.actions.GetCacheAuthorizationManagerAction.run(GetCacheAuthorizationManagerAction.java:19) [infinispan-core-7.1.1.Final.jar:7.1.1.Final]

        at org.infinispan.security.actions.GetCacheAuthorizationManagerAction.run(GetCacheAuthorizationManagerAction.java:12) [infinispan-core-7.1.1.Final.jar:7.1.1.Final]

        at org.infinispan.security.Security.doPrivileged(Security.java:76) [infinispan-core-7.1.1.Final.jar:7.1.1.Final]

        at org.infinispan.query.SecurityActions.doPrivileged(SecurityActions.java:25) [infinispan-query-7.1.1.Final.jar:7.1.1.Final]

        at org.infinispan.query.SecurityActions.getCacheAuthorizationManager(SecurityActions.java:31) [infinispan-query-7.1.1.Final.jar:7.1.1.Final]

        at org.infinispan.query.Search.ensureAccessPermissions(Search.java:41) [infinispan-query-7.1.1.Final.jar:7.1.1.Final]

        at org.infinispan.query.Search.getSearchManager(Search.java:36) [infinispan-query-7.1.1.Final.jar:7.1.1.Final]

        at com.sial.ecommerce.core.security.filter.SecurityFilter.doFilter(SecurityFilter.java:421) [ECommerceCore.jar:]

       

       

       

      Please help me what is the issue. Same issue with 7.0.3.final jars also.

        • 1. Re: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;
          Tristan Tarrant Master

          I just wrote a micro test:

          DefaultCacheManager cm = new DefaultCacheManager(global.build(), config.build());
                ConfigurationBuilder indexedConfig = new ConfigurationBuilder();
                indexedConfig.indexing().index(Index.ALL);;
                cm.defineConfiguration("indexed", indexedConfig.build());
                cm.start();
                SearchManager searchManager = Search.getSearchManager(cm.getCache("indexed"));
                cm.stop();
          

           

          And it works right away. Are you sure your classpath is clean ? Are you using the WF modules or are you embedding infinispan-embedded.jar and infinispan-embedded-query.jar in your deployment ?

          • 2. Re: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;
            JYOTHI ALLA Newbie

            Before I added the infinispan jars to deployment.At that it gave me nocushmethod error.

             

            But now I m using the wildfly modules by specifying dependencies: org.infinispan export to MANIFEST.MF,

             

            I have defined my cache container in wildfly standalone.xml as below

            <cache-container name="sialCache" default-cache="sialCache">

                            <transport lock-timeout="60000"/>

                            <replicated-cache name="sialCache" batching="true" mode="SYNC">

                                <locking isolation="REPEATABLE_READ"/>

                                <eviction strategy="NONE"/>

                            </replicated-cache>

            </cache-container>

             

             

            I am accessing cachecontainer from CacheManagerBean session bean as following:

            @Resource(name = "java:jboss/infinispan/container/sialCache")

              private CacheContainer infinispanCacheContainer;

             

            I am calling following code from other class

             

            @EJB

              CacheManagerBeanRemote  infinispanCacheManager;

             

             

            infinispanCacheManager.getCache();

              SearchManager qf = Search.getSearchManager(infinispanCacheManager.getCache());

             

             

            Getting below error while calling infinispanCacheManager.getCache();(while returning cache object from manager session bean)

             

            13:49:09,981 ERROR [stderr] (default task-2) java.lang.RuntimeException: JBAS014154: Failed to marshal EJB parameters

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:291)

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:280)

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:252)

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBObjectInterceptor.handleInvocation(EJBObjectInterceptor.java:58)

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBHomeInterceptor.handleInvocation(EJBHomeInterceptor.java:83)

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42)

            13:49:09,981 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)

            13:49:09,997 ERROR [stderr] (default task-2) at com.sun.proxy.$Proxy150.getCache(Unknown Source)

            13:49:09,997 ERROR [stderr] (default task-2) at com.sial.ecommerce.store.cache.services.StoreCacheResource.populateStoresToCache(StoreCacheResource.java:108)

            13:49:09,997 ERROR [stderr] (default task-2) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            13:49:09,997 ERROR [stderr] (default task-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            13:49:09,997 ERROR [stderr] (default task-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            13:49:09,997 ERROR [stderr] (default task-2) at java.lang.reflect.Method.invoke(Method.java:606)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)

            13:49:09,997 ERROR [stderr] (default task-2) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:09,998 ERROR [stderr] (default task-2) at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

            13:49:10,014 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,014 ERROR [stderr] (default task-2) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:340)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55)

            13:49:10,09 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            3:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

            3:49:10,029 ERROR [stderr] (default task-2) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

            13:49:10,09 ERROR [stderr] (default task-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

            13:49:10,029 ERROR [stderr] (default task-2) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:243)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBObjectInterceptor.handleInvocation(EJBObjectInterceptor.java:58)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBHomeInterceptor.handleInvocation(EJBHomeInterceptor.java:83)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)

            3:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)

            13:49:10,045 ERROR [stderr] (default task-2) at com.sun.proxy.$Proxy149.populateStoresToCache(Unknown Source)

            13:49:10,045 ERROR [stderr] (default task-2) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            13:49:10,045 ERROR [stderr] (default task-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            13:49:10,045 ERROR [stderr] (default task-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            13:49:10,045 ERROR [stderr] (default task-2) at java.lang.reflect.Method.invoke(Method.java:606)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:221)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)

            13:49:10,04 ERROR [stderr] (default task-2) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)

            13:49:10,045 ERROR [stderr] (default task-2) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)

            13:49:10,045 ERROR [stderr] (default task-2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

            13:49:10,045 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

            13:49:10,045 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

            13:49:10,045 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

            13:49:10,045 ERROR [stderr] (default task-2) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

            13:49:10,045 ERROR [stderr] (default task-2) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

            13:49:10,045 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)

            13:49:10,045 ERROR [stderr] (default task-2) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)

            13:49:10,045 ERROR [stderr] (default task-2) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

            13:49:10,045 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

            13:49:10,060 ERROR [stderr] (default task-2) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

            13:9:10,060 ERROR [stderr] (default task-2) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)

            13:49:10,060 ERROR [stderr] (default task-2) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687)

            13:49:10,060 ERROR [stderr] (default task-2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

            13:49:10,060 ERROR [stderr] (default task-2) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

            13:49:10,060 ERROR [stderr] (default task-2) at java.lang.Thread.run(Thread.java:744)

            13:49:10,060 ERROR [stderr] (default task-2) Caused by: java.io.NotSerializableException: org.jboss.as.clustering.infinispan.DefaultCacheContainer$DelegatingCache

            13:49:0,060 ERROR [stderr] (default task-2) at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:251)

            13:49:10,060 ERROR [stderr] (default task-2) at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:129)

            13:49:10,060 ERROR [stderr] (default task-2) at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:289)

             

            13:49:10,060 ERROR [stderr] (default task-2) ... 135 more

            • 3. Re: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;
              Tristan Tarrant Master

              A couple of things: you're attempting to serialize the Cache in the EJB: caches are not serializable.

              Also you should not be using the infinispan libraries provided by WildFly, since it's an old version.

              • 4. Re: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;
                JYOTHI ALLA Newbie

                do you mean we should not store serializable entities in infinispan cache? Or infinispan cache should not be serializable ?

                • 5. Re: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;
                  Tristan Tarrant Master

                  The latter. You probably have a "Cache" field in your EJB entity which needs to be serializable to adhere to the EJB spec. It should be marked as transient to avoid this.

                  • 6. Re: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;
                    JYOTHI ALLA Newbie

                    I marked Cache reference variable as transient.Still getting the same error.

                     

                    I had tried below things as well in order to use infinispan latest jars

                     

                    I modified modules.xml in wildfly modules to use 7.1.1 jars.

                     

                    But I got configuration issue while reading infinispan subsystem.I tried this yesterday.

                    • 7. Re: Re: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;
                      Tristan Tarrant Master

                      I marked Cache reference variable as transient.Still getting the same error.

                      Then at this point just obtain the Cache dynamically without storing references to it. You have to avoid making the Cache part of your EJB's serializable payload.

                       

                      I had tried below things as well in order to use infinispan latest jars

                       

                      I modified modules.xml in wildfly modules to use 7.1.1 jars.

                       

                      But I got configuration issue while reading infinispan subsystem.I tried this yesterday.

                      The Infinispan jars included by WildFly must not be touched, as they are part of WF's clustering subsystem.  Use the Infinispan WildFly modules http://infinispan.org/download/

                      And then follow the instructions at Infinispan User Guide

                      • 8. Re: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getAuthorizationManager()Lorg/infinispan/security/AuthorizationManager;
                        JYOTHI ALLA Newbie

                        Now I am getting below error at below line

                         

                        SearchManager qf = Search.getSearchManager(this.cache);

                          org.apache.lucene.search.Query luceneQuery = qf.buildQueryBuilderForClass(AccessRoleMapModel.class).get().phrase()

                          .onField("storeId").sentence(storeId).createQuery();(error line)

                         

                        Caused by: org.hibernate.search.SearchException: Can't build query for type com.sial.ecommerce.participant.role.model.AccessRoleMapModel which is neither indexed nor has any indexed sub-types.

                         

                        This is class

                         

                        import org.hibernate.search.annotations.Field;

                        import org.hibernate.search.annotations.Indexed;

                         

                         

                        /**

                        * The Class AccessRoleMapModel.

                        */

                        @Indexed

                        public class AccessRoleMapModel implements Serializable {

                         

                         

                          /** The Constant serialVersionUID. */

                          private static final long serialVersionUID = 8186401416931298029L;

                         

                         

                          /** The access role map id. */

                          private UUID accessRoleMapId;

                         

                         

                          /** The role id. */

                          private Integer roleId;

                         

                         

                          /** The target. */

                          private String target;

                         

                         

                          /** The store id. */

                          @Field private Integer storeId

                         

                         

                        Pls let me know what i m missing here

                         

                        Above functionality supposed to work in 6.0.1 version right ?