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 On Thursday, 21 January 2010 03:17:38 UTC+5:30, Trevor Skaife wrote: > > 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 Jan 19, 11:28 am, John Ivens <john.wagner.iv...@gmail.com> wrote: > > 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 > > > > 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: > > > > > On Tue, Jan 19, 2010 at 7:27 AM, Dan Billings <debil...@gmail.com> > wrote: > > > > >> 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 > > >> > > > > > 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 usegileadanyway). > > > > >> > > > > > I, too, thought he meant to put them in the originalgilead > > >> > > > > > 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! > > > > >> > > > > > > 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.x > > >> ml > > >> > > > > > > [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 withGilead? > > > > >> > > > > > > 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. > > > > >> > > > > > > > > > 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: > > > > >> > > > > > > > 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. > > > > >> -- > > >> 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<google-web-toolkit%2Bunsubs > > >> > cr...@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 view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9VFMJnkFLEcJ. 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.