Hi,

I'm facing a strange issue with NumberConverter on the client side in
Apache Trinidad. On one side, using my local dev machine, everything
works as expected; i.e. all the values entered by the user are
converted to number/currency depending on how they're configured (for
example, let's say it's currency, so the user enters 12 in the text
box and it gets converted to 12,00 €).

However, I just deployed the WAR file to a remote server and the
behavior is really weird: when the user enters something in the same
text boxes, let's say 12, the following messages appears:

"Cannot convert 12 of type class java.math.BigDecimal to class java.lang.Number"

As explained, both environments are similar (same JDK 1.6, same
Tomcat, same WAR file), but locally is working fine and remotely looks
like not. Even more funny is the fact that although you get the error
message, the value is finally converted to currency, for example, so
in the text box I end up having the proper converted value --> 12,00 €

Anyone has a clue on what could be happening here? Apparently it's
only working for me locally using my MacBook Pro with JDK 1.6 and
Tomcat 6.0.x.

BTW, this is Apache Trinidad 1.2.10.

Thanks.

Reply via email to