Hey i got a serialization error in my prject... just don t konw why may be
sb can help me.
Here is my Code where the Error occures with some other things.
if (listSvc == null) {
listSvc = GWT.create(ListServices.class);
}
// Set up the callback object.
AsyncCallback<BestellungDTO> callback = new
AsyncCallback<BestellungDTO>()
{
public void onFailure(Throwable caught) {
caught.printStackTrace();
Window.alert("A failure occured");
}
@Override
public void onSuccess(BestellungDTO result) {
Window.alert("Order Okay");
confirmOrder.hide();
}
};
//Call the data
-----> listSvc.saveOrder( Login.warenkorb.getBest() , lfGesamtpreis,
callback);
}
I get my error Where the arrow is
Here you got my Best:
/**
*
*/
package project.client.data;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* @author Vincenz M�ssenb�ck
*
*/
public class BestellungDTO implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private long ID;
private Set<BestellpositionDTO> alBestellpositionDTO;
private KundeDTO oKundeDTO;
private ZahlungsformDTO oZahlungsformDTO;
private Date dateBestelldatum;
private KundenstatistikDTO oKundenstatistikDTO;
public BestellungDTO() {
alBestellpositionDTO = new HashSet<BestellpositionDTO>();
dateBestelldatum = new Date();
}
public BestellungDTO(Set<BestellpositionDTO> alBestellpositionDTO,
KundeDTO oKundeDTO, ZahlungsformDTO oZahlungsformDTO) {
this.alBestellpositionDTO = alBestellpositionDTO;
this.oKundeDTO = oKundeDTO;
this.oZahlungsformDTO = oZahlungsformDTO;
dateBestelldatum = new Date();
}
public long getID() {
return ID;
}
public void setID(long ID) {
this.ID = ID;
}
public Set<BestellpositionDTO> getalBestellpositionDTO() {
return alBestellpositionDTO;
}
public void setalBestellpositionDTO(Set<BestellpositionDTO>
alBestellpositionDTO) {
this.alBestellpositionDTO = alBestellpositionDTO;
}
public Date getDateBestelldatum() {
return dateBestelldatum;
}
public void setDateBestelldatum(Date dateBestelldatum) {
this.dateBestelldatum = dateBestelldatum;
}
public KundeDTO getoKundeDTO() {
return oKundeDTO;
}
public void setoKundeDTO(KundeDTO oKundeDTO) {
this.oKundeDTO = oKundeDTO;
}
/**
* @return the oZahlungsformDTO
*/
public ZahlungsformDTO getoZahlungsformDTO() {
return oZahlungsformDTO;
}
/**
* @param oZahlungsformDTO the oZahlungsformDTO to set
*/
public void setoZahlungsformDTO(ZahlungsformDTO oZahlungsformDTO) {
this.oZahlungsformDTO = oZahlungsformDTO;
}
public KundenstatistikDTO getoKundenstatistikDTO() {
return oKundenstatistikDTO;
}
public void setoKundenstatistikDTO(KundenstatistikDTO
oKundenstatistikDTO) {
this.oKundenstatistikDTO = oKundenstatistikDTO;
}
}
hope i can get some help from you just don t konw what 2 do anymore nearly
same thing works in other part of the code without problems
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/bcRf-bAOEswJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.