Go Back   SmartClient Forums > Smart GWT Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #11  
Old 22nd Dec 2008, 03:55
hschmitt hschmitt is offline
Registered Developer
 
Join Date: Nov 2008
Posts: 14
Default

Quote:
Originally Posted by bwalsh
confirmed it, reverted back to 1.0b1 and SC.showConsole(); works

(although KeyCallback not defined in 1.0b1 )
With me it does not show the developer console, too. Although the window pops up.
I am using the nightly build from 2008-12-17
Firebug reports two errors:
isc is not defined
http://localhost:8080/sc/system/helpers/Log.html
Line 19

saveState is not defined
http://localhost:8080/sc/system/helpers/Log.html
Line 1

I tested it with the com.smartgwt.SmartGwt and the com.smartgwt.SmartGwtDebug module.
Reply With Quote
  #12  
Old 22nd Dec 2008, 04:52
blega blega is offline
Registered Developer
 
Join Date: Dec 2008
Posts: 6
Default Switch to the latest build, too

Hello,

I switch to the latest build 12-18-2008, remove tomcat folder, bin folder and
I have some errors/warnings I never had with the release.

Error : the log window displays but stays blank.
---------------------------------------------
It seems that some files can't be found : I have the following output

Code:
... 
[TRACE] The development shell servlet received a request for 'sc/system/development/ISC_DeveloperConsole.js' in module 'erdf.mario.TheApplication.gwt.xml' 
[WARN] Resource not found: sc/system/development/ISC_DeveloperConsole.js; (could a file be missing from the public path or a <servlet> tag misconfigured in module erdf.mario.TheApplication.gwt.xml ?)
...
... and the same goes for :
- sc/system/development/ISC_FileLoader.js
- sc/system/development/ISC_Tools.js
- sc/skins/SmartClient/load_skin.js

Warning : JNSI malformed
-------------------------

I got a lot of warnings :

Code:
[WARN] Malformed JSNI reference 'constructor'; expect subsequent failures
java.lang.NoSuchFieldError: constructor
	at com.google.gwt.dev.shell.CompilingClassLoader$DispatchClassInfoOracle.getDispId(CompilingClassLoader.java:119)
	at com.google.gwt.dev.shell.CompilingClassLoader.getDispId(CompilingClassLoader.java:531)
	at com.google.gwt.dev.shell.ie.IDispatchProxy.getIDsOfNames(IDispatchProxy.java:124)
	at com.google.gwt.dev.shell.ie.IDispatchImpl.GetIDsOfNames(IDispatchImpl.java:273)
	at com.google.gwt.dev.shell.ie.IDispatchImpl.method5(IDispatchImpl.java:189)
	at org.eclipse.swt.internal.ole.win32.COMObject.callback5(COMObject.java:108)
	at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
	at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64)
	at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:493)
	at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:417)
	at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:67)
	at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:152)
	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:447)
	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:228)
	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
	at com.smartgwt.client.widgets.form.DynamicForm.create(DynamicForm.java)
	at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:279)
	at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:791)
	at erdf.mario.client.AffinageEdit.createField(AffinageEdit.java:129)
	at erdf.mario.client.AffinageEdit.init(AffinageEdit.java:48)
	at erdf.mario.client.AffinageEdit.<init>(AffinageEdit.java:32)
	at erdf.mario.client.AffinageEdit.<init>(AffinageEdit.java:143)
	at erdf.mario.client.TheApplication.onModuleLoad(TheApplication.java:48)
	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:320)
	at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:329)
	at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300(BrowserWidgetIE6.java:37)
	at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:76)
	at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:139)
	at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
	at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
	at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
	at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
	at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
	at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
For reference, here is my gwt.xml file
Code:
<module>
	  
      <inherits name='com.extjs.gxt.ui.GXT'/>
      <inherits name='com.google.gwt.user.User'/>
	
      <inherits name='com.google.gwt.user.theme.standard.Standard'/>

      <!-- Other module inherits                                      -->
      <inherits name="com.smartgwt.SmartGwt"/>

      <!-- Specify the app entry point class.                         -->
      <entry-point class='erdf.mario.client.TheApplication'/>
	  <source path='domain'/>
	  <source path='client'/>
    
      <servlet path="/Service" class="erdf.mario.server.ServiceImpl" />
    
      <!-- Specify the application specific style sheet.              -->
      <stylesheet src='TheApplication.css' />
	
</module>
Do you have an idea about what went wrong ?

Regards
Reply With Quote
  #13  
Old 29th Dec 2008, 03:39
alona.oz alona.oz is offline
Registered Developer
 
Join Date: Dec 2008
Posts: 10
Default Ho to write to log?

Can somebody give simple example how to write to log? I can't find in any place...

10x
Reply With Quote
  #14  
Old 29th Dec 2008, 07:27
greymeister greymeister is offline
Registered Developer
 
Join Date: Nov 2008
Posts: 5
Default

Developer console does not work for me anymore, I'm using the 12/18/2008 nightly build. Worked with previous nightly build on 12/4/2008. The error message I get is the following:

Code:
A Runtime Error has occurred: 
Line 18: 'isc' is undefined
Reply With Quote
  #15  
Old 29th Dec 2008, 10:49
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 38,274
Default

@alonas You can write to the top via SC.logWarn() and related methods.
Reply With Quote
  #16  
Old 29th Dec 2008, 12:39
FrederikB FrederikB is offline
Registered Developer
 
Join Date: Dec 2008
Posts: 3
Default

/sc/system/development is missing from the latest SmartGWT nightly which causes the developer console to fail.
This is because Log.html cannot load several javascript files from that directory, including development/ISC_DeveloperConsole.js.
Reply With Quote
  #17  
Old 29th Dec 2008, 16:38
kinglear kinglear is offline
Registered Developer
 
Join Date: Dec 2008
Posts: 69
Default

this issue has allready been accepted:

http://code.google.com/p/smartgwt/issues/detail?id=69

as a workaround, you can put in the missing developer directory by hand.
Reply With Quote
  #18  
Old 29th Dec 2008, 23:26
alona.oz alona.oz is offline
Registered Developer
 
Join Date: Dec 2008
Posts: 10
Default Write to log

Quote:
Originally Posted by Isomorphic
@alonas You can write to the top via SC.logWarn() and related methods.
I don't have such method in SC class, also I don't have Log class...
Reply With Quote
  #19  
Old 30th Dec 2008, 01:59
blega blega is offline
Registered Developer
 
Join Date: Dec 2008
Posts: 6
Default

The method had been added in the nightly build :)

So, if you didn't get the latest build, it does make sense.

Cheers,
Bertrand.
Reply With Quote
  #20  
Old 4th Jan 2009, 07:14
sjivan sjivan is offline
Registered Developer
 
Join Date: May 2008
Posts: 1,534
Default

The Developer Console should be functional from the SVN build now. I'll also try to put up a nightly build tomorrow.

Sanjiv
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved