|
|
|
Have you tried this format?
<mapping> <component name="map" class="java.util.Map" typeName="SomeMap" keyType="java.lang.Double" componentType="java.lang.Double" /> Its documented here: http://xfire.codehaus.org/Mapping+collections Going to check into the NPE some more though... I think I've fixed an issues in SVN. Here is a patched build:
You'll want to use that syntax I outlined in my last comment though. I'm not shure, if my actual problem is related to this issue: Using xfire 1.2.2 on Java 5 with annotations.
The strcture we are using contains of a a class that contains a List of an other class. The second class contains another list of a class. It's more or less a two-dimensional dynamic array. the wsdl created contains only the second list. the first list is ignored. <code java> // getters and setters.... public class b{ public class c{ The resulting WSDL holds a complex-type ArrayOfc but shows b instead of Arrayfb any ideas, where this comes from or how to resolve this problem? best regards |
|||||||||||||||||||||||||||||||||||||||||||||||||||
I am having the exact same problem on XFire 1.2.1 so I think this issue it is not closed.
Here are the details.
XMLTypeCreator.java:359
the KeyType for the InfoBean is still null, that is, it is not being "inherited" from the parent info bean which is an ArrayType. This makes XFire create a 'default' type in line 366, which returns an ObjecType. This object, in turn, has no typeMapping defined and causes my program to crash dramatically at:
Caused by: java.lang.NullPointerException at org.codehaus.xfire.aegis.type.basic.ObjectType.readObject(ObjectType.java:102) at org.codehaus.xfire.aegis.type.collection.MapType.readObject(MapType.java:70) at org.codehaus.xfire.aegis.type.basic.ArrayType.readCollection(ArrayType.java:80) at org.codehaus.xfire.aegis.type.basic.ArrayType.readObject(ArrayType.java:48) at org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:180) at org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:155) at org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206) at org.codehaus.xfire.service.binding.WrappedBinding.readMessage(WrappedBinding.java:50) at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)Don't know if this is a problem affecting anybody else but me but...
Best Regards,
Andres Bernasconi.