http://community.csdn.net/Expert/topic/3948/3948520.xml?temp=.6160547
解决方案 »
- 使用dwr的时候报Erroring: batchId[2] message[java.lang.null]
- 记录log表的sequences.
- webService部署后调用报AXIS error 急
- axis错误 Type {urn:SmsRequest}MORequest is referenced but not define
- tomcat连接池能在重新连接数据库吗?
- 遇到这个问题了 The driver: com.mysql.jdbc.Driver could not be loaded.
- 我装了一个JBUILDER9怎么ENTERPRISE不能用?
- weblogic 为什么不认是GBK编码的XML 文件????? 如何使weblogic能够认》》》???
- 有哪位上海的朋友愿意给小弟简单培训几天EJB(支付报酬)
- aop @AfterThrowing不执行,求大神指教
- 求救:hibernate组合主键不能级联插入的问题?
- 怎样用JAVA做报表
public int uploadFile(byte[] fileContent) {
int iResult = 0;
FileOutputStream fos = null;
try {
fos = new FileOutputStream("f:/uploadfile");
fos.write(fileContent);
fos.flush();
System.out.println("flush the file.");
} catch (FileNotFoundException e) {
iResult = -1;
e.printStackTrace();
} catch (IOException e) {
iResult = -1;
e.printStackTrace();
} finally {
if (fos != null)
try {
fos.close();
} catch (IOException e) {
}
}
return iResult;
}
不过我却遇到另类问题,我的webservice返回String类型在tomcat5中通过,在weblogic8.1中却是第一次调用能通过,其它则出现空指针错误,我怀疑是weblogic的问题,现在却苦无对策!