日期:2014-05-17  浏览次数:20774 次

运行项目,java.lang.ClassCastException: java.lang.Long
&_BMSProductManagerProductAudit_WAR_BMSProductManagerportlet_billingMode=1 generates exception: java.lang.Long


这是jsp页面的错误显示。
这个地方的jsp代码是:
<%--计费模式 --%>
<aui:select name="productBillingmode" label="product-billingmode" showEmptyOption="false"
disabled="true" style="width:350px">
<c:choose>
<c:when test="${product.billingMode==1}">
<aui:option label="product.billingmode.by.time" value="1" selected="true" />
</c:when>
<c:otherwise>
<aui:option label="product.billingmode.by.time" value="1" />
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${product.billingMode==2}">
<aui:option label="product.billingmode.month" value="2" selected="true" />
</c:when>
<c:otherwise>
<aui:option label="product.billingmode.month" value="2" />
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${product.billingMode==3}">
<aui:option label="product.billingmode.limit.month" value="3" selected="true" />
</c:when>
<c:otherwise>
<aui:option label="product.billingmode.limit.month" value="3" />
</c:otherwise>
</c:choose>
</aui:select>
<%--计次有效时长--%>
<aui:field-wrapper>
<c:choose>
<c:when test="${product.billingMode==1}">
<aui:input  label="product-effectiveduration" name="effectiveDuration" value="${product.effectiveDuration }" 
disabled="true" style="width:350px" suffix="product.effectiveduration.hour">
</aui:input>
</c:when>
</c:choose>
</aui:field-wrapper>

------解决方案--------------------
看下     ${product.billingMode}是多少?