PDA

View Full Version : ArrayIndexOutOfBoundsException error?



cs2003
09-11-2003, 02:00 PM
I meet a error ,can anyone help me?the follow is stack:
[JPivot] 12 九月 2003 08:49:50,005 ERROR [Session 9FCBE44B95DA3207C6B3E1AD08C177A3] com.tonbeller.wcf.component.RendererTag#doEndTag: trouble rendering
java.lang.ArrayIndexOutOfBoundsException: 11
at mondrian.util.FloatingDecimal.toJavaFormatString(Format.java:3117)
at mondrian.util.FloatingDecimal.toJavaFormatString(Format.java:2980)
at mondrian.util.Format$NumericFormat.format(Format.java:808)
at mondrian.util.Format$CompoundFormat.format(Format.java:646)
at mondrian.util.Format$AlternateFormat.format(Format.java:547)
at mondrian.util.Format$BasicFormat.format(Format.java:455)
at mondrian.util.Format.format(Format.java:2079)
at mondrian.rolap.RolapEvaluator.format(RolapEvaluator.java:274)
at mondrian.rolap.RolapCell.getFormattedValue(RolapResult.java:478)
at com.tonbeller.jpivot.mondrian.MondrianCell.<init>(MondrianCell.java:61)
at com.tonbeller.jpivot.mondrian.MondrianResult.initData(MondrianResult.java:86)
at com.tonbeller.jpivot.mondrian.MondrianResult.<init>(MondrianResult.java:41)
at com.tonbeller.jpivot.mondrian.MondrianModel.getResult(MondrianModel.java:100)
at com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:34)
at com.tonbeller.jpivot.olap.model.CachingOlapModel.getResult(CachingOlapModel.java:36)
at com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:34)
at com.tonbeller.jpivot.table.TableComponent.render2(TableComponent.java:151)
at com.tonbeller.jpivot.table.TableComponent.render(TableComponent.java:142)
at com.tonbeller.wcf.component.RendererTag.doEndTag(RendererTag.java:115)
at org.apache.jsp.testpage_jsp._jspx_meth_wcf_render_4(testpage_jsp.java:643)
at org.apache.jsp.testpage_jsp._jspService(testpage_jsp.java:143)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:71)
at com.tonbeller.wcf.controller.RequestSynchronizer.handleRequest(RequestSynchronizer.java:62)
at com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:89)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)

jhyde
09-11-2003, 07:40 PM
This is a bug in the code which formats a numeric value as a string. It would really help if you could find out the format string and the number which is being formatted. Can you attach to the program with a debugger and get that information?

cs2003
09-15-2003, 01:10 PM
hi,I change a program named mondrian.util.Format.java .In function toJavaFormatString ,char result[] = new char[nDigits + 10], I change this sentence to char result[] = new char[nDigits + 100], then that is ok,error doesn't happened . What is your idea?

jhyde
09-15-2003, 01:28 PM
That fix would probably work. I'd still like a testcase to figure out why it happened and make sure it doesn't happen again. Can you give me that? You could wrap that section in
try {
...
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println( <<all of the members and function parameters>> );
System.exit(1);
}
then post the output.

mondrian_gianferr
09-17-2003, 10:23 PM
I have the same problem, connecting to Oracle. It happens only sometimes. I do not know what triggers it.

cs2003
09-23-2003, 08:43 PM
Sorry ,I don't know where I can put your code(try {
...
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println( <<all of the members and function parameters>> );
System.exit(1);
}
).And on the other,what is mean about sentence "System.out.println( <<all of the members and function parameters>> );"? It doesn't work .

bpisani
03-07-2008, 05:52 PM
I'm using the latest version of the BI suite, 1.6.0 GA863 and I'm getting this error as well. Was it ever fixed? Is there an older version of mondrian bundled with the suite?


at mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:755)
at mondrian.olap.Util.newInternal(Util.java:1175)
at mondrian.olap.Util.newError(Util.java:1191)
at mondrian.rolap.RolapConnection.execute(RolapConnection.java:442)
at com.tonbeller.jpivot.mondrian.MondrianModel.getResult(MondrianModel.java:234)
... 74 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
at mondrian.util.Format$AlternateFormat.format(Format.java:346)
at mondrian.util.Format.format(Format.java:2046)
at mondrian.util.Format.format(Format.java:2034)
at mondrian.rolap.RolapResult$FormatValueFormatter.format(RolapResult.java:1343)
at mondrian.rolap.RolapResult$CellInfo.getFormatValue(RolapResult.java:1472)
at mondrian.rolap.RolapCell.getFormattedValue(RolapCell.java:42)
at mondrian.olap.ResultBase.printCell(ResultBase.java:125)
at mondrian.olap.ResultBase.printRows(ResultBase.java:73)
at mondrian.olap.ResultBase.printRows(ResultBase.java:80)
at mondrian.olap.ResultBase.printRows(ResultBase.java:80)
at mondrian.olap.ResultBase.print(ResultBase.java:62)
at mondrian.rolap.RolapConnection.execute(RolapConnection.java:424)
... 75 more

iso.smd
10-23-2008, 07:26 AM
Same problem with Pentaho 1.7.1.1117