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 <[email protected]> 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, "[email protected]" <[email protected]>
> 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 <[email protected]> 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 <[email protected]> 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
--
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.