Hi there,
Im a newbie to smart gwt. And i went to use the BatchUploader from the example taken here: http://www.smartclient.com/smartgwte...batch_uploader
only difference from my side is i used in my own database (mySql). The retrieval of the data on the table was properly displayed. but when i upload a csv file, the commit was successful but apparently it didnt write on the database. I found the error not so helpful.
version: SmartClient Version: SC_SNAPSHOT-2012-03-12_v8.2p/Enterprise Deployment (built 2012-03-12)
browser: Firefox 13.0.1
sample code:
error below
com.smartgwt.client.core.JsObject$SGWT_WARN: 18:04:32.946:XRP0:WARN:RPCManager:Server returned TRANSPORT_ERROR with no error message performing operation 'custom'., response: {operationId: "custom", clientContext: Obj, context: Obj, transactionNum: 5, httpResponseCode: 404, httpResponseText: "<html>\n<head>\n<meta http-equiv="Content-..."[1425], xmlHttpRequest: [object XMLHttpRequest], transport: "xmlHttpRequest", status: -90, clientOnly: undef, httpHeaders: Obj, isStructured: true, callbackArgs: null, results: Obj, data: null, response: Obj, startRow: 0, endRow: 0, totalRows: 0}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Thread.java:680)
Im a newbie to smart gwt. And i went to use the BatchUploader from the example taken here: http://www.smartclient.com/smartgwte...batch_uploader
only difference from my side is i used in my own database (mySql). The retrieval of the data on the table was properly displayed. but when i upload a csv file, the commit was successful but apparently it didnt write on the database. I found the error not so helpful.
version: SmartClient Version: SC_SNAPSHOT-2012-03-12_v8.2p/Enterprise Deployment (built 2012-03-12)
browser: Firefox 13.0.1
sample code:
Code:
private ListGrid createBatchUploadPanel(VLayout orderSummary) { final ListGrid orderSummaryGrid = new ListGrid(); orderSummary.setWidth100(); orderSummary.setHeight100(); // orderSummary.setShowResizeBar(true); //Creating title bar for Order Detail createPanelTitle("Order File Upload"); // batch upload DataSource dataSource = DataSource.get("TABLE_XXX"); BatchUploader batchUploader = new BatchUploader(); batchUploader.setWidth100(); batchUploader.setHeight100(); batchUploader.setUploadDataSource(dataSource); // TextItem stringValue = new TextItem("stringValue", "String Value"); // IntegerItem numberValue = new IntegerItem(); // numberValue.setName("numericValue"); // numberValue.setTitle("Numeric Value"); // batchUploader.setUploadFormItems(stringValue, numberValue); batchUploader.setDataURL(GWT.getModuleBaseURL() + "/exampleTransactionManager.do"); ListGrid orderSubmissionGrid = new ListGrid(); orderSubmissionGrid.setShowFilterEditor(true); orderSubmissionGrid.setDataSource(dataSource); orderSubmissionGrid.setUseAllDataSourceFields(true); orderSubmissionGrid.setWidth100(); orderSubmissionGrid.setHeight100(); // orderSubmissionGrid.setAutoFetchData(true); VLayout vlayoutbatch = new VLayout(); // vlayoutbatch.setWidth100(); // vlayoutbatch.setHeight100(); // vlayoutbatch.setShowResizeBar(true); vlayoutbatch.addMember(batchUploader); orderSummary.addMember(vlayoutbatch); orderSummary.addMember(orderSubmissionGrid); return orderSummaryGrid; }
error below
com.smartgwt.client.core.JsObject$SGWT_WARN: 18:04:32.946:XRP0:WARN:RPCManager:Server returned TRANSPORT_ERROR with no error message performing operation 'custom'., response: {operationId: "custom", clientContext: Obj, context: Obj, transactionNum: 5, httpResponseCode: 404, httpResponseText: "<html>\n<head>\n<meta http-equiv="Content-..."[1425], xmlHttpRequest: [object XMLHttpRequest], transport: "xmlHttpRequest", status: -90, clientOnly: undef, httpHeaders: Obj, isStructured: true, callbackArgs: null, results: Obj, data: null, response: Obj, startRow: 0, endRow: 0, totalRows: 0}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Thread.java:680)
Comment