As a follow up, something between the Dec 17th build and the Jan 6
build has broken the GWT version.  I have the same project using the
JARs from the serialization example
(http://wiki.restlet.org/docs_2.0/13-restlet/181-restlet/303-restlet.html)
in Eclipse and the project will compile via GWT.  If I remove those
libraries and replace them with latest snapshot from Jan 06, add in
the inherits for XML and JSON, then it breaks with the errors below.

Any ideas?

On Wed, Jan 6, 2010 at 2:02 PM, Valdis Rigdon <[email protected]> wrote:
> I'm puttting together a sample project too, but I'm hitting the same
> issues using the snapshot downloaded from today (Jan 06, 2010).
>
> I've basically done nothing much more than create a default GWT web
> application from the GWT Eclipse wizard and then start moving in the
> pieces from the serialization example from the wiki.
>
> [ERROR] Errors in
> 'jar:file:/home/vrigdon/lib/restlet-gwt-2.0snapshot-01-06-10/lib/org.restlet.jar!/org/restlet/client/util/ServiceList.java'
>         [ERROR] Line 66: The method
> isAssignableFrom(Class<capture#1-of ? extends Service>) is undefined
> for the type Class<T>
>         [ERROR] Line 104: The method
> isAssignableFrom(Class<capture#3-of ? extends Service>) is undefined
> for the type Class<capture#2-of ? extends Service>
>      [ERROR] Errors in
> 'jar:file:/home/vrigdon/lib/restlet-gwt-2.0snapshot-01-06-10/lib/org.restlet.jar!/org/restlet/client/engine/io/TraceInputStream.java'
>         [ERROR] Line 42: No source code is available for type
> java.io.FilterInputStream; did you forget to inherit a required
> module?
>         [ERROR] Line 59: The method write(int) is undefined for the
> type PrintStream
>         [ERROR] Line 71: The method write(byte[], int, int) is
> undefined for the type PrintStream
>         [ERROR] Line 84: The method write(byte[], int, int) is
> undefined for the type PrintStream
>      [ERROR] Errors in
> 'jar:file:/home/vrigdon/lib/restlet-gwt-2.0snapshot-01-06-10/lib/org.restlet.jar!/org/restlet/client/engine/io/TraceOutputStream.java'
>         [ERROR] Line 55: The method flush() of type TraceOutputStream
> must override or implement a supertype method
>         [ERROR] Line 56: The method flush() is undefined for the type
> FilterOutputStream
>         [ERROR] Line 59: The method flush() is undefined for the type
> PrintStream
>         [ERROR] Line 64: The method write(int) of type
> TraceOutputStream must override or implement a supertype method
>         [ERROR] Line 65: The method write(int) is undefined for the
> type FilterOutputStream
>         [ERROR] Line 68: The method write(int) is undefined for the
> type PrintStream
>
>
>
> On Tue, Jan 5, 2010 at 5:39 PM, Jerome Louvel <[email protected]> 
> wrote:
>> Hi,
>>
>> The Javascript is generated by GWT directly, so it could be a GWT
>> issue, but we would first like to reproduce your issue. Could you
>> enter a bug report in our issue tracker and attach a simple project
>> reproducing the issue?
>> http://www.restlet.org/community/issues
>>
>> Best regards,
>> Jerome Louvel
>> --
>> Restlet ~ Founder and Lead developer ~ http://www.restlet.org
>> Noelios Technologies ~ Co-founder ~ http://www.noelios.com
>>
>>
>> 2010/1/4  <[email protected]>:
>>> Thanks for your response.
>>>
>>> I've used the latest build and I still have the same problem.
>>>
>>> So here's what I have found, the code fails in JavaScript with this call.
>>>
>>> eval("{\"ca.sqm.gwt.client.tabs.websitea.TestCase\":{\"firstName\":\"Daly\",\"lastName\":\"Kevin\",\"age\":41}}")
>>>
>>> If I try to run this code in firebug on the command line it fails. What is 
>>> needed to run it is a "(" at the start and a ")" at the end of the string, 
>>> then the eval works.
>>>
>>> Where is this eval generated, is it something that GWT builds or is there a 
>>> generator registered in the Resteasy client library.
>>>
>>> ------------------------------------------------------
>>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434736
>>>
>>
>> ------------------------------------------------------
>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2435033
>>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2435478

Reply via email to