Using Gilead with GWT 2.0 ms1

239 views
Skip to first unread message

tskaife

unread,
Oct 9, 2009, 2:35:11 PM10/9/09
to Google Web Toolkit
I just updated to GWT 2.0 ms1 and noticed that I was getting an error
that the constructor for RPCRequest doesn't exist (the constructor now
inclues a int flag parameter).

java.lang.NoSuchMethodError:
com.google.gwt.user.server.rpc.RPCRequest.<init>(Ljava/lang/reflect/
Method;[Ljava/lang/Object;Lcom/google/gwt/user/server/rpc/
SerializationPolicy;)V

I was able to fix the issue by creating a new RPCCopy_GWT20 that
passes a 0 for the flag parameter when it makes the RPCRequest. I also
had to change RPCCopy class so that it can correctly recognize when
you are using GWT 2.0. Below are links to the 2 java files.

RPCCopy.java
http://trg-commons.googlecode.com/files/RPCCopy_GWT20.java

RPCCopy_GWT20.java
http://trg-commons.googlecode.com/files/RPCCopy_GWT20.java

tskaife

unread,
Oct 18, 2009, 11:06:44 AM10/18/09
to Google Web Toolkit
Ok, well I found out that my changes to make gilead work for GWT 2.0
didn't quite work, but I've been able to fix that. I also notice that
I put the same two files up above, here are the 2 files to download to
get gilead working with GWT 2.0.

RPCCopy.java
http://trg-commons.googlecode.com/files/RPCCopy.java

RPCCopy_GWT20.java
http://trg-commons.googlecode.com/files/RPCCopy_GWT20.java

Once you get these files in your project just make sure to change the
package accordingly.

On Oct 9, 1:35 pm, tskaife <tska...@gmail.com> wrote:
> I just updated toGWT 2.0ms1 and noticed that I was getting an error
> that the constructor for RPCRequest doesn't exist (the constructor now
> inclues a int flag parameter).
>
> java.lang.NoSuchMethodError:
> com.google.gwt.user.server.rpc.RPCRequest.<init>(Ljava/lang/reflect/
> Method;[Ljava/lang/Object;Lcom/google/gwt/user/server/rpc/
> SerializationPolicy;)V
>
> I was able to fix the issue by creating a new RPCCopy_GWT20 that
> passes a 0 for the flag parameter when it makes the RPCRequest. I also
> had to change RPCCopy class so that it can correctly recognize when
> you are usingGWT 2.0. Below are links to the 2 java files.
>
> RPCCopy.javahttp://trg-commons.googlecode.com/files/RPCCopy_GWT20.java
>
> RPCCopy_GWT20.javahttp://trg-commons.googlecode.com/files/RPCCopy_GWT20.java

graff...@gmail.com

unread,
Dec 9, 2009, 6:27:24 PM12/9/09
to Google Web Toolkit
Thanks!! Great work...

but what do you mean by "Once you get these files in your project just
make sure to change the package accordingly."

all I did was put these files in src/com/google/gwt/user/server/rpc

should I do anything else?

- Bob



On Oct 18, 10:06 am, tskaife <tska...@gmail.com> wrote:
> Ok, well I found out that my changes to make gilead work for GWT 2.0
> didn't quite work, but I've been able to fix that. I also notice that
> I put the same two files up above, here are the 2 files to download to
> get gilead working with GWT 2.0.
>
> RPCCopy.javahttp://trg-commons.googlecode.com/files/RPCCopy.java
>
> RPCCopy_GWT20.javahttp://trg-commons.googlecode.com/files/RPCCopy_GWT20.java

piyush sharma

unread,
Dec 10, 2009, 1:00:57 AM12/10/09
to google-we...@googlegroups.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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Trevor Skaife

unread,
Dec 10, 2009, 10:35:06 AM12/10/09
to Google Web Toolkit
I definitely should have worded that better. You did exactly what I
wanted you to do, if you would put them in any other package it
wouldn't work.

On Dec 9, 5:27 pm, "graffle...@gmail.com" <graffle...@gmail.com>
wrote:

lucamen

unread,
Dec 17, 2009, 2:28:22 PM12/17/09
to Google Web Toolkit
Hello, I'm working on a GWT 2.0 project with hibernate integration via
Gilead. When I try to load data from database (on GWT 1.7 everything
was working properly) I get this error "Parameter 0 of is of an
unknown type 'java.lang.String/2004016611'" and googling I've found
this thread.
I downloaded these two files and put in src/com/google/gwt/user/server/
rpc under my gilead root directory but nothing changes!

To be sure I've updated all my buildpath with the jars I need but the
error still remain.

Do I have to ant build the adapter4gwt with these two new files and
then add the new jars I get?

I've already tried but ant failed with this error:

build:
[echo] adapter4gwt: /Users/lucame/Documents/workspace/Libs/
gilead-1.2.3.823/adapter4gwt/build.xml
[javac] Compiling 6 source files to /Users/lucame/Documents/
workspace/Libs/gilead-1.2.3.823/adapter4gwt/classes
[javac] /Users/lucame/Documents/workspace/Libs/gilead-1.2.3.823/
adapter4gwt/src/com/google/gwt/user/server/rpc/RPCCopy_GWT20.java:287:
cannot find symbol
[javac] symbol : constructor RPCRequest
(java.lang.reflect.Method,java.lang.Object
[],com.google.gwt.user.server.rpc.SerializationPolicy,int)
[javac] location: class com.google.gwt.user.server.rpc.RPCRequest
[javac] return new RPCRequest(method, parameterValues,
serializationPolicy, 0);
[javac] ^
[javac] 1 error


What should I do to get GWT 2.0 work with Gilead?

ANY help would be VERY appreciate!!

Thanks, Luca.

On 10 Dic, 16:35, Trevor Skaife <tska...@gmail.com> wrote:
> I definitely should have worded that better. You did exactly what I
> wanted you to do, if you would put them in any other package it
> wouldn't work.
>
> On Dec 9, 5:27 pm, "graffle...@gmail.com" <graffle...@gmail.com>
> wrote:
>
>
>
> > Thanks!!  Great work...
>
> > but what do you mean by "Once you get these files in your project just
> > make sure to change the package accordingly."
>
> > all I did was put these files in src/com/google/gwt/user/server/rpc
>
> > should I do anything else?
>
> >   - Bob
>
> > On Oct 18, 10:06 am, tskaife <tska...@gmail.com> wrote:
>

> > > Ok, well I found out that my changes to makegileadwork for GWT 2.0


> > > didn't quite work, but I've been able to fix that. I also notice that
> > > I put the same two files up above, here are the 2 files to download to

> > > getgileadworking with GWT 2.0.

lucamen

unread,
Dec 18, 2009, 5:04:19 AM12/18/09
to Google Web Toolkit, eppe...@gmail.com

Thanks, Luca.

> I definitely should have worded that better. You did exactly what I
> wanted you to do, if you would put them in any other package it
> wouldn't work.
>
> On Dec 9, 5:27 pm, "graffle...@gmail.com" <graffle...@gmail.com>
> wrote:
>
>
>
> > Thanks!! Great work...
>
> > but what do you mean by "Once you get these files in your project just
> > make sure to change the package accordingly."
>
> > all I did was put these files in src/com/google/gwt/user/server/rpc
>
> > should I do anything else?
>
> > - Bob
>
> > On Oct 18, 10:06 am, tskaife <tska...@gmail.com> wrote:
>

> > > Ok, well I found out that my changes to makegileadwork for GWT 2.0


> > > didn't quite work, but I've been able to fix that. I also notice that
> > > I put the same two files up above, here are the 2 files to download to

> > > getgileadworking with GWT 2.0.


>
> > > RPCCopy.javahttp://trg-commons.googlecode.com/files/RPCCopy.java
>
> > > RPCCopy_GWT20.javahttp://trg-commons.googlecode.com/files/RPCCopy_GWT20.java
>
> > > Once you get these files in your project just make sure to change the
> > > package accordingly.
>
> > > On Oct 9, 1:35 pm, tskaife <tska...@gmail.com> wrote:
>
> > > > I just updated toGWT 2.0ms1 and noticed that I was getting an error
> > > > that the constructor for RPCRequest doesn't exist (the constructor now
> > > > inclues a int flag parameter).
>
> > > > java.lang.NoSuchMethodError:
> > > > com.google.gwt.user.server.rpc.RPCRequest.<init>(Ljava/lang/reflect/
> > > > Method;[Ljava/lang/Object;Lcom/google/gwt/user/server/rpc/
> > > > SerializationPolicy;)V
>
> > > > I was able to fix the issue by creating a new RPCCopy_GWT20 that
> > > > passes a 0 for the flag parameter when it makes the RPCRequest. I also
> > > > had to change RPCCopy class so that it can correctly recognize when
> > > > you are usingGWT 2.0. Below are links to the 2 java files.
>
> > > > RPCCopy.javahttp://trg-commons.googlecode.com/files/RPCCopy_GWT20.java
>
> > > > RPCCopy_GWT20.javahttp://trg-commons.googlecode.com/files/RPCCopy_GWT20.java

On 10 Dic, 16:35, Trevor Skaife <tska...@gmail.com> wrote:

Josh Martin

unread,
Dec 18, 2009, 4:53:55 PM12/18/09
to Google Web Toolkit
What worked for me was to add the files Trevor specified to 'my'
project, and not into the original gilead source directories. You
just have to make sure to match the original package directory he
specified of: src/com/google/gwt/user/server/rpc in your project
directory. Any project that you create now that uses the adapter4gwt
library should include those two files as source files as well. Your
application should compile with those source files in it, as long as
you have the adapter4gwt library files included (which you would have
to have to use gilead anyway).

I, too, thought he meant to put them in the original gilead
directories and recreate the entire adapter4gwt library, but after re-
reading what he suggested, I realized his real suggestion was far
easier. (Thanks Trevor!)

Hope this helps,
Josh

On Dec 18, 4:04 am, lucamen <epped...@gmail.com> wrote:
> Hello, I'm working on a GWT 2.0 project with hibernate integration viaGilead. When I try to load data from database (on GWT 1.7 everything


> was working properly) I get this error "Parameter 0 of is of an
> unknown type 'java.lang.String/2004016611'" and googling I've found
> this thread.
> I downloaded these two files and put in src/com/google/gwt/user/server/

