Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-16856

Clustering: "Import 'java.time.proto' not found" in remote-cache-container

XMLWordPrintable

    • Hide
      • build WildFly 27.0.0.Alpha5 and place server in folder wildfly
      • Infinispan: adding serverUser admin / pass.1234
        ./infinispan/bin/user-tool.sh admin -p 'pass.1234'
                
      • Infinispan: start
        ./infinispan/bin/server.sh --bind-address=127.0.0.1 --server-config=infinispan.xml --cluster-stack=tcp --cluster-name=cluster_test --node-name=jdg1
                
      • Wildfly: adding serverUser admin / pass.1234
        ./wildfly/bin/add-user.sh -u 'admin' -p 'pass.1234'    
                
      • WildFly: configure
        embed-server --server-config=standalone-ha.xml
        /subsystem=jgroups/channel=ee:write-attribute(name=stack,value=tcp)
        /subsystem=transactions:write-attribute(name=node-identifier,value=wildfly1)
        /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-jdg-server1:add(host=127.0.0.1, port=11222)
        
        batch
        /subsystem=infinispan/remote-cache-container=session_data_cc:add(default-remote-cluster=jdg-server-cluster, protocol-version=3.1, statistics-enabled=true, properties={infinispan.client.hotrod.auth_username=admin, infinispan.client.hotrod.auth_password=pass.1234})
        /subsystem=infinispan/remote-cache-container=session_data_cc/remote-cluster=jdg-server-cluster:add(socket-bindings=[remote-jdg-server1])
        run-batch
        if (outcome == success) of /subsystem=infinispan/remote-cache-container=session_data_cc:read-attribute(name=modules)
            /subsystem=infinispan/remote-cache-container=session_data_cc:write-attribute(name=modules,value=[org.wildfly.clustering.web.hotrod])
        else
            /subsystem=infinispan/remote-cache-container=session_data_cc:write-attribute(name=module,value=org.wildfly.clustering.web.hotrod)
        end-if
        /subsystem=distributable-web/hotrod-session-management=sm_offload:add(remote-cache-container=session_data_cc, granularity=ATTRIBUTE)
        /subsystem=distributable-web/hotrod-session-management=sm_offload/affinity=local:add()
        /subsystem=distributable-web/hotrod-session-management=sm_offload_granular:add(remote-cache-container=session_data_cc, granularity=ATTRIBUTE)
        /subsystem=distributable-web/hotrod-session-management=sm_offload_granular/affinity=local:add()
        if (outcome == success) of /subsystem=infinispan/remote-cache-container=session_data_cc:read-children-resources(child-type=near-cache)
        /subsystem=infinispan/remote-cache-container=session_data_cc/near-cache=invalidation:add(max-entries=1000)
        end-if
        /subsystem=distributable-web:write-attribute(name=default-session-management,value=sm_offload_granular)       
                
      • WildFly: start
        ./wildfly/bin/standalone.sh -b=127.0.0.1 -bmanagement=127.0.0.1 -bprivate=127.0.0.1 --server-config=standalone-ha.xml -Djboss.default.multicast.address=230.0.0.118 -Dprogram.name=wildfly1 -Djboss.node.name=wildfly1
                
      • deploy the attached clusterbench-jakarta10.ear
      Show
      Infinispan: download server https://downloads.jboss.org/infinispan/13.0.10.Final/infinispan-server-13.0.10.Final.zip and unzip it to infinispan folder build WildFly 27.0.0.Alpha5 and place server in folder wildfly Infinispan: adding serverUser admin / pass.1234 ./infinispan/bin/user-tool.sh admin -p 'pass.1234' Infinispan: start ./infinispan/bin/server.sh --bind-address=127.0.0.1 --server-config=infinispan.xml --cluster-stack=tcp --cluster-name=cluster_test --node-name=jdg1 Wildfly: adding serverUser admin / pass.1234 ./wildfly/bin/add-user.sh -u 'admin' -p 'pass.1234' WildFly: configure embed-server --server-config=standalone-ha.xml /subsystem=jgroups/channel=ee:write-attribute(name=stack,value=tcp) /subsystem=transactions:write-attribute(name=node-identifier,value=wildfly1) /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-jdg-server1:add(host=127.0.0.1, port=11222) batch /subsystem=infinispan/remote-cache-container=session_data_cc:add(default-remote-cluster=jdg-server-cluster, protocol-version=3.1, statistics-enabled=true, properties={infinispan.client.hotrod.auth_username=admin, infinispan.client.hotrod.auth_password=pass.1234}) /subsystem=infinispan/remote-cache-container=session_data_cc/remote-cluster=jdg-server-cluster:add(socket-bindings=[remote-jdg-server1]) run-batch if (outcome == success) of /subsystem=infinispan/remote-cache-container=session_data_cc:read-attribute(name=modules) /subsystem=infinispan/remote-cache-container=session_data_cc:write-attribute(name=modules,value=[org.wildfly.clustering.web.hotrod]) else /subsystem=infinispan/remote-cache-container=session_data_cc:write-attribute(name=module,value=org.wildfly.clustering.web.hotrod) end-if /subsystem=distributable-web/hotrod-session-management=sm_offload:add(remote-cache-container=session_data_cc, granularity=ATTRIBUTE) /subsystem=distributable-web/hotrod-session-management=sm_offload/affinity=local:add() /subsystem=distributable-web/hotrod-session-management=sm_offload_granular:add(remote-cache-container=session_data_cc, granularity=ATTRIBUTE) /subsystem=distributable-web/hotrod-session-management=sm_offload_granular/affinity=local:add() if (outcome == success) of /subsystem=infinispan/remote-cache-container=session_data_cc:read-children-resources(child-type=near-cache) /subsystem=infinispan/remote-cache-container=session_data_cc/near-cache=invalidation:add(max-entries=1000) end-if /subsystem=distributable-web:write-attribute(name=default-session-management,value=sm_offload_granular) WildFly: start ./wildfly/bin/standalone.sh -b=127.0.0.1 -bmanagement=127.0.0.1 -bprivate=127.0.0.1 --server-config=standalone-ha.xml -Djboss.default.multicast.address=230.0.0.118 -Dprogram.name=wildfly1 -Djboss.node.name=wildfly1 deploy the attached clusterbench-jakarta10.ear
    • ---
    • ---

      When a WildFly server offloads session data to a remote Infinispan server using the HotRod protocol, the following errors happens when deploying an application:

      15:16:07,440 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service org.wildfly.clustering.infinispan.remote-cache-container-configuration.session_data_cc: org.jboss.msc.service.StartException in service org.wildfly.clustering.infinispan.remote-cache-container-configuration.session_data_cc: org.infinispan.protostream.DescriptorParserException: Import 'java.time.proto' not found
      	at org.wildfly.clustering.service@27.0.0.Alpha5-SNAPSHOT//org.wildfly.clustering.service.FunctionalService.start(FunctionalService.java:66)
      	at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
      	at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
      	at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: org.infinispan.protostream.DescriptorParserException: Import 'java.time.proto' not found
      	at org.infinispan.protostream@4.4.3.Final//org.infinispan.protostream.descriptors.FileDescriptor.resolveImports(FileDescriptor.java:291)
      	at org.infinispan.protostream@4.4.3.Final//org.infinispan.protostream.descriptors.FileDescriptor.resolveDependencies(FileDescriptor.java:229)
      	at org.infinispan.protostream@4.4.3.Final//org.infinispan.protostream.descriptors.FileDescriptor.resolveDependencies(FileDescriptor.java:210)
      	at org.infinispan.protostream@4.4.3.Final//org.infinispan.protostream.descriptors.ResolutionContext.resolve(ResolutionContext.java:57)
      	at org.infinispan.protostream@4.4.3.Final//org.infinispan.protostream.impl.SerializationContextImpl.registerProtoFiles(SerializationContextImpl.java:118)
      	at org.wildfly.clustering.marshalling.protostream@27.0.0.Alpha5-SNAPSHOT//org.wildfly.clustering.marshalling.protostream.AbstractSerializationContextInitializer.registerSchema(AbstractSerializationContextInitializer.java:69)
      	at org.wildfly.clustering.infinispan.marshalling@27.0.0.Alpha5-SNAPSHOT//org.wildfly.clustering.infinispan.marshalling.MarshallerFactory$1.apply(MarshallerFactory.java:54)
      	at org.wildfly.clustering.infinispan.marshalling@27.0.0.Alpha5-SNAPSHOT//org.wildfly.clustering.infinispan.marshalling.MarshallerFactory$1.apply(MarshallerFactory.java:48)
      	at org.jboss.as.clustering.infinispan@27.0.0.Alpha5-SNAPSHOT//org.jboss.as.clustering.infinispan.subsystem.remote.HotRodMarshallerFactory$1.apply(HotRodMarshallerFactory.java:44)
      	at org.jboss.as.clustering.infinispan@27.0.0.Alpha5-SNAPSHOT//org.jboss.as.clustering.infinispan.subsystem.remote.HotRodMarshallerFactory$1.apply(HotRodMarshallerFactory.java:41)
      	at org.jboss.as.clustering.infinispan@27.0.0.Alpha5-SNAPSHOT//org.jboss.as.clustering.infinispan.subsystem.remote.RemoteCacheContainerConfigurationServiceConfigurator.get(RemoteCacheContainerConfigurationServiceConfigurator.java:189)
      	at org.jboss.as.clustering.infinispan@27.0.0.Alpha5-SNAPSHOT//org.jboss.as.clustering.infinispan.subsystem.remote.RemoteCacheContainerConfigurationServiceConfigurator.get(RemoteCacheContainerConfigurationServiceConfigurator.java:81)
      	at org.wildfly.clustering.service@27.0.0.Alpha5-SNAPSHOT//org.wildfly.clustering.service.FunctionalService.start(FunctionalService.java:63)
      	... 8 more
      
      

            pferraro@redhat.com Paul Ferraro
            tborgato@redhat.com Tommaso Borgato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: