Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss decimal conversion - Very urgent - Please help if possible

 
Karthik Krishnamurthy
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yesterday, in our company we moved all our webservices from Weblogic to JBoss.
There is a wierd error that we are seeing.
A response:
<Amount>0.000000000000000</Amount>

is being rendered in jboss as :
<Amount>0E-15</Amount>
As a result, our clients are unable to p[rocess this.
Does anyone know why, or what can be done to rectify.

Type is decimal - <element name="Amount" type="decimal" minOccurs="0" nillable="true"/>

Thank you
Karthik
 
Karthik Krishnamurthy
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe this is a Java 5.0 issue now.
Still waiting to figure out a work around

Thanks
Karthik
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you restrict your decimal element like

<element name="Amount" minOccurs="0" nillable="true"/>
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="10" />
<xsd:fractionDigits value="0" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic