I'm wondering if there's anyway to see into the Typemapping registry at 
runtime... I want to see why there's no mapping for the type SeacProfileBean 
when I can see the mapping in the wsdd file in the data directory... I looked 
at the source... and it appears that in 

BeanSerializer.java... this is where the code fails...

 if (!isEncoded && propValue != null && 
JavaUtils.isArrayClass(propValue.getClass())
  |                           && !Constants.XSD_BASE64.equals(xmlType) && 
!Constants.XSD_HEXBIN.equals(xmlType))
  |                   {
  |                      QName itemType;
  | 
  |                      if (itemXmlType == null)
  |                      {
  |                         Class componentType = 
propValue.getClass().getComponentType();
  |                         itemType = context.getQNameForClass(componentType);
  |                      }
  |                      else
  |                      {
  |                         itemType = itemXmlType;
  |                      }
  | 
  |                      log.debug("Item type is " + itemType);
  |                      for (int j = 0; j < Array.getLength(propValue); j++)
  |                      {
  |                         Object item = Array.get(propValue, j);
  |                         context.serialize(qname, null, item, itemType, 
true, new Boolean(false));
  |                      }
  |                   }
  | 

Specifically, when JBossWS is serializing the array within the wrapper class, 
the itemType is null because of the line(s):


  | Class componentType = propValue.getClass().getComponentType();
  | itemType = context.getQNameForClass(componentType);
  | 

Since the error indicates the appropriate class name, the componentType is 
coming back correctly... profiles.SeacProfileBean.  I'm wondering why 
itemType comes back as null from context.getQNameForClass()... which calls 
getTypeMapping().getTypeQName(cls)... especially if I can see the typemapping 
in the wsdd file.  Could there have possibly been an error where even though 
the .wsdd file on the server in the data directory displays the mapping, it 
wasn't read into memory because the actual class file couldn't be loaded?

Thanks,
Ryan


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881832#3881832

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881832


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to