forum.bitel.ru http://forum.bitel.ru/ |
|
Ошибка: Column Index out of range http://forum.bitel.ru/viewtopic.php?f=12&t=2242 |
Страница 1 из 1 |
Автор: | aardvark [ 23 апр 2009, 16:47 ] |
Заголовок сообщения: | Ошибка: Column Index out of range |
Имеется рабочий отчет правлю его создаю новый. получаю ошибку: java.sql.SQLException: Column Index out of range, -1 > 3. Так уже со вторым отчетом, что где не так кто знает? |
Автор: | restart [ 23 апр 2009, 17:32 ] |
Заголовок сообщения: | |
Запрос отчета покажите. |
Автор: | aardvark [ 23 апр 2009, 17:36 ] |
Заголовок сообщения: | |
Код: import java.sql.*;
import java.util.*; public void fillReport( con, filter, result ) { PreparedStatement ps = con.prepareStatement( result.sql( ""+ " select login_name as login, sum(input_octets)/1048576 as inm,"+ " sum(output_octets)/1048576 as outm"+ " from $module_month_table( log_session , date ) group by login_name;", filter) ); ResultSet rs = ps.executeQuery(); result.setDataSource( rs ); } |
Автор: | Администратор [ 24 апр 2009, 09:59 ] |
Заголовок сообщения: | |
Какой отчет взят за основу и что вы в нем поправили? |
Автор: | aardvark [ 24 апр 2009, 12:24 ] |
Заголовок сообщения: | |
Поехали по пунктам. Есть рабочий отчет:bill_report_2. Код: <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="bill_report_1" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="2" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <parameter name="_filter" isForPrompting="false" class="bitel.billing.server.admin.reports.BGReportFilter"/> <parameter name="_months" isForPrompting="false" class="java.util.Map"/> <queryString language="BGBS"><![CDATA[import java.sql.*; import java.util.*; public void fillReport( con, filter, result ) { PreparedStatement ps = con.prepareStatement( result.sql( ""+ "select t1.id,t1.cid,t1.summ as summ, t1.format_number as Fnum,"+ "t1.create_dt as date,t2.val as val from bill_invoice_data_5 as t1 "+ "join contract_parameter_type_1 as t2 on t1.cid=t2.cid where t2.pid=8 "+ "and date_format(date,'%m')='$mm(month)", filter) ); ResultSet rs = ps.executeQuery(); result.setDataSource( rs ); } ]]></queryString> <field name="summ" class="java.math.BigDecimal"/> <field name="Fnum" class="java.math.BigDecimal"/> <field name="date" class="java.util.Date"/> <field name="val" class="java.lang.String"/> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="50" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="50" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="30" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="100" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{summ}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="###0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="100" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{Fnum}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="200" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[$F{date}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="300" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{val}]]></textFieldExpression> </textField> <staticText> <reportElement x="400" y="0" width="14" height="12" key="staticText-1"/> <box></box> <textElement> <font/> </textElement> <text><![CDATA[b]]></text> </staticText> </band> </detail> <columnFooter> <band height="30" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="50" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="50" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="50" isSplitAllowed="true" > </band> </summary> </jasperReport> Он выдергивает из модуля бухгалтерии счетфактуры - он работает. На его основе сделан репорт этот - Код: <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="bill_report_1" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <parameter name="_filter" isForPrompting="false" class="bitel.billing.server.admin.reports.BGReportFilter"/> <parameter name="_months" isForPrompting="false" class="java.util.Map"/> <queryString language="BGBS"><![CDATA[import java.sql.*; import java.util.*; public void fillReport( con, filter, result ) { PreparedStatement ps = con.prepareStatement( result.sql( ""+ " select login_name as login, sum(input_octets)/1048576 as inm,"+ " sum(output_octets)/1048576 as outm"+ " from $module_month_table( log_session , date ) group by login_name;", filter) ); ResultSet rs = ps.executeQuery(); result.setDataSource( rs ); }]]></queryString> <field name="login" class="java.lang.String"/> <field name="inm" class="java.lang.String"/> <field name="outm" class="java.lang.String"/> <field name="val" class="java.lang.String"/> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="50" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="50" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="30" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="100" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="7" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{login}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="###0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="107" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{inm}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="207" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{outm}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="30" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="50" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="50" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="50" isSplitAllowed="true" > </band> </summary> </jasperReport> В нем единственное, что новое это суммаризация и группировка внутри sql. Стоит заметить, что подобную ошибку я также получал при запросе Код: <queryString><![CDATA[
select t5.title, t5.comment,t7.val, t4.login_alias, t4.pswd, t4.date1,t4.date2 from (select t2.cid,t3.login_id,t3.login_alias, t2.login, t2.pswd, t2.date1, t2.date2 from user_login_3 as t2 right join user_alias_3 as t3 on t3.login_id=t2.id) as t4 right join contract as t5 on t5.id=t4.cid right join contract_parameter_type_1 as t7 on t7.cid=t5.id where t7.pid=34 and mid(t5.title,1,4)='7120']]></queryString> Вот такие вот пирожки с котятами пока. Чего я не вижу или не знаю? |
Автор: | DD_ [ 05 май 2009, 19:05 ] |
Заголовок сообщения: | |
у меня аналогичная ошибка даже при простейшем запросе Код: ps = con.prepareStatement( result.sql( "select cid as conid from helpdesk_topic_9", filter ) );
|
Автор: | Администратор [ 15 май 2009, 15:32 ] |
Заголовок сообщения: | |
Цитата: select t5.title, t5.comment,t7.val, t4.login_alias, t4.pswd, t4.date1,t4.date2 from
(select t2.cid,t3.login_id,t3.login_alias, t2.login, t2.pswd, t2.date1, t2.date2 from user_login_3 as t2 right join user_alias_3 as t3 on t3.login_id=t2.id) as t4 right join contract as t5 on t5.id=t4.cid right join contract_parameter_type_1 as t7 on t7.cid=t5.id where t7.pid=34 and mid(t5.title,1,4)='7120' Вы сам этот запрос отдельно проверяли? Можете дать полный лог Exception из server.log? To: DD_ Поднимите общую тему. И распишите подробнее, вообще не понятно что за кусок кода у вас. |
Автор: | DD_ [ 22 май 2009, 14:23 ] |
Заголовок сообщения: | |
aardvark писал(а): Поехали по пунктам. Есть рабочий отчет:bill_report_2.
Код: <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="bill_report_1" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="2" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <parameter name="_filter" isForPrompting="false" class="bitel.billing.server.admin.reports.BGReportFilter"/> <parameter name="_months" isForPrompting="false" class="java.util.Map"/> <queryString language="BGBS"><![CDATA[import java.sql.*; import java.util.*; public void fillReport( con, filter, result ) { PreparedStatement ps = con.prepareStatement( result.sql( ""+ "select t1.id,t1.cid,t1.summ as summ, t1.format_number as Fnum,"+ "t1.create_dt as date,t2.val as val from bill_invoice_data_5 as t1 "+ "join contract_parameter_type_1 as t2 on t1.cid=t2.cid where t2.pid=8 "+ "and date_format(date,'%m')='$mm(month)", filter) ); ResultSet rs = ps.executeQuery(); result.setDataSource( rs ); } ]]></queryString> <field name="summ" class="java.math.BigDecimal"/> <field name="Fnum" class="java.math.BigDecimal"/> <field name="date" class="java.util.Date"/> <field name="val" class="java.lang.String"/> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="50" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="50" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="30" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="100" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{summ}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="###0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="100" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{Fnum}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="200" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[$F{date}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="300" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{val}]]></textFieldExpression> </textField> <staticText> <reportElement x="400" y="0" width="14" height="12" key="staticText-1"/> <box></box> <textElement> <font/> </textElement> <text><![CDATA[b]]></text> </staticText> </band> </detail> <columnFooter> <band height="30" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="50" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="50" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="50" isSplitAllowed="true" > </band> </summary> </jasperReport> Он выдергивает из модуля бухгалтерии счетфактуры - он работает. На его основе сделан репорт этот - Код: <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="bill_report_1" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <parameter name="_filter" isForPrompting="false" class="bitel.billing.server.admin.reports.BGReportFilter"/> <parameter name="_months" isForPrompting="false" class="java.util.Map"/> <queryString language="BGBS"><![CDATA[import java.sql.*; import java.util.*; public void fillReport( con, filter, result ) { PreparedStatement ps = con.prepareStatement( result.sql( ""+ " select login_name as login, sum(input_octets)/1048576 as inm,"+ " sum(output_octets)/1048576 as outm"+ " from $module_month_table( log_session , date ) group by login_name;", filter) ); ResultSet rs = ps.executeQuery(); result.setDataSource( rs ); }]]></queryString> <field name="login" class="java.lang.String"/> <field name="inm" class="java.lang.String"/> <field name="outm" class="java.lang.String"/> <field name="val" class="java.lang.String"/> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="50" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="50" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="30" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="100" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="7" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{login}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="###0" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="107" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{inm}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="207" y="0" width="100" height="12" key="textField"/> <box></box> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{outm}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="30" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="50" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="50" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="50" isSplitAllowed="true" > </band> </summary> </jasperReport> В нем единственное, что новое это суммаризация и группировка внутри sql. Стоит заметить, что подобную ошибку я также получал при запросе Код: <queryString><![CDATA[ select t5.title, t5.comment,t7.val, t4.login_alias, t4.pswd, t4.date1,t4.date2 from (select t2.cid,t3.login_id,t3.login_alias, t2.login, t2.pswd, t2.date1, t2.date2 from user_login_3 as t2 right join user_alias_3 as t3 on t3.login_id=t2.id) as t4 right join contract as t5 on t5.id=t4.cid right join contract_parameter_type_1 as t7 on t7.cid=t5.id where t7.pid=34 and mid(t5.title,1,4)='7120']]></queryString> Вот такие вот пирожки с котятами пока. Чего я не вижу или не знаю? проблема в том что когда вы модифицировали старый отчет, то у вас осталось лишнее поле "val", весь косяк в том что если в шаблоне есть эти лишние поля то это вызывает такую ошибку "java.sql.SQLException: Column Index out of range, -1 > 3." у меня была аналогичная проблема после того как почистил шаблон все заработало, надеюсь это поможет и вам. |
Автор: | aardvark [ 01 июн 2009, 19:23 ] |
Заголовок сообщения: | |
DD_, хм, буду смотреть, пробывать. Надеюсь всё так просто будет. Администратор, отдельно запрос проверял, он работает. Полный лог: Код: 01.06.2009 17:23:25 java.sql.SQLException: Column Index out of range, -1 > 3.
01.06.2009 17:23:25 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910) 01.06.2009 17:23:25 at com.mysql.jdbc.ResultSet.getObject(ResultSet.java:4663) 01.06.2009 17:23:25 at org.apache.commons.dbcp.DelegatingResultSet.getObject(DelegatingResultSet.java:238) 01.06.2009 17:23:25 at bitel.billing.server.admin.reports.BGRSDataSource$11.getValue(BGRSDataSource.java:217) 01.06.2009 17:23:25 at bitel.billing.server.admin.reports.BGRSDataSource.getFieldValue(BGRSDataSource.java:43) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:799) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:763) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1383) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:111) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:889) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:811) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.JasperFillManager.fillReportToStream(JasperFillManager.java:559) 01.06.2009 17:23:25 at bitel.billing.server.admin.reports.BGReportTemplate.fillReportToStream(BGReportTemplate.java:303) 01.06.2009 17:23:25 at bitel.billing.server.admin.reports.BGReportTemplate.fillReportToStream(BGReportTemplate.java:328) 01.06.2009 17:23:25 at bitel.billing.server.reports.Report_Default.fillReportToStream(Report_Default.java:32) 01.06.2009 17:23:25 at bitel.billing.server.reports.action.ActionReport.doAction(ActionReport.java:66) 01.06.2009 17:23:25 at bitel.billing.server.Executer.doModule(Executer.java:693) 01.06.2009 17:23:25 at bitel.billing.server.Executer.doPost(Executer.java:177) 01.06.2009 17:23:25 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 01.06.2009 17:23:25 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 01.06.2009 17:23:25 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 01.06.2009 17:23:25 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 01.06.2009 17:23:25 at bitel.billing.server.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:37) 01.06.2009 17:23:25 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 01.06.2009 17:23:25 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 01.06.2009 17:23:25 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 01.06.2009 17:23:25 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 01.06.2009 17:23:25 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) 01.06.2009 17:23:25 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 01.06.2009 17:23:25 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 01.06.2009 17:23:25 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 01.06.2009 17:23:25 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) 01.06.2009 17:23:25 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) 01.06.2009 17:23:25 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) 01.06.2009 17:23:25 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) 01.06.2009 17:23:25 at java.lang.Thread.run(Unknown Source) 01.06.2009 17:23:25 net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : $F{inm} 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:197) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:537) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:505) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:826) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:368) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:353) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:426) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1380) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:692) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:255) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:889) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:811) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.JasperFillManager.fillReportToStream(JasperFillManager.java:559) 01.06.2009 17:23:25 at bitel.billing.server.admin.reports.BGReportTemplate.fillReportToStream(BGReportTemplate.java:303) 01.06.2009 17:23:25 at bitel.billing.server.admin.reports.BGReportTemplate.fillReportToStream(BGReportTemplate.java:328) 01.06.2009 17:23:25 at bitel.billing.server.reports.Report_Default.fillReportToStream(Report_Default.java:32) 01.06.2009 17:23:25 at bitel.billing.server.reports.action.ActionReport.doAction(ActionReport.java:66) 01.06.2009 17:23:25 at bitel.billing.server.Executer.doModule(Executer.java:693) 01.06.2009 17:23:25 at bitel.billing.server.Executer.doPost(Executer.java:177) 01.06.2009 17:23:25 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 01.06.2009 17:23:25 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 01.06.2009 17:23:25 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 01.06.2009 17:23:25 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 01.06.2009 17:23:25 at bitel.billing.server.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:37) 01.06.2009 17:23:25 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 01.06.2009 17:23:25 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 01.06.2009 17:23:25 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 01.06.2009 17:23:25 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 01.06.2009 17:23:25 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) 01.06.2009 17:23:25 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 01.06.2009 17:23:25 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 01.06.2009 17:23:25 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 01.06.2009 17:23:25 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) 01.06.2009 17:23:25 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) 01.06.2009 17:23:25 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) 01.06.2009 17:23:25 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) 01.06.2009 17:23:25 at java.lang.Thread.run(Unknown Source) 01.06.2009 17:23:25 Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.String 01.06.2009 17:23:25 at bill_report_1_1243862605145_524913.evaluate(bill_report_1_1243862605145_524913:177) 01.06.2009 17:23:25 at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:186) 01.06.2009 17:23:25 ... 40 more |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |