I have tested with the new GWT release and it does work.

Thank you for your help Bruno.

On Mar 10, 8:49 am, noon <[email protected]> wrote:
> Hi all,
>
> After some investiation, I confirm that the issue was onGWTside (and
> especially in CompilingClassLoader.findClass method).
> I write "was" because the issue is fixed since SVN release 4417
> (http://code.google.com/p/google-web-toolkit/source/detail?
> r=4417&path=/releases/1.6/dev/core/src/com/google/gwt/dev/shell/
> CompilingClassLoader.java) and is available inGWT1.6.
>
> The test project, that failed withGWT1.5.3 now works fine withGWT
> 1.6M2.
>
> Best Regards
> Bruno
>
> On 6 mar, 11:01, noon <[email protected]> wrote:
>
> > Of course, I already tested the annotation emulation before releasing
> > it.
> > What puzzles me is that a even a project that donotuse theJPA
> > annotations but add the annotation emulation fails :-(
>
> > I am trying to investigate this issue to determine if it is on my side
> > or onGWTone...
>
> > Regards
> > Bruno
>
> > PS : as far as I know, usingJPAannotations without the Gilead
> > emulation just leads to warnings, so removing the line willnot
> > prevent you to work.
>
> > On 6 mar, 05:25, grishag <[email protected]> wrote:
>
> > > Thanks for the link to the Gilead forum.
>
> > > As per your discussion there, I removed this line from mygwt.xml file
> > > just to see what it would do:
>
> > > <inherits name='net.sf.gilead.emul.java5.ejb3.Ejb3'/>
>
> > > To my surprise myhostedmodewith the -noserver option started
> > >working. So, I'm a bit confused now. Do I need to keep this line in my
> > > configuration ornot? What exactly does it do? I was under the
> > > impression that it was there to makeGWTbehave when it encounters
> > > EJB3 annotations (as per the instructions in the StatelessModedoco)
> > > but clearly that'snotthe case.
>
> > > Does this make sense to you?
>
> > > Regards,
> > > Grigori
>
> > > PS: Thanks for the good work you've done/doing on Gilead. It is a
> > > great tool and is much appreciated.
>
> > > On Mar 5, 10:00 pm, noon <[email protected]> wrote:
>
> > > > Hi,
>
> > > > For point 2 and 3, it is a known bug of Gilead 1.2.1 : it has been
> > > > fixed in project SVN (branch 1.2) and will be part of the next release
> > > > (probably this month.
>
> > > > About the CascadeType issue, what suprise me is that it happens even
> > > > when no annoted pojo is sent : 
> > > > seehttp://sourceforge.net/forum/forum.php?thread_id=3000451&forum_id=868076
> > > > for details
>
> > > > Regards
> > > > Bruno
>
> > > > On 5 mar, 07:07, grishag <[email protected]> wrote:
>
> > > > > I tried a few things today but beside more problems, no solution yet.
>
> > > > > 1. Created a few POJOs and added a bunch ofJPAannotations to them
> > > > > (including the javax.persistence.CascadeType). In my RPC service
> > > > > class, I manually instantiate a POJO and return it. This works fine.
> > > > > TheGWTcompiler/shell isnotcomplaining about any annotations. I'm
> > > > > still using Gilead andGWT-SL with the -noserver option.
>
> > > > > 2. For my second attempt, I configured the above POJOs in my Spring
> > > > > AnnotationSessionFactoryBean, e.g
>
> > > > > <bean id="sessionFactory"
> > > > > class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
> > > > >                 <property name="dataSource"><ref 
> > > > > bean="dataSource"/></property>
> > > > >                 ...
> > > > >                 <property name="annotatedClasses">
> > > > >                     <list>
> > > > >                          ...
>
> > > > > <value>au.gov.vic.dpi.mpd.geodatavic2.module.domain.client.model.security.User</
> > > > > value>
> > > > >                     </list>
> > > > >                   </property>
> > > > > </bean>
>
> > > > > Note, I still just manually create the User class in the RPC service
> > > > > class, I'mnotactually retrieving anything from database via
> > > > > Hibernate but it didn't work. I got the following exception (on the
> > > > > server):
>
> > > > > SEVERE: Exception while dispatching incoming RPC call
> > > > > java.lang.RuntimeException: java.lang.NullPointerException
> > > > >         at
> > > > > org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleExporterProcessingException
> > > > > (GWTRPCServiceExporter.java:344)
> > > > >         at 
> > > > > org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall
> > > > > (GWTRPCServiceExporter.java:313)
> > > > >         at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> > > > > (RemoteServiceServlet.java:86)
> > > > >         at 
> > > > > org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest
> > > > > (GWTRPCServiceExporter.java:363)
> > > > >         at
> > > > > org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle
> > > > > (HttpRequestHandlerAdapter.java:49)
> > > > >         at 
> > > > > org.springframework.web.servlet.DispatcherServlet.doDispatch
> > > > > (DispatcherServlet.java:875)
> > > > >         at org.springframework.web.servlet.DispatcherServlet.doService
> > > > > (DispatcherServlet.java:809)
> > > > >         at 
> > > > > org.springframework.web.servlet.FrameworkServlet.processRequest
> > > > > (FrameworkServlet.java:476)
> > > > >         at org.springframework.web.servlet.FrameworkServlet.doPost
> > > > > (FrameworkServlet.java:441)
> > > > >         at 
> > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> > > > >         at 
> > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > > > >         at 
> > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > > > > (ApplicationFilterChain.java:290)
> > > > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter
> > > > > (ApplicationFilterChain.java:206)
> > > > >         at org.apache.catalina.core.StandardWrapperValve.invoke
> > > > > (StandardWrapperValve.java:233)
> > > > >         at org.apache.catalina.core.StandardContextValve.invoke
> > > > > (StandardContextValve.java:191)
> > > > >         at org.apache.catalina.core.StandardHostValve.invoke
> > > > > (StandardHostValve.java:128)
> > > > >         at org.apache.catalina.valves.ErrorReportValve.invoke
> > > > > (ErrorReportValve.java:102)
> > > > >         at org.apache.catalina.core.StandardEngineValve.invoke
> > > > > (StandardEngineValve.java:109)
> > > > >         at org.apache.catalina.connector.CoyoteAdapter.service
> > > > > (CoyoteAdapter.java:286)
> > > > >         at org.apache.coyote.http11.Http11Processor.process
> > > > > (Http11Processor.java:845)
> > > > >         at org.apache.coyote.http11.Http11Protocol
> > > > > $Http11ConnectionHandler.process(Http11Protocol.java:583)
> > > > >         at 
> > > > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> > > > > 447)
> > > > >         at java.lang.Thread.run(Unknown Source)
> > > > > Caused by: java.lang.NullPointerException
> > > > >         at net.sf.gilead.core.hibernate.HibernateUtil.isUnsavedValue
> > > > > (HibernateUtil.java:1328)
> > > > >         at net.sf.gilead.core.hibernate.HibernateUtil.getId
> > > > > (HibernateUtil.java:290)
> > > > >         at net.sf.gilead.core.hibernate.HibernateUtil.getId
> > > > > (HibernateUtil.java:200)
> > > > >         at net.sf.gilead.core.hibernate.HibernateUtil.isPersistentPojo
> > > > > (HibernateUtil.java:314)
> > > > >         at net.sf.gilead.core.PersistentBeanManager.clonePojo
> > > > > (PersistentBeanManager.java:325)
> > > > >         at net.sf.gilead.core.PersistentBeanManager.clone
> > > > > (PersistentBeanManager.java:241)
> > > > >         at net.sf.gilead.gwt.GileadRPCHelper.parseReturnValue
> > > > > (GileadRPCHelper.java:129)
> > > > >         at
> > > > > org.gwtwidgets.server.spring.hb4gwt.HB4GWTRPCServiceExporter.invokeMethodOnService
> > > > > (HB4GWTRPCServiceExporter.java:63)
> > > > >         at 
> > > > > org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall
> > > > > (GWTRPCServiceExporter.java:298)
> > > > >         ... 21 more
>
> > > > > I'm still scratching my head about this one...
>
> > > > > 3. I did try to retrieve POJOs from the database instead of manually
> > > > > creating them but I got the same result.
>
> > > > > The POJOs are quite simple. Here's an example. Why this doesn't work
> > > > > is a mistery to me.
>
> > > > > @Entity
> > > > > @Table(name = "USERS", schema = "SECURITY")
> > > > > public class Users extends LightEntity implements java.io.Serializable
> > > > > {
>
> > > > >         private String userId;
> > > > >         private Date endDate;
> > > > >         private Set<ApplicationRoles> applicationRoleses = new
> > > > > HashSet<ApplicationRoles>(0);
>
> > > > >         public Users() {
> > > > >         }
>
> > > > >         @Id
> > > > >         @Column(name = "USER_ID", unique = true, nullable = false, 
> > > > > length =
> > > > > 25)
> > > > >         public String getUserId() {
> > > > >                 return this.userId;
> > > > >         }
>
> > > > >         public void setUserId(String userId) {
> > > > >                 this.userId = userId;
> > > > >         }
>
> > > > >         @Temporal(TemporalType.DATE)
> > > > >         @Column(name = "END_DATE", length = 7)
> > > > >         public Date getEndDate() {
> > > > >                 return this.endDate;
> > > > >         }
>
> > > > >         public void setEndDate(Date endDate) {
> > > > >                 this.endDate = endDate;
> > > > >         }
>
> > > > >         @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY,
> > > > > mappedBy = "users")
> > > > >         public Set<ApplicationRoles> getApplicationRoleses() {
> > > > >                 return this.applicationRoleses;
> > > > >         }
>
> > > > >         public void setApplicationRoleses(Set<ApplicationRoles>
> > > > > applicationRoleses) {
> > > > >                 this.applicationRoleses = applicationRoleses;
> > > > >         }
>
> > > > > }
>
> > > > > On Mar
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to