sabihi / gwt-phonegap

Automatically exported from code.google.com/p/gwt-phonegap
0 stars 0 forks source link

PhonegapUtil does not work in the host mode #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.PhonegapUtil.prepareService(..)
2.Run the project in Eclipse as a GWT web application 
3.Then got [ERROR] - Deferred binding result type 
'com.googlecode.gwtphonegap.client.util.PhonegapUtilImpl' should not be abstract

What is the expected output? What do you see instead?
The method should get called. 

What version of the product are you using? On what operating system?
1.7.0.0 and  Chrome on Mac (laptop)

Please provide any additional information below.

It's seems that the process of rebinding gets some problems. I checked the 
property provider defined in the PhoneGap.gwt.mxl and had not found any 
problems.

Original issue reported on code.google.com by tom.x.fi...@gmail.com on 20 May 2012 at 8:23

GoogleCodeExporter commented 8 years ago
so far I can not reproduce. Can you post your gwt.xml?

Original comment by kurka.da...@gmail.com on 20 May 2012 at 8:38

GoogleCodeExporter commented 8 years ago
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.0.3//EN" 
"http://google-web-toolkit.googlecode.com/svn/tags/2.0.3/distro-source/core/src/
gwt-module.dtd">
<module rename-to="hub">

    <inherits name="com.google.gwt.user.User" />
    <inherits name="com.google.gwt.activity.Activity" />
    <inherits name="com.googlecode.mgwt.MGWT" />
    <inherits name="com.googlecode.mgwt.linker.Linker" />
    <inherits name="com.googlecode.gwtphonegap.PhoneGap"/>

    <!-- set the user agent to safari -> only webkit -->
    <set-property name="user.agent" value="safari" />

    <!-- here you can set mgwt.os to a specific platform -->
    <!-- <set-property name="mgwt.os" value="android" /> -->

    <!-- here you can turn off css obfuscation -->
    <!--<set-configuration-property name="mgwt.css" value="pretty" /> -->

    <set-property name="gwt.logging.enabled" value="FALSE"/> 

    <add-linker name="permutationmaplinker" />

    <extend-configuration-property name="html5manifestlinker_files"
        value="./" />
    <extend-configuration-property name="html5manifestlinker_files"
        value="index.html" />
    <extend-configuration-property name="html5manifestlinker_files"
        value="logo.png" />

    <inherits name="com.wegogo.data.Collector" />
    <entry-point class="com.wegogo.network.hub.client.DataHub" />

    <source path="client" />
    <source path="share" />
    <source path="dao" />
</module>

Original comment by tom.x.fi...@gmail.com on 20 May 2012 at 9:17

GoogleCodeExporter commented 8 years ago
your gwt xml file looks fine.

is this a permanent error for you?

Original comment by kurka.da...@gmail.com on 20 May 2012 at 9:20

GoogleCodeExporter commented 8 years ago
there was a possible edge case if the property provider was not run at all 
where the current binding may have resulted in a non binding.

can you retry with trunk?

https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=com
.googlecode.gwtphonegap&a=gwtphonegap&e=jar&v=LATEST

Original comment by kurka.da...@gmail.com on 20 May 2012 at 9:38

GoogleCodeExporter commented 8 years ago

It's gone now :) 

I'd tried  a couple of ways such as cleaning any compiled classes and generated 
resources and even restarting Eclipse. Don't know which one worked.

Thanks a lot and  I'll try the snapshot version if the problem comes out again.

Original comment by tom.x.fi...@gmail.com on 20 May 2012 at 9:43

GoogleCodeExporter commented 8 years ago
if this comes back post here and I will reopen...

Original comment by kurka.da...@gmail.com on 20 May 2012 at 9:46