Silvio127 / gwt-comet

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

NoSuchMethodError on Comet 1.2.0 and GWT 2.1.0.RC1 #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running some GWT project in hosted mode with comet support

What version of the product are you using? On what operating system?
Comet 1.2.0 and GWT 2.1.0.RC1 on Fedora 12.

Please provide any additional information below.
Caused by: java.lang.NoSuchMethodError: 
com.google.gwt.user.rebind.rpc.TypeSerializerCreator.(Lcom/google/gwt/core/ext/T
reeLogger;Lcom/google/gwt/user/rebind/rpc/SerializableTypeOracle;Lcom/google/gwt
/user/rebind/rpc/SerializableTypeOracle;Lcom/google/gwt/core/ext/GeneratorContex
t;Ljava/lang/String;)V at 
net.zschech.gwt.comet.rebind.CometSerializerGenerator.generate(CometSerializerGe
nerator.java:114) at 
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGenerator
Context.java:427) at 
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:39) at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindO
racle.java:115) at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOrac
le.java:58) at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:1
61) at 
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:1
24) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:586) at 
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:456) at 
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) ... 18 
more 

Original issue reported on code.google.com by michal.c...@gmail.com on 20 Oct 2010 at 12:28

GoogleCodeExporter commented 9 years ago
Below is a patch that seemed to work for us. Caveat: I don't claim to 
understand all of what is going on here, so use at your own risk. This was 
produced by several iterations of looking at the compiler output and pushing 
reasonable fixes back upstream.

Replace line 114, which currently reads:
    TypeSerializerCreator tsc = new TypeSerializerCreator(logger, typesSentFromBrowser, typesSentToBrowser, context, "comet." + typeName.replace('.', '_') + "Serializer");

with this:
    final String modifiedTypeName = typeName.replace('.', '_');
    TypeSerializerCreator tsc = new TypeSerializerCreator(logger,
            typesSentFromBrowser, typesSentToBrowser, context,
            "comet." + modifiedTypeName, modifiedTypeName);

Original comment by v...@outfitr.com on 2 Nov 2010 at 10:52

GoogleCodeExporter commented 9 years ago
#1, this worked for me. Thanks.

Original comment by r.g.sieb...@gmail.com on 3 Nov 2010 at 9:04

GoogleCodeExporter commented 9 years ago
Here's the new jar-file I applied the above patch to.

Original comment by r.g.sieb...@gmail.com on 3 Nov 2010 at 9:07

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 10 has been merged into this issue.

Original comment by rich...@zschech.net on 7 Nov 2010 at 1:34

GoogleCodeExporter commented 9 years ago

Original comment by rich...@zschech.net on 9 Nov 2010 at 1:41

GoogleCodeExporter commented 9 years ago
#1 is correct. I've create a new release 1.2.1

Original comment by rich...@zschech.net on 9 Nov 2010 at 3:34