cancel
Showing results for 
Search instead for 
Did you mean: 

Web Application Server 6.40 eLearning

cand1
Advisor
Advisor
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

cand1
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Edit: Removed comment because this was a WebDynpro - quite a different animal... I thought you were working on a J2EE persistance problem.

Message was edited by: Dale Seng

Former Member
0 Kudos

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

cand1
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi all,

Do we have a solution to this problem yet?

I am getting the XML deserialization error message when I try to register a customer.

The addition on an empty constructor removes the error but the register method fails to insert the customer information.

Please help

Jay

Former Member
0 Kudos

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

cand1
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Hello,

in the lesson 01 "EJB - J2EE" I get an error when I try to configure the SAP J2EE Engine (step 33). The errormessage is "No local engine could be found. Reason: No system could be found under
myhost\sapmnt"

Do I have to change any paths?

Thanks & Regards

Katrin

cand1
Advisor
Advisor
0 Kudos

Hello Katrin,

you can try to configure your J2EE instance via the "SAP J2EE engine is installed on remote host." Enter as Server Host "localhost" or an appropriate server name and as server port the default port for the message server "3601".

Kind Regards,

Daniel

Former Member
0 Kudos

Hi

Pls can you specify the exact time and day?

cand1
Advisor
Advisor
0 Kudos

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