[Simple-support] Problem with deserialization
Brought to you by:
niallg
|
From: azan <mic...@ho...> - 2012-04-14 07:53:17
|
Hi ,
I'm trying to deserialise a class that simple have well serialized , the
prob is that it doesnt return any error but the class is in fact badly
deserialized everytime i try to access a variable or a my int table the
program fail but Simple doesnt give me any error so ... i'm a little lost.
Here is the code of my class :
(i precise that i have used constructor injection ... it doesnt work) if
someone have a solution :)
@Root
public class Training {
public Training(){
super();
}
public Training(int[] p ,int [] r ,int c){
setRunning( r );
setPause(p);
setCycleNumber (c);
}
@Element(name="running")
private int[] running;
public int[] getRunning() {
return running;
}
public void setRunning(int[] running) {
this.running = running;
}
@Element(name="pause")
private int[] pause;
public int[] getPause() {
return pause;
}
public void setPause(int[] pause) {
this.pause = pause;
}
@Element(name="cycleNumber")
private int cycleNumber;
public int getCycleNumber() {
return cycleNumber;
}
public void setCycleNumber(int cycleNumber) {
this.cycleNumber = cycleNumber;
}
--
View this message in context: http://old.nabble.com/Problem-with-deserialization-tp33685933p33685933.html
Sent from the Simple XML Serialization mailing list archive at Nabble.com.
|