3 Replies Latest reply on May 3, 2010 10:22 AM by Anil Saldanha

    Serializable Objects from client to server

    Anil Saldanha Master

      I am using a serializable domain object from the client to the server side. It contains a bunch of String, boolean properties with getters and setters.  I can transmit the data from the client to the server without any problems except one.

       

      One of the values of the properties of the object transmitted from the client is coming out as "null".  The rest are fine.

       

      I am sure there is some small gotcha in what I am doing. I used the IDE to generate the getters/setters.

       

      What does the errai stub generation look for from properties perspective?

       

       

       

      package org.picketlink.console.client.model;
      
      import java.io.Serializable;
      
      import org.jboss.errai.bus.server.annotations.ExposeEntity;
      
      /**
       * Data sent back and forth between the STS Configuration Tab
       * and the server
       */
      @ExposeEntity
      public class STSConfig implements Serializable
      { 
         private static final long serialVersionUID = 1L;
         
         private String stsName;
         
         private int tokenTimeOut;
         
         private boolean encryptToken;
         
         private String keyProviderClass;
         
         private String keyStoreURL;
         
         private String keyStorePass;
         
         private String signingKeyAlias;
         
         private String signingKeyPass;
      
         public String getStsName()
         {
            return stsName;
         }
      
         public void setStsName(String stsName)
         {
            this.stsName = stsName;
         }
      
         public int getTokenTimeOut()
         {
            return tokenTimeOut;
         }
      
         public void setTokenTimeOut(int tokenTimeOut)
         {
            this.tokenTimeOut = tokenTimeOut;
         }
      
         public boolean isEncryptToken()
         {
            return encryptToken;
         }
      
         public void setEncryptToken(boolean encryptToken)
         {
            this.encryptToken = encryptToken;
         }
      
         public String getKeyProviderClass()
         {
            return keyProviderClass;
         }
      
         public void setKeyProviderClass(String keyProviderClass)
         {
            this.keyProviderClass = keyProviderClass;
         }
      
         public String getKeyStoreURL()
         {
            return keyStoreURL;
         }
      
         public void setKeyStoreURL(String keyProviderURL)
         {
            this.keyStoreURL = keyProviderURL;
         } 
         
         public String getKeyStorePass()
         {
            return keyStorePass;
         }
      
         public void setKeyStorePass(String keyStorePass)
         {
            this.keyStorePass = keyStorePass;
         }
      
         public String getSigningKeyAlias()
         {
            return signingKeyAlias;
         }
      
         public void setSigningKeyAlias(String signingKeyAlias)
         {
            this.signingKeyAlias = signingKeyAlias;
         }
      
         public String getSigningKeyPass()
         {
            return signingKeyPass;
         }
      
         public void setSigningKeyPass(String signingKeyPass)
         {
            this.signingKeyPass = signingKeyPass;
         }      
      }
      

       

       

      The property is "keyStorePass" that is turning out "null" at the server side.