I have created a small view using VB and saved it's generated XML file.
When I try to load the same file for editing the GUI it gives errors.
Please find the server logs below
The generated XML file
My datasource file
There are certaing XML parse and validation error in the logs.
But, since the same file worked when I created the GUI I don't understand what is the exact problem.
When I try to load the same file for editing the GUI it gives errors.
Please find the server logs below
Code:
=== 2010-02-07 03:14:41,460 [up-8] DEBUG RPCManager - Request #1 (RPCRequest) data: { appID:"isc_builtin", className:"builtin", methodName:"loadFile", arguments:["//XmlTest.xml"], is_ISC_RPC_DMI:true } === 2010-02-07 03:14:41,475 [up-8] WARN ProcessedFileCache - Can't perform staleness checking for code-source:/C:/GTM/output/GasOps2.0.0.0Dev/java/deploy/remote/server/EntegrateServer/web/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_builtin.app.xml === 2010-02-07 03:14:41,475 [up-8] DEBUG RPCDMI - appConfig: isc.Application.create({ rpcBindings:[ { ID:"builtin", className:"com.isomorphic.rpc.BuiltinRPC", visibleMethods:[ {name:"downloadWSDL"}, {name:"xmlToJS"}, {name:"uploadProgressCheck"}, {name:"saveFile"}, {name:"appendToFile"}, {name:"loadFile"}, {name:"deleteFile"}, {name:"loadSharedXML"}, {name:"saveSharedXML"}, {name:"getAvailableScriptEngines"}, {name:"devConsoleEvalServerScript"}, {name:"evalJava"}, {name:"getLogNames"}, {name:"getLogEntries"}, {name:"getLogThresholds"}, {name:"setLogThreshold"} ] }, { ID:"builtin_tools", className:"com.isomorphic.tools.BuiltinRPC", visibleMethods:[ {name:"getDataSourceFromTable"}, {name:"getDataSourceJSONFromTable"}, {name:"getDataSourceFromHibernateMapping"}, {name:"getDataSourceJSONFromHibernateMapping"}, {name:"getTables"}, {name:"getFieldsFromTable"}, {name:"getBeanFields"}, {name:"getHibernateBeans"}, {name:"getDatabaseProductNameAndVersion"}, {name:"getDatabaseTableTypes"}, {name:"setAttributes"}, {name:"clearAttributes"}, {name:"getAttributes"}, {name:"getAttribute"}, {name:"getDataSourceConfigFromJavaClass"}, {name:"getJavaSource", language:"groovy", args:"cName", script:"\n if (!com.isomorphic.auth.DevModeAuthFilter.devModeAuthorized(request)) throw new Exception(\"Not Authorized\"); \n //import org.apache.bcel.Repository;\n\n try {\n return org.apache.bcel.Repository.lookupClass(cName).toString();\n } catch (Throwable e) {\n return \"Unable to reverse engineer class \"+cName+\": \"+e.getMessage();\n }\n "}, {name:"loadDataSource"}, {name:"dsFromXML"}, {name:"dsConfigFromXML"} ] } ] }) === 2010-02-07 03:14:41,475 [up-8] DEBUG Reflection - adaptArgsAndInvoke: public static com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.loadFile(java.lang.String) throws java.lang.Exception requiredArgs: [java.lang.String] optionalArgs: [com.isomorphic.servlet.RequestContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext, javax.servlet.http.HttpSession, com.isomorphic.rpc.RPCManager, com.isomorphic.rpc.RPCRequest] === 2010-02-07 03:14:41,475 [up-8] DEBUG Reflection - checking whether type: java.lang.String fulfills type: java.lang.String === 2010-02-07 03:14:41,475 [up-8] DEBUG Reflection - Successfully adapted required arg type: java.lang.String to type: java.lang.String === 2010-02-07 03:14:41,475 [up-8] DEBUG Reflection - method takes: 1 args. I've assembled: 1 args === 2010-02-07 03:14:41,475 [up-8] DEBUG Reflection - invoking method: com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.loadFile(java.lang.String) throws java.lang.Exception with arg types: java.lang.String === 2010-02-07 03:14:41,475 [up-8] DEBUG BuiltinRPC - Loading: C:/GTM/output/GasOps2.0.0.0Dev/java/deploy/remote/server/EntegrateServer/web/XmlTest.xml === 2010-02-07 03:14:41,475 [up-8] DEBUG RPCDMI - rpc returned RPCResponse === 2010-02-07 03:14:41,475 [up-8] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8 === 2010-02-07 03:14:41,475 [up-8] INFO Compression - /jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp: 1426 -> 559 bytes === 2010-02-07 03:14:41,538 [p-10] INFO RequestContext - URL: '/jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS === 2010-02-07 03:14:41,538 [p-10] DEBUG XML - Parsed XML from (in memory stream): 0ms === 2010-02-07 03:14:41,538 [p-10] DEBUG RPCManager - Processing 1 requests. === 2010-02-07 03:14:41,538 [p-10] DEBUG RPCManager - Request #1 (RPCRequest) data: { appID:"isc_builtin", className:"builtin", methodName:"xmlToJS", arguments:[ "<DataSource>\r\n <loadID>nominationPlanSearchDataSource</loadID>\n</DataSource>\n\n<DataSource>\n <loadID>granularityDataSource</loadID>\n</DataSource>\n\n<DataSource>\n <loadID>flowRateDataSource</loadID>\n</DataSource>\n\n<DynamicForm dataSource=\"ref:nominationPlanSearchDataSource\" ID=\"DynamicForm0\" autoDraw=\"false\">\n <fields>\n <FormItem name=\"GRANULARITYNAME\" title=\"Granularity\" constructor=\"SelectItem\">\n <optionDataSource>ref:granularityDataSource</optionDataSource>\n </FormItem>\n <FormItem name=\"FLOWRATENAME\" title=\"Flowrate\" constructor=\"SelectItem\">\n <optionDataSource>ref:flowRateDataSource</optionDataSource>\n </FormItem>\n <FormItem name=\"BEGDATE\" title=\"Retrieve As Of Date\" constructor=\"DateItem\"/>\n <FormItem name=\"ENDDATE\" title=\"Create through Date\" constructor=\"DateItem\"/>\n </fields>\n</DynamicForm>"], is_ISC_RPC_DMI:true } === 2010-02-07 03:14:41,538 [p-10] DEBUG RPCDMI - appConfig: isc.Application.create({ rpcBindings:[ { ID:"builtin", className:"com.isomorphic.rpc.BuiltinRPC", visibleMethods:[ {name:"downloadWSDL"}, {name:"xmlToJS"}, {name:"uploadProgressCheck"}, {name:"saveFile"}, {name:"appendToFile"}, {name:"loadFile"}, {name:"deleteFile"}, {name:"loadSharedXML"}, {name:"saveSharedXML"}, {name:"getAvailableScriptEngines"}, {name:"devConsoleEvalServerScript"}, {name:"evalJava"}, {name:"getLogNames"}, {name:"getLogEntries"}, {name:"getLogThresholds"}, {name:"setLogThreshold"} ] }, { ID:"builtin_tools", className:"com.isomorphic.tools.BuiltinRPC", visibleMethods:[ {name:"getDataSourceFromTable"}, {name:"getDataSourceJSONFromTable"}, {name:"getDataSourceFromHibernateMapping"}, {name:"getDataSourceJSONFromHibernateMapping"}, {name:"getTables"}, {name:"getFieldsFromTable"}, {name:"getBeanFields"}, {name:"getHibernateBeans"}, {name:"getDatabaseProductNameAndVersion"}, {name:"getDatabaseTableTypes"}, {name:"setAttributes"}, {name:"clearAttributes"}, {name:"getAttributes"}, {name:"getAttribute"}, {name:"getDataSourceConfigFromJavaClass"}, {name:"getJavaSource", language:"groovy", args:"cName", script:"\n if (!com.isomorphic.auth.DevModeAuthFilter.devModeAuthorized(request)) throw new Exception(\"Not Authorized\"); \n //import org.apache.bcel.Repository;\n\n try {\n return org.apache.bcel.Repository.lookupClass(cName).toString();\n } catch (Throwable e) {\n return \"Unable to reverse engineer class \"+cName+\": \"+e.getMessage();\n }\n "}, {name:"loadDataSource"}, {name:"dsFromXML"}, {name:"dsConfigFromXML"} ] } ] }) === 2010-02-07 03:14:41,538 [p-10] DEBUG Reflection - adaptArgsAndInvoke: public static com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.xmlToJS(java.lang.String) throws java.lang.Exception requiredArgs: [java.lang.String] optionalArgs: [com.isomorphic.servlet.RequestContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext, javax.servlet.http.HttpSession, com.isomorphic.rpc.RPCManager, com.isomorphic.rpc.RPCRequest] === 2010-02-07 03:14:41,538 [p-10] DEBUG Reflection - checking whether type: java.lang.String fulfills type: java.lang.String === 2010-02-07 03:14:41,538 [p-10] DEBUG Reflection - Successfully adapted required arg type: java.lang.String to type: java.lang.String === 2010-02-07 03:14:41,538 [p-10] DEBUG Reflection - method takes: 1 args. I've assembled: 1 args === 2010-02-07 03:14:41,538 [p-10] DEBUG Reflection - invoking method: com.isomorphic.rpc.RPCResponse com.isomorphic.rpc.BuiltinRPC.xmlToJS(java.lang.String) throws java.lang.Exception with arg types: java.lang.String === 2010-02-07 03:14:41,538 [p-10] ERROR XML - XML parser fatal error: file '(in memory stream)' line 5: org.xml.sax.SAXParseException: <Line 5, Column 1>: XML-20100: (Fatal Error) Expected 'EOF'. === 2010-02-07 03:14:41,538 [p-10] DEBUG XML - Exception thrown during XML parsing === 2010-02-07 03:14:41,538 [p-10] INFO BuiltinRPC - Error parsing inbound XML - assuming multiple top-level elements and retrying with wrapper tag. === 2010-02-07 03:14:41,553 [p-10] DEBUG XML - Parsed XML from (in memory stream): 15ms === 2010-02-07 03:14:41,553 [p-10] DEBUG ValidationContext - Adding validation errors at path '/DataSource': {errorMessage=Field is required} === 2010-02-07 03:14:41,553 [p-10] WARN Validation - Validation errors validating a 'DataSource': { "/DataSource":{ recordPath:"/DataSource", ID:{errorMessage:"Field is required"} } } === 2010-02-07 03:14:41,553 [p-10] DEBUG ValidationContext - Adding validation errors at path '/DataSource': {errorMessage=Field is required} === 2010-02-07 03:14:41,553 [p-10] WARN Validation - Validation errors validating a 'DataSource': { "/DataSource":{ recordPath:"/DataSource", ID:{errorMessage:"Field is required"} } } === 2010-02-07 03:14:41,553 [p-10] DEBUG ValidationContext - Adding validation errors at path '/DataSource': {errorMessage=Field is required} === 2010-02-07 03:14:41,569 [p-10] WARN Validation - Validation errors validating a 'DataSource': { "/DataSource":{ recordPath:"/DataSource", ID:{errorMessage:"Field is required"} } } === 2010-02-07 03:14:41,569 [p-10] WARN Validation - Unexpected Java type 'class java.lang.String' passed to DataSource 'DataSource' at path '/DynamicForm[@ID=DynamicForm0]/dataSource' === 2010-02-07 03:14:41,585 [p-10] DEBUG RPCDMI - rpc returned RPCResponse === 2010-02-07 03:14:41,585 [p-10] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8 === 2010-02-07 03:14:41,585 [p-10] INFO Compression - /jedi/GtmWebModule/tools/visualBuilder/vbOperations.jsp: 3351 -> 863 bytes
The generated XML file
Code:
<DataSource> <loadID>nominationPlanSearchDataSource</loadID> </DataSource> <DataSource> <loadID>granularityDataSource</loadID> </DataSource> <DataSource> <loadID>flowRateDataSource</loadID> </DataSource> <DynamicForm dataSource="ref:nominationPlanSearchDataSource" ID="DynamicForm0" autoDraw="false"> <fields> <FormItem name="GRANULARITYNAME" title="Granularity" constructor="SelectItem"> <optionDataSource>ref:granularityDataSource</optionDataSource> </FormItem> <FormItem name="FLOWRATENAME" title="Flowrate" constructor="SelectItem"> <optionDataSource>ref:flowRateDataSource</optionDataSource> </FormItem> <FormItem name="BEGDATE" title="Retrieve As Of Date" constructor="DateItem"/> <FormItem name="ENDDATE" title="Create through Date" constructor="DateItem"/> </fields> </DynamicForm>
My datasource file
Code:
<DataSource ID="nominationPlanSearchDataSource" > <fields> <field name="GRANULARITYNAME" displayField="NAME" valueField="FREQUENCYDETAIL_ID" title="Granularity" length="128" required="true"/> <field name="FLOWRATENAME" title="Flowrate" displayField="NAME" valueField="FREQUENCYDETAIL_ID" length="128" required="true"/> <field name="BEGDATE" type="date" title="Retrieve As Of Date" length="128" required="true"/> <field name="ENDDATE" type="date" title="Create through Date" length="128" required="true"/> </fields> </DataSource>
There are certaing XML parse and validation error in the logs.
But, since the same file worked when I created the GUI I don't understand what is the exact problem.
Comment