Hi all,
I’m working in a solution at the moment and I’m having some problems with an unknown error.
java.lang.IllegalStateException: Cannot bundle ‘changed’ event with ‘added’ events
This error appears in the console but it is not attached to any piece of code so I haven’t got a clue of why is this happening.
Also because of this error another exception is thrown.
java.lang.IllegalArgumentException: setSelectedIndex: 1 out of bounds
I’m assuming this exception appears because of the first one as I commented some of my code and ‘setSelectedIndex: 1 out of bounds’ stopped. But a new one appeared.
java.lang.IllegalArgumentException: Can not retrieve form data
I’m working with Servoy 5.1.0
It’s important to say that it does not happen always. For example, if I log in to my solution, log out, and then log in, then the error jumps.
I’t never happens on the first attempt to enter the solution.
Also an error dialog with ‘1 out of bounds’ is shown.
Does any one have an idea of what kind of error it is and why it could be happening??
Also the message setSelectedIndex: 1 out of bounds I’ve seen
I’m working with 5.1.2 which was released after Rob’s reply on 12-03-2010.
So maybe there is another situation where this error can occur.
It happens when I scroll fast through my controller.
I have a onRecordSelection event.
And I think the process hasn’t finished the first onRecordSelection event while the second is already there.
And that in combination with related forms (3 forms that share the same foundset + related forms).
Rob, does this make any sense?
When I scroll slowly through my recordset then the error doesn’t occur.
When I put the trace on in 5.1.2 I see a related record with a stored calculation is updated because the calculation result is probably not equal to the stored value.
Can this be a reason? Because this update is unexpected.
Another variant of the same error: Cannot bundle ‘removed’ event with ‘added’ events
Could it be something with remove and create forms using the SolutionModel (which is the case in my form where the error occurs?
2010-05-06 20:27 http-8086-1 ERROR com.servoy.j2db.util.Debug Throwable
java.lang.IllegalStateException: Cannot bundle ‘removed’ event with ‘added’ events
at com.servoy.j2db.util.Zue.fireIntervalRemoved(Zue.java:33)
at javax.swing.DefaultListModel.removeAllElements(Unknown Source)
at com.servoy.j2db.dataprocessing.Zve.fill(Zve.java:18)
at com.servoy.j2db.dataprocessing.Zve.Zf(Zve.java:74)
at com.servoy.j2db.dataprocessing.Zve.Za(Zve.java:69)
at com.servoy.j2db.dataprocessing.Zvb.run(Zvb.java:5)
at com.servoy.j2db.dataprocessing.Zsb.Za(Zsb.java:132)
at com.servoy.j2db.dataprocessing.Zsb.Za(Zsb.java:553)
at com.servoy.j2db.dataprocessing.Zhd.Za(Zhd.java:504)
at com.servoy.j2db.dataprocessing.Zjd.run(Zjd.java:3)
at com.servoy.j2db.dataprocessing.EditRecordList.stopEditing(EditRecordList.java:526)
at com.servoy.j2db.dataprocessing.Record.stopEditing(Record.java:182)
at com.servoy.j2db.dataprocessing.Zgd.Za(Zgd.java:149)
at com.servoy.j2db.dataprocessing.Record.getValue(Record.java:266)
at com.servoy.j2db.dataprocessing.Zte.handleRowData(Zte.java:96)
at com.servoy.j2db.dataprocessing.Zve.Za(Zve.java:159)
at com.servoy.j2db.dataprocessing.Zve.fill(Zve.java:97)
at com.servoy.j2db.util.Zpe.Za(Zpe.java:98)
at com.servoy.j2db.server.headlessclient.dataui.Znf.setRecord(Znf.java:110)
at com.servoy.j2db.dataprocessing.Zgb.Za(Zgb.java:142)
at com.servoy.j2db.server.headlessclient.dataui.Zxg.refreshRecord(Zxg.java:32)
at com.servoy.j2db.Zwb.Za(Zwb.java:936)
at com.servoy.j2db.Zwb.Za(Zwb.java:686)
at com.servoy.j2db.Zwb.Za(Zwb.java:633)
at com.servoy.j2db.server.headlessclient.dataui.WebTabPanel.Za(WebTabPanel.java:125)
at com.servoy.j2db.server.headlessclient.dataui.WebTabPanel.setRecord(WebTabPanel.java:139)
at com.servoy.j2db.dataprocessing.Zgb.Za(Zgb.java:142)
at com.servoy.j2db.server.headlessclient.dataui.Zxg.refreshRecord(Zxg.java:32)
at com.servoy.j2db.Zwb.Za(Zwb.java:936)
at com.servoy.j2db.Zwb.valueChanged(Zwb.java:719)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at com.servoy.j2db.util.gui.Zvb.Za(Zvb.java:64)
at com.servoy.j2db.util.gui.Zvb.Za(Zvb.java:80)
at com.servoy.j2db.util.gui.Zvb.Za(Zvb.java:82)
at com.servoy.j2db.dataprocessing.Zqb.setSelectedIndex(Zqb.java:13)
at com.servoy.j2db.Zwb.Zb(Zwb.java:1026)
at com.servoy.j2db.FormController$JSForm.jsFunction_setSelectedIndex(FormController.java:10)
at sun.reflect.GeneratedMethodAccessor533.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:179)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:353)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3666)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2680)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:166)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3127)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:165)
at com.servoy.j2db.scripting.Ztb.executeFunction(Ztb.java:18)
at com.servoy.j2db.Zwb.Za(Zwb.java:1141)
at com.servoy.j2db.Zwb.Za(Zwb.java:122)
at com.servoy.j2db.Zcc.Za(Zcc.java:4)
at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:18)
at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:33)
at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:43)
at com.servoy.j2db.server.headlessclient.dataui.WebEventExecutor.onEvent(WebEventExecutor.java:275)
at com.servoy.j2db.server.headlessclient.dataui.Zud.onEvent(Zud.java:9)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
at com.servoy.j2db.server.servlets.Zk.doGet(Zk.java:2)
at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)