You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Valerio Schiavoni (JIRA)" <ji...@apache.org> on 2009/01/30 15:03:59 UTC

[jira] Created: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Fields of deserialized objects are null (No DOCTYPE declaration..)
------------------------------------------------------------------

                 Key: CXF-2017
                 URL: https://issues.apache.org/jira/browse/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) {
		this.date = date;
	}

	public final int getId() {
		return id;
	}

	public final void setId(int id) {
		this.id = id;
	}

	public final String getName() {
		return name;
	}

	public final void setName(String name) {
		this.name = name;
	}

	public final Pojo getParent() {
		return parent;
	}

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

	@Override
	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();
		aegisContext.setWriteXsiTypes(true);
		aDB.setAegisContext(aegisContext);
         	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);

The method is invoked like this:
	       
               Pojo p1 = new Pojo();
		p1.setName("i am a pojo");
		p1.setId(666);
		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);
		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);

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


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


[jira] Commented: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669511#action_12669511 ] 

Willem Jiang commented on CXF-2017:
-----------------------------------

Done , it should be a part of CXF 2.1.4-snapshot :).

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Daniel Kulp
>             Fix For: 2.2
>
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Commented: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669429#action_12669429 ] 

Benson Margulies commented on CXF-2017:
---------------------------------------

I expect someone to push it to 2.1.4. 

It I have time today I'll push out a 2.2 snapshot for you to try.

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Daniel Kulp
>             Fix For: 2.2
>
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Commented: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Valerio Schiavoni (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669552#action_12669552 ] 

Valerio Schiavoni commented on CXF-2017:
----------------------------------------

cool, it works fine now. thanks !

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Daniel Kulp
>             Fix For: 2.2
>
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Commented: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669081#action_12669081 ] 

Benson Margulies commented on CXF-2017:
---------------------------------------

This turns out to be a simple matter of forgetting that not all collections (e.g. Map) inherit from Collection. All done on trunk, hopefully Dan will migrate to 2.1.4.


> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Benson Margulies
>             Fix For: 2.2
>
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Commented: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Valerio Schiavoni (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669522#action_12669522 ] 

Valerio Schiavoni commented on CXF-2017:
----------------------------------------

I guess it takes sometimes before the snapshot is available through the repositories...right?

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Daniel Kulp
>             Fix For: 2.2
>
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Commented: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669523#action_12669523 ] 

Willem Jiang commented on CXF-2017:
-----------------------------------

Yes, if you can't wait, you can check out the code from http://svn.apache.org/repos/asf/cxf/branches/2.1.x-fixes
and run "mvn clean install -Pfastinstall" from the root.



> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Daniel Kulp
>             Fix For: 2.2
>
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Resolved: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies resolved CXF-2017.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2
         Assignee: Daniel Kulp  (was: Benson Margulies)

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Daniel Kulp
>             Fix For: 2.2
>
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Assigned: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies reassigned CXF-2017:
-------------------------------------

    Assignee: Benson Margulies

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Benson Margulies
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Updated: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Valerio Schiavoni (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valerio Schiavoni updated CXF-2017:
-----------------------------------

    Component/s: Aegis Databinding

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Commented: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669051#action_12669051 ] 

Benson Margulies commented on CXF-2017:
---------------------------------------

Something has decided to map your complex type to the DOM, and deliver a type-safety-violating collection. How Interesting.

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Benson Margulies
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Commented: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669058#action_12669058 ] 

Benson Margulies commented on CXF-2017:
---------------------------------------

This is going to take some work.

Java5TypeCreator.getOrCreateParameterizedType is punting the detailed info on the inner type, and just taking it to be a generic 'Map'. That's not going to work, but it will take some doing to unconfuse it.

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Benson Margulies
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Commented: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Valerio Schiavoni (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669403#action_12669403 ] 

Valerio Schiavoni commented on CXF-2017:
----------------------------------------

I'd be glad to test it with a snapshot release (possibly 2.1.4-snapshot). When you say trunk you mean 2.2 ?

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Daniel Kulp
>             Fix For: 2.2
>
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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


[jira] Closed: (CXF-2017) Fields of deserialized objects are null (No DOCTYPE declaration..)

Posted by "Valerio Schiavoni (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valerio Schiavoni closed CXF-2017.
----------------------------------


closed 

> Fields of deserialized objects are null (No DOCTYPE declaration..)
> ------------------------------------------------------------------
>
>                 Key: CXF-2017
>                 URL: https://issues.apache.org/jira/browse/CXF-2017
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    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
>            Assignee: Daniel Kulp
>             Fix For: 2.2
>
>
> 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) {
> 		this.date = date;
> 	}
> 	public final int getId() {
> 		return id;
> 	}
> 	public final void setId(int id) {
> 		this.id = id;
> 	}
> 	public final String getName() {
> 		return name;
> 	}
> 	public final void setName(String name) {
> 		this.name = name;
> 	}
> 	public final Pojo getParent() {
> 		return parent;
> 	}
> 	public final void setParent(Pojo parent) {
> 		this.parent = parent;
> 	}
> 	@Override
> 	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();
> 		aegisContext.setWriteXsiTypes(true);
> 		aDB.setAegisContext(aegisContext);
>          	wsServerFactoryBean.getServiceFactory().setDataBinding(aDB);
> The method is invoked like this:
> 	       
>                Pojo p1 = new Pojo();
> 		p1.setName("i am a pojo");
> 		p1.setId(666);
> 		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);
> 		ws.mapOfMapWithStringAndPojo(mapWithMapOfStringAndPojo);
> And it prints:
> ***** Server received map of map (with pojo): {keyForFirstPojo={firstPojo=[Document:  No DOCTYPE declaration, Root is [Element: <ns1:value [Namespace: http://weird.connectors.bf.fractal.objectweb.org/]/>]]}}

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