aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jboss decimal conversion - Very urgent - Please help if possible Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss decimal conversion - Very urgent - Please help if possible" Watch "Jboss decimal conversion - Very urgent - Please help if possible" New topic
Author

Jboss decimal conversion - Very urgent - Please help if possible

Karthik Krishnamurthy
Ranch Hand

Joined: Feb 04, 2005
Posts: 118
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

Joined: Feb 04, 2005
Posts: 118
I believe this is a Java 5.0 issue now.
Still waiting to figure out a work around

Thanks
Karthik
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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>

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss decimal conversion - Very urgent - Please help if possible
 
Similar Threads
JNDI lookups
javax.jms.JMSSecurityException: User null is NOT authenticated
ejb2 beans from jboss4 to jboss5 need different naming lookup patterns
stuck up in the problem
How to remove all EJB security | WAS-to-JBOSS migration