I'd recommend posting an SSCCE that reproduces the behavior you observe, because the following:

import java.io.*;

public class BSTNode implements Serializable {

//static final long...