我在sql express 2008中创建了一个存储过程,当从Java方法调用该过程时,我收到以下错误:
Index 36 is out of range.
com.microsoft.sqlserver.jdbc.SQLServerException:Index 36 is out of range.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:170)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setterGetParam(SQLServerPreparedStatement.java:698)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setValue(SQLServerPreparedStatement.java:707)
at com.microsoft.sqlserver.jdbc.SQLServerCallableStatement.setString(SQLServerCallableStatement.java:1504)
at fr.alti.ccm.middleware.Reporting.initReporting(Reporting.java:227)
at fr.alti.ccm.middleware.Reporting.main(Reporting.java:396)
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚它来自哪里......> _ <
任何帮助,将不胜感激.
此致,BS_C3
这是一些源代码:
public ArrayList<ReportingTableMapping> initReporting(
String division,
String shop,
String startDate,
String endDate)
{
ArrayList<ReportingTableMapping> rTable = new ArrayList<ReportingTableMapping>();
ManagerDB db = new ManagerDB();
CallableStatement callStmt = null;
ResultSet rs = null;
try {
callStmt = db.getConnexion().prepareCall("{call getInfoReporting(?,...,?)}");
callStmt.setString("CODE_DIVISION", division);
.
.
.
callStmt.setString("cancelled", " ");
rs = callStmt.executeQuery(); …Run Code Online (Sandbox Code Playgroud) 我想在添加一些孩子后获得组件的实际高度.
在调试模式下检查变量选项卡时,我看到2个不同的高度变量:$ height(包含正确的值:138)和height/_height(包含错误的值:10).
我猜显示器没有更新,因此我没有使用component.height获得正确的高度,但是如何获得$ height的值?
感谢您提供的任何帮助=)
此致,BS_C3
@Flextras
再次,非常感谢您的回答!这真的很详细=)
Measuredheight并没有给我我正在寻找的值,而且explicitHeight没有值(NaN).我现在无法测试,所以我无法分辨出未缩放的高度......
这是我的结构:
MainContainer - Canvas
BOX1 - Canvas (height = 100)
BOX2 - Canvas (height = 100)
VariableBox - Canvas (height: depends on the height of it's variable number of children)
Text - TextArea
Run Code Online (Sandbox Code Playgroud)
我需要VariableBox的高度才能定位Text.
该函数如下所示:
updateDisplay(){
for(i;i<list.length;i++){
VariableBox.addChild(new HBox);
}
// reposition Text depending on VariableBox's height
}
Run Code Online (Sandbox Code Playgroud)
我知道我没有提供任何代码,但我现在不在我的工作电脑上> _ <
希望这可以帮助!!