Re: Project setup that allows working with both hosted mode and web mode side by side?

2009-07-29 Thread rintcius

I solved the issue. This happened because I am using a different
module for development to speed up compilation in web mode. Something
like this:
module rename-to='myModule'
  inherits name='my.company.gwt.MyModule'/
  set-property name=user.agent value=gecko /
  set-property name=locale value=default /
/module

The problem was that in hosted mode I was still using the original
module which lead to the exception I mentioned in the first post of
this thread. Once I started hosted mode with this development module
i.s.o. the original module the problem was resolved and I can now
happily run hosted mode and web mode side by side.

Rintcius

--~--~-~--~~~---~--~~
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: Project setup that allows working with both hosted mode and web mode side by side?

2009-07-25 Thread rintcius

Hi Jon and Juraj,

Thanks for your suggestions.

@Jon
I am using eclipse and jetty. Can you also use the front end in web
mode apart from hosted mode? I am getting the same exception when I
try with the -noserver option.
The reason I would like web mode is because of Firebug so I can see
what's actually going on in the browser (and tweak the css for
example). BTW Out of Process Hosted Mode 
http://code.google.com/p/google-web-toolkit/wiki/DesignOOPHM
will probably solve the problem for me.

@Juraj
Yes, that looks like the easiest workaround.

Backtracking to the root of the problem:
I am still interested in a solution i.s.o. a workaround. I mean,
shouldn't web mode and hosted mode be working side by side out of the
box?
I am also wondering why my problem is not occurring more often (found
just 1 thread with a similar error but this was with the -noserver
option 
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/aa3a8d942e493c26).
I would guess the use case of using hosted mode and web mode side by
side is pretty common. Maybe there's something particular about my
project setup although I can't think of anything except maybe that I
am using linux/ubuntu iso windows.

Rintcius
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Project setup that allows working with both hosted mode and web mode side by side?

2009-07-22 Thread rintcius

Hi,
I am looking for a project setup that allows me to work easily with
both hosted mode and web mode (including RPC).
I am getting the exception below, whenever I start up hosted mode
after I have started it in web mode (i.e. war/myModule directory
contains the compiled code for web mode). If I am starting hosted mode
on a clean war/myModule directory then it works ok.

To workaround it I thought to add a specific module for hosted mode
like this:
module rename-to='myModuleHosted'
  inherits name='my.company.gwt.MyModule'/
  set-property name=user.agent value=gecko /
  set-property name=locale value=default /
/module
And then start up this from the shell (with args: -startupUrl
MyModuleHosted.html
my.company.gwt.MyModuleHosted). This works well as long as I dont do
any RPC calls.

RPC calls however fail since they try to address myModuleHosted/
myServicePath whereas the service is still available under myModule/
myServicePath.

Any ideas to get the service available as myModuleHosted/myServicePath
instead?
Or any other ideas for a setup?

Thanks, Rintcius


[ERROR] Error while executing the JavaScript provider for property
'user.agent'
java.lang.RuntimeException: Failed to invoke native method:
__gwt_getProperty with 1 arguments.
at com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java:
134)
at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke
(ModuleSpaceMoz.java:99)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
453)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:231)
at
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue
(ModuleSpacePropertyOracle.java:108)
at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue
(ModuleSpacePropertyOracle.java:65)
at com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval
(ConditionWhenPropertyIs.java:48)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind
(StandardRebindOracle.java:103)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind
(StandardRebindOracle.java:62)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:172)
at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind
(ShellModuleSpaceHost.java:114)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate
(ModuleSpace.java:365)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
39)
at com.google.gwt.core.client.GWT.create(GWT.java:91)
at com.google.gwt.user.client.DOM.clinit(DOM.java:35)
at com.google.gwt.user.client.ui.SimplePanel.init(SimplePanel.java:
35)

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



ServletException Client did not send 139 bytes as expected when testing a gwt-gadget via iGoogle (during RPC call)

