Hi All,
So I've been banging my head against the proverbial wall for about half a day now and I just can't figure out what's going on here.
Here's the exception:
For some reason, it appears that the file "buildinTypes.xml" is not being copied over the the <app>/sc/system/schema directory like it should during the GWT compile phase. This file does appear in the SmartClient main dist directory of "isomorphic/sc/system/schema" directory. However, we've been warned against mixing SmartClient and SmartGWT, so I can't make that file available for my application.
Now, being somewhat curious, I copied "buildinTypes.xml" to the correct location in my app and then I get this:
And that's about as far as I've been able to get. If I remove all "field" definitions, including the "fields" tag itself from the datasource definition xml, the datasource is properly loaded by the DataSourceLoader (albeit with no fields defined) like this:
So from what I can tell, all the plumbing to serve up my data source is in place, it is just that the parsing/conversion step to the datasource json from the ds.xml file is barfing somewhere and with a fairly obtuse exception. Also the buildinType.xml file is not properly copied over requiring manual intervention.
Any help greatly appreciated.
-Brian
So I've been banging my head against the proverbial wall for about half a day now and I just can't figure out what's going on here.
Here's the exception:
Code:
Exception when loading from C:/work/iprofile/main/war/iprofile/sc/system/schema/builtinTypes.xml: java.io.FileNotFoundException: C:\work\iprofile\main\war\iprofile\sc\system\schema\builtinTypes.xml (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at com.isomorphic.io.ISCFile.getInputStream(ISCFile.java:346)
Now, being somewhat curious, I copied "buildinTypes.xml" to the correct location in my app and then I get this:
Code:
=== 2010-01-28 13:40:29,349 [l0-3] INFO RequestContext - URL: '/iprofile/sc/DataSourceLoader', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS === 2010-01-28 13:40:29,584 [l0-3] INFO PoolManager - SmartClient pooling disabled for 'userDataSource' objects === 2010-01-28 13:40:29,615 [l0-3] DEBUG XML - Parsed XML from C:\work\iprofile\main\war\ds\userDataSource.ds.xml: 0ms === 2010-01-28 13:40:29,630 [l0-3] DEBUG XML - Parsed XML from C:\work\iprofile\main\war\iprofile\sc\system\schema\builtinTypes.xml: 15ms === 2010-01-28 13:40:29,662 [l0-3] WARN BasicDataSource - userDataSource: value of field field is not a Map === 2010-01-28 13:40:29,662 [l0-3] ERROR DataSourceLoader - Exception while attempting to load a DataSource java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map at com.isomorphic.datasource.BasicDataSource.buildFieldData(BasicDataSource.java:303) at com.isomorphic.datasource.BasicDataSource.init(BasicDataSource.java:159) at com.isomorphic.datasource.BasicDataSource.fromConfig(BasicDataSource.java:126) at com.isomorphic.datasource.DataSource.fromConfig(DataSource.java:163) at com.isomorphic.datasource.FileSystemDSRepo.loadDS(FileSystemDSRepo.java:110) at com.isomorphic.datasource.DataSource.forName(DataSource.java:146)
Code:
{ ID:"userDataSource", fields:[], serverType:"generic" }
Any help greatly appreciated.
-Brian
Comment