Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/454.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GWT:com.google.GWT.core.client.JavaScriptException。仅使用Internet Explorer_Javascript_Internet Explorer_Exception_Gwt_Download - Fatal编程技术网

GWT:com.google.GWT.core.client.JavaScriptException。仅使用Internet Explorer

GWT:com.google.GWT.core.client.JavaScriptException。仅使用Internet Explorer,javascript,internet-explorer,exception,gwt,download,Javascript,Internet Explorer,Exception,Gwt,Download,在解释我的问题之前,我必须说我的GWT版本是2.2.0,只有在我使用Internet Explorer(在本例中是IE 8)时才会出现错误 我有一个小GWT项目,其中包含一个按钮,用于抛出下一个方法: private void expotarExpediente(VistaExpediente vista) { final String templateURL = GWT.getHostPageBaseURL() + "exportar?id=" + vista.

在解释我的问题之前,我必须说我的GWT版本是2.2.0,只有在我使用Internet Explorer(在本例中是IE 8)时才会出现错误

我有一个小GWT项目,其中包含一个按钮,用于抛出下一个方法:

private void expotarExpediente(VistaExpediente vista) {
    final String templateURL = GWT.getHostPageBaseURL() + "exportar?id="
            + vista.getId();
    Window.open(
            templateURL,
            "Resultado de expotar el expediente: "
                    + vista.getNumeroExpediente(), "");
}
此方法创建一个模板URL,以调用经典的HTTPServlet(“exportar”),该HTTPServlet生成一个Zip文件供用户下载。 打开(…)在浏览器中打开一个允许下载文件的窗口

这在除Internet Explorer之外的所有浏览器中都能正常工作。 引发的异常是下一个异常:

抛出的异常是下一个异常

10:08:31.208[错误][sistemdefiniciontramites]未捕获的异常已转义 com.google.gwt.core.client.JavaScriptException:(错误):Argumento no válido。 电话号码:-2147024809 描述:Argumento no válido。 在com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237) 在com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129) 位于com.google.gwt.dev.shell.ModuleSpace.invokenactive(ModuleSpace.java:561) 位于com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) 位于com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) 位于com.google.gwt.core.client.impl.impl.apply(impl.java) 位于com.google.gwt.core.client.impl.impl.entry0(impl.java:214) 位于sun.reflect.GeneratedMethodAccessor18.invoke(未知源) 在sun.reflect.DelegatingMethodAccessorImpl.invoke处(未知源) 位于java.lang.reflect.Method.invoke(未知源) 位于com.google.gwt.dev.shell.MethodAdapter.invoke(methodAdapter.java:103) 位于com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 位于com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) 在com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) 位于com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) 在com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) 位于java.lang.Thread.run(未知源)

我无法通过谷歌搜索找到任何合适的解决方案。我想知道是否有人曾经有过这个问题或类似的问题,以及他或她是否能够克服它


感谢并原谅我的英语不好。

在调用
window.open()
时,Internet Explorer不喜欢窗口名中的空格。所以你的字符串:

"Resultado de expotar el expediente: " + vista.getNumeroExpediente()

应该没有空格。

非常感谢。你说得对。