cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valerio Schiavoni (JIRA)" <>
Subject [jira] Created: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)
Date Fri, 30 Jan 2009 14:03:59 GMT
Fields of deserialized objects are null (No DOCTYPE declaration..)

                 Key: CXF-2017
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.1.3
         Environment: java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-277)
Java HotSpot(TM) Client VM (build 1.5.0_16-130, mixed mode, sharing)
Mac OSX 10.5.6
            Reporter: Valerio Schiavoni

I use the simple front-end to export a java interface and to call it.

Given this simple java interface:

public interface ServiceWithWeirdParams {
	void mapOfMapWithStringAndPojo(Map<String, Map<String, Pojo>> bigParam);

The implementation simply prints the bigParam argument.

Pojo is:
public class Pojo implements Serializable {

	private static final long serialVersionUID = 1481418882118674796L;

	int id;

	String name;

	Pojo parent;

	XMLGregorianCalendar date;

	public final XMLGregorianCalendar getDate() {
		return date;

	public final void setDate(XMLGregorianCalendar date) { = date;

	public final int getId() {
		return id;

	public final void setId(int id) { = id;

	public final String getName() {
		return name;

	public final void setName(String name) { = name;

	public final Pojo getParent() {
		return parent;

	public final void setParent(Pojo parent) {
		this.parent = parent;

	public String toString() {
		return "Pojo[id:" + id + ",name:" + name + ",date:" + date + "]";

CXF on both client and server-side is configured using Aegis, like this:

		wsServerFactoryBean = new ServerFactoryBean();
		AegisDatabinding aDB = new AegisDatabinding();
		final AegisContext aegisContext = new AegisContext();

The method is invoked like this:
               Pojo p1 = new Pojo();
		p1.setName("i am a pojo");
		Map<String, Map<String, Pojo>> mapWithMapOfStringAndPojo = new HashMap<String,
Map<String, Pojo>>();
		Map<String, Pojo> nameAndPojo = new HashMap<String, Pojo>();
		nameAndPojo.put("firstPojo", p1);
		mapWithMapOfStringAndPojo.put("keyForFirstPojo", nameAndPojo);

And it prints:
***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE
declaration, Root is [Element: <ns1:value [Namespace:]/>]]}}

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message