on 04-26-2004 10:05 AM
Hello everybody,
this thread is planned for discussion about the Web Application Server 6.40 eLearning lessons which will be published this week. Please stay tuned until the lessons are here.
Regards
Daniel
Hi Daniel,
thanks for your help!
Now I get an error in Lesson 04 when I try to test the Webservice. The deployment ran without error!
The following message appears:
Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of class [com.sap.demo.customer.common.CustomerDTO] when deserializing xml type [urn:com.sap.demo.customer.common][CustomerDTO]..
I really have no idea what to do...
Thanks & regards
Katrin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Katrin,
can you please provide more details? How does your CustomerDTO look like? Does the CustomerDTO class implements the Serializable interface?
You can go to the Visual Administrator and inspect the log-files via the LogViewer-Service to figure out whats going on in the system.
Regards
Daniel
Hi Daniel,
my CustomerDTO implements the Serializable interface. Here it is:
package com.sap.demo.customer.common;
import java.io.Serializable;
public class CustomerDTO implements Serializable{
private String name;
private String form;
private String street;
private String zip;
private String city;
private String country;
private String phone;
private String email;
private String customerId;
private String password;
public CustomerDTO(String name, String form, String street, String zip, String city,
String country, String phone, String email, String customerId, String password){
this.name = name;
this.form = form;
this.street = street;
this.zip = zip;
this.city = city;
this.country = country;
this.phone = phone;
this.email = email;
this.customerId = customerId;
this.password = password;
}
/**
@return
*/
public String getCity() {
return city;
}
.....
All other webservices run successfully! In which logfile can I find the information regarding my error?
Regards, Katrin
Hi Daniel,
I am also follwoing the sap tutor files for WEBAS examples , in the web services section when i executing the register method i am getting "Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of class [com.sap.demo.customer.common.CustomerDTO] when deserializing XML type [urn:com.sap.demo.customer.common][CustomerDTO]..
i implemeted the CustomerDTO as serializable
the structure of the class as follows
package com.sap.demo.customer.common;
import java.io.Serializable;
/**
@author C5057942
*
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
*/
public class CustomerDTO implements Serializable {
private String name;
private String form ;
private String street;
private String zip;
private String city;
private String country;
private String phone ;
private String email ;
private String username ;
private String password;
/**
*/
public CustomerDTO(
String form ,
String name,
String street,
String zip,
String city,
String country,
String phone ,
String email ,
String username ,
String password)
/*)
*/
{
this.name=name;
this.form=form ;
this.street=street;
this.zip=zip;
this.city=city;
this.country=country;
this.phone=phone ;
this.email=email ;
this.username=username ;
this.password=password;
// TODO Auto-generated constructor stub
}
/**
@return
*/
public String getCity() {
return city;
}
/**
@return
*/
public String getCountry() {
return country;
}
/**
@return
*/
public String getEmail() {
return email;
}
/**
@return
*/
public String getForm() {
return form;
}
/**
@return
*/
public String getName() {
return name;
}
/**
@return
*/
public String getPassword() {
return password;
}
/**
@return
*/
public String getPhone() {
return phone;
}
/**
@return
*/
public String getStreet() {
return street;
}
/**
@return
*/
public String getUsername() {
return username;
}
/**
@return
*/
public String getZip() {
return zip;
}
/**
@param string
*/
public void setCity(String string) {
city = string;
}
/**
@param string
*/
public void setCountry(String string) {
country = string;
}
/**
@param string
*/
public void setEmail(String string) {
email = string;
}
/**
@param string
*/
public void setForm(String string) {
form = string;
}
/**
@param string
*/
public void setName(String string) {
name = string;
}
/**
@param string
*/
public void setPassword(String string) {
password = string;
}
/**
@param string
*/
public void setPhone(String string) {
phone = string;
}
/**
@param string
*/
public void setStreet(String string) {
street = string;
}
/**
@param string
*/
public void setUsername(String string) {
username = string;
}
/**
@param string
*/
public void setZip(String string) {
zip = string;
}
}
Please help me in this situation
Thanks & regards
A.Srinivasa Rao
Hi Akveti,
I see there is no empty constructor for class CustomerDTO. Please add the following line to CustomerDTO.java:
public CustomerDTO() {}
Then rebuild the project via menu item "Project" and choose "Rebuild All". Afterwards you can build the ear file again and redeploy it. Hope this helps.
Regards,
Daniel
I have the same problem here on the current client implementation project here.
The error message I have when I tried to Submit the WebService from the Web Services Navigator Test page:
Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of class [bell.bdi_retail.caso.Orders$Order] when deserializing XML type [urn:bell.bdi_retail.caso][Orders.Order]..
I checked my classes and they all have an empty constructor.
Anyone have any clues on where to look in order to help solving this "XML Deserialization Error"???
Thanks.
Hello,
I tried to do the first eLearning Lesson "Java Persistence - Java Dictionary" and failed within Step 43, because I do not have the SQL Studio installed. I tried to insall MaxDB new, but this also failed, cause it is already installed. How can I install the SQL Studio?
Regards, Katrin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Katrin,
the WebAS 6.40 Sneak Preview includes a MaxDB installation already. To inspect the tables you have to install SQL Studio from the following site: http://dev.mysql.com/downloads/maxdb/7.5.00.html.
Please find "SQL Studio Downloads" and pick a mirror server.
Regards,
Daniel
Hi
Pls can you specify the exact time and day?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dipender,
the recorded virtual classroom lessons for Web AS 6.40 are already online. This classrooms make you familiar with basic concepts. Please go to the Developer Area "Web Application Server" and enter the eLearning section. The lessons begins with the ID EVWAS*.
The SAP-Tutor files will be publish this week on Thursday.
Regards
Daniel
User | Count |
---|---|
76 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.