2008-12-07 Thread rintcius

Hi,
I am trying to get a gwt-gadget running, but I am getting the
exception below on the RPC call. Anybody has an idea what could be
going on?
The stacktrace below is when deployed on jetty, but I get a similar
exception on glassfish v2.
GWT version: 1.5.3. gwt-gadget version: 1.0.1

Thanks for any help,
Rintcius

[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
2008-12-06 21:40:49.329:/:WARN:  Exception while dispatching incoming
RPC call
javax.servlet.ServletException: Client did not send 139 bytes as
expected
at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8
(RPCServletUtils.java:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke
(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:
1094)
at groovy.lang.ExpandoMetaClass.invokeStaticMethod
(ExpandoMetaClass.java:957)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod
(InvokerHelper.java:748)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN
(ScriptBytecodeAdapter.java:167)
at
org.codehaus.groovy.grails.plugins.gwt.GrailsRemoteServiceServlet.readContent
(GrailsRemoteServiceServlet.groovy:28)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1097)
at
org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.processFilterChain
(UrlMappingsFilter.java:157)
at
org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.doFilterInternal
(UrlMappingsFilter.java:148)
at org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:75)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1088)
at
org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.parsePage
(GrailsPageFilter.java:119)
at
org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.doFilter
(GrailsPageFilter.java:82)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1088)
at
org.codehaus.groovy.grails.web.servlet.filter.GrailsReloadServletFilter.doFilterInternal
(GrailsReloadServletFilter.java:142)
at org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:75)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1088)
at
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal
(GrailsWebRequestFilter.java:68)
at org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:75)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1088)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal
(CharacterEncodingFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:75)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate
(DelegatingFilterProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter
(DelegatingFilterProxy.java:138)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1088)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle
(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle
(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest
(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:
211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
380

Exception when running GWT Gadget RPC sample project ($stats is not defined)

2008-12-03 Thread rintcius

Hi,

I am trying to get the GadgetRPC sample working, but I'm stuck. I am
getting the exception below when it's about to make the RPC call (and
a similar exception in my own project)
Anybody knows what's going on here? Did I miss a configuration step
somewhere?

By the way I am running linux. GWT version is 1.5.3. gwt-gadgets
version is 1.0.1.

Thanks for any help,
Rintcius

[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (ReferenceError):
$stats is not defined
 fileName: jar:file:/home/rintcius/dev/lib/gwt/gwt-linux-1.5.3/gwt-
user.jar!/com/google/gwt/user/client/rpc/impl/RemoteServiceProxy.java
 lineNumber: 56
 stack: ()@jar:file:/home/rintcius/dev/lib/gwt/gwt-linux-1.5.3/gwt-
user.jar!/com/google/gwt/user/client/rpc/impl/RemoteServiceProxy.java:
56
static void com.google.gwt.user.client.DOM.dispatchEvent
(com.google.gwt.user.client.Event,com.google.gwt.user.client.Element,com.google.gwt.user.client.EventListener)
([object Event],[object HTMLButtonElement],[object
gwt_nativewrapper_class])@:0
([object Event])@jar:file:/home/rintcius/dev/lib/gwt/gwt-linux-1.5.3/
gwt-user.jar!/com/google/gwt/user/client/impl/DOMImplStandard.java:197
@:0

at
com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.isStatsAvailable
(Native Method)
at
com.google.gwt.gadgets.sample.gadgetrpc.client.GadgetService_Proxy.getServerInfo
(transient source for
com.google.gwt.gadgets.sample.gadgetrpc.client.GadgetService_Proxy:23)
at com.google.gwt.gadgets.sample.gadgetrpc.client.GadgetRPC$2.onClick
(GadgetRPC.java:104)
at com.google.gwt.user.client.ui.ClickListenerCollection.fireClick
(ClickListenerCollection.java:34)
at com.google.gwt.user.client.ui.FocusWidget.onBrowserEvent
(FocusWidget.java:102)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:
1287)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---