I have a EJB3 persistent bean mapped to a Sybase DB table.  This table has 
datetime column that I have mapped back to a java.util.Date property on the 
persistent bean.  This same bean class is returned from a webservice call.  On 
JBoss 4.0.3SP1 (using Axis), I had no issues returning this object from my 
finder call.  Now, when I switch to JBoss 4.0.4CR2 (using JBossWS), I get the 
following exception:

Caused by: java.lang.ClassCastException: com.sybase.jdbc3.tds.SybTimestamp
  |     at 
org.jboss.xb.binding.SimpleTypeBindings.marshal(SimpleTypeBindings.java:1150)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalCharacters(XercesXsMarshaller.java:1169)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalSimpleType(XercesXsMarshaller.java:451)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalElementType(XercesXsMarshaller.java:405)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalElement(XercesXsMarshaller.java:380)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalElementOccurence(XercesXsMarshaller.java:886)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalParticle(XercesXsMarshaller.java:823)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalModelGroupSequence(XercesXsMarshaller.java:1102)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalModelGroup(XercesXsMarshaller.java:1057)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalParticle(XercesXsMarshaller.java:729)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalComplexType(XercesXsMarshaller.java:685)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalElementType(XercesXsMarshaller.java:414)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalElement(XercesXsMarshaller.java:380)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalElementOccurence(XercesXsMarshaller.java:886)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalParticle(XercesXsMarshaller.java:810)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalModelGroupSequence(XercesXsMarshaller.java:1102)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalModelGroup(XercesXsMarshaller.java:1057)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalParticle(XercesXsMarshaller.java:729)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalComplexType(XercesXsMarshaller.java:685)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalElementType(XercesXsMarshaller.java:414)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalElement(XercesXsMarshaller.java:380)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshalElementOccurence(XercesXsMarshaller.java:886)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshallInternal(XercesXsMarshaller.java:275)
  |     at 
org.jboss.xb.binding.XercesXsMarshaller.marshal(XercesXsMarshaller.java:222)
  |     at 
org.jboss.ws.jaxb.JAXBMarshallerImpl.marshal(JAXBMarshallerImpl.java:172)
  |     at 
org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.java:100)
  |     at 
org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:172)
  |     at 
org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.java:844)
  |     at 
org.jboss.ws.soap.SOAPContentElement.getChildNodes(SOAPContentElement.java:761)
  |     at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:201)
  |     at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:260)
  |     at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:260)
  |     at org.jboss.util.xml.DOMWriter.print(DOMWriter.java:177)
  |     at org.jboss.util.xml.DOMWriter.printNode(DOMWriter.java:126)
  |     at 
org.jboss.ws.server.ServiceEndpoint.postProcessResponse(ServiceEndpoint.java:306)
  |     ... 23 more 

Any thoughts on a workaround for this, or is this a bug?

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to