> rpc under mygileadroot directory but nothing changes!

lucamen

unread,
Dec 22, 2009, 12:08:42 PM12/22/09
to Google Web Toolkit
Thanks Josh!! That really help me a lot and now everything is working
properly!

BTW Bruno (the Gilead main developer) wrote here
http://sourceforge.net/projects/gilead/forums/forum/868076/topic/3484314
that a new release is coming "very" soon... so just wait and hope in a
stable version that works with gwt2.0

Thanks again and merry christmas! :-P

Trevor Skaife

unread,
Dec 23, 2009, 9:02:59 AM12/23/09
to Google Web Toolkit
I'm just glad to see people are able to use my fix for using gilead
with GWT 2.0.0

On Dec 22, 11:08 am, lucamen <epped...@gmail.com> wrote:
> Thanks Josh!! That really help me a lot and now everything is working
> properly!
>

> BTW Bruno (the Gilead main developer) wrote herehttp://sourceforge.net/projects/gilead/forums/forum/868076/topic/3484314

Richard Berger

unread,
Dec 25, 2009, 8:39:13 PM12/25/09
to Google Web Toolkit
Trevor:

Thank you for the post - it was a life saver. When I copied the java
files to my system, I had a compiler error at line 161 of
RPCCopy.java:
return RPCCopy_GWT16.invoke(target, serviceMethod, args,
serializationPolicy);
The error was:
The method invoke(Object, Method, Object[], SerializationPolicy) is
undefined for the type RPCCopy_GWT16.

