gwt rpc generics java.lang.ClassT

2012-09-01 Thread Stefanos Antaris
Hi to all,

i am facing a problem with the java generics in rpc. I have implemented a
rpc service using the java.lang.classT generic and while it works fine
when i test it, it cannot be compiled. I have serialized the class that i
need to pass through the rpc and i have implemented the default empty
constructor but it still does not compile.

Here is my service and the class that i need to pass through the generic.

package com.client.model.mybay.browse;



import java.util.ArrayList;


import com.google.gwt.user.client.rpc.RemoteService;

import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import com.shared.source.MySource;


@RemoteServiceRelativePath(categoryService)

public interface CategoryBrowseService extends RemoteService{


 ArrayListMySource getSourceList(Class? extends MySource classType);

}



package com.client.model.mybay.browse;


import java.util.ArrayList;


import com.google.gwt.user.client.rpc.AsyncCallback;

import com.shared.source.MySource;


public interface CategoryBrowseServiceAsync {


 void getSourceList(Class? extends MySource classType,

AsyncCallbackArrayListMySource callback);


}



package com.sourcebay.shared.source;


import java.util.Date;


import javax.jdo.annotations.IdGeneratorStrategy;

import javax.jdo.annotations.Inheritance;

import javax.jdo.annotations.InheritanceStrategy;

import javax.jdo.annotations.PersistenceCapable;

import javax.jdo.annotations.Persistent;

import javax.jdo.annotations.PrimaryKey;


import com.google.gwt.user.client.rpc.IsSerializable;



@PersistenceCapable

@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)

public abstract class MySource implements IsSerializable {


 @PrimaryKey

@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

private Long id;

@Persistent

private String userId;

@Persistent

private String title;

@Persistent

private String description;

@Persistent

private String blobKey;

@Persistent

private String youtubeLink;

@Persistent

private String personalLink;

@Persistent

private Date submitedDate;

@Persistent

private float price;


 public MySource() {

 }

  public float getPrice() {

return price;

}


 public void setPrice(float price) {

this.price = price;

}


 public String getUserId() {

return userId;

}


 public void setUserId(String userId) {

this.userId = userId;

}


 public String getTitle() {

return title;

}


 public void setTitle(String title) {

this.title = title;

}


 public String getDescription() {

return description;

}


 public void setDescription(String description) {

this.description = description;

}


 public String getBlobKey() {

return blobKey;

}


 public void setBlobKey(String blobKey) {

this.blobKey = blobKey;

}


 public String getYoutubeLink() {

return youtubeLink;

}


 public void setYoutubeLink(String youtubeLink) {

this.youtubeLink = youtubeLink;

}


 public String getPersonalLink() {

return personalLink;

}


 public void setPersonalLink(String personalLink) {

this.personalLink = personalLink;

}


 public Date getSubmitedDate() {

return submitedDate;

}


 public void setSubmitedDate(Date submitedDate) {

this.submitedDate = submitedDate;

}


 public Long getId() {

return id;

}

 }



I am using AppEngine 1.7.1 and GWT 2.4.0. Does anybody have any idea how to
fix this?


Thanks in advance,


Ste

-- 
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 application using hibernate and postgresql

2012-01-05 Thread Stefanos Antaris
(JdbcServicesImpl.java:170)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1775)
at
com.isemanipulation.server.fileUpload.hibernate.SessionFactoryUtil.clinit(SessionFactoryUtil.java:28)
at
com.isemanipulation.server.fileUpload.FileUploadImpl.createHoney(FileUploadImpl.java:150)
at
com.isemanipulation.server.fileUpload.FileUploadImpl.doPost(FileUploadImpl.java:87)
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.ClassCastException:
org.hibernate.dialect.PostgreSQLDialect cannot be cast to
org.hibernate.dialect.Dialect
at
org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:73)
... 32 more
[ERROR] 500 - POST /isemanipulation/upload (127.0.0.1) 10612 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24)
Gecko/2007 Ubuntu/10.04 (lucid) Firefox/3.6.24
  Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 115
  Connection: keep-alive
  Referer:
http://127.0.0.1:/ISEManipulation.html?gwt.codesvr=127.0.0.1:9997
  Content-Type: multipart/form-data;
boundary=---8224340872607037721717863482
  Content-Length: 19132
   Response headers
  Content-Type: text/html; charset=iso-8859-1
  Content-Length: 10612
[/error]


Why PostgreSQLDialect cannot be casted? Does anyone know?

Thanks in advance,
Stefanos Antaris

On Wed, Jan 4, 2012 at 11:30 PM, Rob rob.fergu...@uptick.com.au wrote:

 Hi,

 Check out this post re GWT, JPA, Hibernate and HSQLDB:

 - http://uptick.com.au/content/working-gwt-jpa-hibernate-and-hsqldb

 You just need to update persistence.xml for the sample to work with
 PostgreSQL.

 Cheers
 Rob

 On Jan 5, 12:42 am, Patrick Julien pjul...@gmail.com wrote:
  I think you should use RequestFactory in conjunction with guice-persist.
   It works with any JPA layer.

 --
 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 application using hibernate and postgresql

2012-01-04 Thread Stefanos Antaris
Hi to all,

i have implemented a new gwt application without any app engine integration
and i need to use postgresql as a database . I have managed to integrate
postgresql but one of the prerequisites is to use hibernate. I am searching
for about 2 days for a solution but i haven't found any and the jboss
hibernate examples are not working. Has any a complete gwt example with
hibernate and postgres integration? Thanks in advance.

Best regards,
Stefanos Antaris

-- 
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: Wait dialog on rpc interaction

2011-12-23 Thread Stefanos Antaris
Great. I have modified a little bit the idea and it worked fine.
Thanks to all.

On Fri, Dec 23, 2011 at 2:13 AM, Ed post2edb...@gmail.com wrote:

 See: 
 rpcHyperlinkhttps://groups.google.com/forum/#!topic/google-web-toolkit/lm_1v7Mmb5M

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/fK8Bj9QZqqYJ.

 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.



Wait dialog on rpc interaction

2011-12-22 Thread Stefanos Antaris
Hi to all,

i am facing a problem while developing a web application. I have some rpc
interactions with the server (appengine) and most of them are really time
consuming as i am having some data analysis. Due to the delay of the
response, most of my beta testers press more than one time the request
button and so does this duplicates the analysis phase. How do i popup a
dialog box or whatever in order to notify them that we are processing
his/her request and he has to wait for a while?

Thanks in advance,
Stefanow Antaris

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



http and https on google web toolkit

2011-08-08 Thread Stefanos Antaris
Hi to all,

i am totally newbie on gwt and i have to implement a new web application for
a company.
The web application should be placed on http protocol as long as the user is
not signed in and when he/she signs in the whole web application should use
https. Is there any sample code, tutorial of how can i support that feature?

I am thinking on using rpc. Is this the best approach for that
specification?
Sorry if that issue has been reported on that discussion before.

Best regards,
Stefanos Antaris

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