I'm working on updating my app from using SmartGWTEE 3.1p to 4.1d, and I am now getting an exception when trying to export a VLayout and its contents to PDF via RPCManager.exportContent(). Here is the stack trace:
And here is the code that called it:
SmartClient Version: SNAPSHOT_v9.1d_2014-02-10/Enterprise Deployment (built 2014-02-10)
Browser is FF 25.0 on Mac OSX 10.8.5.
Any ideas?
Thank you.
Code:
java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method '@com.smartgwt.client.widgets.BaseWidget::getInnerHTML()': JS value of type boolean, expected java.lang.Object at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.smartgwt.client.widgets.BaseWidget.getInnerHTML(BaseWidget.java) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) 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.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at com.smartgwt.client.rpc.RPCManager.exportContent(RPCManager.java)
Code:
DSRequest requestProperties = new DSRequest(); requestProperties.setExportFilename(getPdfFileName()); requestProperties.setExportDisplay(ExportDisplay.DOWNLOAD); requestProperties.setContentType("application/pdf"); requestProperties.setDownloadResult(true); RPCManager.exportContent(contentLayout, requestProperties);
Browser is FF 25.0 on Mac OSX 10.8.5.
Any ideas?
Thank you.
Comment