IE6 RPC Failure
Hi All, I am having an issue with my GWT app. The first RPC call it makes fails in IE6. It works correctly in all other browsers including later IE versions. I have followed the Server Side code through with a Debuger and its not throwing an exceptions and nothing is logged on the server. Following through the response writter it seems to be writing the an OK response rather than an exception thrown one. Its seems odd this happens only in IE6. The RPC has been functioning fine in IE6 previously and this code hasn't changed since then. This happens in both development and compiled mode. Below is the stack trace form it running in development mode: Error: com.google.gwt.user.client.rpc.InvocationException Stack Trace: com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 201) com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:393) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.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.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1714) com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) 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:188) sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.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.BrowserChannel.reactToMessages(BrowserChannel.java: 1669) com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 401) com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) java.lang.Thread.run(Unknown Source) Has anyone else experience something like this before or that any ideas? Thanks, Charlie M -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Running gwt js on second server
On Aug 26, 11:26 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Pieter, your approach does not support ClientBundle. And the link href is missing a double slash (http://..;). Maybe a typo. You probably need to deliver addition headers with your page (Access-Control-Allow-Origin) in order to overcome SOP. (Take care which browser really support this) Alternatively there is a directive you can add to the module xml file which forces it to compile with using the XSS linker which will work cross domain unlike the default one. Unfortunately this linker cannot run in development mode, so you can't debug its output. That said it might be enough to just compile a new version for the designer to use every now and again and do the normal development with the default linker. Before release you will probably want to transfer the designers output in to CSS client bundles and move the images into these bundles as well. As it will improve load times a lot. Charlie M Stefan Bacherthttp://gwtworld.de On 22 Aug., 19:38, Pieter pieter.vandenb...@gmail.com wrote: I have created a basic basic gwt application running on ServerA. Now I want a designer to be able to write his own style sheet for the application but not touch the source code. So I created an html file and referenced the absolute js src. However, this is not working as expected. Sample of html on ServerB html head meta name='gwt:module' content='com.my.modules.Blast=com.my.modules.Blast' titleParty Blast/title link href=http:/ServerA:8080/Forms/css/datepicker.css rel=stylesheet type=text/css / /head body script type=text/javascript src=http://ServerA:8080/Forms/ com.my.modules.Blast/com.my.modules.Blast.nocache.js/script div id=theForm/div /body /html The page is just empty. Any insight with this is appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Plugin works only sometimes
Hi have exactly the same experince. I have followed it through with a debugger. Whats happening is for whatever reason its assuming the module name includes the package path. This is the default unless you override it with the rename-to attribute in the module config. Since its just using the module name not the full package path, when it tries to convert it to a path relative to the class path it won't work.So it ends up looking for the module in the default package not the one you are actually using. For me removing the rename to and recompiling works, but it breaks the RPCs since they uses the module name as the root of their serverlets url. Did you open an issue on this? Charlie M On Nov 20, 8:58 am, cromoteca luci...@virgilio.it wrote: Hi, yesterday I installed GWT 2.0 RC1 and it seems to work randomly. Before opening an issue, I'd like to know if I'm the only one to experience it. I was writing an application with 1.7 and I just replaced the GWT files without any change of code. When I run the new dev mode, everything starts as normal. I browse tohttp://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_man... (mfm is mapped to FreeMarker, meshcms.dev points to localhost). In the development mode window, two elements are marked in red: 00:01:48,887 [INFO] Connection received from 127.0.0.1:50316 00:01:48,995 [ERROR] Failed to loadmodule'meshcms' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/ 20091102 Firefox/3.5.5' at 127.0.0.1:50316 In the host_page.mfm tab there is another red line: 00:01:48,995 [ERROR] Unable to find 'meshcms.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? There is no other error, even in the IDE. My setup is: Windows 7 64bit NetBeans 6.7 without GWT plugin (just an Ant task that launches dev mode) Firefox 3.5.5 IE8 I just have to restart dev mode until it works. It seems to work randomly, but when it works the application runs perfectly until I close dev mode. My gwt.xml file is com.cromoteca.meshcms.Client.gwt.xml and contains: modulerename-to=meshcms source path=client/ inherits name=com.google.gwt.user.User/ inherits name=com.google.gwt.i18n.I18N/ inherits name=com.google.gwt.user.theme.chrome.Chrome/ inherits name=com.allen_sauer.gwt.dnd.gwt-dnd/ entry-point class=com.cromoteca.meshcms.client.core.Client/ stylesheet src=resources/client.css/ set-property name=user.agent value=ie6,gecko1_8 / /module So why is dev mode searching for meshcms.gwt.xml? My Ant task is: target name=hosted-mode-run depends=compile webproject1:java classname=com.google.gwt.dev.DevMode customize jvmarg value=-Xss16M/ jvmarg value=-Xmx256M/ jvmarg value=-Dfile.encoding=utf-8/ arg value=-war/ arg value=build/web/ arg value=-port/ arg value=8887/ arg value=-portHosted/ arg value=9997/ arg value=-startupUrl/ arg value=index.html/ arg value=com.cromoteca.meshcms.Client/ /customize /webproject1:java /target -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Plugin works only sometimes
Just in case any one is intersted. I have raised an issue for this: http://code.google.com/p/google-web-toolkit/issues/detail?id=4274 Charlie M On Nov 25, 1:01 pm, Charlie M charlie@gmail.com wrote: Hi have exactly the same experince. I have followed it through with a debugger. Whats happening is for whatever reason its assuming themodulename includes the package path. This is the default unless you override it with therename-to attribute in themoduleconfig. Since its just using themodulename not the full package path, when it tries to convert it to a path relative to the class path it won't work.So it ends up looking for themodulein the default package not the one you are actually using. For me removing therename toand recompiling works, but it breaks the RPCs since they uses themodulename as the root of their serverlets url. Did you open an issue on this? Charlie M On Nov 20, 8:58 am, cromoteca luci...@virgilio.it wrote: Hi, yesterday I installed GWT 2.0 RC1 and it seems to work randomly. Before opening an issue, I'd like to know if I'm the only one to experience it. I was writing an application with 1.7 and I just replaced the GWT files without any change of code. When I run the new dev mode, everything starts as normal. I browse tohttp://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_man... (mfm is mapped to FreeMarker, meshcms.dev points to localhost). In the development mode window, two elements are marked in red: 00:01:48,887 [INFO] Connection received from 127.0.0.1:50316 00:01:48,995 [ERROR] Failed to loadmodule'meshcms' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/ 20091102 Firefox/3.5.5' at 127.0.0.1:50316 In the host_page.mfm tab there is another red line: 00:01:48,995 [ERROR] Unable to find 'meshcms.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? There is no other error, even in the IDE. My setup is: Windows 7 64bit NetBeans 6.7 without GWT plugin (just an Ant task that launches dev mode) Firefox 3.5.5 IE8 I just have to restart dev mode until it works. It seems to work randomly, but when it works the application runs perfectly until I close dev mode. My gwt.xml file is com.cromoteca.meshcms.Client.gwt.xml and contains: modulerename-to=meshcms source path=client/ inherits name=com.google.gwt.user.User/ inherits name=com.google.gwt.i18n.I18N/ inherits name=com.google.gwt.user.theme.chrome.Chrome/ inherits name=com.allen_sauer.gwt.dnd.gwt-dnd/ entry-point class=com.cromoteca.meshcms.client.core.Client/ stylesheet src=resources/client.css/ set-property name=user.agent value=ie6,gecko1_8 / /module So why is dev mode searching for meshcms.gwt.xml? My Ant task is: target name=hosted-mode-run depends=compile webproject1:java classname=com.google.gwt.dev.DevMode customize jvmarg value=-Xss16M/ jvmarg value=-Xmx256M/ jvmarg value=-Dfile.encoding=utf-8/ arg value=-war/ arg value=build/web/ arg value=-port/ arg value=8887/ arg value=-portHosted/ arg value=9997/ arg value=-startupUrl/ arg value=index.html/ arg value=com.cromoteca.meshcms.Client/ /customize /webproject1:java /target -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.0 Javascript IE Crash
I raised an issue for this a few days ago. http://code.google.com/p/google-web-toolkit/issues/detail?id=4258 I have just worked out what causing it. Its a mistake in my code UI XML. I had a colon in the width value. IE was throwing an exception where as Firefox and Chrome were simply ignoring it. Thanks, Charlie M On Nov 20, 4:21 pm, jd jdpatter...@gmail.com wrote: I wonder if this is the bug that I am also seeing. I am running 2.0RC2 and in IE6 also get an Illegal Argument error when I run it as compiled JS. From hosted mode this exception is thrown com.google.gwt.core.client.JavaScriptException: (Error): Invalid argument. number: -2147024809 description: Invalid argument. 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:501) at com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException (ModuleSpace.java:64) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript (BrowserChannelServer.java:157) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 509) at stepping through the code my problem occurs in LayoutImplIE6 on the line with the * public Element attachChild(Element parent, Element child, Element before) { if (!isIE6) { return super.attachChild(parent, child, before); } DivElement container = Document.get().createDivElement(); * container.insertBefore(child, before); It works fine in IE7, 8, Safari and Firefox -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
Re: GWT 2.0 Javascript IE Crash
I think the problem might lie with GWT core code. I can't see which part of my code this relates to. I have tried it in the the 2.0 RC and it sitll has the same problem. Below is the Javascript call stack from IE. com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2 JScript anonymous function gwtOnLoad maybeStartModule JScript anonymous function JScript global code Thanks, Charlie M On Nov 17, 7:33 pm, Chris Ramsdale cramsd...@google.com wrote: Would you mind entering an issue for this? Also, do you happen to have a the snippet of Java code that is resulting in the above JS? On Mon, Nov 16, 2009 at 9:51 AM, Charlie M charlie@gmail.com wrote: Hi All, I have been recently testing out GWT 2.0 currently from the 2.0 branch of the SVN although I have also tried Milestone 2. My app works fine in Chrome and Firefox in both development and hosted modes. When I try and run it in IE 6, 7 or 8 it complains of Javascript errors. It complains of an Invalid Argument on the finally statement. The generated code is below: function com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_ Object_2Ljava_lang_Object_2Ljava_lang_Object_2 (jsFunction, thisObj, arguments){ var initialEntry; initialEntry = com_google_gwt_core_client_impl_Impl_entryDepth++ == 0; try { return jsFunction.apply(thisObj, arguments); } finally { initialEntry (com_google_gwt_core_client_impl_SchedulerImpl_ $clinit__V() , com_google_gwt_core_client_impl_SchedulerImpl_runScheduledTasks__Lcom_googl e_gwt_core_client_JsArray_2Lcom_google_gwt_core_client_JsArray_2V (com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS, com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS)); --com_google_gwt_core_client_impl_Impl_entryDepth; } } Does anyone have any ideas. Thanks, Charlie M -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
GWT 2.0 Javascript IE Crash
Hi All, I have been recently testing out GWT 2.0 currently from the 2.0 branch of the SVN although I have also tried Milestone 2. My app works fine in Chrome and Firefox in both development and hosted modes. When I try and run it in IE 6, 7 or 8 it complains of Javascript errors. It complains of an Invalid Argument on the finally statement. The generated code is below: function com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2 (jsFunction, thisObj, arguments){ var initialEntry; initialEntry = com_google_gwt_core_client_impl_Impl_entryDepth++ == 0; try { return jsFunction.apply(thisObj, arguments); } finally { initialEntry (com_google_gwt_core_client_impl_SchedulerImpl_ $clinit__V() , com_google_gwt_core_client_impl_SchedulerImpl_runScheduledTasks__Lcom_google_gwt_core_client_JsArray_2Lcom_google_gwt_core_client_JsArray_2V (com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS, com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS)); --com_google_gwt_core_client_impl_Impl_entryDepth; } } Does anyone have any ideas. Thanks, Charlie M -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
Changing Browser Detection
Hi All, I am looking at using GWT with a new project I am work on, having used it successfully on a previous project. This project requires the use of a specialist embedded browser. There is a simulation PC browser which provides very little in the way of debugging output but GWT is clearly not working. Even a simple two Widget test app won't work. I was hopeful it would work because its apparently based on the Gecko engine. It certainly works with most web sites and seems fully featured. I tested it with Gmail which works very well. The user agent the browser provides in the HTTP headers is: User-Agent: Mozilla/5.0 (compatible; ANTGalio/2.1.19.06.05; NT5.01sp3/ x86) How will GWTs boot strap handle this user agent. Is there any well to tell what its detected it as and to tell GWT what browser to treat it as. Thanks, Charlie M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: clear.cache.gif missing from all IEs
I have worked out my problem. It was an IE cache issue. It was putting the clear.cache.gif in correctly. Charlie M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
clear.cache.gif missing from all IEs
Hi All, I have just upfraded my project to GWT 1.7. Magically my IE8 issue has gone away :). However now I have a new one. All image buddle images on all the IEs don't display correctly. They have the error image icon instead. They still have the correctly sliced up image in the background. However the error icon is on top of all the images. Using IE8s developer tools I noticed it thinks there is no src for the image. If I supply the standard clear.cache.gif it works fine. This happens in IE6, IE7 IE8. This also happens with the built in image bundles like the disclosure triangle icon. Has anyone else experienced this with GWT 1.7? Charlie M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
IE 8 Image Bundle Issue
Hi All, I have a strage problem thats apeared with IE 8. Basically I have a discolusre panel with a customer header. The header has a Grid on it with one row. The left most item is the standard disclosure triangle Image. I have mirrored the standard discloure panel header widget as much as possible. So when the open event is triggered it uses Image.applyTo to replace the current image with the correct one. This works fine in hosted mode and on Chrome and Firefox as well as IE 6 7. However in IE 8 when in the closed position it shows the open image as well as the closed image next to it. If I put it in to qerks mode it works fine like it does in IE7. Using IE8 developer tools it appears as though the img element its self is the wrong size. Each image is 16 x 16 however the img element is set to 32x16. On firefox its the correct size of 16x16. Anyone else experienced this. Charlie M --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---