Since I am on GWT2, I figured I could replace that line with
return null;

Seemed to work for me.

Thanks again for your work here!
RB

Trevor Skaife

unread,
Dec 28, 2009, 10:57:38 AM12/28/09
to Google Web Toolkit
RB,

That's odd you had an error at that line, though it probably is a
difference in the versions of Gilead we are using. The classes were
created using Gilead 1.2.3.823. But it's true if you are using GWT
2.0.0 that line of code would never see the light of day.

Trevor

Dan Billings

unread,
Jan 19, 2010, 9:27:16 AM1/19/10
to Google Web Toolkit
FYI

A guy on sourceforge apparently made some more changes because it
wasn't working for him.

http://sourceforge.net/projects/gilead/forums/forum/957377/topic/3493335

On Dec 28 2009, 9:57 am, Trevor Skaife <tska...@gmail.com> wrote:
> RB,
>
> That's odd you had an error at that line, though it probably is a

> difference in the versions ofGileadwe are using. The classes were
> created usingGilead1.2.3.823. But it's true if you are using GWT


> 2.0.0 that line of code would never see the light of day.
>
> Trevor
>
> On Dec 25, 7:39 pm, Richard Berger <richardlan...@gmail.com> wrote:
>
>
>
> > Trevor:
>
> > Thank you for the post - it was a life saver.  When I copied the java
> > files to my system, I had a compiler error at line 161 of
> > RPCCopy.java:
> > return RPCCopy_GWT16.invoke(target, serviceMethod, args,
> > serializationPolicy);
> > The error was:
> > The method invoke(Object, Method, Object[], SerializationPolicy) is
> > undefined for the type RPCCopy_GWT16.
>
> > Since I am on GWT2, I figured I could replace that line with
> > return null;
>
> > Seemed to work for me.
>
> > Thanks again for your work here!
> > RB
>
> > On Dec 23, 6:02 am, Trevor Skaife <tska...@gmail.com> wrote:
>
> > > I'm just glad to see people are able to use my fix for usinggilead
> > > with GWT 2.0.0
>
> > > On Dec 22, 11:08 am, lucamen <epped...@gmail.com> wrote:
>
> > > > Thanks Josh!! That really help me a lot and now everything is working
> > > > properly!
>

