Si esa es la linea 102, la clase player es esta:
Código (java) [Seleccionar]
public class Player {
protected String name;
protected int squadNumber;
protected float battingAverage;
protected Team team;
public Player (String name, int squadNumber, float battingAverage){
this.name = name;
this.squadNumber = squadNumber;
this.battingAverage = battingAverage;
}
public Player() {
// TODO Auto-generated constructor stub
}
public void setName(String n){this.name = n;}
public String getName(){return this.name;}
public void setSquadNumber(int s){this.squadNumber = s;}
public int getSquadNumber(){return this.squadNumber;}
public void setBattingAverage(final float b){this.battingAverage = b;}
public float getBattingAverage(){return this.battingAverage;}
public void setTeam(Team t) {this.team = t;}
public Team getTeam() {return this.team;}
public String toString() {
return name + ":" + battingAverage;
}
}
el problema creo que esta cuando creo la base y la cierro en el metodo createTestData() y despues al hacer la consulta la abro y salta el error.