Problem to migrate requestfactory 2.3 to 2.4

115 views
Skip to first unread message

Geoffray

unread,
Sep 14, 2011, 4:27:44 AM9/14/11
to Google Web Toolkit
Good morning everyone,

i'm trying to figure out how to migrate requestfactory 2.3 to 2.4 but
I still have the same problem : java.lang.RuntimeException: The
RequestFactory ValidationTool must be run for the
com.airfrance.cappla.client.service.factory.AppRequestFactory
RequestFactory type

Actually, in order to solve my problem I tried to do what was
explained in this tutorial : http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation,
but it still doesn't work :(

Does anyone have the same problem ??
Does anyone have solve it ??

Thank you for your help.

Geoffray.

kim young ill

unread,
Sep 14, 2011, 6:38:37 AM9/14/11
to google-we...@googlegroups.com
i have other prob. updating from 2.3 to 2.4 with request-factory

 java.lang.ArrayIndexOutOfBoundsException: 1
[ERROR]     at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:425)
[ERROR]     at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:217)
[ERROR]     at com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:125)
[ERROR]     at com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:118)
[ERROR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
[ERROR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)






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


Ashwin Desikan

unread,
Sep 14, 2011, 7:08:11 AM9/14/11
to google-we...@googlegroups.com
I had the same error as you had, but was able to fix the issue following the instructions provided in wiki.  I use and eclipse based configuration. Post recompiling my project and ensuring my project refers to the correct version of gwt 2.4.0, i was able to successfully load my app

~Ashwin

Thomas Broyer

unread,
Sep 14, 2011, 7:54:23 AM9/14/11
to google-we...@googlegroups.com
What did you do exactly?
Do you have a com.airfrance.cappla.client.service.factory.AppRequestFactoryDeobfuscatorBuilder class in what you deploy on the server? This is what the requestfactory-apt.jar annotation processor and/or ValidationTool generate, that RequestFactory looks for, and which generates this error when it's not found.

Thomas Broyer

unread,
Sep 14, 2011, 8:00:09 AM9/14/11
to google-we...@googlegroups.com
Line 425 in the version included in 2.4.0 cannot throw an ArrayIndexOutOfBounds: http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/user/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java#425
Are you sure you deployed the correct version of gwt-servlet.jar or requestfactory-server.jar?
It looks like you might still be using 2.3.0 on the server: http://code.google.com/p/google-web-toolkit/source/browse/tags/2.3.0/user/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java#425 (even though the error should be line 426 there)

RickL

unread,
Sep 15, 2011, 12:33:25 PM9/15/11
to Google Web Toolkit
Good Morning,

Any luck with this? I am having the exact same problem with the
expenses sample app (I refreshed it from the repository yesterday). I
have been trying to get past this for days. I can manually validate
the expenses request factory class with:

java -cp \
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/classes:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/appengine-api-1.0-sdk-1.5.4.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/validation-api-1.0.0.GA.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/persistence-api-1.0.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/transaction-api-1.1.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/jdo2-api-2.3-eb.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/gwt-servlet-2.4.0.jar\
com.google.web.bindery.requestfactory.apt.ValidationTool \
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/
WEB-INF/classes \
com.google.gwt.sample.expenses.shared.ExpensesRequestFactory

I *suspect* the problem may be with my run configuration, which has
program arguments of:

-war /rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT
-startupUrl Expenses.html
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -
codeServerPort 9997 -port 8888
-server com.google.appengine.tools.development.gwt.AppEngineLauncher
com.google.gwt.sample.expenses.Expenses
com.google.gwt.sample.expenses.LoadExpensesDB
com.google.gwt.sample.expenses.ExpensesMobile

The LoadExpensesDB module works fine, but it uses RPC not the request
factory.

Thanks,

Rick

On Sep 14, 3:27 am, Geoffray <geoffray.gr...@gmail.com> wrote:
> Good morning everyone,
>
> i'm trying to figure out how to migrate requestfactory 2.3 to 2.4 but
> I still have the same problem : java.lang.RuntimeException: The
> RequestFactory ValidationTool must be run for the
> com.airfrance.cappla.client.service.factory.AppRequestFactory
> RequestFactory type
>
> Actually, in order to solve my problem I tried to do what was
> explained in this tutorial :http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterf...,

Geoffray

unread,
Sep 22, 2011, 2:37:26 AM9/22/11
to Google Web Toolkit
Thank you Thomas for your answer,

actually I've found where the problem was : I had not remove the
previous annotation @service the requestContext interface.

We only have to use the new one @serviceName.

Have a good day.

Geoffray

On 14 sep, 14:00, Thomas Broyer <t.bro...@gmail.com> wrote:
> Line 425 in the version included in 2.4.0 cannot throw an
> ArrayIndexOutOfBounds:http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/...
> Are you sure you deployed the correct version of gwt-servlet.jar or
> requestfactory-server.jar?
> It looks like you might still be using 2.3.0 on the server:http://code.google.com/p/google-web-toolkit/source/browse/tags/2.3.0/...(even
Reply all
Reply to author
Forward
0 new messages