十万火急!紧急求助!我昨天尝试在打包文件,我把已经有的c:\resin-3.1.6 重命名复制成c:\resin-test 然后用netbean ide 打包resin-test\webapps下的文件,打包后我尝试运行新生成的test.jar(java.exe -jar c:\resin-test\lib\test.jar 但是出了问题,无法运行. 所以我就重新运行原来在resin-3.1.6\lib下的resin.jar 但是问题出现了. 运行后有个功能出现了报错.如下纳米盘的链接.
这个是关于给病房安排护士的.第一个图是resin的提示错误.第2个图是我点击登录进去后的报错.现在其他功能都正常,就这个不对.
我查了资料好像是resin的配置文件需要更改,但是我不会.请大家帮忙帮我看下要怎么改在线等中.现在没法安排护士的操作.请帮忙.谢谢了
这个是关于给病房安排护士的.第一个图是resin的提示错误.第2个图是我点击登录进去后的报错.现在其他功能都正常,就这个不对.
我查了资料好像是resin的配置文件需要更改,但是我不会.请大家帮忙帮我看下要怎么改在线等中.现在没法安排护士的操作.请帮忙.谢谢了
我的ShowDailySchedule.jsp第485行是下面的划线部分<option value="">Please Select</option>
<%
Collection collection = student.getClientSet();
Iterator iterator1= collection.iterator();
while (iterator1.hasNext()) {
int ClientID = ((Integer)iterator1.next()).intValue();
int banned = ((Integer)iterator1.next()).intValue();
int Senior = ((Integer)iterator1.next()).intValue();
String name = (String)iterator1.next(); if(banned ==1)
{
%>
我的ShowDailySchedule.jsp第485行是下面的划线部分<option value="">Please Select</option>
<%
Collection collection = student.getClientSet();
Iterator iterator1= collection.iterator();
while (iterator1.hasNext()) {
int ClientID = ((Integer)iterator1.next()).intValue();
int banned = ((Integer)iterator1.next()).intValue();
int Senior = ((Integer)iterator1.next()).intValue();
String name = (String)iterator1.next(); if(banned ==1)
{
%>
怎么还有这种情况?
String name = (String)iterator1.next();
我用查询语句where Senior !=1 and Senior !=0 后显示没有记录.这样说Senior里都应该是整数的.没有非法数据.
我想查询另外2个int格式的数据,不过我不知道怎么写查 ClinicId的 命令,因为他里面有1到3000多都有.可以告诉我吗?怎么查非int的命令.另外Senior里只有0或者1怎么还是提示出错呢?
我截取了图:第1个图是用resin3.1.6\下的httphd.exe执行的结果,不知道有没有用:
第2个图是mysql里Senior的型:
现在我运行resin.jar后 再登录管理的页面时同样是原来的错误提示(见下图)
但是不同的是在resin的窗口里错误不再是ShowDailySchedule.jsp第485行而变成了422行,就是下面的else那一行.
// put the red bar
if(flag)
{
%>
<td bgcolor="#ff0000"><a href="ShowRentalAppointment.jsp?AppointmentID=<%=appID%>"><img src="neiwhlogo/redslashes.gif" width="20" height="100%" alt="" border="0"></a></td>
<%
}
else
{
%>
<td><img src="neiwhlogo/xxxx.gif" width="20" height="60" alt="" border="0"></td>
<%
}
%>
</tr>
</table>
</td>
<%
}
%>
</tr>
我搞不懂了.
如下图是resin现在的错误提示,是422行了.
请指点,在线等中.谢谢
但是现在是: http status 404-
type status report
message
description the requested resource () is not available.
----------------------------------------------------------
sun java system application server 9.1
我也把database里的senior内容也删除了读取后也不行,
不管修改他们中哪一个错误内容还是一样的.
会不会确实是resin设置的问题啊?
问题出现前我并没有改动过数据库和jsp文件,只是运行过错误的resin.jar.他会不会修改配置导致本来可以用的string转化成int变成现在不行了呢.请指点谢谢了.
然后再转换成int
while (iterator1.hasNext()) {
out.print(iterator1.next()) int ClientID = ((Integer)iterator1.next()).intValue();
int banned = ((Integer)iterator1.next()).intValue();
int Senior = ((Integer)iterator1.next()).intValue(); 这样你就知道程序到底是转换什么String到int不能转换的
你看看是不是你的属性命名问题,好像属性开头大写的原因,我在model中曾经这样做,报错int ClientID,改成小写clientID试试