Re: how to debug java.lang.RuntimeException: Deferred binding failed for...
Put the persistence.xml in your source in the correct place. what does this mean? the persistence.xml is located in myIncluded.jar/META-INF. And in my webApp.war it is located in /WEB-INF/lib/myincluded.jar/META-INF. Imho that's the right place, isn't it? p.s. sorry for double post, don't know how this could happen On 17 Mrz., 21:43, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Put the persistence.xml in your source in the correct place. Juan 2011/3/17 tanteanni tantea...@hotmail.com I feel a bit sheepish about it.But the Failure was much simpler then you all could imagine (obviously): simply i missed extends RemoteService ! but now it seems i got a real problem: the 3rd party class the server side uses jpa2 as mentioned before. and its code now throws no persistence unit found. But the unit exists: in fact this 3rd party jar is executable and its running fine stand alone (the persistence.xml is contained in jar file, packed by maven-assembly- plugin). so it seems that the access to persistence.xml is some how restricted if the jar is accessed through jetty/myApp? Or why i got this error only if run via myApp? On 17 Mrz., 16:03, tanteanni tantea...@hotmail.com wrote: (this is my last attempt to get a message through the moderators - my last 2 question seem to be ignored) at the moment i am working on my first gwt application (after going through the (great) stockwatcher tutorial). I am facing problem on getting server side services to work. on starting my app in development mode i get: 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class myPackage.client.myApp (see associated exception for details) java.lang.RuntimeException: Deferred binding failed for 'myPackage.client.services.AgsService' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at myPackage.client.GWZmenu.init(GWZmenu.java:39) at myPackage.client.myApp.onModuleLoad(myApp.java:35) 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 com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:619) Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 503) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.client.GWT.create(GWT.java:98) at myPackage.client.GWZmenu.init(GWZmenu.java:39) at myPackage.client.myApp.onModuleLoad(myApp.java:35) 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 com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:619) The Serviceinterface is: @RemoteServiceRelativePath(AgsService) public interface AgsService { MapString, String[] getFedLandsCounties(); MapString, String[] getFedLandsComm(); MapString, String[] getCountiesComm(); } The Implementation uses a jar that connects via jpa2 to a db to get the Maps. I am using Maven the app was generated via appcreator (- maven). with this interface i went through the according part of stockwatcher- tutorial (added Impl(emantation), an Async interface, updated web.xml) the web.xml looks like this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet
Re: GWT menu item text alignment issue
Instead of using setText() from menuitem i have created my own settext() as below public void setText(String text, String acceleratorKey) { Element leftDIV = DOM.createDiv(); DOM.setElementProperty(leftDIV, align, left); DOM.setInnerText(leftDIV, text); DOM.insertChild(getElement(), leftDIV, 0); Element rightDIV = DOM.createDiv(); DOM.setElementProperty(rightDIV, align, right); DOM.setInnerText(rightDIV, acceleratorKey); DOM.insertChild(getElement(), rightDIV, 2); } This method shows the menuitems but do not show any effect of DOM.setElementProperty(leftDIV, align, left); or DOM.setElementProperty(rightDIV, align, right); output from above code is: CreateAlt+Ctrl+C EditShift+E OptimizeCtrl+O can anyone help if i can create two div elements so that alignment can be done properly or is there any otherway to achieve this. On Mar 18, 9:08 am, maximus mohitchilk...@gmail.com wrote: On Mar 17, 4:13 pm, maximus mohitchilk...@gmail.com wrote: Hi all, Is it possible in GWT to set Menu Item text in two different alignments,what I mean to say is I want my menu item's label to be left justified and its accelerator key to be right justified. i.e, Create Alt+Ctrl+C Edit Shift+E Optimize Ctrl+O Thanks -- 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: EntityProxy for an interface
i have got the same problem to solve and inspired by John's solution, i have done something like this on top of code provided above and it seem to solve the problem atleast for a sample that i tried. would be great if John or Thomas or anyone could review it and point me if anything is wrong. Also John, would be great if you could share your complete code. This comes in the custom Service Locator that i hooked in via custom Request Factory Servlet class: Also see it formatted here: http://pastie.org/1685351 private final static MapClass?, Class? extends BaseProxy s_proxyTypeCache = new HashMapClass?, Class? extends BaseProxy(); @SuppressWarnings(unchecked) @Override public T Class? extends T resolveClientType(Class? domainClass, ClassT clientType, boolean required) { /*- * Inspired by * http://groups.google.com/group/google-web-toolkit/browse_thread/thread/36d0ed4f87be/45af985914ac1780?lnk=gstq=maitland * as we mostly use interface type of domain in ProxyFor annotation. * Assumption: * Type T should be one that is/extends BaseProxy */ Class? extends T c = null; ProxyFor p = clientType.getAnnotation(ProxyFor.class); if (p != null p.value().isAssignableFrom(domainClass)) { // job made simple as clientType passed was the real client proxy // that we defined c = super.resolveClientType(p.value(), clientType, required); } else { // ProxyFor won't be present obviously if clientType param was // BaseProxy itself c = super.resolveClientType(domainClass, clientType, required); if (c != null) { // we might need/use it later s_proxyTypeCache.put(domainClass, (Class? extends BaseProxy) c); } else { // client type couldn't be retrieved if we had given interface // type of domain obj in ProxyFor anno and if Locator had // resolved it to the actual impl type of domain obj and passed // it as domainClass; See if we already had gotten and stored // the client type for the same domain's corresponding interface // type SetClass? domainTypes = s_proxyTypeCache.keySet(); for (IteratorClass? iterator = domainTypes.iterator(); iterator .hasNext();) { Class? domType = iterator.next(); if (domType.isAssignableFrom(domainClass)) { // good, we have an entry for domain obj's // interface/class type c = (Class? extends T) s_proxyTypeCache.get(domType); break; } } } } if (null == c) { throw new YourApplicationRuntimeException( Unable to resolve the client side custom defined proxy class given the i/p {domain class : + domainClass + , + client type : + clientType + }); } return c; } On Jan 15, 6:28 pm, John Maitland jfgmaitl...@googlemail.com wrote: Thanks for the advise. After using getTop().resolveClientType this open up further compilications, not least a circular dependency in the layers. However, the next problem was intergrating this with a custom Locator, which resolves the domain class with the BaseProxy and not the actual proxy for the domain class (therefore above code doesnt work with BaseProxy). Therefore I put in a further cache map the ProxyFor class to the client class. Problem solved! On Jan 15, 6:28 pm, John Maitland jfgmaitl...@googlemail.com wrote: Thanks for the advise. After using getTop().resolveClientType this open up further compilications, not least a circular dependency in the layers. However, the next problem was intergrating this with a custom Locator, which resolves the domain class with the BaseProxy and not the actual proxy
Re: math performance
I don't really think that that would kill the server neither the client. However, it is also right that javascript that runs in a webbrowser is not the best platform to do floating arithmeticalcomplex calculations. You should also think, that although it is something normal that a client have a dual core or something mor powerfull, it is also typical that they have hundreds of other processes or applications running in it. In any case, the first I would try, is to run this calculations in the most possible simple javascript, also without gwt (just native js without any other kind of framwork) and see what happens then. Maybe the compiled code is not the best optimitzation for such a calculation. Good luck ;) al On 18 March 2011 02:31, csillag csillag.kris...@gmail.com wrote: On márc. 18, 02:25, joe kolba joekolb...@gmail.com wrote: Why do you have to do it on the client side? why not just do all of your processing on the server side and send the client the results. Because I do not want to kill the server; the clients can take care of themselves. Not every client is going to have a machine that can do heavy calculations Even tablets are getting dual core these days, so I don't think this is going to be a problem. and they might actually be using IE Well, hopefully not for long. Best wishes: Csillag -- 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. -- 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: CellTable Filter
You could just take the filtered elements and full it again. I don't know of some native method. Some other idea would be welcome :D Al On 17 March 2011 19:12, gadaleta.marco gadaleta.ma...@gmail.com wrote: Hello everyone, I was wondering if there is the possibility to apply a filter on a celltable or celllist. If so, could you tell me how? Txh, Marco -- 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. -- 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: RequestFactory+Service Layer with User ID in the HTTP Header
I am not really familiar with the spring layer and its IUserService interface but as you send the user id in the http header, couldn't you just put that user id into the user's session and each server method who needs the user id can then retrieve it from the session? -- 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.
How do I get the event source child under mouse cursor?
Hello, imagine a div element that contains various other div child elements. (huge amount) I'd like to get the child element of the parent div when I hold down the mouse button. (MouseDownEvent) In order to let the parent div be the relative container coordinate calculations will be made on I registered a new MouseEventHandler to that parent element. But now I have the problem of getting the deepest DOM element under mouse cursor (resp. top visible element under mouse cursor when event occures) The method event.getSource() will only give me the parent div element and the only method to accomplish this seems to be via JSNI as shown here: http://www.quirksmode.org/js/events_properties.html#target. As I'd like to avoid JSNI where possible, is there a GWT driven way to get the child element? Greetings - Marcel Karras -- 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: How do I get the event source child under mouse cursor?
I think you will get the deepest child (actually the real DOM target of the click event) via public void onClick(final ClickEvent event) { Element e = DOM.eventGetTarget(Event.as(event.getNativeEvent())); System.out.println(e); } -- 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.
CellTable Paging
Hi everyone, I am just wondering how you are supposed to use a CellTable in a resizable container from a user experience point of view. What would be desirable (in my opinion) would be either - one large scrollable list of entries that has a fixed header (i.e. not disappearing when scrolling) - a table with paging without scrollbars. There should be exactly as many entries visible as fit into the available space. When resizing the browser window the number of visible rows should be recalculated. What I ended up with so far is a mix of both that is not very satisfying: A table with either scrollbars (small window) or empty space (large window) AND paging WITHOUT fixed headers. ;) Does anyone have an idea or experience in how to use this widget in a sensible way? For me it always feels a bit like wearing your older brother's clothes, they look kind of ok but never really fit you... Have a nice weekend Jerome -- 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: how to debug java.lang.RuntimeException: Deferred binding failed for...
1) Post the complete stacktrace of no persistence unit found 2) How you create EntityManagerFactory? 3) Try this http://stackoverflow.com/questions/3873545/wicketspringjpahibernate-no-persistence-unit-found Juan On Mar 17, 1:39 pm, tanteanni tantea...@hotmail.com wrote: I feel a bit sheepish about it.But the Failure was much simpler then you all could imagine (obviously): simply i missed extends RemoteService ! but now it seems i got a real problem: the 3rd party class the server side uses jpa2 as mentioned before. and its code now throws no persistence unit found. But the unit exists: in fact this 3rd party jar is executable and its running fine stand alone (the persistence.xml is contained in jar file, packed by maven-assembly- plugin). so it seems that the access to persistence.xml is some how restricted if the jar is accessed through jetty/myApp? Or why i got this error only if run via myApp? On 17 Mrz., 16:03, tanteanni tantea...@hotmail.com wrote: (this is my last attempt to get a message through the moderators - my last 2 question seem to be ignored) at the moment i am working on my first gwt application (after going through the (great) stockwatcher tutorial). I am facing problem on getting server side services to work. on starting my app in development mode i get: 15:41:13.749 [ERROR] [myApp] Unable to load module entry point class myPackage.client.myApp (see associated exception for details) java.lang.RuntimeException: Deferred binding failed for 'myPackage.client.services.AgsService' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at myPackage.client.GWZmenu.init(GWZmenu.java:39) at myPackage.client.myApp.onModuleLoad(myApp.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler .java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 352) at java.lang.Thread.run(Thread.java:619) Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 503) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.client.GWT.create(GWT.java:98) at myPackage.client.GWZmenu.init(GWZmenu.java:39) at myPackage.client.myApp.onModuleLoad(myApp.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler .java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 352) at java.lang.Thread.run(Thread.java:619) The Serviceinterface is: @RemoteServiceRelativePath(AgsService) public interface AgsService { MapString, String[] getFedLandsCounties(); MapString, String[] getFedLandsComm(); MapString, String[] getCountiesComm(); } The Implementation uses a jar that connects via jpa2 to a db to get the Maps. I am using Maven the app was generated via appcreator (- maven). with this interface i went through the according part of stockwatcher- tutorial (added Impl(emantation), an Async interface, updated web.xml) the web.xml looks like this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet servlet-nameAgsServiceImpl/servlet-name servlet-classmyPackage.server.AgsServiceImpl/servlet-class /servlet servlet-mapping servlet-nameAgsServiceImpl/servlet-name url-pattern/myApp/AgsService/url-pattern /servlet-mapping !--
Re: How do I get the event source child under mouse cursor?
On Friday, March 18, 2011 12:00:40 PM UTC+1, Jens wrote: I think you will get the deepest child (actually the real DOM target of the click event) via public void onClick(final ClickEvent event) { Element e = DOM.eventGetTarget(Event.as(event.getNativeEvent())); System.out.println(e); } I'd rather use Element.as(event.getNativeEvent().getEventTarget()) or even replace the Element.as() with a check on Element.is() (just in case) I always try to avoid the old DOM class, that predated the com.google.gwt.dom package. -- 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.
GWT Developer Plugin not working
I just download GWT Plugin for Eclipse, I created my first Projet with GWT Sample code generated. I just ran the project as indicated in the tutorial, when the Plugin missing message appear, I install the plugin successfuly but when I refresh the page, the plugin missing message appears again. This is hapening more than six times of installation with Internet Explorer and Firefox. But it is working with Google Chrome fine. Thanks -- 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.
GWT ProperyFile read
Hii All, I am working on GWT,i have one property file.on project load i read that property file with servlet (like load on start up tag in web.xml in normal java concept) and put into one static map .now i want use those property file values in client side,how can i do this.. -- 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.
gwt button cell
Hi I have a cell table in which the first column, is a button cell. I need to be able to add style to it. I am unable to find code samples for it. I would also like to be able to click on the button cell. Somewhere I saw usage of fieldupdater but am unclear on it/ --thanks. -- 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: gwt button cell
Hii All, I am working on GWT,i have one property file.on project load i read that property file with servlet (like load on start up tag in web.xml in normal java concept) and put into one static map .now i want use those property file values in client side,how can i do this.. On Fri, Mar 18, 2011 at 10:04 AM, Deepali Bhandari deepalib...@yahoo.comwrote: Hi I have a cell table in which the first column, is a button cell. I need to be able to add style to it. I am unable to find code samples for it. I would also like to be able to click on the button cell. Somewhere I saw usage of fieldupdater but am unclear on it/ --thanks. -- 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. -- 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: How do I get the event source child under mouse cursor?
Oh is getEventTarget() new? Never recognized this method. So please use Thomas approach as it only depends on the event itself (and I will change my code now ;-) ) -- 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: how to debug java.lang.RuntimeException: Deferred binding failed for...
1) here ist the stacktrace (taken from eclipse console): Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.Map myPackage.client.services.AgsService.getFedLandsCounties()' threw an unexpected exception: java.lang.ExceptionInInitializerError at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) 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.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) 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) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.ExceptionInInitializerError at myPackage.server.AgsServiceImpl.getFedLandsCounties(AgsServiceImpl.java: 19) 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 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) ... 22 more Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named gwzPU at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 84) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 54) at myPackage.myApp.gwzDB.queries.AGS.clinit(AGS.java:21) ... 28 more [ERROR] 500 - POST /myApp/AgsService (127.0.0.1) 57 bytes 2) private static EntityManagerFactory emf = Persistence.createEntityManagerFactory(gwzPU); 3) i tried it - i copied the persitence.xml into target/myApp-1.0- SNAPSHOT/WEB-INF/classes/META-INF and to be sure also to target/ myApp-1.0-SNAPSHOT/META-INF and target/myApp-1.0-SNAPSHOT/. didn't help On 18 Mrz., 12:19, juan_pablo_gardella gardellajuanpa...@gmail.com wrote: 1) Post the complete stacktrace of no persistence unit found 2) How you create EntityManagerFactory? 3) Try thishttp://stackoverflow.com/questions/3873545/wicketspringjpahibernate-n... Juan On Mar 17, 1:39 pm, tanteanni tantea...@hotmail.com wrote: I feel a bit sheepish about it.But the Failure was much simpler then you all could imagine (obviously): simply i missed extends RemoteService ! but now it seems i got a real problem: the 3rd party class the server side uses jpa2 as mentioned before. and its code now throws no persistence unit found. But the unit exists: in fact this 3rd party jar is executable and its running fine stand alone (the persistence.xml is contained in jar file, packed by maven-assembly- plugin). so it seems that the access to persistence.xml is some how restricted if the jar is accessed through jetty/myApp? Or why i got this error only if run via myApp? On 17 Mrz., 16:03, tanteanni tantea...@hotmail.com wrote: (this is my last attempt to get a message through the moderators - my last 2 question seem to be ignored) at the moment i am working on my first gwt application (after going through the (great) stockwatcher
Re: how to debug java.lang.RuntimeException: Deferred binding failed for...
Show the file persistence.xml Juan 2011/3/18 tanteanni tantea...@hotmail.com 1) here ist the stacktrace (taken from eclipse console): Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.Map myPackage.client.services.AgsService.getFedLandsCounties()' threw an unexpected exception: java.lang.ExceptionInInitializerError at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) 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.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) 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) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.ExceptionInInitializerError at myPackage.server.AgsServiceImpl.getFedLandsCounties(AgsServiceImpl.java: 19) 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 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) ... 22 more Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named gwzPU at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 84) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 54) at myPackage.myApp.gwzDB.queries.AGS.clinit(AGS.java:21) ... 28 more [ERROR] 500 - POST /myApp/AgsService (127.0.0.1) 57 bytes 2) private static EntityManagerFactory emf = Persistence.createEntityManagerFactory(gwzPU); 3) i tried it - i copied the persitence.xml into target/myApp-1.0- SNAPSHOT/WEB-INF/classes/META-INF and to be sure also to target/ myApp-1.0-SNAPSHOT/META-INF and target/myApp-1.0-SNAPSHOT/. didn't help On 18 Mrz., 12:19, juan_pablo_gardella gardellajuanpa...@gmail.com wrote: 1) Post the complete stacktrace of no persistence unit found 2) How you create EntityManagerFactory? 3) Try thishttp:// stackoverflow.com/questions/3873545/wicketspringjpahibernate-n... Juan On Mar 17, 1:39 pm, tanteanni tantea...@hotmail.com wrote: I feel a bit sheepish about it.But the Failure was much simpler then you all could imagine (obviously): simply i missed extends RemoteService ! but now it seems i got a real problem: the 3rd party class the server side uses jpa2 as mentioned before. and its code now throws no persistence unit found. But the unit exists: in fact this 3rd party jar is executable and its running fine stand alone (the persistence.xml is contained in jar file, packed by maven-assembly- plugin). so it seems that the access to persistence.xml is some how restricted if the jar is accessed through jetty/myApp? Or why i got this error only if run via myApp? On 17 Mrz., 16:03, tanteanni tantea...@hotmail.com wrote: (this is my last attempt to get a message through
Re: how to debug java.lang.RuntimeException: Deferred binding failed for...
sorry here it is: ?xml version=1.0 encoding=UTF-8? persistence version=2.0 xmlns=http://java.sun.com/xml/ns/ persistence xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd; persistence-unit name=gwzPU transaction-type=RESOURCE_LOCAL providerorg.eclipse.persistence.jpa.PersistenceProvider/ provider classmyPackage.gwzDB.entityClasses.Class1/class classmyPackage.gwzDB.entityClasses.Class2/class properties property name=eclipselink.jdbc.batch-writing value=JDBC/ property name=eclipselink.jdbc.batch-writing.size value=1000/ property name=eclipselink.target-database value=MySQL/ property name=eclipselink.jdbc.native-sql value=true/ property name=javax.persistence.jdbc.url value=jdbc:mysql:// localhost:3306/gwz?rewriteBatchedStatements=true/ property name=javax.persistence.jdbc.password value=gwz/ property name=javax.persistence.jdbc.driver value=com.mysql.jdbc.Driver/ property name=javax.persistence.jdbc.user value=gwz/ /properties /persistence-unit /persistence On 18 Mrz., 13:29, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Show the file persistence.xml Juan 2011/3/18 tanteanni tantea...@hotmail.com 1) here ist the stacktrace (taken from eclipse console): Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.Map myPackage.client.services.AgsService.getFedLandsCounties()' threw an unexpected exception: java.lang.ExceptionInInitializerError at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) 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.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) 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) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.ExceptionInInitializerError at myPackage.server.AgsServiceImpl.getFedLandsCounties(AgsServiceImpl.java: 19) 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 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) ... 22 more Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named gwzPU at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 84) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 54) at myPackage.myApp.gwzDB.queries.AGS.clinit(AGS.java:21) ... 28 more [ERROR] 500 - POST /myApp/AgsService (127.0.0.1) 57 bytes 2) private static EntityManagerFactory emf = Persistence.createEntityManagerFactory(gwzPU); 3) i tried it -
Re: math performance
You can check the compiled code and see how the mathematical calculations are translated into javascript. For these kind of complex calculations the Native Client SDK ( http://code.google.com/p/nativeclient-sdk/) would be a perfect fit but unfortunately it is only supported in the latest chrome version. But I generally agree that nowadays client processing power is really no issue and as the performance of the javascript engines significantly increase from version to version it definitely makes sense to make use of that. -- 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: Unit Testing RequestFactory with ServiceLocator
Kathiravan, Have you seen RequestFactoryTest.testInstanceServiceRequest()? It calls a service that is annotated with a ServiceLocator. Is that what you're looking for? /dmc On Thu, Mar 17, 2011 at 8:12 PM, Kathiravan Tamilvanan kat...@gmail.comwrote: We have used EntityLocator and ServiceLocator with our Application's RequestFactory. Now that we want to unit test the implementation, What is the best way to unit test ? I have looked at RequestFactoryMagic which creates InProcessRequestFactory but not quiet sure how that applies to a ServiceLocator approach. Here is my thought. 1. Insert test data in to in memory database 2. Create RequestFactory Instance 3. Call a method on a Request object ( This is where the problem is, If the request is to query a table on the database using the ServiceLocator. it does not work. ) 4. Verify the result. Any pointers? -- 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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: how to debug java.lang.RuntimeException: Deferred binding failed for...
1) Are you test if you make the WAR and put in Tomcat (for example) and continue this error? 2) Is the complete stackttrace? Juan On Mar 18, 9:35 am, tanteanni tantea...@hotmail.com wrote: sorry here it is: ?xml version=1.0 encoding=UTF-8? persistence version=2.0 xmlns=http://java.sun.com/xml/ns/ persistence xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/persistence/persistence_2_0.xsd; persistence-unit name=gwzPU transaction-type=RESOURCE_LOCAL providerorg.eclipse.persistence.jpa.PersistenceProvider/ provider classmyPackage.gwzDB.entityClasses.Class1/class classmyPackage.gwzDB.entityClasses.Class2/class properties property name=eclipselink.jdbc.batch-writing value=JDBC/ property name=eclipselink.jdbc.batch-writing.size value=1000/ property name=eclipselink.target-database value=MySQL/ property name=eclipselink.jdbc.native-sql value=true/ property name=javax.persistence.jdbc.url value=jdbc:mysql:// localhost:3306/gwz?rewriteBatchedStatements=true/ property name=javax.persistence.jdbc.password value=gwz/ property name=javax.persistence.jdbc.driver value=com.mysql.jdbc.Driver/ property name=javax.persistence.jdbc.user value=gwz/ /properties /persistence-unit /persistence On 18 Mrz., 13:29, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Show the file persistence.xml Juan 2011/3/18 tanteanni tantea...@hotmail.com 1) here ist the stacktrace (taken from eclipse console): Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.Map myPackage.client.services.AgsService.getFedLandsCounties()' threw an unexpected exception: java.lang.ExceptionInInitializerError at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) 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.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) 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) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.ExceptionInInitializerError at myPackage.server.AgsServiceImpl.getFedLandsCounties(AgsServiceImpl.java: 19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) ... 22 more Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named gwzPU at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: 84) at
Article about RequestFactory in Italian
Hi all, in our Google Tech User Group blog we published an article about RequestFactory. This article is written in italian. Hope this can help someone. Bye. -- 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: How do I get the event source child under mouse cursor?
On Friday, March 18, 2011 1:00:43 PM UTC+1, Jens wrote: Oh is getEventTarget() new? Was already there in 1.7: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/dom/client/NativeEvent.html (and NativeEvent didn't exist in 1.5) -- 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: Article about RequestFactory in Italian
Maybe a link? On Fri, Mar 18, 2011 at 6:19 AM, Luca luca.mas...@gmail.com wrote: Hi all, in our Google Tech User Group blog we published an article about RequestFactory. This article is written in italian. Hope this can help someone. Bye. -- 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. -- 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.
Article about RequestFactory (in italian)
Hi all, in our Google Tech User Group blog we published an article about RequestFactory. This article is written in italian. http://firenze-gtug.blogspot.com/2011/03/requestfactory-framework-parte-1.html Hope this can help someone. Bye. -- 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: how to debug java.lang.RuntimeException: Deferred binding failed for...
deployed in Tomcat the persistence xml can be found! but the errors becomes even strander (see below). i guess i should now debug my gwzDB.jar. but for this i need to it run in dev mode/ jetty. How to configure jetty/dev-mode to be able to access the persistence.xml. (probably someone have an idea whats going wrong here) INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.SQLError.createLinkFailureMessageBasedOnHeuristics(SQLError.java: 1275) at com.mysql.jdbc.exceptions.jdbc4.CommunicationsException.init(CommunicationsException.java: 60) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java: 1118) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3321) at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1667) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4322) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) 18.03.2011 14:40:16 org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load com.mysql.jdbc.ProfilerEventHandlerFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4346) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) On 18 Mrz., 13:56, juan_pablo_gardella gardellajuanpa...@gmail.com wrote: 1) Are you test if you make the WAR and put in Tomcat (for example) and continue this error? 2) Is the complete stackttrace? Juan On Mar 18, 9:35 am, tanteanni tantea...@hotmail.com wrote: sorry here it is: ?xml version=1.0 encoding=UTF-8? persistence version=2.0 xmlns=http://java.sun.com/xml/ns/ persistence xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/pers...; persistence-unit name=gwzPU transaction-type=RESOURCE_LOCAL providerorg.eclipse.persistence.jpa.PersistenceProvider/ provider classmyPackage.gwzDB.entityClasses.Class1/class classmyPackage.gwzDB.entityClasses.Class2/class properties property name=eclipselink.jdbc.batch-writing value=JDBC/ property name=eclipselink.jdbc.batch-writing.size value=1000/ property name=eclipselink.target-database value=MySQL/ property name=eclipselink.jdbc.native-sql value=true/ property name=javax.persistence.jdbc.url value=jdbc:mysql:// localhost:3306/gwz?rewriteBatchedStatements=true/ property name=javax.persistence.jdbc.password value=gwz/ property name=javax.persistence.jdbc.driver value=com.mysql.jdbc.Driver/ property name=javax.persistence.jdbc.user value=gwz/ /properties /persistence-unit /persistence On 18 Mrz., 13:29, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Show the file persistence.xml Juan 2011/3/18 tanteanni tantea...@hotmail.com 1) here ist the stacktrace (taken from eclipse console): Starting Jetty on port
Re: how to debug java.lang.RuntimeException: Deferred binding failed for...
See this http://forum.springsource.org/archive/index.php/t-37014.html http://forum.springsource.org/archive/index.php/t-37014.htmlJuan 2011/3/18 tanteanni tantea...@hotmail.com deployed in Tomcat the persistence xml can be found! but the errors becomes even strander (see below). i guess i should now debug my gwzDB.jar. but for this i need to it run in dev mode/ jetty. How to configure jetty/dev-mode to be able to access the persistence.xml. (probably someone have an idea whats going wrong here) INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.SQLError.createLinkFailureMessageBasedOnHeuristics(SQLError.java: 1275) at com.mysql.jdbc.exceptions.jdbc4.CommunicationsException.init(CommunicationsException.java: 60) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java: 1118) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3321) at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1667) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4322) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) 18.03.2011 14:40:16 org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load com.mysql.jdbc.ProfilerEventHandlerFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4346) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) On 18 Mrz., 13:56, juan_pablo_gardella gardellajuanpa...@gmail.com wrote: 1) Are you test if you make the WAR and put in Tomcat (for example) and continue this error? 2) Is the complete stackttrace? Juan On Mar 18, 9:35 am, tanteanni tantea...@hotmail.com wrote: sorry here it is: ?xml version=1.0 encoding=UTF-8? persistence version=2.0 xmlns=http://java.sun.com/xml/ns/ persistence xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/pers...; persistence-unit name=gwzPU transaction-type=RESOURCE_LOCAL providerorg.eclipse.persistence.jpa.PersistenceProvider/ provider classmyPackage.gwzDB.entityClasses.Class1/class classmyPackage.gwzDB.entityClasses.Class2/class properties property name=eclipselink.jdbc.batch-writing value=JDBC/ property name=eclipselink.jdbc.batch-writing.size value=1000/ property name=eclipselink.target-database value=MySQL/ property name=eclipselink.jdbc.native-sql value=true/ property name=javax.persistence.jdbc.url value=jdbc:mysql:// localhost:3306/gwz?rewriteBatchedStatements=true/ property name=javax.persistence.jdbc.password value=gwz/ property name=javax.persistence.jdbc.driver value=com.mysql.jdbc.Driver/ property name=javax.persistence.jdbc.user value=gwz/ /properties /persistence-unit /persistence
Re: How do I get the event source child under mouse cursor?
Wow, you guys are really fast. Thanks a lot - works like a charm. -- 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: how to debug java.lang.RuntimeException: Deferred binding failed for...
thx but this thread isn't related to my problem: jetty can't access resources located in referenced jar-files. Tomcat can access them. Probably it's best to make a new thread - we are now very far away from topic of this thread. On 18 Mrz., 14:58, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: See thishttp://forum.springsource.org/archive/index.php/t-37014.html http://forum.springsource.org/archive/index.php/t-37014.htmlJuan 2011/3/18 tanteanni tantea...@hotmail.com deployed in Tomcat the persistence xml can be found! but the errors becomes even strander (see below). i guess i should now debug my gwzDB.jar. but for this i need to it run in dev mode/ jetty. How to configure jetty/dev-mode to be able to access the persistence.xml. (probably someone have an idea whats going wrong here) INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.SQLError.createLinkFailureMessageBasedOnHeuristics(SQLError.java: 1275) at com.mysql.jdbc.exceptions.jdbc4.CommunicationsException.init(CommunicationsException.java: 60) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java: 1118) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3321) at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1667) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4322) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) 18.03.2011 14:40:16 org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load com.mysql.jdbc.ProfilerEventHandlerFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4346) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) On 18 Mrz., 13:56, juan_pablo_gardella gardellajuanpa...@gmail.com wrote: 1) Are you test if you make the WAR and put in Tomcat (for example) and continue this error? 2) Is the complete stackttrace? Juan On Mar 18, 9:35 am, tanteanni tantea...@hotmail.com wrote: sorry here it is: ?xml version=1.0 encoding=UTF-8? persistence version=2.0 xmlns=http://java.sun.com/xml/ns/ persistence xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/pers...; persistence-unit name=gwzPU transaction-type=RESOURCE_LOCAL providerorg.eclipse.persistence.jpa.PersistenceProvider/ provider classmyPackage.gwzDB.entityClasses.Class1/class classmyPackage.gwzDB.entityClasses.Class2/class properties property name=eclipselink.jdbc.batch-writing value=JDBC/ property name=eclipselink.jdbc.batch-writing.size value=1000/ property name=eclipselink.target-database value=MySQL/ property name=eclipselink.jdbc.native-sql value=true/
Re: how to debug java.lang.RuntimeException: Deferred binding failed for...
See this: http://stackoverflow.com/questions/2394334/jpa-and-gwt-failing http://stackoverflow.com/questions/2394334/jpa-and-gwt-failingJuan 2011/3/18 tanteanni tantea...@hotmail.com thx but this thread isn't related to my problem: jetty can't access resources located in referenced jar-files. Tomcat can access them. Probably it's best to make a new thread - we are now very far away from topic of this thread. On 18 Mrz., 14:58, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: See thishttp://forum.springsource.org/archive/index.php/t-37014.html http://forum.springsource.org/archive/index.php/t-37014.htmlJuan 2011/3/18 tanteanni tantea...@hotmail.com deployed in Tomcat the persistence xml can be found! but the errors becomes even strander (see below). i guess i should now debug my gwzDB.jar. but for this i need to it run in dev mode/ jetty. How to configure jetty/dev-mode to be able to access the persistence.xml. (probably someone have an idea whats going wrong here) INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.SQLError.createLinkFailureMessageBasedOnHeuristics(SQLError.java: 1275) at com.mysql.jdbc.exceptions.jdbc4.CommunicationsException.init(CommunicationsException.java: 60) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java: 1118) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3321) at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1667) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4322) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) 18.03.2011 14:40:16 org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load com.mysql.jdbc.ProfilerEventHandlerFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4346) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) On 18 Mrz., 13:56, juan_pablo_gardella gardellajuanpa...@gmail.com wrote: 1) Are you test if you make the WAR and put in Tomcat (for example) and continue this error? 2) Is the complete stackttrace? Juan On Mar 18, 9:35 am, tanteanni tantea...@hotmail.com wrote: sorry here it is: ?xml version=1.0 encoding=UTF-8? persistence version=2.0 xmlns=http://java.sun.com/xml/ns/ persistence xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/persistencehttp://java.sun.com/xml/ns/pers.. . persistence-unit name=gwzPU transaction-type=RESOURCE_LOCAL providerorg.eclipse.persistence.jpa.PersistenceProvider/ provider classmyPackage.gwzDB.entityClasses.Class1/class
Re: Article about RequestFactory (in italian)
Very nice, thank-you. I look forward to the next installment. Maybe some code examples? On Fri, Mar 18, 2011 at 6:22 AM, Luca luca.mas...@gmail.com wrote: Hi all, in our Google Tech User Group blog we published an article about RequestFactory. This article is written in italian. http://firenze-gtug.blogspot.com/2011/03/requestfactory-framework-parte-1.html Hope this can help someone. Bye. -- 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. -- 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: Article about RequestFactory (in italian)
Yes, code samples and two words about the Finite State Machine implemented into the RequestFactory servlet. -- 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: how to debug java.lang.RuntimeException: Deferred binding failed for...
thx i overflow the thread and some links given there. it seem that i have to reconfigure jetty or try to run hosted mode with tomcat. for how to configure jetty i'll open a new discussion here. On 18 Mrz., 15:32, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: See this:http://stackoverflow.com/questions/2394334/jpa-and-gwt-failing http://stackoverflow.com/questions/2394334/jpa-and-gwt-failingJuan 2011/3/18 tanteanni tantea...@hotmail.com thx but this thread isn't related to my problem: jetty can't access resources located in referenced jar-files. Tomcat can access them. Probably it's best to make a new thread - we are now very far away from topic of this thread. On 18 Mrz., 14:58, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: See thishttp://forum.springsource.org/archive/index.php/t-37014.html http://forum.springsource.org/archive/index.php/t-37014.htmlJuan 2011/3/18 tanteanni tantea...@hotmail.com deployed in Tomcat the persistence xml can be found! but the errors becomes even strander (see below). i guess i should now debug my gwzDB.jar. but for this i need to it run in dev mode/ jetty. How to configure jetty/dev-mode to be able to access the persistence.xml. (probably someone have an idea whats going wrong here) INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.SQLError.createLinkFailureMessageBasedOnHeuristics(SQLError.java: 1275) at com.mysql.jdbc.exceptions.jdbc4.CommunicationsException.init(CommunicationsException.java: 60) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java: 1118) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3321) at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1667) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4322) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) 18.03.2011 14:40:16 org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load com.mysql.jdbc.ProfilerEventHandlerFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1566) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1526) at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4346) at com.mysql.jdbc.ConnectionImpl.cleanup(ConnectionImpl.java:1348) at com.mysql.jdbc.ConnectionImpl.finalize(ConnectionImpl.java:2679) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Unknown Source) at java.lang.ref.Finalizer.access$100(Unknown Source) at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) On 18 Mrz., 13:56, juan_pablo_gardella gardellajuanpa...@gmail.com wrote: 1) Are you test if you make the WAR and put in Tomcat (for example) and continue this error? 2) Is the complete stackttrace? Juan On Mar 18, 9:35 am, tanteanni tantea...@hotmail.com wrote: sorry here it is: ?xml version=1.0 encoding=UTF-8? persistence version=2.0 xmlns=http://java.sun.com/xml/ns/ persistence xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
Re: RequestFactory+Service Layer with User ID in the HTTP Header
Requestcontext method signatures should match with the service layer method signature by default. So when we call it from the client code it uses the server method with the same signature. I don't know how to intercept this call and add the user ID . -- 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.
persitence.xml/Persistence provider not found if running in hosted mode/jetty (works if deployed on tomcat)
i am working on my first gwt application. an got problems on integrating a jpa2-using jar. if i run my app in hosted mode i get an exception including: javax.persistence.PersistenceException: No Persistence provider for EntityManager named myPU the persistence.xml is located in /WEB-INF/lib/myincluded.jar/META- INF. myincluded.jar works fine if started from console and it also works if the app is deployed to tomcat. so i guess i have to reconfigure jetty/hosted mode some how?! thx in advance -- 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: GWT menu item text alignment issue
It looks like there is a setHTML method on the MenuItem. I'd imagine you could use that to put a table element in there, with a left and right cell, and then differently align the contents of those. I can't say I've tried to do this, mind you, but it seems like it should work. -Ben On Mar 18, 1:50 am, maximus mohitchilk...@gmail.com wrote: Instead of using setText() from menuitem i have created my own settext() as below public void setText(String text, String acceleratorKey) { Element leftDIV = DOM.createDiv(); DOM.setElementProperty(leftDIV, align, left); DOM.setInnerText(leftDIV, text); DOM.insertChild(getElement(), leftDIV, 0); Element rightDIV = DOM.createDiv(); DOM.setElementProperty(rightDIV, align, right); DOM.setInnerText(rightDIV, acceleratorKey); DOM.insertChild(getElement(), rightDIV, 2); } This method shows the menuitems but do not show any effect of DOM.setElementProperty(leftDIV, align, left); or DOM.setElementProperty(rightDIV, align, right); output from above code is: CreateAlt+Ctrl+C EditShift+E OptimizeCtrl+O can anyone help if i can create two div elements so that alignment can be done properly or is there any otherway to achieve this. On Mar 18, 9:08 am, maximus mohitchilk...@gmail.com wrote: On Mar 17, 4:13 pm, maximus mohitchilk...@gmail.com wrote: Hi all, Is it possible in GWT to set Menu Item text in two different alignments,what I mean to say is I want my menu item's label to be left justified and its accelerator key to be right justified. i.e, Create Alt+Ctrl+C Edit Shift+E Optimize Ctrl+O Thanks -- 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: RequestFactory+Service Layer with User ID in the HTTP Header
You can intercept it with a ServiceLayerDecorator, but it'd wtill fail, because the RequestFactoryInterfaceValidator will throw when validating the mismatched method. You could add a new method (but not an overload!) in your service though, and then route the method call to that method. But honestly, I'd rather inject a Provider (or whatever it's called in Spring DI) into the service and have it retrieve the user ID throught this provider. That's we're doing, except we use Guice for DI, and the user ID is initialized from the ServletRequest#getRemoteUser. -- 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.
how and where to starting customizing GWT compiler?
GWT is not doing a great job in figuring out which classes will actually need to be serialized and scoops them all. exclude tag in gwt.xml will not work extend-configuration-property name=rpc.blacklist value=com.mypackage Reorganize/Refactoring my code is not an option for now. So my last resort is to annotate the classes I dot not want to have serialized(mainly abstract classes outside of GWT module) and then change/customize the way GWT compiler is scooping up classes. Which class in GWT dev code would I need to touch in order to do this? -- 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: CellTable Filter
Se dovessi trovare qualcosa ti faccio un fischio :-) On Fri, Mar 18, 2011 at 8:44 AM, Albert Lacambra alacam...@gmail.comwrote: You could just take the filtered elements and full it again. I don't know of some native method. Some other idea would be welcome :D Al On 17 March 2011 19:12, gadaleta.marco gadaleta.ma...@gmail.com wrote: Hello everyone, I was wondering if there is the possibility to apply a filter on a celltable or celllist. If so, could you tell me how? Txh, Marco -- 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. -- 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. -- Marco -- 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: Is there a way to workaround GWT compiler/serializer/linker issue?
Andreas, Yes my RPC return types are concrete. please see my project setup below Proj-gwt (no dependencies) Src Com Acme AcmeModel.xml (gwt file saying to only use com/acme/client as source for gwt, no entry point) Client AbstractFoo.java FooImpl1.java Proj-Other1 (depends on proj-gwt) Src Com Acme Client FooImpl2.java (non gwt compliant class, not meant to be sent across RPC) Proj-Other2 (depends on proj-gwt and proj-other1) Src Com Acme AcmeServer.xml (gwt.xml file saying to use com/acme/server as source for gwt + proj-gwt as a module, contains entry point) Server MyService.java (non gwt compliant class, not meant to be sent across RPC) Right now when I compile Proj-Other2, of course proj-gwt is also rolled in, but the compiler tries to get FooImpl2 as well which just an implementation of AbstractFoo. I never asked it to look for anything in Proj-Other2. -KD Andreas Horst wrote: Do you use that abstract base class as a RPC parameter? If so, *of course*GWT has to look for and try to compile all sub classes and implementations *since* they might get used in a RPC and hence need to be serializable and compilable. To avoid this you can either: - refactor your RPC to use only the concrete types *or* if you rely on using abstract classes or interfaces in RPC: - you might want to configure your sub classes' packages to be part of a module's client packages, so that the GWT compiler finds them (your No source found... error indicates that this is not the case). I personnaly think your problem is not the behaviour of the GWT compiler but your project setup regarding separation into modules. Hope this can help you. 2011/3/16 KD kanwald...@gmail.com Lets say I have package : com.mycom.model It has following classes com.mycom.model.PlatformMessage (an interface) com.mycom.model.AbstractMessage (an abstract class that implements PlatformMessage) com.mycom.model.QueryMessage (a concrete implementation of AbstractMessage) Now there is another package: com.mycom.app It has the following class... com.mycom.app.StreamMessage (a concrete implementation of AbstractMessage) ONLY com.mycom.model a GWT module. Now when I compile com.mycom.model, why does it need to go and look for all implementations of that abstract class AbstractMessage in OTHER packages (as I later find with many No Source found... errors)? It seems RPC serializer is trying to serialize/compile all classes that IMPLEMENT an abstract class in my gwt module. Is there way to workaround this? -- 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. -- 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: Code splitting like Facebook
On Tue, Mar 15, 2011 at 5:20 PM, ss.require ss.requ...@gmail.com wrote: MVP framework is a top-level gwt framework that uses all standard gwt features. In particular, it uses standard code splitting feature. I can split my code in the same way as MVP does, but my initial problem still remains. I don't see any advantages of using MVP. Maybe, you mean something else or you have not understand my problem! Using GWT's MVP can be a solution. Simply use an activity mapper that creates individual activities using GWT's AsyncProxy (1). This way activities are automatically code splitted with minimal code monkeying involved. A quick warning: It does not makes sense to code split everything = If the split point is really small it can even decrease performance. Also check out the great gwt-platform project (http://code.google.com/p/gwt-platform/). They have code splitting also integrated into their own MVP framework. Quite nice. Cheers, Raphael (1) http://ars-codia.raphaelbauer.com/2010/11/gwt-split-points-and-most-neglected.html On Mar 15, 3:25 pm, suersh babu sureshgbab...@gmail.com wrote: try using MVP frame work, so that code spliting done in much better way. On Tue, Mar 15, 2011 at 5:50 PM, ss.require ss.requ...@gmail.com wrote: Hi! I need to create a web-application with the design like Facebook. So I want to have a single gwt-module for the entire app and use code splitting feature for dynamic loading of all needed pages. But there is some problem: From main page(when the module is already loaded) a user can navigate to any page of my app. The total amount of pages will be very huge(Let's say 1000). If I use code splitting feature I must to place the next code-fragment 1000 times in my module: GWT.runAsync(new RunAsyncCallback() { @Override public void onSuccess() { new SomePagelet().load(); } @Override public void onFailure(Throwable reason) { } }); Thus my single module will be a large size and the loading time will be very long as well. I want to find a way to say gwt what a pagelet to download in runtime! Now I see an only possible solution: 1)analyze compiled js scripts 2) then, extract the piece of the script that handles loading of the exclusive fragment 3)On the server I add extracted piece with specified pagelet-name to be downloaded to the output html. But this approach is hard. Does anybody have similar problems? Any useful advices would be very 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-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. -- Regards Suresh Babu G http://www.AccountingGuru.inhttp://www.accountingguru.in/ -- 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. -- 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.
A gwt application inside FRAME (or IFRAME)
Hi folk, I'm trying to run a GWT application inside a frame. I have an html page with a frame set like this: FRAMESET ROWS=70%,30% FRAME NAME=Header SRC=HeaderPage.html/ FRAME NAME=gwtRoot SRC=MyGwtApp.html/ /FRAMESET I have also class MyGwtApp.java that contains the GWT application (obviously MyGwtApp.html is the page that call the generated javascript returned from the compilation of MyGwtApp.java). But once compiled and runned onto the server the page doesn't appear. It seems that the browser doesn't support frames (but it's strange) However i've tried to use an iframe object instead of Frameset/Frame hierarchy by calling directly the javascript application in this way: iframe src=mygwtapp/mygwtapp.nocache.js .../ but the browser simply return a frame with the javascript code inside (without interpret it). Do you have any suggestions? -- 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.
Spring MVC and GWT
Hi All, I have a requirement to navigate between different views using Spring MVC where the views will be designed using GWT. I dont want to use MVP pattern. Spring Controller should navigate the views. I dont have any RPC call as of now. please help me how to do this -- 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: RequestFactory+Service Layer with User ID in the HTTP Header
Thomas, can you provide some code snippet on how you have done using Guice? We are not using Spring MVC in our project. I dont know how would i be able to inject the user id from the Servlet to the spring layer. I can access the spring application context from the servlet but not vice versa. -- 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: Unit Testing RequestFactory with ServiceLocator
David, That was a good start for me. But i am getting few issues with the test, req.designRequest().findDesign(1L).fire(new ReceiverDesignProxy() { @Override public void onSuccess(DesignProxy response) { System.out.println(Response + response); assertTrue(false); finishTest(); } }); This is what i have tried. It seemed like it never went into the onSuccess method. Its always a PASS when i run it. I also read the comment about the finishTestAndReset but i am not quite sure whether i should implement the same for my requestfactory. -- 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: RequestFactory, Editor Framework, and CellTable
Hi, Thanks for your contribution. I checked your code and it seems to help me with my problem. However, I'm still not able to use the HasDataFlushableEditor class with my Editor. It only works when I change it to a LeafValueEditor (just like the HasDataEditor). My question is: what do I have to do in order to use the HasDataFlushableEditor class? What I see in my code is that the table is created but no data is added, i mean, no row is created. Do you have any clue? Thanks, Aldo On Fri, Mar 4, 2011 at 2:54 PM, Colin Alworth niloc...@gmail.com wrote: I've already got a generator https://github.com/niloc132/celltable-toolsthat builds FieldUpdater instances (as well as Column instances, complete with getValue calls), so it is just a matter of extending it a little further to make this PendingChange-like thing. And, of course, to either stop HasDataEditor from implementing LeafValueEditor, or patch my own copy of GWT. Patching isn't ideal, as it would prevent others from using this library I'm trying to make, but it would be a decent stopgap measure. Any suggestions on how to squeak a little louder to get that bug greased? Or can a Googler comment on the status of the issue? -- 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. -- 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.
GWT-RPC Pass array of Serializable objects
I want to create an RPC-method that returns 3 java-objects that can have different types. These types are always Serializable. So I have 2 possible approaches: 1)Create a new class SomeClass with properties of these types and return this object: public SomeClass someMethod().. 2)Retrun Serializable array: public Serializable[] someMethod().. I prefer the 2) approache, cause I don't like to create new class just to pass objects through RPC. Is it correct to do that from the perspective of GWT? Or I should create a new class every time when I want to pass a cortège of objects of different types? -- 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: RequestFactory, Editor Framework, and CellTable
It is a work in progress – unfortunately, I ran out of time after putting it in, and was unable to verify that it does what I need it to do. I hope to spend time on it this weekend, and be able to report back that it works as it should. For now, use the configure(CellTable) overload only, and stick with a regular, broken, HasDataEditor+AbstractEditorDelegate, without edits. Sorry for the confusion, and thank you for your interest. -Colin On Fri, Mar 18, 2011 at 12:42 PM, Aldo Neto tumo...@gmail.com wrote: Hi, Thanks for your contribution. I checked your code and it seems to help me with my problem. However, I'm still not able to use the HasDataFlushableEditor class with my Editor. It only works when I change it to a LeafValueEditor (just like the HasDataEditor). My question is: what do I have to do in order to use the HasDataFlushableEditor class? What I see in my code is that the table is created but no data is added, i mean, no row is created. Do you have any clue? Thanks, Aldo On Fri, Mar 4, 2011 at 2:54 PM, Colin Alworth niloc...@gmail.com wrote: I've already got a generatorhttps://github.com/niloc132/celltable-toolsthat builds FieldUpdater instances (as well as Column instances, complete with getValue calls), so it is just a matter of extending it a little further to make this PendingChange-like thing. And, of course, to either stop HasDataEditor from implementing LeafValueEditor, or patch my own copy of GWT. Patching isn't ideal, as it would prevent others from using this library I'm trying to make, but it would be a decent stopgap measure. Any suggestions on how to squeak a little louder to get that bug greased? Or can a Googler comment on the status of the issue? -- 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. -- 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. -- 218.248.6165 niloc...@gmail.com -- 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: GWT-RPC Pass array of Serializable objects
If I saw #2 in any code I was responsible for I would hunt down and beat the person who wrote it. With a rusty spork. I may be slightly resentful of having bad code dumped on me. Possibly... Defining your methods return type is good practice. I recommend creating a result object to return for the same reason I recommend not returning type Object on every method. Its good documentation, and, in my mind, makes for a more stable and healthy application. You'll probably forget what index #3 in your array is a few months down the line anyway, and if you want to try and remove a result from the array you will have a hard time tracking down where it gets used. All remote methods in the GWT application I maintain use a result object. I have found it to be well worth the extra bit of code and effort in order to gain the benefits. -Ben On Mar 18, 12:50 pm, ss.require ss.requ...@gmail.com wrote: I want to create an RPC-method that returns 3 java-objects that can have different types. These types are always Serializable. So I have 2 possible approaches: 1)Create a new class SomeClass with properties of these types and return this object: public SomeClass someMethod().. 2)Retrun Serializable array: public Serializable[] someMethod().. I prefer the 2) approache, cause I don't like to create new class just to pass objects through RPC. Is it correct to do that from the perspective of GWT? Or I should create a new class every time when I want to pass a cortège of objects of different types? -- 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: How to send an Email with GWT to a specific Address?
Hello, this is what i tried for testing only. have a look please, pretty simple i guess. I made a Button which performs this: public void sendmail(){ rpcService.sendingnow(new AsyncCallbackBoolean() { public void onSuccess(Boolean result) { } } public Boolean sendingnow(){ try { sendingnow2(); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return true; } public void sendingnow2() throws UnsupportedEncodingException{ Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); String msgBody = kk works; try { Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress(peter_listew...@hotmail.com, lol)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(piotr.listewnik@uni- oldenburg.de, kkk)); msg.setSubject(funktioiert!); msg.setText(msgBody); Transport.send(msg); } catch (AddressException e) { } catch (MessagingException e) { } } ___ this is the error i get: [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.Boolean swp.client.LCService.sendingnow()' threw an unexpected exception: com.google.apphosting.api.ApiProxy $CallNotFoundException: The API package 'mail' or call 'Send()' was not found. First of all. Am I doing it correctly? And i really dont know how to include another Library, this is the problem i think. how can i fix it? tank you. best regards On 14 Mrz., 06:21, wingdings dush...@gmail.com wrote: To send an email message, an app prepares a MimeMessage object, then sends it with the static method send() on the Transport class. The message is created using a JavaMail Session object. The Session and the Transport work with the App Engine Mail service without any additional configuration. import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; // ... Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); String msgBody = ...; try { Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress(ad...@example.com, Example.com Admin)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(u...@example.com, Mr. User)); msg.setSubject(Your Example.com account has been activated); msg.setText(msgBody); Transport.send(msg); } catch (AddressException e) { // ... } catch (MessagingException e) { // ... } watch outhttp://code.google.com/appengine/docs/java/mail/usingjavamail.html -- 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: GWT-RPC Pass array of Serializable objects
When using GWT-RPC, it pays to be as specific as possible. The reason is that in order to support polymorphism, the GWT-RPC compiler creates a custom serializer and deserializer for each subclass of your RPC return and argument types. This adds to compile time and the size of your application. Object is blacklisted for obvious reasons. I think Serializable is, too, but you don't want to do that, anyway, as there are an awful lot of classes that implement Serializable. /dmc On Fri, Mar 18, 2011 at 3:37 PM, Ben Imp benlee...@gmail.com wrote: If I saw #2 in any code I was responsible for I would hunt down and beat the person who wrote it. With a rusty spork. I may be slightly resentful of having bad code dumped on me. Possibly... Defining your methods return type is good practice. I recommend creating a result object to return for the same reason I recommend not returning type Object on every method. Its good documentation, and, in my mind, makes for a more stable and healthy application. You'll probably forget what index #3 in your array is a few months down the line anyway, and if you want to try and remove a result from the array you will have a hard time tracking down where it gets used. All remote methods in the GWT application I maintain use a result object. I have found it to be well worth the extra bit of code and effort in order to gain the benefits. -Ben On Mar 18, 12:50 pm, ss.require ss.requ...@gmail.com wrote: I want to create an RPC-method that returns 3 java-objects that can have different types. These types are always Serializable. So I have 2 possible approaches: 1)Create a new class SomeClass with properties of these types and return this object: public SomeClass someMethod().. 2)Retrun Serializable array: public Serializable[] someMethod().. I prefer the 2) approache, cause I don't like to create new class just to pass objects through RPC. Is it correct to do that from the perspective of GWT? Or I should create a new class every time when I want to pass a cortège of objects of different types? -- 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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.
[gwt-contrib] Re: Promotes Gin's AsyncProvider to GWT, along with a more general (issue1387801)
LGTM, even though I'm not 100% convinced about the AsyncProvider in GWT. :) http://gwt-code-reviews.appspot.com/1387801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9863 committed - Devmode support for Firefox = 4b12....
Revision: 9863 Author: fmal...@google.com Date: Fri Mar 18 03:57:16 2011 Log: Devmode support for Firefox = 4b12. Mozilla commit http://hg.mozilla.org/releases/mozilla-2.0/rev/4b56bfdf61a7 changed the JSAPI property setter method signature. This adds devmode support for the updated API. Review at http://gwt-code-reviews.appspot.com/1383803 http://code.google.com/p/google-web-toolkit/source/detail?r=9863 Modified: /trunk/plugins/xpcom/JavaObject.cpp /trunk/plugins/xpcom/JavaObject.h === --- /trunk/plugins/xpcom/JavaObject.cpp Wed Jan 12 11:43:57 2011 +++ /trunk/plugins/xpcom/JavaObject.cpp Fri Mar 18 03:57:16 2011 @@ -169,8 +169,14 @@ return JS_TRUE; } +#if GECKO_VERSION 2000 JSBool JavaObject::setProperty(JSContext* ctx, JSObject* obj, jsid id, jsval* vp) { +#else +JSBool JavaObject::setProperty(JSContext* ctx, JSObject* obj, jsid id, +JSBool strict, jsval* vp) { +#endif //GECKO_VERSION + Debug::log(Debug::Spam) JavaObject::setProperty obj= obj Debug::flush; if (!JSID_IS_INT(id)) { Debug::log(Debug::Error)Error: setting string property id Debug::flush; === --- /trunk/plugins/xpcom/JavaObject.h Wed Jan 12 11:43:57 2011 +++ /trunk/plugins/xpcom/JavaObject.h Fri Mar 18 03:57:16 2011 @@ -39,7 +39,13 @@ static JSObject* construct(JSContext* ctx, SessionData* data, int objectRef); static int getObjectId(JSContext* ctx, JSObject* obj); static JSBool getProperty(JSContext* ctx, JSObject* obj, jsid id, jsval* vp); + +#if GECKO_VERSION 2000 static JSBool setProperty(JSContext* ctx, JSObject* obj, jsid id, jsval* vp); +#else + static JSBool setProperty(JSContext* ctx, JSObject* obj, jsid id, JSBool strict, jsval* vp); +#endif //GECKO_VERSION + static JSBool resolve(JSContext* ctx, JSObject* obj, jsval id); static JSBool convert(JSContext* cx, JSObject* obj, JSType type, jsval* vp); static JSBool enumerate(JSContext* ctx, JSObject* obj, JSIterateOp op, jsval* statep, jsid* idp); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Moving UnitTestTreeLogger from dev/core/src to dev/core/tests, so gwt-dev (issue1383804)
Reviewers: scottb, Description: Moving UnitTestTreeLogger from dev/core/src to dev/core/tests, so gwt-dev doesn't have an unnecessary dependency on junit. Please review this at http://gwt-code-reviews.appspot.com/1383804/ Affected files: D dev/core/src/com/google/gwt/dev/util/UnitTestTreeLogger.java A dev/core/test/com/google/gwt/dev/util/UnitTestTreeLogger.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixing issue 5807 on server side, new issue due to rietveld problems (issue1384806)
http://gwt-code-reviews.appspot.com/1384806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add Support for @ReportAsSingleViolation. (issue1388801)
LGTM http://gwt-code-reviews.appspot.com/1388801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Questions on the process of issue fixing.
Hi, I wanted to know more about GWT and therefore I decided to try fixing some of the issues. I've followed the Making it better page as well as the help on upload.py. I've proposed 3 patches ([1], [2] and [3]) but none of them appeared on this mailing-list nor were commented/reviewed. I'm wondering whether I forgot something or if you simply didn't have time to have a look at them. So I have several questions: - Am I proposing patches the right way ? - How do you fix new issues: do you revert your code base after each patch submission, or do you have an easier way ? - Since I'm not sure if I will be able to fix an issue, should I send an email to this list before looking at it ? How should I tell you that i'm working on something ? Also, I have a more technical question: what's the right way to handle CSS and messages in the client.ui package: CssResource (with new CSS files) and Constants ? Thanks a lot for your insights on this matter. Antoine. [1] http://gwt-code-reviews.appspot.com/1369811/ [2] http://gwt-code-reviews.appspot.com/1383802/ [3] http://gwt-code-reviews.appspot.com/1388802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Moving UnitTestTreeLogger from dev/core/src to dev/core/tests, so gwt-dev (issue1383804)
LGTM. Shouldn't some ant build rules want to change, though? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Moving UnitTestTreeLogger from dev/core/src to dev/core/tests, so gwt-dev (issue1383804)
Turns out that ant is already covered: user/build.xml has, in part: !-- Classpaths added for test cases -- path id=test.extraclasspath pathelement location=${gwt.build}/out/dev/bin-test / etc. so dev/bin-test is already available. I guess source code wouldn't be, but translatable tests seem unlikely to mess with TreeLoggers, and empirically when I ran ant tests, the only problem I got was was from com.google.gwt.validation.tck.ConstraintCompositionGwtSuite.xml (draft-htmlunit and nometa-htmlunit only, dev, emma, and web were all fine)... I assumed that was a system flake, not something symptomatic of my change. The error was Testcase: Monitor file (blahblahblah/junitvmwatcher6602185781037387809.properties) missing, location not writable, testcase not started or mixing ant versions?, which seemed unlikely to be related to migration of UserTestTreeLogger, especially with the others passing. On Fri, Mar 18, 2011 at 1:40 PM, Scott Blum sco...@google.com wrote: LGTM. Shouldn't some ant build rules want to change, though? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9864 committed - updated gecko sdk for windows (rc1 build 1)
Revision: 9864 Author: fabio...@google.com Date: Fri Mar 18 11:14:32 2011 Log: updated gecko sdk for windows (rc1 build 1) http://code.google.com/p/google-web-toolkit/source/detail?r=9864 Modified: /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/bin/xpidl.exe /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/include/mozilla-config.h /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/mozalloc.lib /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/mozjs.lib /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/nspr4.lib /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/plc4.lib /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/plds4.lib /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/xpcom.lib /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/xpcomglue_s.lib /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/xul.lib === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/bin/xpidl.exe Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/bin/xpidl.exe Fri Mar 18 11:14:32 2011 Binary file, no diff available. === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/include/mozilla-config.h Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/include/mozilla-config.h Fri Mar 18 11:14:32 2011 @@ -27,10 +27,10 @@ #define HW_THREADS 1 #define IBMBIDI 1 #define MALLOC_H malloc.h -#define MOZILLA_VERSION 2.0 -#define MOZILLA_VERSION_U 2.0 +#define MOZILLA_VERSION 2.0b13pre +#define MOZILLA_VERSION_U 2.0b13pre #define MOZ_APP_UA_NAME -#define MOZ_APP_UA_VERSION 2.0 +#define MOZ_APP_UA_VERSION 2.0b13pre #define MOZ_BUILD_APP xulrunner #define MOZ_CHROME_FILE_FORMAT_JAR 1 #define MOZ_CRASHREPORTER 1 @@ -65,7 +65,7 @@ #define MOZ_TREE_CAIRO 1 #define MOZ_TREE_PIXMAN 1 #define MOZ_UA_BUILDID -#define MOZ_UA_FIREFOX_VERSION 4.0 +#define MOZ_UA_FIREFOX_VERSION 4.0b13pre #define MOZ_UPDATER 1 #define MOZ_UPDATE_CHANNEL default #define MOZ_URL_CLASSIFIER 1 === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/mozalloc.lib Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/mozalloc.lib Fri Mar 18 11:14:32 2011 Binary file, no diff available. === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/mozjs.lib Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/mozjs.lib Fri Mar 18 11:14:32 2011 Binary file, no diff available. === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/nspr4.lib Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/nspr4.lib Fri Mar 18 11:14:32 2011 Binary file, no diff available. === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/plc4.lib Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/plc4.lib Fri Mar 18 11:14:32 2011 Binary file, no diff available. === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/plds4.lib Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/plds4.lib Fri Mar 18 11:14:32 2011 Binary file, no diff available. === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/xpcom.lib Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/xpcom.lib Fri Mar 18 11:14:32 2011 Binary file, no diff available. === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/xpcomglue_s.lib Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/xpcomglue_s.lib Fri Mar 18 11:14:32 2011 File is too large to display a diff. === --- /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/xul.lib Thu Mar 17 16:06:45 2011 +++ /plugin-sdks/gecko-sdks/gecko-2.0.0/WINNT_x86-msvc/lib/xul.lib Fri Mar 18 11:14:32 2011 Binary file, no diff available. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9865 committed - Add Support for @ReportAsSingleViolation....
Revision: 9865 Author: gwt.mirror...@gmail.com Date: Fri Mar 18 07:52:29 2011 Log: Add Support for @ReportAsSingleViolation. [JSR 303 TCK Result] 119 of 257 (46.30%) Pass with 12 Failures and 8 Errors. Review at http://gwt-code-reviews.appspot.com/1388801 Review by: rchan...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9865 Modified: /trunk/user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java /trunk/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java /trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/ConstraintCompositionGwtTest.java /trunk/user/test/org/hibernate/jsr303/tck/tests/validation/ValidateGwtTest.java === --- /trunk/user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java Mon Dec 20 11:43:41 2010 +++ /trunk/user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java Fri Mar 18 07:52:29 2011 @@ -65,7 +65,24 @@ return new AttributeBuilder(); } - protected A extends Annotation, T, V void validate( + protected V, T, A extends Annotation void addSingleViolation( + GwtValidationContextT context, SetConstraintViolationT violations, + G object, V value, ConstraintDescriptorImplA constraintDescriptor) { +ConstraintValidatorContextImplA, V constraintValidatorContext = + context.createConstraintValidatorContext(constraintDescriptor); +addViolations(context, violations, object, value, constraintDescriptor, +constraintValidatorContext); + } + + /** + * Perform the actual validation of a single {@link ConstraintValidator}. + * p + * As a side effect {@link ConstraintViolation}s may be added to + * {@code violations}. + * + * @return true if there was any constraint violations + */ + protected A extends Annotation, T, V boolean validate( GwtValidationContextT context, SetConstraintViolationT violations, G object, V value, ConstraintValidatorA, ? super V validator, ConstraintDescriptorImplA constraintDescriptor, Class?[] groups) { @@ -85,7 +102,7 @@ // check group if (!containsAny(groups, constraintGroup)) { - return; + return false; } if (!validator.isValid(value, constraintValidatorContext)) { @@ -96,7 +113,9 @@ value, // constraintDescriptor, // constraintValidatorContext); -} + return true; +} +return false; } private V, T, A extends Annotation void addViolations( === --- /trunk/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java Thu Mar 10 05:54:28 2011 +++ /trunk/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java Fri Mar 18 07:52:29 2011 @@ -80,15 +80,16 @@ * This class is not thread safe. */ public class GwtSpecificValidatorCreator extends AbstractCreator { - private static enum Stage { OBJECT, PROPERTY, VALUE } - - private static final Annotation[] NO_ANNOTATIONS = new Annotation[]{}; static final JType[] NO_ARGS = new JType[]{}; + private static final String DEFAULT_VIOLATION_VAR = violations; + + private static final Annotation[] NO_ANNOTATIONS = new Annotation[]{}; + private static Functionjava.beans.PropertyDescriptor, String PROPERTY_DESCRIPTOR_TO_NAME = new Functionjava.beans.PropertyDescriptor, String() { @@ -845,12 +846,18 @@ } private void writeNewViolations(SourceWriter sw) { +writeNewViolations(sw, DEFAULT_VIOLATION_VAR); + } + + private void writeNewViolations(SourceWriter sw, String violationName) { // SetConstraintViolationT violations = -// new HashSetConstraintViolationT(); -sw.println(SetConstraintViolationT violations = ); +sw.print(SetConstraintViolationT ); +sw.print(violationName); +sw.println( = ); sw.indent(); sw.indent(); +// new HashSetConstraintViolationT(); sw.println(new HashSetConstraintViolationT();); sw.outdent(); sw.outdent(); @@ -999,8 +1006,52 @@ private void writeValidateConstraint(SourceWriter sw, PropertyDescriptor p, Class? elementClass, ConstraintDescriptor? constraint, String constraintDescriptorVar) throws UnableToCompleteException { -if (!constraint.getConstraintValidatorClasses().isEmpty()) { - +writeValidateConstraint(sw, p, elementClass, constraint, +constraintDescriptorVar, DEFAULT_VIOLATION_VAR); + } + + /** + * Writes the call to actually validate a constraint, including its composite + * constraints. + * p + * If the constraint is annotated as + * {@link javax.validation.ReportAsSingleViolation ReportAsSingleViolation}, + * then is called recursively and the {@code violationsVar} is changed to + * match the the {@code constraintDescriptorVar}. + * + * @param sw the Source Writer + * @param
[gwt-contrib] Re: Promotes Gin's AsyncProvider to GWT, along with a more general (issue1387801)
http://gwt-code-reviews.appspot.com/1387801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9866 committed - Updating the FF40 binaries of the xpcom plugin with fmalita's fix at...
Revision: 9866 Author: con...@google.com Date: Fri Mar 18 08:56:54 2011 Log: Updating the FF40 binaries of the xpcom plugin with fmalita's fix at r9863 for the most recent breakage. Review by: fabio...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9866 Modified: /trunk/plugins/xpcom/prebuilt/extension/lib/Darwin-gcc3/ff40/libgwt_dev_ff40.dylib /trunk/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff40/libgwt_dev_ff40.so /trunk/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff40/libgwt_dev_ff40.so /trunk/plugins/xpcom/prebuilt/extension/lib/WINNT_x86-msvc/ff40/xpGwtDevPlugin.dll /trunk/plugins/xpcom/prebuilt/gwt-dev-plugin.xpi === --- /trunk/plugins/xpcom/prebuilt/extension/lib/Darwin-gcc3/ff40/libgwt_dev_ff40.dylib Thu Jan 27 09:50:46 2011 +++ /trunk/plugins/xpcom/prebuilt/extension/lib/Darwin-gcc3/ff40/libgwt_dev_ff40.dylib Fri Mar 18 08:56:54 2011 Binary file, no diff available. === --- /trunk/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff40/libgwt_dev_ff40.so Mon Jan 24 04:30:43 2011 +++ /trunk/plugins/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff40/libgwt_dev_ff40.so Fri Mar 18 08:56:54 2011 File is too large to display a diff. === --- /trunk/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff40/libgwt_dev_ff40.so Mon Jan 24 04:30:43 2011 +++ /trunk/plugins/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff40/libgwt_dev_ff40.so Fri Mar 18 08:56:54 2011 File is too large to display a diff. === --- /trunk/plugins/xpcom/prebuilt/extension/lib/WINNT_x86-msvc/ff40/xpGwtDevPlugin.dll Tue Jan 25 13:06:43 2011 +++ /trunk/plugins/xpcom/prebuilt/extension/lib/WINNT_x86-msvc/ff40/xpGwtDevPlugin.dll Fri Mar 18 08:56:54 2011 Binary file, no diff available. === --- /trunk/plugins/xpcom/prebuilt/gwt-dev-plugin.xpi Thu Jan 27 09:50:46 2011 +++ /trunk/plugins/xpcom/prebuilt/gwt-dev-plugin.xpi Fri Mar 18 08:56:54 2011 File is too large to display a diff. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Promotes Gin's AsyncProvider to GWT, along with a more general (issue1387801)
Okay, ready for review. http://gwt-code-reviews.appspot.com/1387801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Promotes Gin's AsyncProvider to GWT, along with a more general (issue1387801)
http://gwt-code-reviews.appspot.com/1387801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Promotes Gin's AsyncProvider to GWT, along with a more general (issue1387801)
I've added two variations. Patch 3 renames the new interace to Callback, and fixes some javadoc. Patch 4 parameterizes the failure type. I think this is the right thing to do, but notice that I had to fix a number of tests that had not filled in the type param on AsyncCallback to keep things compiling. (It seems odd that this was required, I wonder if it's an Open JDK bug?) What do you think of the change in and of itself? And does it count as a breaking change when what was a warning becomes a compile error? I don't think so. http://gwt-code-reviews.appspot.com/1387801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Promotes Gin's AsyncProvider to GWT, along with a more general (issue1387801)
Dammit, patch 4 is missing things, one moment. http://gwt-code-reviews.appspot.com/1387801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Questions on the process of issue fixing.
Thanks for the patches! No on noticed them because you didn't set a reviewer. Since you are addressing specific items on the issue tracker, the owners of those tickets would be the right targets. It's also a good idea to append the urls of the patches to the tickets. rjrjr On Fri, Mar 18, 2011 at 10:31 AM, Antoine DESSAIGNE antoine.dessai...@gmail.com wrote: Hi, I wanted to know more about GWT and therefore I decided to try fixing some of the issues. I've followed the Making it better page as well as the help on upload.py. I've proposed 3 patches ([1], [2] and [3]) but none of them appeared on this mailing-list nor were commented/reviewed. I'm wondering whether I forgot something or if you simply didn't have time to have a look at them. So I have several questions: - Am I proposing patches the right way ? - How do you fix new issues: do you revert your code base after each patch submission, or do you have an easier way ? - Since I'm not sure if I will be able to fix an issue, should I send an email to this list before looking at it ? How should I tell you that i'm working on something ? Also, I have a more technical question: what's the right way to handle CSS and messages in the client.ui package: CssResource (with new CSS files) and Constants ? Thanks a lot for your insights on this matter. Antoine. [1] http://gwt-code-reviews.appspot.com/1369811/ [2] http://gwt-code-reviews.appspot.com/1383802/ [3] http://gwt-code-reviews.appspot.com/1388802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Questions on the process of issue fixing.
To your specific questions: On Fri, Mar 18, 2011 at 1:02 PM, Ray Ryan rj...@google.com wrote: Thanks for the patches! No on noticed them because you didn't set a reviewer. Since you are addressing specific items on the issue tracker, the owners of those tickets would be the right targets. It's also a good idea to append the urls of the patches to the tickets. rjrjr On Fri, Mar 18, 2011 at 10:31 AM, Antoine DESSAIGNE antoine.dessai...@gmail.com wrote: Hi, I wanted to know more about GWT and therefore I decided to try fixing some of the issues. I've followed the Making it better page as well as the help on upload.py. I've proposed 3 patches ([1], [2] and [3]) but none of them appeared on this mailing-list nor were commented/reviewed. I'm wondering whether I forgot something or if you simply didn't have time to have a look at them. So I have several questions: - Am I proposing patches the right way ? You did fine, you just missed step 8 in http://code.google.com/webtoolkit/makinggwtbetter.html#submittingpatches - How do you fix new issues: do you revert your code base after each patch submission, or do you have an easier way ? Most of us use git, and make a separate branch for each fix - Since I'm not sure if I will be able to fix an issue, should I send an email to this list before looking at it ? How should I tell you that i'm working on something ? An issue tracker ticket is the best forum Also, I have a more technical question: what's the right way to handle CSS and messages in the client.ui package: CssResource (with new CSS files) and Constants ? Yes for CssResource. If this is in the context of a new widget, refer to this recent discussion: https://groups.google.com/d/topic/google-web-toolkit-contributors/SclEt5RzbvA/discussion Re: messages, that's an excellent question. John and John? Thanks a lot for your insights on this matter. Antoine. [1] http://gwt-code-reviews.appspot.com/1369811/ [2] http://gwt-code-reviews.appspot.com/1383802/ [3] http://gwt-code-reviews.appspot.com/1388802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Questions on the process of issue fixing.
On Fri, Mar 18, 2011 at 1:31 PM, Antoine DESSAIGNE antoine.dessai...@gmail.com wrote: Also, I have a more technical question: what's the right way to handle CSS and messages in the client.ui package: CssResource (with new CSS files) and Constants ? Can you describe what it is you want to do? -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Questions on the process of issue fixing.
Ah, I'm a liar, you did update the patches in question. It's perfeclty reasonable to ping the issue itself, or calling us to task on this list like you did. I apologize that we all left you hanging like this. On Fri, Mar 18, 2011 at 1:08 PM, Ray Ryan rj...@google.com wrote: To your specific questions: On Fri, Mar 18, 2011 at 1:02 PM, Ray Ryan rj...@google.com wrote: Thanks for the patches! No on noticed them because you didn't set a reviewer. Since you are addressing specific items on the issue tracker, the owners of those tickets would be the right targets. It's also a good idea to append the urls of the patches to the tickets. rjrjr On Fri, Mar 18, 2011 at 10:31 AM, Antoine DESSAIGNE antoine.dessai...@gmail.com wrote: Hi, I wanted to know more about GWT and therefore I decided to try fixing some of the issues. I've followed the Making it better page as well as the help on upload.py. I've proposed 3 patches ([1], [2] and [3]) but none of them appeared on this mailing-list nor were commented/reviewed. I'm wondering whether I forgot something or if you simply didn't have time to have a look at them. So I have several questions: - Am I proposing patches the right way ? You did fine, you just missed step 8 in http://code.google.com/webtoolkit/makinggwtbetter.html#submittingpatches - How do you fix new issues: do you revert your code base after each patch submission, or do you have an easier way ? Most of us use git, and make a separate branch for each fix - Since I'm not sure if I will be able to fix an issue, should I send an email to this list before looking at it ? How should I tell you that i'm working on something ? An issue tracker ticket is the best forum Also, I have a more technical question: what's the right way to handle CSS and messages in the client.ui package: CssResource (with new CSS files) and Constants ? Yes for CssResource. If this is in the context of a new widget, refer to this recent discussion: https://groups.google.com/d/topic/google-web-toolkit-contributors/SclEt5RzbvA/discussion Re: messages, that's an excellent question. John and John? Thanks a lot for your insights on this matter. Antoine. [1] http://gwt-code-reviews.appspot.com/1369811/ [2] http://gwt-code-reviews.appspot.com/1383802/ [3] http://gwt-code-reviews.appspot.com/1388802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Promotes Gin's AsyncProvider to GWT, along with a more general (issue1387801)
Some small documentation comments, otherwise looks good. http://gwt-code-reviews.appspot.com/1387801/diff/8002/user/src/com/google/gwt/core/client/AsyncProvider.java File user/src/com/google/gwt/core/client/AsyncProvider.java (right): http://gwt-code-reviews.appspot.com/1387801/diff/8002/user/src/com/google/gwt/core/client/AsyncProvider.java#newcode25 user/src/com/google/gwt/core/client/AsyncProvider.java:25: * public void get(final AsyncCallbackT, Throwable callback) { Callback? http://gwt-code-reviews.appspot.com/1387801/diff/8002/user/src/com/google/gwt/core/client/AsyncProvider.java#newcode37 user/src/com/google/gwt/core/client/AsyncProvider.java:37: * @param T the type of the provided value Add documentation for F. http://gwt-code-reviews.appspot.com/1387801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Promotes Gin's AsyncProvider to GWT, along with a more general (issue1387801)
http://gwt-code-reviews.appspot.com/1387801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9867 committed - This change is mostly resources related....
Revision: 9867 Author: scheg...@google.com Date: Fri Mar 18 10:49:05 2011 Log: This change is mostly resources related. We pre-split path of resources and avoid performing String.split() several times later. This gives about 5% speed up in GWT Designer. Review at http://gwt-code-reviews.appspot.com/1382801 Review by: con...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9867 Added: /trunk/dev/core/test/com/google/gwt/dev/resource/impl/ResourceTests.java /trunk/dev/core/test/com/google/gwt/dev/util/StringsTest.java Modified: /trunk/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java /trunk/dev/core/src/com/google/gwt/dev/resource/impl/PathPrefixSet.java /trunk/dev/core/src/com/google/gwt/dev/resource/impl/ZipFileClassPathEntry.java /trunk/dev/core/src/com/google/gwt/dev/resource/impl/ZipFileResource.java /trunk/dev/core/src/com/google/gwt/dev/util/Strings.java /trunk/dev/core/test/com/google/gwt/dev/resource/impl/DefaultFiltersTest.java /trunk/eclipse/samples/Hello/Hello-compModule.launch === --- /dev/null +++ /trunk/dev/core/test/com/google/gwt/dev/resource/impl/ResourceTests.java Fri Mar 18 10:49:05 2011 @@ -0,0 +1,40 @@ +/* + * Copyright 2011 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.dev.resource.impl; + +import com.google.gwt.dev.resource.Resource; + +import junit.framework.Test; +import junit.framework.TestSuite; + +/** + * Suite of {@link Resource} related tests. + */ +public class ResourceTests { + public static Test suite() { +TestSuite suite = new TestSuite(Resource tests); +suite.addTestSuite(ClassPathEntryTest.class); +suite.addTestSuite(DefaultFiltersTest.class); +suite.addTestSuite(FileResourceTest.class); +suite.addTestSuite(PathPrefixSetTest.class); +suite.addTestSuite(ResourceOracleImplRealClasspathTest.class); +suite.addTestSuite(ResourceOracleImplTest.class); +return suite; + } + + private ResourceTests() { + } +} === --- /dev/null +++ /trunk/dev/core/test/com/google/gwt/dev/util/StringsTest.java Fri Mar 18 10:49:05 2011 @@ -0,0 +1,34 @@ +/* + * Copyright 2011 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.dev.util; + +import junit.framework.TestCase; + +import java.util.Arrays; + +/** + * Tests for {@link Strings}. + */ +public class StringsTest extends TestCase { + /** + * Test for {@link Strings#splitPath(String)}. + */ + public void test_splitPath() throws Exception { +assertTrue(Arrays.equals(new String[]{a}, Strings.splitPath(a))); +assertTrue(Arrays.equals(new String[]{a, bb, ccc}, Strings.splitPath(a/bb/ccc))); +assertTrue(Arrays.equals(new String[]{, a, bb}, Strings.splitPath(/a/bb/))); + } +} === --- /trunk/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java Tue Feb 1 08:37:27 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java Fri Mar 18 10:49:05 2011 @@ -53,29 +53,29 @@ public boolean allows(String path) { return defaultAntIncludes.allows(path) matches(path); } -}; - +}; + private final ResourceFilter defaultFilter = new ResourceFilter() { public boolean allows(String path) { return getFileTypeFilter().allows(path) - !defaultExcludesPattern.matcher(path).matches(); + !isDefaultExcluded(path); } }; - + private FilterFileType(String suffix) { this.suffix = suffix; } - + public ResourceFilter getDefaultFilter() { return defaultFilter; } - + /* used when defaultExcludes is false */ public ResourceFilter getFileTypeFilter() { return justThisFileTypeFilter; } - + public String getSuffix() { return suffix; } @@ -87,42
Re: [gwt-contrib] Questions on the process of issue fixing.
Hi, 2011/3/18 Ray Ryan rj...@google.com Ah, I'm a liar, you did update the patches in question. It's perfeclty reasonable to ping the issue itself, or calling us to task on this list like you did. I apologize that we all left you hanging like this. No need to apologize. It's weird though that explicitly putting this mailing-list on cc of the upload.py doesn't seem to do anything. 2011/3/18 John Tamplin j...@google.com On Fri, Mar 18, 2011 at 1:31 PM, Antoine DESSAIGNE antoine.dessai...@gmail.com wrote: Also, I have a more technical question: what's the right way to handle CSS and messages in the client.ui package: CssResource (with new CSS files) and Constants ? Can you describe what it is you want to do? It's when I created the RichTextToolbar, I was confused because it doesn't seem that they were used by the other widgets of the client.ui package. The CssResource is only used by the NotificationMole and Constant is not used in this package. So I was wondering whether or not I did the right thing. Also I created new string messages that needs to be translated, but I didn't do anything to allow GWT contributors to translate it. I can do the French translation, but should I simply create the _FR.properties file or is there some tool somewhere that I should use ? Antoine. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Promotes Gin's AsyncProvider to GWT, along with a more general (issue1387801)
http://gwt-code-reviews.appspot.com/1387801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors