Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

FileAssembler and SimpleTypes

$
0
0
We have a few SimpleTypes (> 100), defined in .type.xml files, in a types folder, and included in our fileAssembly.xml, with type set to "ds".

<component type="ds" name="OUR_ID"/>

If, in our <isomorphic:loadAssembly/>, we specify assemble="true", we get an exception:

Code:

java.lang.Exception: can't locate file for component type: ds with name: OUR_ID
at com.isomorphic.assembly.FileAssembler.fileNameForType(FileAssembler.java:304)
at com.isomorphic.assembly.FileAssembler$DataSourceComponent.<init>(FileAssembler.java:765)

It looks like it doesn't know to look for .type.xml files. If we rename the file to .ds.xml, instead of .type.xml, the File Assembler attempts to load it, but after the first one fails:
Code:

=== 2015-05-01 16:37:37,667 [ec-2] WARN  DataSource - dsConfig with no ID: [redacted object definition]

=== 2015-05-01 16:37:37,670 [ec-2] WARN  BasicDataSource - DataSource null declared to inherit from DataSource sequence which could not be loaded
=== 2015-05-01 16:37:37,675 [ec-2] ERROR LoadAssemblyTag - Exception while attempting to process a loadAssembly tag.
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
at java.util.regex.Matcher.reset(Matcher.java:309)
at java.util.regex.Matcher.<init>(Matcher.java:229)
at java.util.regex.Pattern.matcher(Pattern.java:1093)
at com.isomorphic.datasource.DataSource.isDynamic(DataSource.java:457)
at com.isomorphic.datasource.DataSourceManager.free(DataSourceManager.java:240)
at com.isomorphic.taglib.LoadDSTag.outputJS(LoadDSTag.java:112)
at com.isomorphic.taglib.LoadAssemblyTag.doStartTag(LoadAssemblyTag.java:157)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:156)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

Adding the ID attribute to the <SimpleType/> allows the FileAssembler to load them up and stitch them in, however something is off about how it gets loaded.

For now, we're loading these with assemble="false".

This is on SmartClient Version: v9.1p_2015-04-25/PowerEdition Deployment (built 2015-04-25)

Viewing all articles
Browse latest Browse all 4756

Trending Articles