[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-users
Subject:    [jibx-users] Re: Root Cause: No unmarshaller for element "binding"
From:       Dennis Sosnoski <dms () sosnoski ! com>
Date:       2004-09-22 1:52:32
Message-ID: 4150DAE0.6000203 () sosnoski ! com
[Download RAW message or body]

The problem is that your code is trying to unmarshal the binding 
definition rather than your actual XML document.

The default="elements" attribute on the <binding> element doesn't make 
any difference because it's not a known attribute to JiBX - the current 
code just ignores any attributes that don't match what it looks for, 
which is often a source of problems.

- Dennis

Sudhendra Seshachala wrote:

> I am not sure what I am missing here. The binding.xml is as follows I 
> am not using any namespace stuff here..
>
> <!--
>
> Mapping file for stcdbotd Repository
>
> @Author : Sudhi Seshachala
>
> @version :$Revision: $
>
> -->
>
> if I remove the “default” It ain’t makin difference..
>
> <binding package="com.stc.stcdbeway.repository.impl" default="elements">
>
> <mapping class= "java.util.HashMap" name="map"
>
> marshaller="org.jibx.extras.HashMapperStringToComplex" 
> unmarshaller="org.jibx.extras.HashMapperStringToComplex"/>
>
> <mapping name="stcdbDatabaseModel" 
> class="com.stc.stcdbeway.repository.impl.StcdbDatabaseModelImpl">
>
> <value style="attribute" name="majorVersion" field="majorVersion"/>
>
> <value style="attribute" name="minorVersion" field="minorVersion"/>
>
> <value style="attribute" name="microVersion" field="microVersion"/>
>
> <value style="attribute" name="name" field="name" ident="def"/>
>
> <value style="element" name="connectionDefinition" 
> field="connectionDefinition"/>
>
> <structure field="tables"/>
>
> </mapping>
>
> <mapping name="stcdbTable" 
> class="com.stc.stcdbeway.repository.impl.StcdbDBTableImpl">
>
> <value style="attribute" name="name" field="name" ident="def"/>
>
> <value style="attribute" name="encoding" field="encoding"/>
>
> <value style="attribute" name="fileName" field="fileName"/>
>
> <value style="attribute" name="parent" field="parent" ident="ref"/>
>
> <structure field="columns" />
>
> <structure field="properties" name="map"
>
> marshaller="org.jibx.extras.HashMapper" 
> unmarshaller="org.jibx.extras.HashMapper"/>
>
> </mapping>
>
> <mapping name="stcdbColumn" 
> class="com.stc.stcdbeway.repository.impl.StcdbDBColumnImpl">
>
> <value style="attribute" name="name" field="name"/>
>
> <value style="attribute" name="fieldName" field="fieldName"/>
>
> <value style="attribute" name="jdbcType" field="jdbcType"/>
>
> <value style="attribute" name="scale" field="scale"/>
>
> <value style="attribute" name="precision" field="precision"/>
>
> <value style="attribute" name="cardinalPosition" 
> field="cardinalPosition"/>
>
> <value style="attribute" name="isPrimaryKey" field="pkFlag"/>
>
> <value style="attribute" name="isForeignKey" field="fkFlag"/>
>
> <value style="attribute" name="indexed" field="indexed"/>
>
> <value style="attribute" name="nullable" field="nullable"/>
>
> <value style="attribute" name="parent" field="parent" ident="ref"/>
>
> </mapping>
>
> <mapping name="stcdbDBConnectionDefinition" 
> class="com.stc.stcdbeway.repository.impl.StcdbDBConnectionDefinitionImpl">
>
> <value style="attribute" name="name" field="name"/>
>
> <value style="attribute" name="driverClass" field="driverClass"/>
>
> <value style="attribute" name="url" field="url"/>
>
> <value style="attribute" name="userName" field="userName"/>
>
> <value style="attribute" name="password" field="password"/>
>
> </mapping>
>
> </binding>
>
> Root Cause: No unmarshaller for element "binding" (line 7, col 73)
>
> at com.stc.stcdbeway.repository.impl.MappingFactory.unmarshal(MappingFac
>
> tory.java:53)
>
> at com.stc.stcdbeway.repository.impl.StcdbObjectTypeDefinitionImpl.loadM
>
> odelFromRepository(StcdbObjectTypeDefinitionImpl.java:341)
>
> at com.stc.stcdbeway.repository.impl.StcdbObjectTypeDefinitionImpl.creat
>
> eDatabaseModel(StcdbObjectTypeDefinitionImpl.java:291)
>
> at com.stc.stcdbeway.repository.impl.StcdbObjectTypeDefinitionImpl.getTa
>
> bles(StcdbObjectTypeDefinitionImpl.java:283)
>
> at com.stc.stcdbeway.wizard.StcdbOTDNode.addDBTableNodes(StcdbOTDNode.ja
>
> va:171)
>
> at com.stc.stcdbeway.wizard.StcdbOTDNode.setChildNodes(StcdbOTDNode.java
>
> :149)
>
> at com.stc.stcdbeway.wizard.StcdbOTDNode.<init>(StcdbOTDNode.java:102)
>
> at com.stc.stcdbeway.wizard.LoadOTDAction.loadElement(LoadOTDAction.java
>
> :69)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree.createProjectElementNod
>
> e(ProjectTree.java:1570)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree.createProjectChildrenNo
>
> des(ProjectTree.java:1908)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree.openProjectNode(Project
>
> Tree.java:2058)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree.access$700(ProjectTree.
>
> java:78)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree$ProjectTreeExpandListen
>
> er.treeExpanded(ProjectTree.java:2135)
>
> at javax.swing.JTree.fireTreeExpanded(JTree.java:2238)
>
> at javax.swing.JTree.setExpandedState(JTree.java:2999)
>
> at javax.swing.JTree.expandPath(JTree.java:1735)
>
> at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java
>
> :2095)
>
> at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTree
>
> UI.java:2082)
>
> at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(Basic
>
> TreeUI.java:2036)
>
> MESSAGE WAS TRUNCATED
>
> ICAN5.ERROR (Logger.java:206) - Caught error while creating 
> DatabaseModel implem
>
> entation - com.stc.sql.framework.exception.BaseException: Failed to 
> unmarshal th
>
> e object - Root Cause: No unmarshaller for element "binding" (line 7, 
> col 73)
>
> at com.stc.stcdbeway.repository.impl.MappingFactory.unmarshal(MappingFac
>
> tory.java:53)
>
> at com.stc.stcdbeway.repository.impl.StcdbObjectTypeDefinitionImpl.loadM
>
> odelFromRepository(StcdbObjectTypeDefinitionImpl.java:341)
>
> at com.stc.stcdbeway.repository.impl.StcdbObjectTypeDefinitionImpl.creat
>
> eDatabaseModel(StcdbObjectTypeDefinitionImpl.java:291)
>
> at com.stc.stcdbeway.repository.impl.StcdbObjectTypeDefinitionImpl.getTa
>
> bles(StcdbObjectTypeDefinitionImpl.java:283)
>
> at com.stc.stcdbeway.wizard.StcdbOTDNode.addDBTableNodes(StcdbOTDNode.ja
>
> va:171)
>
> at com.stc.stcdbeway.wizard.StcdbOTDNode.setChildNodes(StcdbOTDNode.java
>
> :149)
>
> at com.stc.stcdbeway.wizard.StcdbOTDNode.<init>(StcdbOTDNode.java:102)
>
> at com.stc.stcdbeway.wizard.LoadOTDAction.loadElement(LoadOTDAction.java
>
> :69)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree.createProjectElementNod
>
> e(ProjectTree.java:1570)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree.createProjectChildrenNo
>
> des(ProjectTree.java:1908)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree.openProjectNode(Project
>
> Tree.java:2058)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree.access$700(ProjectTree.
>
> java:78)
>
> at com.stc.egate.gui.projectexplorer.ProjectTree$ProjectTreeExpandListen
>
> er.treeExpanded(ProjectTree.java:2135)
>
> at javax.swing.JTree.fireTreeExpanded(JTree.java:2238)
>
> at javax.swing.JTree.setExpandedState(JTree.java:2999)
>
> at javax.swing.JTree.expandPath(JTree.java:1735)
>
> at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java
>
> :2095)
>
> at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTree
>
> UI.java:2082)
>
> at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(Basic
>
> TreeUI.java:2036)
>
> MESSAGE WAS TRUNCATED
>


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic