sql ... Caused exception message is: index: 1, size: 0
来源:互联网 发布:mac没有新建文件夹 编辑:程序博客网 时间:2024/05/08 12:39
普通报表制作
错误详细堆栈信息:com.kingdee.bos.BOSException: Error sql: select sib.fnumber as sNumber, mater.fnumber as mNumber,mater.fName_L2 mName,mater.fmodel as model,unit.fDisplayName_L2 as unitName,sie.FQty as fqty,sie.FUnitStandardCost as price,sie.FStandardCost as money,sie.fworknumberid as workNumber,sie.fcarnumber as carNumber into VTZ7WEUWUZ100BGL8F8UD5Y6N9XNVEO3INL from T_IM_SaleIssueBill sib left join T_IM_SaleIssueEntry sie on sib.fid=sie.fparentId left join T_BD_material mater on sie.fmaterialId=mater.fid left join t_org_baseUnit unit on sie.fbaseunitid=unit.fid
去掉sql中 into VTZ7WEUWUZ100BGL8F8UD5Y6N9XNVEO3INL 运行一次,发现sql没有问题.
经过仔细一看,发现sql语句中没有预编译的字段"字段=?",而我在不小心的时候copy了一段代码:
executeCreateAsSelectInto(sb.toString(), new SqlParams().setString(1, cuId), ctx);
改为 executeCreateAsSelectInto(sb.toString(), null, ctx); 就ok了.
- sql ... Caused exception message is: index: 1, size: 0
- sql ... Caused exception message is: index: 1, size: 0
- Caused exception message is: ORA-12704: 字符集不匹配
- Caused by: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0
- Caused by: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0
- Caused exception message is: ORA-01789: query block has incorrect number of result columns
- Caused exception message is: ORA-01789: query block has incorrect number of result columns
- Caused exception message is: ORA-01789: query block has incorrect number of result columns
- Caused by: java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1
- 【IndexError: index 1 is out of bounds for axis 0 with size 1】
- java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
- java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
- java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
- ViewPager java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
- Listview indexOutOfBoundsException: Invalid index 1, size is 1
- Caused by: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 2
- java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
- Caused by: java.lang.IllegalArgumentException: the bind value at index 1 is null
- adv7183视频采集驱动结构
- 三维软件开发笔记---任意方向切片完成
- FMO特性
- uclinux内核中的I2C驱动
- 看看都有什么好东东?
- sql ... Caused exception message is: index: 1, size: 0
- 如何将传递节点设置为通过使用 Visual C#.NET 内联 XSLT 脚本函数
- 一个js在火狐下为啥不好使 请高手指教
- 自动更新程序设计实现思路
- 关机之前,系统发出的消息
- __cdecl相比__stdcall的优势
- urlrewrite 的使用方法
- WinCE EBOOT的入口Startup.s
- 哲理故事.哲理小短文