Compile error in gwt-sample-mobile project.

168 views
Skip to first unread message

Robert M.

unread,
Dec 7, 2014, 1:07:59 PM12/7/14
to gwt-pl...@googlegroups.com
Hi,
i'd like to use PhoneGap with GWTP to get access to a server by the server url. For this i have downloaded the GWTP-samples from https://github.com/ArcBees/GWTP-Samples  and built the gwt-sample-mobile project following the instructions on https://github.com/ArcBees/GWTP-Samples/tree/master/gwtp-samples/gwtp-sample-mobile.
Compiling the project with mvn clean install -Pphonegap-local (and -remote) throws the following error:

[ERROR] Error injecting @com.gwtplatform.dispatch.rpc.client.RpcBinding() com.gwtplatform.dispatch.client.ExceptionHandler: Unable to create or inherit binding: No implementation bound for '@com.gwtplatform.dispatch.rpc.client.RpcBinding() com.gwtplatform.dispatch.client.ExceptionHandler' and an implicit binding cannot be created because the type is annotated.
[INFO]   Path to required node:
[INFO] com.gwtplatform.dispatch.rpc.client.RpcDispatchCallFactory [com.gwtplatform.dispatch.rpc.client.gin.PhoneGapDispatchAsyncModule.configure(PhoneGapDispatchAsyncModule.java:37)]
[INFO]  -> com.gwtplatform.dispatch.rpc.client.DefaultRpcDispatchCallFactory [com.gwtplatform.dispatch.rpc.client.gin.PhoneGapDispatchAsyncModule.configure(PhoneGapDispatchAsyncModule.java:37)]
[INFO]  -> @com.gwtplatform.dispatch.rpc.client.RpcBinding() com.gwtplatform.dispatch.client.ExceptionHandler [@Inject constructor of com.gwtplatform.dispatch.rpc.client.DefaultRpcDispatchCallFactory]


Compiling the project with mvn install and afterwards with mvn install -Pphonegap-remote compiles but i get no access to the server.  I have changed the url in DispatchServletModule, in the line  bindConstant().annotatedWith(ServiceUrl.class).to("http://crawlservice.appspot.com/"); to "http://192.168.1.156:8888".


Thanks in advance for help.

Robert

Maxime Mériouma-Caron

unread,
Dec 10, 2014, 1:53:19 PM12/10/14
to gwt-pl...@googlegroups.com
Thanks for reporting this. There's problem in PhoneGapDispatchAsyncModule in GWTP. I am writing a fix and will submit it today and update the sample

Maxime Mériouma-Caron

unread,
Dec 10, 2014, 1:56:32 PM12/10/14
to gwt-pl...@googlegroups.com
Also the line you want to change for the server is in PhoneGapRemoteModule where it binds RemoteServerUrl. ServiceUrl is related to the crawler-servce


On Sunday, December 7, 2014 1:07:59 PM UTC-5, Robert M. wrote:

Robert M.

unread,
Dec 14, 2014, 11:26:23 AM12/14/14
to gwt-pl...@googlegroups.com
Hi,
id did a new git clone from the samples today and built the get-samples-mobile again, but the compile error is the same.

Could you check that, please?

Thank you
Robert

Maxime Mériouma-Caron

unread,
Dec 14, 2014, 2:24:47 PM12/14/14
to gwt-pl...@googlegroups.com
Sorry about that, I opened the PR but didn't actually merge it. Just merged it so you should be good now

Robert M.

unread,
Dec 16, 2014, 4:52:45 AM12/16/14
to gwt-pl...@googlegroups.com
Hi,
id did a new git clone again in the same way before, but the compile error is the same.
I can see now current changes in the git repo of gwt-samples-mobile. What are the changes? Could you give some special instructions and i do it in my local git clone?

Thank you
Robert

Maxime Mériouma-Caron

unread,
Jan 8, 2015, 12:45:44 AM1/8/15
to gwt-pl...@googlegroups.com
Have you tried "git pull origin"?

Richard Wallis

unread,
Jan 8, 2015, 1:05:25 AM1/8/15
to gwt-pl...@googlegroups.com
Not sure if this is the compile problem but the gae home variable was incorrect after updating to appengine 1.9.17:

PR with fix: https://github.com/ArcBees/GWTP-Samples/pull/61

--
You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert M.

unread,
Feb 2, 2015, 6:17:51 AM2/2/15
to gwt-pl...@googlegroups.com, christian...@arcbees.com
Hi,
today i have synchronized with the repo and now the application can be built by mvn clean install -Pphonegap-remote (and -local).
In Chrome, on my local machine and on smartphone device, the url http://gwtp-sample-mobile.appspot.com/ works. ("All Products" are listed by the async RPC call)
On my Galaxy S4 the deployed gwtp-sample-mobile project as a phonegap app does not work. A tap on the "All Products" button shows "Loading Error".

Can anybody help me please?
Thanks
Robert


Am Sonntag, 7. Dezember 2014 19:07:59 UTC+1 schrieb Robert M.:
Reply all
Reply to author
Forward
0 new messages