I recommend using the @RemoteServiceRelativePath annotation to define the relative service path of your services, I think this makes unnecessary the call to ( (ServiceDefTarget) SERVICE ).setServiceEntryPoint ( GWT.getModuleBaseURL() + "/PartsService" );
Hope that helps, Salvador On May 4, 3:56 pm, Evan Ruff <[email protected]> wrote: > Well I'm just about fresh out of ideas on this one. > > I've tried moving EVERYTHING around in this project but still get this > same Javascript error the first time I attempt to access my service. > > Does anyone have any tips? > > Thanks again, > > E > > On Apr 28, 3:04 pm, Evan Ruff <[email protected]> wrote: > > > Man, I am really stuck on this one. I've tried changing the scope of > > the service and the instantiation order of a bunch of stuff, but can't > > seem to shake this issue. > > > Does anyone have any other idea? > > > It's really odd that I'm getting this JS error when I'm not even > > breaking into the JNSI. > > > Thanks! > > > Evan > > > On Apr 27, 7:15 pm,Evan Ruff<[email protected]> wrote: > > > > Hey guys, > > > > I've got a data manager class set up like this: > > > > public class PartManager > > > { > > > public static final PartManager INSTANCE = new PartManager(); > > > private static final PartsServiceAsync SERVICE = GWT.create > > > ( PartsService.class ); > > > > static > > > { > > > ( (ServiceDefTarget) SERVICE ).setServiceEntryPoint > > > ( GWT.getModuleBaseURL() + "/PartsService" ); > > > } > > > > private PartManager() > > > { > > > } > > > > public void doPartSearch( String queryString, final > > > PagingLoadConfig > > > config, final AsyncCallback<Part> searchCallback ) > > > { > > > SERVICE.doPartSearch( queryString, config, searchCallback > > > ); > > > } > > > > } > > > > In Hosted mode everything works as expected. When I go to web mode I > > > get an "onUncaughtException" error that says: > > > > (TypeError): this$static is undefined > > > fileName:http://localhost:8888/com.hs.fga.app.Application/634EC7CAAF7205EE4C56... > > > lineNumber: 25463 > > > stack: $createStreamWriter((void 0))@http://localhost:8888/ > > > com.hs.fga.app.Application > > > ... > > > ... > > > > and line 25463 is: > > > > clientSerializationStreamWriter = $ClientSerializationStreamWriter(new > > > ClientSerializationStreamWriter(), this$static.serializer, this > > > $static.moduleBaseURL, this$static.serializationPolicyName); > > > > The weird thing is that this happens ONLY the first time I attempt to > > > access the service. Every subsequent time after that the service runs > > > without issue, reaching the server and returning as usual. > > > > This is really pretty frustrating. Can anyone recommend something else > > > to try? Any clues to why this is happening? > > > > Thanks a ton, I'm about at the end of my rope!! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
