You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Ankit Singhai <an...@gmail.com> on 2017/11/01 06:19:14 UTC

Re: Failed to create string representation of binary object.

Hi Alex,
Below is the POJO:-

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.Date;

public class UserRegistrationInfoResponse implements Externalizable {
	private static final long serialVersionUID = 1L;
	private Date registrationDate;
	private String affiliateInformation;
	private Date rmpConversionDate;

	public UserRegistrationInfoResponse() {	    
		super();	
	}

	public Date getRegistrationDate() {
		return registrationDate;
	}

	public void setRegistrationDate(Date registrationDate) {
		this.registrationDate = registrationDate;
	}

	public Date getRmpConversionDate() {
		return rmpConversionDate;
	}

	public void setRmpConversionDate(Date rmpConversionDate) {
		this.rmpConversionDate = rmpConversionDate;
	}

	public String getAffiliateInformation() {
		return affiliateInformation;
	}

	public void setAffiliateInformation(String affiliateInformation) {
		this.affiliateInformation = affiliateInformation;
	}

	@Override
	public String toString() {
		return "UserRegistrationInfo [affiliateInformation="
		+ affiliateInformation + ", registrationDate="
		+ registrationDate + ", rmpConversionDate=" + rmpConversionDate
		+ "]";
	}

	@Override
	public void readExternal(ObjectInput in) throws IOException,
	ClassNotFoundException {
		registrationDate = (Date) in.readObject();
		affiliateInformation = (String) in.readObject();
		rmpConversionDate = (Date) in.readObject();

	}

	@Override
	public void writeExternal(ObjectOutput out) throws IOException {
		out.writeObject(registrationDate);
		out.writeObject(affiliateInformation);
		out.writeObject(rmpConversionDate);

	}

}

Thanks,
Ankit Singhai



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Failed to create string representation of binary object.

Posted by Alexey Popov <ta...@gmail.com>.
Ankit,

That looks very strange.
Your class does not have registrationInfoResponse field which is mentioned
in the error.

Please confirm that node with id="b2df236f-4fba-4794-b0e4-4e040581ba9d" is a
part of your load testing cluster.

Do you have peerClassLoadingEnabled=true at your configs?

Thanks,
Alexey






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Failed to create string representation of binary object.

Posted by "ilya.kasnacheev" <il...@gmail.com>.
Hello!

That issue may be caused by different versionы of
UserRegistrationInfoResponse class.
serialVersionUID is used during deserialization to verify that the sender
and receiver of a serialized object have loaded classes for that object that
are compatible with respect to serialization. 

You have disabled this check by having "private static final long
serialVersionUID = 1L;". Please ensure that you do not use multiple versions
of your class during dev/test. Maybe you have instances in cache with
different set of fields, for example.

Regards,



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/