Performing Inserts, Updates, and Deletes not session

I'm trying to alter example

http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ins erts_updates_deletes.html

changing dataprovider from sessiobean to page.

When i load page for first time all is ok, but when i change person to show his trips i have the exeption

Description: An unhandled exception occurred during the execution of the web application. Please review the following stack tracefor more information regarding the error.

Exception Details: org.apache.derby.client.am.SqlException

At least one parameter to the current statement is uninitialized.

Possible Source of Error:

Class Name: org.apache.derby.client.am.PreparedStatement

File Name:null

Method Name: checkThatAllParametersAreSet

Line Number: -1

Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.

Stack Trace:

org.apache.derby.client.am.PreparedStatement.checkThatAllParametersAreSet( Unknown Source )

org.apache.derby.client.am.PreparedStatement.flowExecute( Unknown Source )

org.apache.derby.client.am.PreparedStatement.executeQueryX( Unknown Source )

org.apache.derby.client.am.PreparedStatement.executeQuery( Unknown Source )

com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:193)

com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:950)

com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1410)

com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute(CachedRowSetDataProvider.java:1219)

com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:329)

com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(CachedRowSetDataProvider.java:300)

com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount(CachedRowSetDataProvider.java:624)

com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.java:806)

com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableRowGroup.java:429)

com.sun.rave.web.ui.component.TableRowGroup.getSortedRowKeys(TableRowGroup.java:1385)

com.sun.rave.web.ui.component.TableRowGroup.getRenderedRowKeys(TableRowGroup.java:876)

com.sun.rave.web.ui.component.TableRowGroup.iterate(TableRowGroup.java:1956)

com.sun.rave.web.ui.component.TableRowGroup.processDecodes(TableRowGroup.java:1679)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)

com.sun.rave.web.ui.component.Form.processDecodes(Form.java:78)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)

javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)

javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)

com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)

com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)

com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)

sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)

java.security.AccessController.doPrivileged(AccessController.java:-2)

javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)

org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)

org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)

java.security.AccessController.doPrivileged(AccessController.java:-2)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)

org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)

org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)

java.security.AccessController.doPrivileged(AccessController.java:-2)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)

com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)

com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)

com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)

com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)

Can someone help me ?

I don't want to put all data provider in session: i want to create 100 pages of application (try to convert erp from client server to jee) and to me is too expansive. Am i right ? Is there another solution ?

Thanks

mickgiu

[6920 byte] By [mickgiu2] at [2007-11-26 9:35:32]
# 1
What does your query statement look like. For each parameter in your query (for each ?) you need to call setObject() as shown in code sample 1getSessionBean1().getTripRowSet().setObject(1, selectedPersonId);
MrsJetsons at 2007-7-7 0:26:27 > top of Java-index,Development Tools,Java Tools...