Uploaded image for project: 'JBoss Data Grid'
  1. JBoss Data Grid
  2. JDG-385

ClassNotFound on remote execution of a ServerTask

    Details

    • Steps to Reproduce:
      Hide

      (1) Clone the following git repo: https://github.com/redhat-italy/jdg-remote-task.git
      (2) Export the environment variable JBOSS_HOME to a valid JDG7 server
      (3) Run mvn clean test

      Show
      (1) Clone the following git repo: https://github.com/redhat-italy/jdg-remote-task.git (2) Export the environment variable JBOSS_HOME to a valid JDG7 server (3) Run mvn clean test
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Serialize parameters using standard serialization client-side, send them as binary and let the task itself deserialize them.

      Show
      Serialize parameters using standard serialization client-side, send them as binary and let the task itself deserialize them.

      Description

      Execute a server task with a java pojo as a parameter results in a classnotfound exception by the org.infinispan.commons module. Follows the exception:
      java.lang.ClassNotFoundException: it.redhat.demo.model.ModelPojo from [Module "org.infinispan.commons:main" from local module loader @33e5ccce (finder: local module finder @5a42bbf4 (roots: /Dati/Lavoro/RedHat/server/jboss-datagrid-7.0.0-server/modules,/Dati/Lavoro/RedHat/server/jboss-datagrid-7.0.0-server/modules/system/layers/base))]
      at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:343)
      at org.infinispan.client.hotrod.impl.protocol.Codec20.readPartialHeader(Codec20.java:132)
      at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:118)
      at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56)
      at org.infinispan.client.hotrod.impl.operations.ExecuteOperation.executeOperation(ExecuteOperation.java:48)
      at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:54)
      at org.infinispan.client.hotrod.impl.RemoteCacheImpl.execute(RemoteCacheImpl.java:541)
      at it.redhat.demo.client.TestRemoteTask.testExecuteTask(TestRemoteTask.java:49)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                galder.zamarreno Galder ZamarreƱo
                Reporter:
                fabiomarinelli Fabio Marinelli
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: