11 Replies Latest reply on Feb 25, 2016 9:40 PM by smarlow

    Redeploy Issues

    screamingtree

      Hi,

      i moved recently to the new Wildfly 10 Final with our Webapplications. First of all the most things work like charm but i am facing some issues associated with the redeploy or hot swap function.

       

      First of all, if i deploy our app the first time on a fresh started Wildfly Instance there are no problems, but if i replace the war file inside the deployment folder serious things happen. I use infinispan as second level cache provider and on my jpa side is use an Idclass for an entity with two primary keys... the usual way.

      Now if i redeploy and try to select the entity with this idclass associated, i get this error

       

      15:37:43,943 TRACE [org.jboss.as.jpa] (default task-9) createQuery resultClass 'de.abdata.umlaufsteuerung.domain.entities.HeadGroupGroups' took 3ms

      15:37:43,943 INFO  [stdout] (default task-9) Hibernate:

      15:37:43,943 INFO  [stdout] (default task-9)     select

      15:37:43,943 INFO  [stdout] (default task-9)         headgroupg0_.group_id as group_id1_4_,

      15:37:43,943 INFO  [stdout] (default task-9)         headgroupg0_.head_group_id as head_gro2_4_

      15:37:43,943 INFO  [stdout] (default task-9)     from

      15:37:43,943 INFO  [stdout] (default task-9)         headgroup_group headgroupg0_

      15:37:43,943 INFO  [stdout] (default task-9)     where

      15:37:43,943 INFO  [stdout] (default task-9)         headgroupg0_.head_group_id=?

      15:37:43,947 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (default task-9) ISPN000136: Error executing command GetKeyValueCommand, writing keys []: org.hibernate.property.access.spi.PropertyAccessException: Error accessing field [private int de.abdata.umlaufsteuerung.domain.entities.HeadGroupGroupsId.groupID] by reflection for persistent property [de.abdata.umlaufsteuerung.domain.entities.HeadGroupGroupsId#groupID] : HeadGroupGroupsId{headGroup=2, groupID=44}

        at org.hibernate.property.access.spi.GetterFieldImpl.get(GetterFieldImpl.java:43)

        at org.hibernate.tuple.component.AbstractComponentTuplizer.getPropertyValue(AbstractComponentTuplizer.java:58)

        at org.hibernate.type.ComponentType.getPropertyValue(ComponentType.java:419)

        at org.hibernate.type.ComponentType.getHashCode(ComponentType.java:229)

        at org.hibernate.cache.infinispan.TypeEquivalance.hashCode(TypeEquivalance.java:24)

        at org.infinispan.commons.util.concurrent.jdk8backported.BoundedEquivalentConcurrentHashMapV8.get(BoundedEquivalentConcurrentHashMapV8.java:2427)

        at org.infinispan.container.DefaultDataContainer.get(DefaultDataContainer.java:188)

        at org.infinispan.container.EntryFactoryImpl.innerGetFromContainer(EntryFactoryImpl.java:288)

        at org.infinispan.container.EntryFactoryImpl.getFromContainer(EntryFactoryImpl.java:258)

        at org.infinispan.container.EntryFactoryImpl.wrapEntryForReading(EntryFactoryImpl.java:64)

        at org.infinispan.interceptors.EntryWrappingInterceptor.visitDataReadCommand(EntryWrappingInterceptor.java:132)

        at org.infinispan.interceptors.EntryWrappingInterceptor.visitGetKeyValueCommand(EntryWrappingInterceptor.java:123)

        at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

        at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:113)

        at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:85)

        at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

        at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitDataReadCommand(PessimisticLockingInterceptor.java:71)

        at org.infinispan.interceptors.locking.AbstractLockingInterceptor.visitGetKeyValueCommand(AbstractLockingInterceptor.java:77)

        at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

        at org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:345)

        at org.infinispan.interceptors.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:330)

        at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)

        at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:107)

        at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:76)

        at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:85)

        at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

        at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:336)

        at org.infinispan.cache.impl.CacheImpl.containsKey(CacheImpl.java:391)

        at org.infinispan.cache.impl.CacheImpl.containsKey(CacheImpl.java:384)

        at org.infinispan.cache.impl.AbstractDelegatingCache.containsKey(AbstractDelegatingCache.java:276)

        at org.hibernate.cache.infinispan.access.InvalidationCacheAccessDelegate.putFromLoad(InvalidationCacheAccessDelegate.java:102)

        at org.hibernate.cache.infinispan.entity.ReadOnlyAccess.putFromLoad(ReadOnlyAccess.java:57)

        at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:208)

        at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:128)

        at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1132)

        at org.hibernate.loader.Loader.processResultSet(Loader.java:992)

        at org.hibernate.loader.Loader.doQuery(Loader.java:930)

        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:336)

        at org.hibernate.loader.Loader.doList(Loader.java:2611)

        at org.hibernate.loader.Loader.doList(Loader.java:2594)

        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2423)

        at org.hibernate.loader.Loader.list(Loader.java:2418)

        at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:501)

        at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371)

        at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216)

        at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1326)

        at org.hibernate.internal.QueryImpl.list(QueryImpl.java:87)

        at org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:606)

        at org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:483)

        at de.abdata.umlaufsteuerung.serviceimpl.CirculationDatabaseRequests.getHeadgroupsGroups(CirculationDatabaseRequests.java:133)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:497)

        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)

        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)

        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

        at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

        at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

        at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)

        at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327)

        at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

        at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

        at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

        at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

        at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

        at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

        at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

        at de.abdata.umlaufsteuerung.serviceimpl.CirculationDatabaseRequests$$$view9.getHeadgroupsGroups(Unknown Source)

        at de.abdata.umlaufsteuerung.conversationmodel.CirculationModel.getHeadGroupGroups(CirculationModel.java:253)

        at de.abdata.umlaufsteuerung.conversationmodel.CirculationModel$Proxy$_$$_WeldClientProxy.getHeadGroupGroups(Unknown Source)

        at de.abdata.umlaufsteuerung.bean.circulation.EditCirculation.setSelectedHeadgroup(EditCirculation.java:495)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:497)

        at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)

        at com.sun.el.parser.AstValue.invoke(AstValue.java:289)

        at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)

        at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

        at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

        at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

        at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

        at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

        at org.primefaces.behavior.ajax.AjaxBehaviorListenerImpl.processAjaxBehavior(AjaxBehaviorListenerImpl.java:54)

        at javax.faces.event.AjaxBehaviorEvent.processListener(AjaxBehaviorEvent.java:113)

        at javax.faces.component.behavior.BehaviorBase.broadcast(BehaviorBase.java:106)

        at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:805)

        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)

        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)

        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:658)

        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

        at de.abdata.umlaufsteuerung.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:44)

        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)

        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

        at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)

        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

        at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

        at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)

        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)

        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

      Caused by: java.lang.IllegalArgumentException: Can not set int field de.abdata.umlaufsteuerung.domain.entities.HeadGroupGroupsId.groupID to de.abdata.umlaufsteuerung.domain.entities.HeadGroupGroupsId

        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)

        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)

        at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:58)

        at sun.reflect.UnsafeIntegerFieldAccessorImpl.getInt(UnsafeIntegerFieldAccessorImpl.java:56)

        at sun.reflect.UnsafeIntegerFieldAccessorImpl.get(UnsafeIntegerFieldAccessorImpl.java:36)

        at java.lang.reflect.Field.get(Field.java:393)

        at org.hibernate.property.access.spi.GetterFieldImpl.get(GetterFieldImpl.java:39)

        ... 174 more

       

       

      15:37:43,962 DEBUG [org.jboss.as.jpa] (default task-9) default task-9:transaction scoped EntityManager [umlaufsteuerung.war#umlaufsteuerung]: closing entity managersession

      I am not quite sure why it is this way. On a fresh wildfly instance the code works very well. Seems for me like the Infinispan Cache is not correct cleared on a redeploy. Any sugestions?

       

      Taking a look inside the shutdown of the old war file offers the following error

      15:36:29,933 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 66) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'umlaufsteuerung.war#fam'

      15:36:29,936 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 61) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'umlaufsteuerung.war#umlaufsteuerung'

      15:36:29,963 ERROR [stderr] (ServerService Thread Pool -- 65) Exception in thread "ServerService Thread Pool -- 65" java.lang.IllegalStateException: ISPN000371: Cannot remove cache configuration 'local-query' because it is in use

      15:36:29,963 ERROR [stderr] (ServerService Thread Pool -- 65) at org.infinispan.manager.DefaultCacheManager.undefineConfiguration(DefaultCacheManager.java:391)

      15:36:29,964 ERROR [stderr] (ServerService Thread Pool -- 65) at org.jboss.as.clustering.infinispan.DefaultCacheContainer.undefineConfiguration(DefaultCacheContainer.java:90)

      15:36:29,964 ERROR [stderr] (ServerService Thread Pool -- 65) at org.wildfly.clustering.infinispan.spi.service.ConfigurationBuilder.stop(ConfigurationBuilder.java:80)

      15:36:29,964 ERROR [stderr] (ServerService Thread Pool -- 65) at org.wildfly.clustering.service.AsynchronousServiceBuilder$2.run(AsynchronousServiceBuilder.java:130)

      15:36:29,964 ERROR [stderr] (ServerService Thread Pool -- 65) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      15:36:29,964 ERROR [stderr] (ServerService Thread Pool -- 65) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      15:36:29,964 ERROR [stderr] (ServerService Thread Pool -- 65) at java.lang.Thread.run(Thread.java:745)

      15:36:29,964 ERROR [stderr] (ServerService Thread Pool -- 65) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      15:36:29,978 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 61) WFLYCLINF0003: Stopped client-mappings cache from ejb container

      Maybe this is the Problem?

        • 1. Re: Redeploy Issues
          smarlow

          What are your persistence unit property settings?  Perhaps you could share the persistence.xml contents that contain fam + umlaufsteuerung persistence units.

           

          I agree that the undeploy failure should be understood first.

          • 2. Re: Redeploy Issues
            smarlow

            It might also be helpful to try the latest nightly build, in case this issue has been addressed already.  The nightly build link is https://developer.jboss.org/message/810641#810641

            • 3. Re: Redeploy Issues
              screamingtree

              Hi,

              thank you for your response.

              I tried the actual nightly from 15.02 an it is the same. same error on undeploy, and later the same error on accessing the idclass. I tried to replace the idclass implementation with an embedded id implementation. But this gives the same error.

               

              I tried the redeploy by hand, just copied the war file. and per maven via wildfly plugin goal redeploy an deploy. The last thing i tried was the intellij jboss tools plugin. All the same error in the end.

              I migrated from wildfly 9.0.2, there it worked well with the same settings.

               

              My persistence.xml loks this way:

              <?xml version="1.0" encoding="UTF-8"?>
              <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence"
                 xsi:schemaLocation="
                http://xmlns.jcp.org/xml/ns/persistence
                http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
                <persistence-unit name="umlaufsteuerung" transaction-type="JTA">
                 <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
                <jta-data-source>java:jboss/datasources/umlaufsteuerung</jta-data-source>
                <class>de.abdata.umlaufsteuerung.domain.entities.Process</class>
              .....
                <exclude-unlisted-classes>true</exclude-unlisted-classes>
                <shared-cache-mode>DISABLE_SELECTIVE</shared-cache-mode>
                <properties>
                <property name="hibernate.transaction.jta.platform"
                 value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform"/>
                <property name="hibernate.hbm2ddl.auto" value="update"/>
                <property name="hibernate.show_sql" value="true"/>
                <property name="hibernate.jdbc.batch_size" value="100"/>
                <property name="hibernate.cache.use_second_level_cache" value="true"/>
                <property name="hibernate.cache.use_query_cache" value="true"/>
                <property name="hibernate.format_sql" value="true"/>
                <property name="hibernate.generate_statistics" value="true"/>
                </properties>
                </persistence-unit>

                <persistence-unit name="fam" transaction-type="JTA">
                 <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
                <jta-data-source>java:jboss/datasources/fam</jta-data-source>
                <class>de.abdata.umlaufsteuerung.domain.entities.dok.Document</class>
              ....
                <exclude-unlisted-classes>true</exclude-unlisted-classes>
                <shared-cache-mode>DISABLE_SELECTIVE</shared-cache-mode>
                <properties>
                <property name="hibernate.transaction.jta.platform"
                 value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform"/>
                <property name="hibernate.hbm2ddl.auto" value="validate"/>
                <property name="hibernate.show_sql" value="true"/>
                <property name="hibernate.jdbc.batch_size" value="100"/>
                <property name="hibernate.cache.use_second_level_cache" value="true"/>
                <property name="hibernate.cache.use_query_cache" value="true"/>
                <property name="hibernate.format_sql" value="true"/>
                </properties>
                </persistence-unit>
              </persistence>

              • 4. Re: Redeploy Issues
                smarlow

                Thank you for the answers.  I don't think it will help but could you try removing "hibernate.transaction.jta.platform" from your persistence.xml.  WildFly provides its own jta platform by default (unless the application specifies "hibernate.transaction.jta.platform").  The WildFly jta platform extends org.hibernate.engine.transaction.jta.platform.internal.JBossAppServerJtaPlatform.

                 

                Are there more exceptions before/after the "ServerService Thread Pool -- 65" java.lang.IllegalStateException: ISPN000371: Cannot remove cache configuration 'local-query' because it is in use" that you have not shown? 


                Thanks for reporting this.


                Scott

                • 5. Re: Redeploy Issues
                  screamingtree

                  Okay i removed the property but it does not change anything.

                  There are no additional exceptions in the whole undeploy and redeploy process.

                  • 6. Re: Redeploy Issues
                    smarlow

                    Paul created a few bug reports for this.  HHH-10545 + HHH-10546

                    • 7. Re: Redeploy Issues
                      smarlow

                      And WildFly patch at https://github.com/wildfly/wildfly/pull/8709.  Are you setup to build WildFly Patrik? 

                      • 8. Re: Redeploy Issues
                        smarlow

                        I tried to recreate with a very simple deployment but couldn't.  Perhaps you could make changes to https://github.com/scottmarlow/2lc to help recreate the failure?

                        • 9. Re: Redeploy Issues
                          pferraro
                          • 10. Re: Redeploy Issues
                            smarlow

                            We still don't have a reproducing test case to try Paul's fix.  WFLY-6283 was reported today which could be related.

                            • 11. Re: Redeploy Issues
                              smarlow

                              Patrik, could you please try recreating the failure with this custom WildFly build.  I built it with Paul's code change, which should help.

                               

                              Let us know if that helps.

                               

                              Scott