Now if I want to make the rpc call the "onFailureMethod" is invoked and the error message:
"unable to initiate the asynchronous service invocation -- check the network connection" What could be wrong here? On 1 Dez., 17:14, Eric Ayers <[email protected]> wrote: > This may be a conflict between different versions of xerces, because this > part of the code is creating a new XML document. You should be using the > -noredist.jar file, and expecting to resolve xerces in your GWT build. Are > you explicitly including xerces in your build classpath? > > It may help to checkout the gwt-gadgets project from code and build a fresh > .jar along with the version of GWT and xerces you are using. > > > > On Tue, Dec 1, 2009 at 10:37 AM, flokay <[email protected]> wrote: > > OK thanks! > > > So I have made it with RPC now and in hosted mode, it works well > > again! > > But if I want to change it in a gadget the compiler writes the > > following error message: > > > Compiling module > > com.google.gwt.sample.cnsnews_rpc_gadget.CADENASNews_RPC_Gadget > > Computing all possible rebind results for > > 'com.google.gwt.sample.cnsnews_rpc_gadget.client.CADENASNews_RPC_Gadget' > > Rebinding > > com.google.gwt.sample.cnsnews_rpc_gadget.client.CADENASNews_RPC_Gadget > > Invoking <generate-with > > class='com.google.gwt.gadgets.rebind.GadgetGenerator'/> > > [ERROR] Generator > > 'com.google.gwt.gadgets.rebind.GadgetGenerator' threw threw an > > exception while rebinding > > 'com.google.gwt.sample.cnsnews_rpc_gadget.client.CADENASNews_RPC_Gadget' > > java.lang.NullPointerException > > at > > com.google.gwt.gadgets.rebind.GadgetGenerator.generateGadgetManifest > > (GadgetGenerator.java:274) > > at com.google.gwt.gadgets.rebind.GadgetGenerator.generate > > (GadgetGenerator.java:142) > > at com.google.gwt.dev.cfg.RuleGenerateWith.realize > > (RuleGenerateWith.java:49) > > at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind > > (StandardRebindOracle.java:113) > > at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind > > (StandardRebindOracle.java:62) > > at com.google.gwt.dev.shell.StandardRebindOracle.rebind > > (StandardRebindOracle.java:172) > > at com.google.gwt.dev.shell.StandardRebindOracle.rebind > > (StandardRebindOracle.java:161) > > at com.google.gwt.dev.Precompile > > $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers > > (Precompile.java:204) > > at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile > > (JavaToJavaScriptCompiler.java:250) > > at com.google.gwt.dev.Precompile.precompile(Precompile.java:300) > > at com.google.gwt.dev.Compiler.run(Compiler.java:170) > > at com.google.gwt.dev.Compiler$1.run(Compiler.java:124) > > at > > com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: > > 88) > > at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger > > (CompileTaskRunner.java:82) > > at com.google.gwt.dev.Compiler.main(Compiler.java:131) > > > I'm already using the gwt-gadgets-noredist.jar file! > > Any suggestions? > > > On 30 Nov., 17:52, Eric Ayers <[email protected]> wrote: > > > See the Gadget RPC example in the gwt-google-apis project for how to set > > > the proxy in request builder. > > > >http://code.google.com/p/gwt-google-apis > > > > On Mon, Nov 30, 2009 at 10:17 AM, flokay <[email protected]> wrote: > > > > Hi, > > > > > I've got an issue with my Google Gadget: > > > > - I'm trying to read an XML file via RequestBuilder and show it in the > > > > gadget (only for testing purpose) > > > > - If I try it in hosted mode with "onModuleLoad()" method and so on, > > > > it works well > > > > - But if i add it to iGoogle the string variable of response.getText() > > > > is empty in Firefox and in IE there appears the following message: > > > > "...url.. is invalid or violates the same-origin security restriction" > > > > - My XML file from which should be read is exactly in the same > > > > directory as my gadget XML file, so there actually couldn't be a same- > > > > origin security restriction. > > > > > - I'm using GWT 1.7.1! > > > > > I've tried to fix this since over a week now and I don't know what > > > > else to do! > > > > Could anbody help me? > > > > > Best regards, > > > > > flokay > > > > > -- > > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Google Web Toolkit" group. > > > > To post to this group, send email to > > [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > -- > > > Eric Z. Ayers > > > Google Web Toolkit, Atlanta, GA USA > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-web-toolkit%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Eric Z. Ayers > Google Web Toolkit, Atlanta, GA USA -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
