Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile atmosphere module in GWT2.7 #169

Closed
kasas opened this issue Jan 16, 2015 · 9 comments
Closed

Can't compile atmosphere module in GWT2.7 #169

kasas opened this issue Jan 16, 2015 · 9 comments

Comments

@kasas
Copy link

kasas commented Jan 16, 2015

Hi guys,

I have upgraded atmosphere to the new version of GWT, however when I try to compile it throws this error:

Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[ERROR] Errors in 'org/atmosphere/gwt20/client/AutoBeanClientSerializer.java'
[ERROR] Line 85: Only class literals may be used as arguments to GWT.create()
Unification traversed 36046 fields and methods and 2940 types. 2896 are considered part of the current module and 2896 had all of their fields and methods traversed.
[ERROR] Compiler returned false

Any help? I've been looking for the error but I haven't found anything yet

Cheers

@jfarcand
Copy link
Member

@kasas
Copy link
Author

kasas commented Jan 26, 2015

I am using this branch, the problem came when I use this code:

        AutoBeanClientSerializer json_serializer = new AutoBeanClientSerializer();
        json_serializer.registerBeanFactory(beanFactory,
                IAtmosphereMessage.class);

when connecting to Atmosphere. It did work in other versions, I don't kwno why it is not working in the new version. The error keep saying:

[ERROR] Errors in 'org/atmosphere/gwt20/client/AutoBeanClientSerializer.java'
[ERROR] Line 85: Only class literals may be used as arguments to GWT.create()

@michaelwiles
Copy link

Same with me... can't see how we can get around this as as far as I understand it's a GWT limitation.

I suspect the solution is to remove the method altogether. It is not mandatory as it is a utility method (it simply calls the "other" method).

@kasas
Copy link
Author

kasas commented Mar 9, 2015

At the end it was a problem with the interface I implemented. Be sure to put all get and set methods.

@jfarcand
Copy link
Member

jfarcand commented Mar 9, 2015

@kasas @michaelwiles OK so please confirm everything is properly working. I will cut an official release this week.

@kasas
Copy link
Author

kasas commented Mar 9, 2015

I am using atmosphere in my project without any trouble using the last version. However it would be great that de GWT module incorporates the js files in order to have everything together like in other modules.

@jfarcand
Copy link
Member

jfarcand commented Mar 9, 2015

@kasas Contribution welcomed :-)

@kasas
Copy link
Author

kasas commented Mar 9, 2015

@jfarcand when I have time I'll try to contribute ;)

@rabbitfr
Copy link

Still not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants