Hi

This appears to be the same problem that we had in our project.

It was in our case because of the EL version. Check the EL that you are using 
in Your local dev machine vs. the remote server.

Though it seems that you are using same Tomcat version... But I suggest to 
check this out anyway.

In our case we used Jetty(latest version) in development, which worked fine. 
But production environment with WAS 6.1 gave the same error that You described. 
Then I got latest EL stuff from glassfish project and things started working in 
WAS also.

S

P.S. The EL api is typically 'stuffed' inside the jsp-api jars.


-----Original Message-----
From: Enrique Medina Montenegro [mailto:[email protected]]
Sent: 3. helmikuuta 2009 2:00
To: [email protected]
Subject: [TRINIDAD] - Strange behaviour with NumberConverter

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