Announcement

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

    ISC_Core.js - Cannot access file cause it is already in use.

    Hello Guys,

    I am facing a problem with running my app with smart GWT. This problem started all of a sudden when i moved from 2.2 to the unreleased 2.5 version. But it happens with all versions now. (I moved in order to use it for google visualization, but thats another story for another post.)

    The problem is that whenever i lauch the gui in a browser i get the following error:
    Code:
    [WARN] /com.jpmorgan.monitron.MonitronGUIPOC/sc/modules/ISC_Core.js: java.io.FileNotFoundException: C:\Monitron\Workspaces\POCs\Monitron\war\com.jpmorgan.monitron.MonitronGUIPOC\sc\modules\ISC_Core.js (The process cannot access the file because it is being used by another process)
    [ERROR] 500 - GET /com.jpmorgan.monitron.MonitronGUIPOC/sc/modules/ISC_Core.js (127.0.0.1) 3957 bytes
       Request headers
          Host: 127.0.0.1:8888
          Connection: keep-alive
          Referer: http://127.0.0.1:8888/MonitronGUIPOC.html?gwt.codesvr=127.0.0.1:9997
          Cache-Control: max-age=0
          If-Modified-Since: Fri, 18 Mar 2011 11:11:30 GMT
          User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.45 Safari/534.16
          Accept: */*
          Accept-Encoding: gzip,deflate,sdch
          Accept-Language: en-US,en;q=0.8
          Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
       Response headers
          Content-Type: text/html; charset=iso-8859-1
          Content-Length: 3957
    Another Exception Stack in the Dev Mode View is: (Though i dont think this is the root cause)
    Code:
    17:36:07.038 [ERROR] [com.jpmorgan.monitron.MonitronGUIPOC] Failed to create an instance of 'com.jpmorgan.monitron.client.MonitronGUIPOC' via deferred binding 
    java.lang.ExceptionInInitializerError: null
        at com.jpmorgan.monitron.client.MonitronGUIPOC.<init>(MonitronGUIPOC.java:85)
        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.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
        at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:375)
        at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
        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:662)
    Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot call method 'setAutoDraw' of undefined
     stack: TypeError: Cannot call method 'setAutoDraw' of undefined
        at unknown source
        at __gwt_jsInvoke (http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/hosted.html?com_jpmorgan_monitron_MonitronGUIPOC:76:35)
        at http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/hosted.html?com_jpmorgan_monitron_MonitronGUIPOC:280:16
        at C (http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/com.jpmorgan.monitron.MonitronGUIPOC.nocache.js:2:168)
        at http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/com.jpmorgan.monitron.MonitronGUIPOC.nocache.js:9:524
     arguments: setAutoDraw,
     type: non_object_property_call
     __gwt_ObjectId: 1
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
        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.BaseWidget.init(BaseWidget.java)
        at com.smartgwt.client.widgets.BaseWidget.<clinit>(BaseWidget.java:46)
        at com.jpmorgan.monitron.client.MonitronGUIPOC.<init>(MonitronGUIPOC.java:85)
        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.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
        at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:375)
        at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
        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:662)
    Browser Logs:
    Code:
    onModuleLoad() threw an exception
    Exception while loading module com.jpmorgan.monitron.client.MonitronGUIPOC. See Development Mode for details.
    
    java.lang.reflect.InvocationTargetException
    	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:183)
    	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:662)
    Caused by: com.google.gwt.core.client.JavaScriptException: (ReferenceError): $debox is not defined
     stack: ReferenceError: $debox is not defined
        at [object Object]. (unknown source)
        at __gwt_jsInvoke (http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/hosted.html?com_jpmorgan_monitron_MonitronGUIPOC:76:35)
        at eval at  (http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/hosted.html?com_jpmorgan_monitron_MonitronGUIPOC:54:12)
        at [object Object]. (unknown source)
        at __gwt_jsInvoke (http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/hosted.html?com_jpmorgan_monitron_MonitronGUIPOC:76:35)
        at eval at  (http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/hosted.html?com_jpmorgan_monitron_MonitronGUIPOC:54:12)
        at [object Object]. (unknown source)
        at __gwt_jsInvoke (http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/hosted.html?com_jpmorgan_monitron_MonitronGUIPOC:76:35)
        at http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/hosted.html?com_jpmorgan_monitron_MonitronGUIPOC:280:16
        at C (http://127.0.0.1:8888/com.jpmorgan.monitron.MonitronGUIPOC/com.jpmorgan.monitron.MonitronGUIPOC.nocache.js:2:168)
     arguments: $debox
     type: not_defined
     __gwt_ObjectId: 24
    	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
    	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
    	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.widgets.tree.TreeGrid.create(TreeGrid.java)
    	at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356)
    	at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1073)
    	at com.jpmorgan.monitron.client.MonitronGUIPOC.onModuleLoad(MonitronGUIPOC.java:131)
    	... 9 more
    Smart GWT version:
    2.4, 2.2, 2.5

    Browser:
    Chrome 10.0.648.5 (Dev Channel)
    Firefox 3.6.15

    I cant provide any specific sample code, because its a big application and i cannot narrow down the problem.



    EDIT:
    This is really odd, since if you looked at the http header, you see an error of 500, which means that it couldnt load the ISC_Core.js file. Which shouldnt really be SmartGWT's fault. But there still has to be a reason why it is causing an issue for specifically that file.

    Also, Google Viz is not present in this project (Was tried separately in a separate project). So no question of that affecting things here.
    Last edited by BasilD; 18 Mar 2011, 04:18.

    #2
    You're correct, this isn't a SmartGWT problem: SmartGWT knows ISC_Core.js as a URL, and has no access to the actual file. Something is wedged in your IDE or project. Restart the IDE and rebuild the project as needed. Rebooting Windows may also be needed.

    Comment

    Working...
    X