GWTEventService client failed to create listener - gwt

I am trying to run the hellogwteventservice shipped with the GWTEventService 2.1.0 and GWT 2.6. I imported the code into the eclipse so that I can run through Eclipse GWT plugin.
However on the Client module when following line called the exception is thrown and I get error stating failed initialized GWTServiceEvent.
theRemoteEventService.addListener(ServerGeneratedMessageEvent.SERVER_MESSAGE_DOMAIN,
new RemoteEventListener() {
public void apply(Event anEvent) {
}
});

Isn't the latest release of GWT 2.5 ?
In any case the latest release of GWTEventService is 2.1.0 as you mentioned. However this uses an older gwt-servlet-2.1 that is incompatable with the one gwt uses gwt-servlet-2.5. So you have 2 options:
1) Go back to GWT 2.1 (not recommened)
2) Build the latest version of GWTEventService as they have included GWT 2.5 support in the latest sources.
Note: adding the error thrown by your IDE might help to further specify the problem

Related

error Rebind result 'com.googlecode.mgwt.ui.client.widget.animation.AnimatableDisplay' must be a class in mgwt 2.0 libary

I build application in gwt.
I use gwt 2.5.1 sdk and mgwtphonegap 2.4 libary and mgwt 1.1.2 libary
and now I decided to upgrade the gwt sdk to 2.7 and mgwtphonegap to 3.5 and mgwt to 2.0
and now I get error when I During Compilation.
the row that cause the error.
AnimatableDisplay display = GWT.create(AnimatableDisplay.class);
the error:
Rebind result 'com.googlecode.mgwt.ui.client.widget.animation.AnimatableDisplay' must be a class
how I can to resolve the problem
thank you everyone
From mgwt group
Animations changed on create PhoneDisplay:
//AnimatableDisplay display = GWT.create(AnimatableDisplay.class); //mgwt 1.2.
AnimationWidget display = new AnimationWidget(); //mgwt 2.0

Migrating GWT 1.7 to GWT 2.4

I am trying to upgrade GWT from 1.7 to GWT 2.4 but I get build errors saying
Errors in 'jar:file:/C:/src/project/lib/gxt.jar!/com/extjs/gxt/ui/client/widget/Component.java'
[ERROR] Line 1280: Cannot reduce the visibility of the inherited method from Widget
Should I change the gxt version as well? I tried to change gxt to 2.2.5 and 2.2.6 but it doesn't work.
Yes, you do need to upgrade GXT. GXT 2.2.4+ should work. Check the release notes; they say GWT 2.3 support is introduced in GXT version 2.2.4.
http://dev.sencha.com/deploy/gxt-2.2.4/release_notes.html#Release_2.2.4
They also answer this in the forums.
http://www.sencha.com/forum/showthread.php?146796-GWT-2.4-compatibility

Using AspectJ/AJDT in RAD 7.5.5

I'm using RAD 7.5.5. I installed AJDT plugin from the download site:
http://archive.eclipse.org/tools/ajdt/34/update/
I converted one of the existing Java projects to an AspectJ project, added an aspect to print log statements on method start and end of a methodA(), rebuilt the project and deployed.
I'm getting the below exception when methodA() is called:
Exception thrown : java.lang.NoSuchMethodError: org/aspectj/runtime/reflect/Factory.makeMethodSig(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/aspectj/lang/reflect/MethodSignature;
I googled and found this could be caused because of an older version of aspectjrt.jar. But RAD extends Eclipse 3.4 and hence I added the version of AJDT plugin that is compatible with Eclipse 3.4 (/RAD 7.5.5). Any pointers to what could be the problem?
Make sure that aspectjrt.jar is on your classpath. Also, make sure that it is the aspectjrt.jar that comes with AJDT.

Bug? GXT (Ext GWT) Compiles in 'devmode' target but not for 'build'

I'm working on a GXT project, and I'm using GXT UiBinder. I'm compiling with ant. The target devmode works fine with no errors, and I'm able to see my application running in the browser. But using the target build I get the following error:
[ERROR] Errors in 'jar:file:/home/webbtra/dev/rail_gxt/gxt-2.2.3/gxt.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java'
[ERROR] Internal compiler error
java.lang.IncompatibleClassChangeError: Found class com.google.gwt.core.ext.typeinfo.JClassType, but interface was expected
I'm using these versions, which I've read that they should be compatible:
GWT Version: 2.1.1 (also tried 2.2.0 and 2.0.4 with same result)
GXT Version: 2.2.3
Compilation will work if I remove <inherits name="com.jhickman.web.gwt.gxtuibinder.GxtUiBinder" /> from my module file, and use only GWT components. But again, it's strange that it works fine in devmode. Any help is appreciated.
-tjw
Figured it out. Even though GXT 2.2.3 claims to be compatible with GWT 2.2, it isn't. I reverted back to GXT 2.2.1 and GWT 2.0.4 and it works perfectly.
I just got the exact same error message you posted (even without using GxtUiBinder!), but I accidentally had set my GWT SDK to 2.1.1 (in Eclipse). I'm using "gxt-2.2.3-gwt22.jar", so this obviously cannot work.
Switching the GWT SDK to 2.2.0 solved the problem. So it seems, that GXT 2.2.3 + GWT 2.2.0 work together just fine.
If you'd like to try it again, make sure, that you don't just change the GWT library, but really switch the GWT SDK. (eg in Eclipse: Project > Properties > Google > Web Toolkit > Use specific SDK)
I'm managed to have them compiling together (gwt 2.2 + GXT 2.2.3) , but GWT Designer (Window Builder too) started throwing exceptions while parsing code. Without GXT - everything is fine. Becouse of Designer bug, i'm forced to downgrade GWT.

Error updating jars with Eclipse GWT 2.0 plugin

Ever since updating our project to the newest version of the Eclipse GWT plugin and GWT 2.0 we get an error when starting Eclipse.
This is the error message:
An internal error occurred during:
"Updating project/war/WEB-INF/lib with
jars from GWT - 2.0.0".
Here is the exception message:
java.lang.IllegalArgumentException:
Attempted to beginRule: R/, does not
match outer scope rule: P/project
Everything works just fine, I just get this error when Eclipse starts up. I've done everything I can think of to fix it, but it still happens.
Any ideas? Is anyone else getting this error?
This was seen when, for instance, using a too old version of subclipse (see this thread, and bug 129045 or bug 128709)
This is linked to a change in the ISchedulingRule modifyRule(IResource resource) of the Resources component.
So are you using a compatible version of eclipse (i.e 3.5x) with GWT2.0?