http://community.csdn.net/Expert/topic/3948/3948520.xml?temp=.6160547
解决方案 »
- jms问题?activemq4.1+journal
- 求助:org.hibernate.MappingException: Unknown entity:XXX
- 大虾来帮忙下!用Spring事务,做测试,数据没有回滚!
- build报错~,Caused by: java.sql.BatchUpdateException: ORA-01461: can bind a LONG value only for insert into a LONG column
- struts2.0+spring2.5+hibernate3.3 发布时报错!!!! 请指教.谢谢
- 求教:这是怎么回事啊-----警告:Iternal Error:File/WEB-INF/web.xml not found
- 页面的<frames>问题
- 解析xml文档的时候如何忽略doctype?
- 从易用性,开发效率方面对比,开发OA用J2EE还是.net好??请大家比比意见!
- 请问如何在XML中增加元素?
- 求救: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的问题,现在却苦无对策!