안녕하세요, 자습서를 따르고 있으며이 코드를 BIRT Eclipse의 열린 스크립트에 삽입했습니다. 보고서 미리보기 할 때 BIRT - 오픈 스크립트 SQL 오류 문제
maximoDataSet = MXReportDataSetProvider.create(this.getDataSource().getName(), this.getName());
maximoDataSet.open();
var sqlText = new String();
// Add query to sqlText variable.
sqlText = " select workorder.wonum, workorder.description, workorder.status, workorder.worktype, "
+ " workorder.wopriority, workorder.reportdate, workorder.estdur, workorder.location "
+ " from workorder "
// Include the Maximo where clause
+ " where " + params["where"]
;
maximoDataSet.setQuery(sqlText);
그러나 나는 다음과 같은 오류가 발생하고있다 :
ReportDesign를 (ID = 1) : maximoDataSet = MXReportDataSetProvider.create (이 "스크립트 평가 오류가 있습니다 +. . getDataSource() 메소드를 getName(), this.getName()); maximoDataSet.open();
var에 SQLTEXT = 새로운 String();
// 추가 query sqlText 변수. sqlText = "select workorder.wonum, workorder.description, workorder.status, workorder.worktype," + "workorder.wopriority, workorder.reportdate, workorder.estdur, workorder.location" + "workorder에서"// 포함 Maximo where 절 + "where"+ params [ "where"];
maximoDataSet.setQuery (SQLTEXT) ". __bm_OPEN 함수() 소스 스크립트 실행 실패 : ------"+ = maximoDataSet MXReportDataSetProvider.create (this.getDataSource() getName(). , this.getName()); maximoDataSet.open();
var sqlText = new String();
// sqlText 변수에 쿼리를 추가합니다. sqlText = "select workorder.wonum, workorder.description, workorder.status, workorder.worktype," + "workorder.wopriority, workorder.reportdate, workorder.estdur, workorder.location" + "workorder에서"// 포함 Maximo where 절 + "where"+ params [ "where"];
maximoDataSet.setQuery (sqlText); + " ----- BIRT 예외가 발생했습니다. 자세한 정보는 다음 예외를 참조하십시오 랩 com.ibm.tivoli.maximo.report.script.MXReportRuntimeException : java.lang.NullPointerException (/ report/data-sets/스크립트 데이터 세트 [ID @ = "5"]/방법 [이름 @ = "열"] # 2).이 될 수있는 이유
이
사람이 알고 있나요?
감사합니다.
sh ould는 더 많은 스택 추적 결과를 보여 주어야합니다. – Sun
매개 변수에 대해 어떤 값을 지정 했습니까? 그것을 비울 수 없습니다. 1 = 1을 사용하고 다시 시도하십시오. 그렇지 않으면 전체 스택 추적을 제공하십시오. – Jeroen