Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • fatzopilot
    replied
    > So you were able to fix the message about duplicate DataSource IDs?
    No, the duplicate DataSource ID warning is still there. I did not try any further so far as it does not seem to cause any problems (I hope).

    Leave a comment:


  • Isomorphic
    replied
    There is a difficult to fix issue in the framework causing the message about IAutoFitButton, this is not due to your code. So you were able to fix the message about duplicate DataSource IDs?

    Leave a comment:


  • fatzopilot
    replied
    Hi,

    I am getting this in dev mode (latest nightlies) too (afaics for all DS).
    [ERROR] [com.myCompany.myApp] - 17:47:32.678:WARN:Log:ClassFactory.addGlobalID: ID:'contractDS' for object '[DataSource ID:contractDS]' collides with ID of existing object '[DataSource ID:contractDS]'. The global reference to this object will be replaced
    The code used to obain them reads:
    Code:
    public static ContractDataSource getInstance() {  
    	if (instance == null) {  
    		instance = new ContractDataSource("contractDS");  
    	}  
    	return instance;  
    }
    Is this something to worry about or can it be ignored?

    Thanks
    fatzopilot

    P.S.:
    I included
    <script>window.isc_useSimpleNames = false</script>
    like indicated here: http://forums.smartclient.com/showthread.php?t=19963

    The message "This conflict would be avoided by disabling ISC Simple Names mode. See documentation for further information." is now gone, but I still get IDCollision erros. In the Dev console, I also see things like "Class ID: 'IAutoFitButton' collides with ID of existing Class object '[Class IAutoFitButton]'. Existing object will be replaced." which suggests there is a bug in the framework (IAutoFitButton is not implemented by my code)
    Last edited by fatzopilot; 13 Jul 2012, 16:30.

    Leave a comment:


  • mljolje
    replied
    It is interesting that if you take LiveGrid code from SmartGWT showcase you will get this global reference waring as well.

    It is happening at the point ListGrid.setDataSource(ds) and that method finds that datasource, which is created few linese before with some ID, is not loaded and perform creation of datasource again and at that point it prints out global reference warning message.

    I was using latest SmartGWT 3.1d, GWT 2.4, FF and as already said, same code which is on LiveGrid showcase.

    Is LiveGrid showcase wrong or 3.1d has some problem inside?

    Thank you.

    BR
    Marije

    Leave a comment:


  • samila
    replied
    thanks for your response isomorphic =) !

    Leave a comment:


  • Isomorphic
    replied
    Two calls to new DataSource() followed by setID() with the same ID would do it, or two calls to DataSource.load() with the same ID. If you think it might be a framework bug, trying creating a minimal, runnable test case that produces the warning message.

    Leave a comment:


  • samila
    replied
    Hi again!!

    i have some other news about the last error i posted... itīs not only appearing at the beginning. it seems that all the datasources i have are wrong :(. thatīs why i attached the 2 datasource versions i use.

    and i donīt understand how can i create a datasource twice?

    the way i declare, an example...

    final DynamicForm loginForm = new DynamicForm();
    loginForm.setWidth100();
    loginForm.setHeight(50);
    loginForm.setDataSource(LoginCrossDS.getInstance());
    loginForm.setAutoFocus(true);

    am i doing something wrong?

    pd. let me tell you that you do a magnificent work!
    Attached Files
    Last edited by samila; 27 Jun 2012, 07:03.

    Leave a comment:


  • Isomorphic
    replied
    This suggests a pre-existing and real issue in your app in which a DataSource with that ID is being created twice or in some other way getting a colliding ID. It's just being better reported now.

    Leave a comment:


  • samila
    replied
    thanks for the advice it exactly worked with the project using smartgwt 3.0p, but.... something new is this warning showed before and after the module has been loaded:

    00:07:46.328 [ERROR] 18:24:33.139:WARN:Log:ClassFactory.addGlobalID: ID:'isc_LoginCrossDS_0' for object '[XJSONDataSource ID:isc_LoginCrossDS_0]' collides with ID of existing object '[XJSONDataSource ID:isc_LoginCrossDS_0]'. The global reference to this object will be replaced
    com.smartgwt.client.core.JsObject$SGWT_WARN: 18:24:33.139:WARN:Log:ClassFactory.addGlobalID: ID:'isc_LoginCrossDS_0' for object '[XJSONDataSource ID:isc_LoginCrossDS_0]' collides with ID of existing object '[XJSONDataSource ID:isc_LoginCrossDS_0]'. The global reference to this object will be replaced at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.smartgwt.client.data.XJSONDataSource.create(XJSONDataSource.java) at com.smartgwt.client.core.BaseClass.getOrCreateJsObj(BaseClass.java:112) at com.smartgwt.client.widgets.form.DynamicForm.setDataSource(DynamicForm.java:4341) at com.axs.sfamini.client.SFAmini.showLoginWindow(SFAmini.java:232) at com.axs.sfamini.client.SFAmini.onModuleLoad(SFAmini.java:161) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:619)

    do you know what could it be?

    by the way im testing firefox 11

    and about the project using smartgwt 3.1d i will write my comments tomorrow.

    thanks a lot and sorry for my english :)
    Samila

    Leave a comment:


  • Isomorphic
    replied
    You've got mixed resources from two different versions loading. Run a GWT compile and clear your browser cache. If that doesn't fix it, restart your IDE as well.

    Leave a comment:


  • samila
    started a topic SmartGwt 3.1d

    SmartGwt 3.1d

    Hi,

    I just downloaded the smartgwt 3.1d lgpl version and the smartgwt 3.0p lgpl as well, only because i was interested on this new feature: RibbonBar

    testing the 3.1 version:

    I created a new project and imported all the java files from another project, i included the code for a Ribbonbar and everything was good until the running time....

    the error that shows at the beginning is:

    com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.isc.DataSource.reregisterSgwtDS is not a function
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at com.smartgwt.client.data.DataSource.reregisterSgwtDS(DataSource.java) at com.smartgwt.client.data.DataSource.setID(DataSource.java:2571) at com.smartgwt.client.core.BaseClass.<init>(BaseClass.java:44) at com.smartgwt.client.data.DataSource.<init>(DataSource.java:138) at com.smartgwt.client.data.XJSONDataSource.<init>(XJSONDataSource.java:134) at com.axs.sfamini.client.dataSources.LoginCrossDS.<init>(LoginCrossDS.java:23) at com.axs.sfamini.client.dataSources.LoginCrossDS.getInstance(LoginCrossDS.java:19) at com.axs.sfamini.client.SFAmini.showLoginWindow(SFAmini.java:232) at com.axs.sfamini.client.SFAmini.onModuleLoad(SFAmini.java:161) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:619)

    testing the 3.0 version:

    i created a new project again imported the java classes etc. the new project at least runs, i see my login window but when i click on the button 'Enter' it shows up this error:

    00:00:20.157 [ERROR] 17:55:23.838:INP1:WARN:Log:TypeError: isc.Validator.getValidatorType is not a function Canvas.validateField(_1=>{Obj}, _2=>[object Array], _3=>"l", _4=>{Obj}, _5=>{Obj}) @ com.axs.sfamini.SFAmini/sc/modules/ISC_Core.js:3905 Canvas.validateFieldAndDependencies(_1=>{Obj}, _2=>[object Array], _3=>"l", _4=>{Obj}, _5=>{Obj}) @ com.axs.sfamini.SFAmini/sc/modules/ISC_Core.js:3897 FormItem.handleChange(_1=>"l", _2=>undef) @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1430 FormItem.storeValue(_1=>"l") @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1341 FormItem._updateValue("l") @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1338 FormItem.updateValue() @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1336 FormItem._handleInput() @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1592 oninput([object UIEvent]) @ SFAminiv3.html?gwt.codesvr=127.0.0.1:9997:1 unnamed() @
    com.smartgwt.client.core.JsObject$SGWT_WARN: 17:55:23.838:INP1:WARN:Log:TypeError: isc.Validator.getValidatorType is not a function Canvas.validateField(_1=>{Obj}, _2=>[object Array], _3=>"l", _4=>{Obj}, _5=>{Obj}) @ com.axs.sfamini.SFAmini/sc/modules/ISC_Core.js:3905 Canvas.validateFieldAndDependencies(_1=>{Obj}, _2=>[object Array], _3=>"l", _4=>{Obj}, _5=>{Obj}) @ com.axs.sfamini.SFAmini/sc/modules/ISC_Core.js:3897 FormItem.handleChange(_1=>"l", _2=>undef) @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1430 FormItem.storeValue(_1=>"l") @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1341 FormItem._updateValue("l") @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1338 FormItem.updateValue() @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1336 FormItem._handleInput() @ com.axs.sfamini.SFAmini/sc/modules/ISC_Forms.js:1592 oninput([object UIEvent]) @ SFAminiv3.html?gwt.codesvr=127.0.0.1:9997:1 unnamed() @ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:619)

    and the umbrella exception after:

    Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): isc.Validator.getValidatorType is not a function at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at com.smartgwt.client.widgets.form.DynamicForm.saveData(DynamicForm.java) at com.axs.sfamini.client.SFAmini$3.onClick(SFAmini.java:253) at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:97) at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:619)

    i was modestly using gwt 2.3 and smartgwt 2.5 before.
    please help on this

    Samila
Working...
X