> > > > BTW Bruno (theGileadmain developer) wrote herehttp://sourceforge.net/projects/gilead/forums/forum/868076/topic/3484314


> > > > that a new release is coming "very" soon... so just wait and hope in a
> > > > stable version that works with gwt2.0
>
> > > > Thanks again and merry christmas! :-P
>
> > > > On 18 Dic, 22:53, Josh Martin <alodar...@gmail.com> wrote:
>
> > > > > What worked for me was to add the files Trevor specified to 'my'

> > > > > project, and not into the originalgileadsource directories.  You

John Ivens

unread,
Jan 19, 2010, 12:26:19 PM1/19/10
to google-we...@googlegroups.com
Anyone seen this error message?

[WARN] Exception while dispatching incoming RPC call

java.lang.NoSuchMethodError: net.sf.beanlib.hibernate.UnEnhancer.unenhanceClass(Ljava/lang/Class;)Ljava/lang/Class;

I am getting this using gilead with hibernate with GWT 2.0, and I suspect that I am having some library conflict... I cannot understand which library.  Could someone tell me what they have working under GWT 2.0, what all of the jars they include in the war file are...
 
This is my list:

temp.list

John Ivens

unread,
Jan 19, 2010, 12:28:31 PM1/19/10
to google-we...@googlegroups.com
Oops.. the list, easier to read..

adapter-core-1.2.3.823.jar

adapter4gwt-1.2.3.823.jar

antlr-2.7.6.jar

asm-3.2.jar

beanlib-3.3.0beta6.jar

beanlib-hibernate-3.3.0beta6.jar

beanlib-hibernate-5.0.2beta-bundle.jar

beanlib-hibernate-5.0.2beta.jar

cglib-2.2.jar

commons-collections-3.1.jar

commons-lang-2.4.jar

commons-logging-1.1.1.jar

dom4j-1.6.1.jar

hibernate-util-1.2.3.823.jar

hibernate3.jar

hsqldb.jar

javassist-3.4.GA.jar

jboss-serialization.jar

jta-1.1.jar

log4j-1.2.15.jar

mysql-connector-java-3.0.17-ga-bin.jar

slf4j-api-1.5.2.jar

slf4j-simple-1.5.2.jar

trove-2.0.4.jar

Trevor Skaife

unread,
Jan 20, 2010, 4:47:38 PM1/20/10
to Google Web Toolkit
my guess is that your issue has to do with the 2 versions you have of
some of the beanlib jars.

The ones I have are:
beanlib-5.0.2beta1.jar
beanlib-hibernate-5.0.2beta1.jar

> On Tue, Jan 19, 2010 at 10:26 AM, John Ivens <john.wagner.iv...@gmail.com>wrote:
>
>
>
> > Anyone seen this error message?
>
> > [WARN] Exception while dispatching incoming RPC call
>
> > java.lang.NoSuchMethodError:
> > net.sf.beanlib.hibernate.UnEnhancer.unenhanceClass(Ljava/lang/Class;)Ljava/ lang/Class;
> > I am getting this using gilead with hibernate with GWT 2.0, and I suspect
> > that I am having some library conflict... I cannot understand which
> > library.  Could someone tell me what they have working under GWT 2.0, what
> > all of the jars they include in the war file are...
>
> > This is my list:
>

> >> google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>

Rahul Gamit

unread,
Jul 31, 2012, 5:55:18 AM7/31/12
to google-we...@googlegroups.com
Hi,

The error was successfully solved by the jack you have suggested Trevor.

I am just trying to run the Sample Gilead Hibernate code given on google groups. Was getting the Parameter 0 error previously. But after putting the 2 files you have given, I was able to get rid of it. But now I get a new error and that says the following:

"500 The call failed on the server; see server log for details"

Can you please suggest me the way out for this error.

Thanks,
Rahul

> >> To post to this group, send email to google-web-toolkit@googlegroups.com.


> >> To unsubscribe from this group, send email to

> >> google-web-toolkit+unsub...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>

Reply all
Reply to author
Forward
0 new messages