Velocity.log error message

FRED.YY.LIN 林宥延 <[email protected]> Thu, 4 Mar 2010 11:13:54 +0800
Newsgroups gmane.comp.java.scarab.user
Message-ID <[email protected]>
------=_Part_6741_5547883.1267672440557
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Dear All,
=20
I got error messages in the velocity.log file that
Error in evaluation of expression. Both arguments mube be of the same Class=
.=20
Current left =3D class java.lang.Integer    right =3D class java.lang.Strin=
g.
=20
viewIssue/ViewIssueTab1.vm [line 49, column 59] (ASTEQNode)
=20
And the viewIssue/ViewIssueTab1.vm [line 49, column 59]  is=20
=20
#set ($attVal =3D $attrValues.get($att.getName().toUpperCase()))
=20
From the error message.
=20
$attVal seems to be an Integer Object  but I cannot see where attVal was de=
fined. does any know about it ?
=20
Also, I checked \om\AttributeValue.java and cannot find a "get" method. I d=
on't know if all the returned value of "get" is numeric and can be transfor=
med into an Integer object. In that case the class type error may be resolv=
ed.
=20
Which procedure did the attrValues.get refer to ?
=20
Can anyone help ? This single error message is more than 20MB  per few days=
 .
=20
Thanks,
=20
Fred
=20
=20


***************************************************************************=
**********************************************
This email message, including any attachments, is for the sole use of the i=
ntended recipient(s) and may contain confidential and privileged informatio=
n. Any unauthorized review, use, disclosure or distribution is prohibited. =
If you are not the intended recipient, please contact the sender by reply e=
-mail and destroy all copies of the original message. [Delta Electronic, IN=
C. Taiwan]
***************************************************************************=
**********************************************

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3D456&dsMessageId=3D24=
54722

To unsubscribe from this discussion, e-mail: [[email protected]=
is.org].
------=_Part_6741_5547883.1267672440557
Content-Type: text/html;	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2900.3603" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>Dear=20
All,</FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>I got error mes=
sages in=20
the velocity.log file that</FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>Error in evalua=
tion of=20
expression. Both arguments mube be of the same Class. </FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>Current left =
=3D class=20
java.lang.Integer&nbsp;&nbsp;&nbsp; right =3D class=20
java.lang.String.</FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff>viewIssue/ViewIssueTab1.vm [line 49, column 59]=20
(ASTEQNode)</FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>And the <SPAN=
=20
class=3D843050403-04032010><FONT color=3D#0000ff>viewIssue/ViewIssueTab1.vm=
 [line=20
49, column 59]&nbsp; is </FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff><SPAN=20
class=3D843050403-04032010></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><SPAN class=3D843050403-04032010><FON=
T=20
color=3D#ff0000>#set ($attVal =3D=20
$attrValues.get($att.getName().toUpperCase()))</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>From the error=
=20
message.</FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>$attVal seems t=
o be an=20
Integer Object&nbsp; but I cannot see where attVal was defined. does any kn=
ow=20
about it ?</FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>Also, I checked=
=20
\om\AttributeValue.java and cannot find a "get" method. I don't know if all=
 the=20
returned value of "get" is numeric and can be transformed into an Integer=
=20
object. In that case the class type error may be resolved.</FONT></SPAN></D=
IV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>Which procedure=
 did the=20
</FONT><FONT color=3D#ff0000>attrValues.get refer to ?</FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#ff0000></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>Can anyone help=
=20
?&nbsp;This single error message is more than 20MB&nbsp; per few days=20
.</FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT color=3D#0000ff>Fred</FONT></SP=
AN></DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D843050403-04032010><FONT=20
color=3D#0000ff></FONT></SPAN>&nbsp;</DIV></BODY></HTML>

<table><tr><td bgcolor=3D#ffffff><font color=3D#000000>********************=
***************************************************************************=
**************************<br>
This email message, including any attachments, is for the sole use of the i=
ntended recipient(s) and may contain confidential and privileged informatio=
n. Any unauthorized review, use, disclosure or distribution is prohibited. =
If you are not the intended recipient, please contact the sender by reply e=
-mail and destroy all copies of the original message. [Delta Electronic, IN=
C. Taiwan]<br>
***************************************************************************=
**********************************************<br>
</font></td></tr></table>
------=_Part_6741_5547883.1267672440557--