gwt-rpc

GWT and Google Cloud Endpoints

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 15:44:04
A few days ago I've started developing a Backend for Mobile Applications using Google App Engine and Google Cloud Endpoints . This tutorial shows how the endpoints are getting generated automatically, as well as the client library for Android. So we have our Entity: @Entity public class Person implements IsSerializable{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; private String name; //... } And the endpoint for this class: @Api(name = "personendpoint") public class PersonEndpoint { @ApiMethod(name = "getPerson") public Person getPerson(@Named("id") Long id) { ...

when i am using this code it gives error

大憨熊 提交于 2019-12-02 14:14:39
问题 public ContactEntry createContact(String username)throws IllegalArgumentException { // Create the entry to insert ContactsService myService = new ContactsService("exampleCo-exampleApp-1"); try { myService.setUserCredentials("abc@in.gappsdemo.in", "xyz@123"); } catch (AuthenticationException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } String name = "neha'sContact"; String notes = "this is some notes from gdata API client"; ContactEntry contact = new ContactEntry(); contact

when i am using this code it gives error

允我心安 提交于 2019-12-02 10:15:02
public ContactEntry createContact(String username)throws IllegalArgumentException { // Create the entry to insert ContactsService myService = new ContactsService("exampleCo-exampleApp-1"); try { myService.setUserCredentials("abc@in.gappsdemo.in", "xyz@123"); } catch (AuthenticationException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } String name = "neha'sContact"; String notes = "this is some notes from gdata API client"; ContactEntry contact = new ContactEntry(); contact.setTitle(new PlainTextConstruct(name)); contact.setContent(new PlainTextConstruct(notes)); Email

what IsSerializable or not in GWT?

别说谁变了你拦得住时间么 提交于 2019-12-02 02:44:51
问题 I have this simple object in my GWT project. I cannot send it over the wire. Is it impossible to put a constructor in such a class? public class MceDto implements IsSerializable { public MceDto(String uri, String tag) { this.uri = uri; this.tag = tag; } public String uri; public String tag; public Date created; } I checked the *.gwt.rpc policy and the object is not there meaning it is not serializable or something. How can I know beforehand if it is possible to serialize the object? Thank you

open/save file in smartGWT

余生颓废 提交于 2019-12-01 14:10:29
I have implemented RPCService, RPCServiceAsync & RPCServieImpl. On clicking a button a service in server side will be called and it will fetch data from DB and file is created. Once the file is created, then i need to open that file in client side and need to prompt a dialog box with open/save options. how can i implement this opening a file part. pls suggest a way to implement t.. Reply pls.. thanks in advance.... @Hambend : I still have one more clarification !.. how to call this doGet method in another servlet i.e. in my onmodule load class i am having lot of widgets in seperate layout and

entity with relationships through GWT RPC problem

时光总嘲笑我的痴心妄想 提交于 2019-12-01 11:21:42
I am using JPA 2.0. (EclipseLink 2.0.2) If an entity contains relations, for example: @OneToMany(cascade = CascadeType.ALL, mappedBy = "userId") private Collection<Blog> blogCollection; I am getting the following error when I am sending it through RPC: com.google.gwt.user.client.rpc.SerializationException: Type 'org.eclipse.persistence.indirection.IndirectList' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = {[]} In general all the Persistence

Send a file from server to client in GWT

五迷三道 提交于 2019-12-01 09:25:53
问题 I am using GWT. I have to download a file file from server to client . Document is in the external repository. Client sends the id of the document through a Servlet. On server side : Using this ID document is retrieved: Document document = (Document)session.getObject(docId); ContentStream contentStream = document.getContentStream(); ByteArrayInputStream inputStream = (ByteArrayInputStream) contentStream.getStream(); int c; while ((c = inputStream.read()) != -1) { System.out.print((char) c); }

GWT for big projects?

不羁的心 提交于 2019-12-01 01:22:39
My friend and I want to develop a big web2.0 project. We decided to write it in Java because we love it and we are good at it and the other libraries which we will use are written in Java (Apache Lucene, Apache Cassandra ...). and we choose GWT as a framework. We love google, google technologies, google apis. and I want to ask do you think that GWT is suitable to launch the big projects like youtube, twitter, wikipedia and other... ? Is gwt-rpc mechanism reliable in big projects? Well GWT is suitable for web applications and not web sites or web pages, GWT is suitable for applications like

GWT for big projects?

浪子不回头ぞ 提交于 2019-11-30 20:41:22
问题 My friend and I want to develop a big web2.0 project. We decided to write it in Java because we love it and we are good at it and the other libraries which we will use are written in Java (Apache Lucene, Apache Cassandra ...). and we choose GWT as a framework. We love google, google technologies, google apis. and I want to ask do you think that GWT is suitable to launch the big projects like youtube, twitter, wikipedia and other... ? Is gwt-rpc mechanism reliable in big projects? 回答1: Well

gwt serialization policy hosted mode out of sync

旧城冷巷雨未停 提交于 2019-11-30 20:04:08
When running my GWT application (gwt 2.0.4) in hosted mode, calling RPC methods running on remote Tomcat, I get GWT serialization exception: INFO: GwtRpcEventSrvc: ERROR: The serialization policy file '/84EC7BA65AF8175BAA99B47877FDE163.gwt.rpc' was not found; did you forget to include it in this deployment? SEVERE: GwtRpcEventSrvc: WARNING: Failed to get the SerializationPolicy '84EC7BA65AF8175BAA99B47877FDE163' for module 'http://host:19980/MYAPP/'; a legacy, 1.3.3 compatible, serialization policy will be used. Youmay experience SerializationExceptions as a result. SEVERE: Exception while