It indeed was the reason. No GWT-Client-Code in ServerImplementation. Sounds sane ;-)
On 15 Jun., 16:39, uwi_u <uwe.chris...@gad.de> wrote: > Ahhhh. I guess it's the following: > > I included com.google.gwt.user.client.Timer instead of > java.util.Timer... could this be the reason? > > On 15 Jun., 16:25, uwi_u <uwe.chris...@gad.de> wrote: > > > Hi! > > > I'm writing an application which starts a new timer for each user > > logging in. > > I'm storing the timers in a HashMap for easy access. A KeepAlive from > > Client will get the timer out of the Hashmap and reset it. But when > > executing "Timer t = new Timer(){....}", the method crashes. Can > > somebody tell me why? > > > Heres the Code of my ServerImplementation: > > > if (setConnection(server, DBschemeName, user, passwd) == false) return > > 0; > > else { > > connectedUsers.put(user, passwd); > > logWarn("Baue Timer"); > > Timer t = new Timer(){ > > public void run() { > > logoutUser(user); > > logWarn("User "+user+" logged out due to Timeout!"); > > } > > }; > > t.schedule(logoutTime); > > userLogoutTimers.put(user, t); > > return 1; > > > } -- 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.