Castor xml data binding

Hi,
i try to use castor with jdev so i put castor-0.9.5.3.jar
in my libraries.
But when i try to use the unmarshaller i got this error :
java.lang.NoClassDefFoundError: org.exolab.castor.util.LocalConfiguration
     at org.exolab.castor.xml.Unmarshaller.initConfig(Unmarshaller.java:265)
     at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:221)
     at org.exolab.castor.xml.Unmarshaller.<init>(Unmarshaller.java:208)
     at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:684)
     at ReadPerson.main(ReadPerson.java:8)
here is my test code :
import java.io.FileReader;
import org.exolab.castor.xml.Unmarshaller;
public class ReadPerson {
     public static void main(String args[]) {
          try {
               Person person = (Person) Unmarshaller.unmarshal(Person.class,
                                                                           new FileReader("D:/Castor/person.xml"));
               System.out.println("Person Attributes");
               System.out.println("-----------------");
               System.out.println("Name: " + person.getName() );
               System.out.println("Address: " + person.getAddress() );
               System.out.println("SSN: " + person.getSsn() );
               System.out.println("Email: " + person.getEmail() );
               System.out.println("Home Phone: " + person.getHomePhone() );
               System.out.println("Work Phone: " + person.getWorkPhone() );
          } catch (Exception e) {
               System.out.println( e );
Thanks !

FYI:
I tried Castor. In my opinion, there's a much better solution BC4J. BC4J lets you read and write your objects to XML, using readXML and writeXML. It seems more mature than Castor.
If you are just reading and writing your object or collection of objects and hierarchy to file, then you only use readXML and writeXML.
With BC4J, you model you objects in BC4J, then BC4J allows you to create a DTD for these objects. So if you have inbound or outbound XML that you need to transform from/to, you can then use this DTD and the DTD/XML Schema of the other format to write a xslt transformation.
Another benefit, you can pass object hierarchies across a web service using writeXML on the client side and then readXML to repopulate the object hierarchy on the server side of the web service.
Richard Catlin

Similar Messages

  • Schema binding versus XML data binding

    I have been able to create a fillable XFA form using XML data and employing the xfa.host.importData(""); script.
    This has worked well.
    I now find that I must do a similar thing - only using a schema to bind the data to the PDF form fields ...
    Can you help me to find out what the differences are between these two approaches and alos can you help me to find some good documentation on how to perform this ?
    thanks

    I noticed that the default scripting language was set to formcalc - and by chabging this to javascript - I no longer get this error -
    I have moved on to my next error -
    which is: the data doesn't at all load as expected -
    This particular form is only slightly more complicated d than my last loadable form but, truly , the only difference between them, really, is using I am using a schema for this particular form and my previous form didn't and that one works fine and functions perfectly - (this one .... no!)
    I could probably skip the schema and proceed without it but that would defeat the whole purpose of using the schema in the first place so it is not really an option .
    some data loads as the default of zero - is it possible for you to review this pdf for me? - just to get me past this hurdle.
    The schema is good - and the data as well.
    I would appreciate it .
    Thanks

  • Dynamically populating more than one field using xml data binding

    Hi All,<br /><br />I have the following code that works fine to dynaically populate a<br />second drop-down list2 from a choice in drop-down list1 using xml data<br />biding.<br /><br />var tempString = "xfa.record." + this.boundItem(xfa.event.newText);<br />var oItems = xfa.resolveNode(tempString);<br />var nItemsLength = oItems.nodes.length;<br /><br />myinfo.page1.state.clearItems();<br />myinfo.page1.state.rawValue = null;<br /><br />for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++)<br />{<br />myinfo.page1.state.addItem(oItems.nodes.item(nItemCount).value);<br />}<br /><br />Here is my xml file<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><myinfo><br /><country/><br /><countries><br /><item uiname="United States" token="US"/><br /><item uiname="South Africa" token="SA"/><br /><item uiname="Australia" token="AU"/><br /></countries><br /><state/><br /><AU><br /><item>Australian Capital Territory</item><br /><item>New South Wales</item><br /><item>Northern Territory</item><br /><item>Queensland</item><br /><item>South Australia</item><br /><item>Tasmania</item><br /><item>Victoria</item><br /><item>Western Australia</item><br /></AU><br /><US><br /><item>California</item><br /><item>New York</item><br /><item>Texas</item><br /><item>Michigan</item><br /><item>North Carolina</item><br /><item>South Carolina</item><br /></US><br /><SA><br /><item>Eastern Cape</item><br /><item>Free State</item><br /><item>Gauteng</item><br /><item>KwaZulu-Natal</item><br /><item>Limpopo</item><br /><item>Mpumalanga</item><br /><item>Northern Cape</item><br /><item>North-West</item><br /><item>Western Cape</item><br /></SA><br /></myinfo><br /><br />I have two questions:<br /><br />1) I want to be able to structure my xml in a way that I can populate<br />a third drop-down list3 from a choice in list2. I need to know how to<br />to include the different capital cities of the states in my xml data<br />so that they can get populated in list3 from a selection in list2;<br /><br />2) And be able to script the third list3 to get dynamically populated<br />from a choice in list2.<br /><br />Thanks in advance for your help.

    I would like to ask someone for help.
    I have an XML file a result of the XSLT transformation. A schema was created based on this XML and this schema is bound to a form as a data source.  When I preview my form using a Preview tab with transformed XML as a Data File in LiveCycle Designer 8.1, I can see only the first form data across 3 Text fields on the form. The rest of the forms are not getting displayed. What am I doing wrong?
    Here is the part of the XML file Im trying to display on the form:
        FORM 1
        FORM 1 DESCRIPTION
        $5000
        FORM 2
        FORM 2 DESCRIPTION
        $7000
        FORM 3
        FORM 3 DESCRIPTION
        $4000
    Part of the schema that was created based on the XML file from above:
    Thank you.

  • Probelms with xml data binding in netscape

    I've written a small script to randomly pick a quote from a xml document of numorious quotes and change the innerHTML of a span so that one is displayed on the html document
    it works fine in IE but does nothing in netscape, opera, or mozilla
    why and how can i fix this?
    function quote() {
    function randRange(minNo, maxNo) {
    ranNumber = Math.round(Math.random()*(maxNo-minNo))+minNo;
    return ranNumber;
    Document = dsoquote.XMLDocument;
    maxNo = (Document.documentElement.childNodes.length)-1;
    ranNum=randRange(0,maxNo);
    quotespan.innerHTML = Document.documentElement.childNodes(0).text;
    }

    First of you need to check the Parser available with the netscape and that is compatabile or not.
    Regards,
    Ashok

  • XML data binding. What to choose?

    Hello XML gurus,
    I am about to write a GUI application where I need to initialize objects from xml file. What is the best technology to use for that. DOM, SAX, JAXB, JIBX... The xml file is relatively simple. Here is an example:
    <SCHEDULING>
      <Course>
        <courseID>1</courseID>
        <course_type_courseTypeID>1</course_type_courseTypeID>
        <department_departmentID>2</department_departmentID>
        <courseNum>116</courseNum>
        <name>Intro To Computer Systems</name>
        <subtitle></subtitle>
        <credits>3</credits>
        <notes>NOTE: May not be taken if student already has credit for any of the following: COSC 110, COSC 112, COSC 115, ISMN 111.</notes>
        <isCrossListed>0</isCrossListed>
        <isActive>1</isActive>
      </Course>
      <Course_Type>
        <courseTypeID>2</courseTypeID>
        <name>Lab</name>
        <abrev>LAB</abrev>
      </Course_Type>
      <Department>
        <departmentID>1</departmentID>
        <name>Mathematics</name>
        <abrev>MATH</abrev>
      </Department>
        <Instructor>
        <instructorID>1</instructorID>
        <room_roomID>1</room_roomID>
        <instructor_STATUS_statusID>1</instructor_STATUS_statusID>
        <department_departmentID>1</department_departmentID>
        <firstName>Homer</firstName>
        <lastName>Austin</lastName>
        <mi>W</mi>
        <phoneNum>36468</phoneNum>
        <emplid>1100000</emplid>
        <isActive>1</isActive>
      </Instructor>
      <Requisite>
        <requisiteID>1</requisiteID>
        <course_courseID>9</course_courseID>
        <course_requisiteCourseID>7</course_requisiteCourseID>
        <typeRequisite>1</typeRequisite>
      </Requisite>
      <Room>
        <roomID>13</roomID>
        <name>HS128</name>
        <maxCapacity>0</maxCapacity>
        <idealCapacity>0</idealCapacity>
        <isLab>0</isLab>
        <isOffice>1</isOffice>
      </Room>
      <Schedule>
        <scheduleID>11</scheduleID>
        <course_courseID>7</course_courseID>
        <instructor_instructorID>16</instructor_instructorID>
        <room_roomID>36</room_roomID>
        <semester_semesterID>1</semester_semesterID>
        <sectionNumber>2</sectionNumber>
        <startTime>12:30:00</startTime>
        <endTime>13:45:00</endTime>
        <enumDays>20</enumDays>
        <notes></notes>
        <idealCapacity>99</idealCapacity>
        <actualEnrollment>99</actualEnrollment>
        <workload>0</workload>
      </Schedule>
    </SCHEDULING>
      The last <Schedule> node is what GUI application should produce of modify. I am personally familiar only with DOM API, but
    what would you choose?
    serezha.

    I had kinda similar requirement and I found JAXB pretty heavy to use. So here is what I did.
    I created an interface which had two methods to drill down the hierarchy of objects.
    interface XX {
    Iterator getAllChildren()
    BaseClass getNamedChildClass(String childName)
    abstract class BaseClass implements XX {
    private Map keyValues = new HashMap();
    public void setValue(String name, Object value) {
    keyValues.put(name, value);
    public Object getValue(String name) {
    //return from map
    Now the application value object will look smthg like
    public class Course extends BaseClass {
    final String ID = "courseID";
    public setCourseId(Integer courseId) {
    setValue(ID, courseId);
    public Integer getCourseId() {
    return (Integer) getValue(ID);
    //Nested child classes will also extend base class
    So now you have a way to traverse Java object Hierarchy without knowing what they contain and how deep they are.
    Next step: Write a config file where you have
    Java location: Scheduling.Course.courseID
    Xpath: /Scheduling/Course/courseId
    Write a driver which will read this config file and fill those java objects based on this config file.
    Let me know if you have any questions. I have just finished writing XML--> Java piece of it. Will concentrate on Java --> xml part of it.

  • How do I use the Session State to manage bind variables & download xml data

    I have a Report Query with more than 30 queries; many have bind variables in them. I'd like to create sample xml so that I can develop my word templates. When I try to download the XML data Source for Layout, it doesn't ask for the bind variable values.
    How can I download the XML data without replacing the bind variable values in each of the queries?
    Thank you.

    If you are using the Standalone version, then first of all make sure to UNCHECK (BIP10g 10.1.3.4.1)
    "AUTO RUN" (it is under General Settings when you select your Report Definition)
    Next, you should define the parameters in the corresponding parameter Section.
    Its simplest form is of "Text" type so you will have to enter values at runtime.
    Then these parameters can be used in your query as bind variables.
    When you run the report it will prompt for parameter values. Enter these values
    and you would get a sample of your XML data.
    This should work and you should not find any issues.
    regards
    Jorge

  • Date time field will not bind over into XML data file

    am using the Current Date field in a form that is supposed to give me the current date & time. In the Object, Value, I am using a "calculated - Read Only" , with Run-time property of Date and Time. WHen I view this as a PDF, the current datae & time display on the form as well as when I view the body pages, the {current date/time} is displayed in the actual field of the form. My only problem is I want to bind this so I can export the data to an XML data file, to import to an Access Database. WHen I use these settings, I do not have a "binding" tab to use. WHen I change vaule to "calculation script), it then pops up the binding tab and let's me export the field to the XML data file, but the data in that field is not comming over (the date & time). The field comes into the database inport, but is blank. What am I doing wrong..?? Thanks in advance for any suggestions...

    Well, I'm assuming that when you change it to a calculation script you see the date in the PDF and therefore have the script to set the value written properly. So, if you change the binding from None to Normal or an explicit binding the date will be exported in the data. If all of that is correct, then the most likely problem is the data format you are exporting is not a format that your database will accept.
    Chris
    Adobe Enterprise Developer Support

  • Binding data when using xml data files

    Hello,
    I am pretty new to Flex4 and hope you hang on with my question. MAny thanks:
    I built an application first with PHP connection into a database which essentially listed IP of my company in a grid.
    One could filter the IP depending of technology, type of Ip and so on.
    When clicking in the grid, the details with many more fileds would apprear. This was working niceley as I had my services defined and needed only to drag services in the right place and add here and there some changes in the code
    Now, I wanted to do the same with an xml file instead of a mySQL database so to deploy it a little easier.
    I have the grid and the filtering working nicely.
    But I cannot create the data binding for the details.
    Below is the code. See the line before last where I tested if I could access to the  descriptipn fuield in my arrayCollection (coming from my xml)
    CAn anyone help me, please
    many thanks in advance and best regards
    Peter
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx"
       applicationComplete="myServ.send()" width="900" height="500">
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.events.ListEvent;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import spark.events.TextOperationEvent;
    [Bindable]
    private var myIPList:ArrayCollection;
    protected function myServ_faultHandler(event:FaultEvent):void
    Alert.show("Something went wrong", "Cannot load data");
    protected function myServ_resultHandler(event:ResultEvent):void
    if(event.result.test.IP is ArrayCollection){
    this.myIPList = event.result.test.IP as ArrayCollection;
    }else{
    var buffer:ArrayCollection = new ArrayCollection([event.result.test.IP]);
    this.myIPList = buffer;
    this.searchInput.enabled = false;
    this.searchInputTechnology.enabled = false;
    this.searchInputProvider.enabled = false;
    // serach for IP
    protected function searchInput_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFunc;
    this.myIPList.refresh();
    private function filterFunc(item:Object):Boolean
    if(String(item.IP).toLowerCase().indexOf(this.searchInput.text.toLowerCase()) > -1){
    return true;
    }else{
    return false;
    //  Search for Technology
    protected function searchInputTechnology_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFuncTechnology;
    this.myIPList.refresh();
    private function filterFuncTechnology(item:Object):Boolean
    if(String(item.Technology).toLowerCase().indexOf(this.searchInputTechnology.text.toLowerCa se()) > -1){
    return true;
    }else{
    return false;
    //  Search for Provider
    protected function searchInputProvider_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFuncProvider;
    this.myIPList.refresh();
    private function filterFuncProvider(item:Object):Boolean
    if(String(item.Provider).toLowerCase().indexOf(this.searchInputProvider.text.toLowerCase() ) > -1){
    return true;
    }else{
    return false;
    protected function myDG_changeHandler(event:ListEvent):void
    Alert.show("I Clicked. It should now be possible to see details, damned");
    ]]>
    </fx:Script>
    <fx:Declarations>
    <s:HTTPService id="myServ" url="IP.xml" fault="myServ_faultHandler(event)" result="myServ_resultHandler(event)"/>
    </fx:Declarations>
    <mx:DataGrid id="myDG" change="myDG_changeHandler(event)" x="37" y="134" width="814" height="159" dataProvider="{this.myIPList}">
    <mx:columns>
    <mx:DataGridColumn headerText="IP" dataField="IP"/>
    <mx:DataGridColumn headerText="short description" dataField="detail"/>
    <mx:DataGridColumn headerText="type" dataField="type"/>
    <mx:DataGridColumn headerText="Provider" dataField="Provider"/>
    <mx:DataGridColumn headerText="Technology" dataField="Technology"/>
    </mx:columns>
    </mx:DataGrid>
    <s:HGroup x="33" y="74" width="152" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="IP"/>
    <s:TextInput id="searchInput" change="searchInput_changeHandler(event)" width="103"/>
    </s:HGroup>
    <s:HGroup x="686" y="74" width="153" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="Technology"/>
    <s:TextInput id="searchInputTechnology" change="searchInputTechnology_changeHandler(event)" width="94"/>
    </s:HGroup>
    <s:HGroup x="519" y="74" width="153" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="Provider"/>
    <s:TextInput id="searchInputProvider" change="searchInputProvider_changeHandler(event)" width="94"/>
    </s:HGroup>
    <s:Label x="135" y="38" text="IP Road Map" fontSize="29" color="#524E4E"/>
    <s:TextArea id="myText" x="37" y="315" width="204" text="{this.myIPList}" height="164"/>
    <mx:Image x="33" y="18" width="74" height="57" id="STLogo" source="file:/Users/peterhirt/Pictures/stlogo.png"/>
    </s:Application>
    Here at tzhe end I append one record out of the xml files I used
    <?xml version="1.0" encoding="utf-8" ?>
    <test>
        <IP>
            <IP>USB2 PHY</IP>
            <detail>single port </detail>
            <type>USB</type>
            <Provider>TR&amp;D</Provider>
            <Technology>65lp</Technology>
            <maturity_status>MAT20</maturity_status>
            <status_date>Q4/09</status_date>
            <next_Maturity>MAT30</next_Maturity>
            <next_Date></next_Date>
            <HED>y</HED>
            <HED_criticality>2</HED_criticality>
            <HED_MAT20_request>Q4/09</HED_MAT20_request>
            <CCI></CCI>
            <CCI_criticality></CCI_criticality>
            <_CCI_MAT20_request></_CCI_MAT20_request>
            <APG></APG>
            <APG_criticality></APG_criticality>
            <APG_MAT20_request></APG_MAT20_request>
            <STE></STE>
            <STE_criticality></STE_criticality>
            <STE_MAT20_request></STE_MAT20_request>
            <IMS></IMS>
            <IMS_criticality></IMS_criticality>
            <IMS_MAT20_request></IMS_MAT20_request>
        </IP>

    Hi Kevin,
    the current XML export version is admittedly not suitable for handling HTML data, as it doesn´t put any data inside CDATA sections.
    How can I strip out this HTML using the XML export?
    I´m not aware of this functionality, but I´m sure it would have to be integrated into the respective "includes" files in order to become effective.
    However, you might consider using the manual "converting database queries to XML" approach explained on this page: http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html -- this will give you notably more freedom to e.g. preprocess some data before it´s getting stuffed inside an XML node.
    I am pulling RSS feeds from news sites and storing the rss items in a database
    Would it be possible to rather sanitize the data before it´s getting stored in the database ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Trying to bind XML data and form fields

    I have a fairly simple PDF - and I am trying to bind XML data to he form fields.
    In the designer I can bring up the data connection and
    select Global - for the binding method - and as I understand it - this will link Form Fields and XML data fields with the same name - (sounds logical to me)
    but all that happens is :
    I see the name of the field in the form field rahter than seeing the actual data
    should I select : None as the binding or normal ....
    but Normal doesnt show Anything - even after i select it .
    I can't quite seem to make this work -
    Any help here would be appreciated
    Thanks :)

    This is on a stand - alone system
    Using Designer ES ......
    I saved the Form as an xdp form
    and it seems as if all goes well until
    View the data and nothing appears - or
    just the names of the fields appear

  • ActionScript to bind XML data to components

    How can I use ActionScript to bind XML data to a comboBox
    component instead of using the component inspector? (I have done
    the latter, successfully, but that doesn’t allow access to
    the code - .)
    My ActionScript so far imports the data (the trace picks it
    up) – but the ‘cbType.dataProvider line’
    doesn’t work. It works when I change the data provider to an
    array – so what am I doing wrong?
    MY CODE:
    import mx.data.components.XMLConnector;
    var xcFestival:XMLConnector = new XMLConnector();
    xcFestival.ignoreWhite = true;
    xcFestival.direction = "receive";
    xcFestival.URL = "festivalItems.xml";
    xcFestival.trigger();
    //POPULATE THE COMPONENTS WITH THE DATA
    var festXMLlistener:Object = new Object();
    festXMLlistener.result = function(evt:Object) {
    trace(xcFestival.results);
    cbType.dataProvider = xcFestival.results;
    xcFestival.addEventListener("result",festXMLlistener);

    This is on a stand - alone system
    Using Designer ES ......
    I saved the Form as an xdp form
    and it seems as if all goes well until
    View the data and nothing appears - or
    just the names of the fields appear

  • Binding Datagrid XML Data

    Hi,
    Summary: I cannot get my DataGrid binding with XML data.
    Specifically, I cannot bind a DataGridColumn with a child of a
    child using the dataField property. However, I can bind with a
    direct child.
    I'm currently building an application where I retrieve data
    from a XML database and contact it through posting a XQuery to the
    database. I set the resultFormat of my HTTPServer to "e4x".
    quote:
    <mx:HTTPService id="searchRequest" url="
    http://localhost:8080/exist/rest/db/"
    contentType="application/xml" useProxy="false"
    method="POST" resultFormat="e4x" />
    I receive this data:
    quote:
    <exist:result exist:hits="1" exist:start="1"
    exist:count="1" xmlns:exist="
    http://exist.sourceforge.net/NS/exist">
    <schedule>
    <tournament>
    <sport>Testing Our DTD</sport>
    <tname>Well-formed Document</tname>
    <match>
    <mdate>Oct. 12, 2007</mdate>
    <competitor>
    <cname>sd</cname>
    <score>2</score>
    </competitor>
    <competitor>
    <cname>sdgs</cname>
    <score>3</score>
    </competitor>
    <location>
    <city>San Luis Obispo</city>
    <state>CA</state>
    <country>USA</country>
    <stadium>Test Stadium, OPTIONAL</stadium>
    </location>
    <tv>SVN</tv>
    <description>Basic testing...</description>
    </match>
    </tournament>
    </schedule>
    </exist:result>
    I receive the data fine however, I cannot nested
    elements of the XML nodes I retrieve. Here is my data grid.
    quote:
    <mx:DataGrid id="grid" width="446" height="100%"
    dataProvider="{searchRequest.lastResult.schedule.tournament.match}"
    enabled="true">
    <mx:columns>
    <mx:DataGridColumn headerText="Tournament" />
    <mx:DataGridColumn headerText="Match Date"
    dataField="mdate" />
    <mx:DataGridColumn headerText="Sport" />
    <mx:DataGridColumn headerText="City"
    dataField="location.city"/>
    <mx:DataGridColumn headerText="State"
    dataField="location.state"/>
    </mx:columns>
    </mx:DataGrid>
    The 'mdate' shows up however, 'location.city'
    and 'location.state' do not. I am not sure how the dataField works.
    Does it get the 'current' node and allow me to drill down in the
    XML node?
    I will note that I can get it working with a labelFunction
    and an ItemRenderer. I feel that using either of those methods for
    this is a bit verbose.

    The default DGColumn picks up the property value by doing
    data[dataField]. Due to this the nested value would not be picked
    up.
    By extending DGColumn and overriding the itemToLabel function
    it is possible to get the desired functionality by adding code to
    detect "field1.field2" kind of dataField value and returning the
    nested value.
    This custom DGColumn can be used whererever the functionality
    is desired.

  • Query with bind var created under apex to generate xml data

    Hi all;
    BiP: 10.1.3.4
    Apex: 4
    DB 10G
    Goal: want to generate a report by running a query with bind variables under apex.
    problem: when attempted to create a query under shared components in apex, at the downloading xml data stage, I always get "no data found" eror. Thus I can't save xml data for further report work. This only occurs when bind var involved. I have tticked "incl. session variables" and added the item but to no avail.
    Does anyone know how to do this and get the xml data to recive the bind variable ?
    Thanks.
    lulu

    To get the xml data, sql query has to return something. Why the sql is not returning anything can be better investigated outside the BI Publisher with special tool like SQL Developer or TOAD. There you have to run your query and make it working. One of the steps would be to try the sql without the parameter, see what data it brings back and go from there. One of possibilities why the parameter kills the output may be the NULL values involved, but you need to try the sql outside the BIP first.

  • Bind XML data to PDF417 barcode - LiveCycle Designer ES

    Trying to create a shipping form for a supplier that contains a PDF417 barcode.  The source data will come from an XML data file.  The form in not interactive, the data file will simply populate the pdf form, read-only via a Coldfusion program that queries our shipping data.  But I'm not quite able to connect the dots.  Does anyone know how to supply the data in the correct format within the XML doc?  It consists of 5 fields / row, with 10 rows max.  I'm unclear because the barcode software previously used embedded control chars within the data, such as record separators, group separators, and end of transmission.  Do I need to include these for LiveCycle?  As you've probably already guessed, yes, I do not use LiveCycle much at all. 
    I'm using LiveCycle ES2 version 9
    Any advice is much appreciated.  Thanks!

    There are a couple of ways to populate the barcode from Designer. First, is the manual coding method. In the "calculate" or (preferably) the "pre-print" event you change the .rawValue of the barcode object and change it to the value of the fields you wish to include. Alternatively there is a fairly good script generator built into designer that is accesible through the barcode object properties UI. Here you can have the content of the barcode auto-filled based on the entire form or selected fields in a collection. As a general rule of thumb: never select XML as your barcode data format and don't use the auto-generated code on a form with more than 30 or 40 fields.

  • Castor XML mapping

    I am using and XML and trying to map to a class. I do not want to fit all the fields in XML to fields in java class.
    For example: I have fields field1, field2, field3 in XML. But my java class wants only field1 and field2 and NOT field3. How do I do it. I want to ignore field3.
    Mapping map = new Mapping();
    map.loadMapping("mapping.xml");
    Reader reader = new FileReader("abc.xml");
    Unmarshaller unmarshaller = new Unmarshaller(map);
    ABCClass read = (ABCClass)unmarshaller.unmarshal(reader);
    System.out.println(read);
    Getting error: unable to find FieldDescriptor for field3' in ClassDescriptor of ABC-Class
    Above error looks very logical. I don't want to check java class for all the tags/fields in XML doc,
    I guess this is a general requirement in many cases and simple to solve.
    Thanks

    hi, I'm also having an error message stated like this
    unable to find FieldDescriptor for 'ope-act-code' in ClassDescriptor of tireoperation-bean{file: [not available]; line: 1; column: 6551}
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:707)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.importWareFile(ImportWareFileManagementProcess.java:57)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.getImpWareRefBean(ImportWareFileManagementProcess.java:104)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.processImpWareRef(ImportWareFileManagementProcess.java:94)
         at com.michelin.npc.rcp.shipment.actions.ShipmentImportFileAction.executeAction(ShipmentImportFileAction.java:34)
         at com.michelin.xnet.rcp.actions.XnetAction.run(XnetAction.java:54)
         at com.michelin.xnet.rcp.actions.XnetAction.run(XnetAction.java:46)
         at com.michelin.npc.rcp.shipment.wizards.ShipmentImportFileWizard$1.run(ShipmentImportFileWizard.java:35)
         at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
         at com.michelin.npc.rcp.shipment.wizards.ShipmentImportFileWizard.performFinish(ShipmentImportFileWizard.java:26)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:680)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:355)
         at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at com.michelin.xrcp.desktop.internal.Application.run(Application.java:40)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
         at org.eclipse.core.launcher.Main.run(Main.java:977)
         at org.eclipse.core.launcher.Main.main(Main.java:952)
    Caused by: org.xml.sax.SAXException: unable to find FieldDescriptor for 'ope-act-code' in ClassDescriptor of tireoperation-bean
         at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1933)
         at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1375)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:693)
         ... 37 more
    Caused by: org.xml.sax.SAXException: unable to find FieldDescriptor for 'ope-act-code' in ClassDescriptor of tireoperation-bean
         at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1933)
         at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1375)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:693)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.importWareFile(ImportWareFileManagementProcess.java:57)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.getImpWareRefBean(ImportWareFileManagementProcess.java:104)
         at com.michelin.npc.shipment.bp.ImportWareFileManagementProcess.processImpWareRef(ImportWareFileManagementProcess.java:94)
         at com.michelin.npc.rcp.shipment.actions.ShipmentImportFileAction.executeAction(ShipmentImportFileAction.java:34)
         at com.michelin.xnet.rcp.actions.XnetAction.run(XnetAction.java:54)
         at com.michelin.xnet.rcp.actions.XnetAction.run(XnetAction.java:46)
         at com.michelin.npc.rcp.shipment.wizards.ShipmentImportFileWizard$1.run(ShipmentImportFileWizard.java:35)
         at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
         at com.michelin.npc.rcp.shipment.wizards.ShipmentImportFileWizard.performFinish(ShipmentImportFileWizard.java:26)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:680)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:355)
         at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at com.michelin.xrcp.desktop.internal.Application.run(Application.java:40)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
         at org.eclipse.core.launcher.Main.run(Main.java:977)
         at org.eclipse.core.launcher.Main.main(Main.java:952)
    and my mapping xml is like this.
    <?xml version="1.0"?>
    <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN" "http://castor.exolab.org/mapping.dtd">
    <mapping>
         <!-- MAIN start -->
    <class name="com.michelin.npc.shipment.bo.ImpWareFileBean">
         <map-to xml="EXPORT_WAREHOUSE"/>      
         <field name="impWareReferential"
    type="com.michelin.npc.shipment.bo.ImpWareFileReferentialBean">
    <bind-xml name="REFERENTIAL"/>
    </field>
    <field name="impWareShipment"
    type="com.michelin.npc.shipment.bo.ImpWareFileShipmentBean">
    <bind-xml name="SHIPMENT"/>
    </field>
    </class>
    <!-- MAIN end -->
    <!-- REFERENTIAL begin -->
    <class name="com.michelin.npc.shipment.bo.ImpWareFileReferentialBean">
         <field name="tireStates"
    type="com.michelin.npc.tirestate.bo.TirestateBean"
    collection="collection">
    <bind-xml name="TB_REF_TIRESTATE"/>
    </field>
         <field name="tireFittings"
    type="com.michelin.npc.tirefitting.bo.TirefittingBean"
    collection="collection">
    <bind-xml name="TB_REF_TIREFITTING"/>
    </field>
         <field name="tireOperations"
    type="com.michelin.npc.tireoperation.bo.TireoperationBean"
    collection="collection">
    <bind-xml name="TB_REF_TIREOPERATION"/>
    </field>
         <field name="places"
    type="com.michelin.npc.place.bo.PlaceBean"
    collection="collection">
    <bind-xml name="TB_REF_PLACE"/>
    </field>
         <field name="dtoCategories"
    type="com.michelin.npc.dtocategory.bo.DtocategoryBean"
    collection="collection">
    <bind-xml name="TB_REF_DTOCATEGORY"/>
    </field>
         <field name="dtoFamilies"
    type="com.michelin.npc.dtofamily.bo.DtofamilyBean"
    collection="collection">
    <bind-xml name="TB_REF_DTOFAMILY"/>
    </field>
         <field name="groups"
    type="com.michelin.npc.group.bo.GroupBean"
    collection="collection">
    <bind-xml name="TB_REF_GROUP"/>
    </field>
         <field name="activities"
    type="com.michelin.npc.activity.bo.ActivityBean"
    collection="collection">
    <bind-xml name="TB_REF_ACTIVITY"/>
    </field>
         <field name="parameters"
    type="com.michelin.npc.parameter.bo.ParameterBean"
    collection="collection">
    <bind-xml name="TB_REF_PARAMETER"/>
    </field>
    </class>
         <class name="com.michelin.npc.tirestate.bo.TirestateBean">
              <field name="actCode" type="java.lang.String" >
                   <bind-xml name="STATE_ACT_CODE" node="attribute" />
              </field>
              <field name="stateCode" type="java.lang.String" >
                   <bind-xml name="STATE_CODE" node="attribute" />
              </field>
              <field name="stateName" type="java.lang.String" >
                   <bind-xml name="STATE_NAME" type="varchar" />
              </field>
              <field name="stateLlStock" type="java.lang.String" >
                   <bind-xml name="STATE_LL_STOCK" type="varchar" />
              </field>
              <field name="stateConsup" type="java.lang.String" >
                   <bind-xml name="STATE_CONSUP" type="varchar" />
              </field>
              <field name="stateStockShown" type="java.lang.String" >
                   <bind-xml name="STATE_STOCK_SHOWN" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.tirefitting.bo.TirefittingBean">
              <field name="actCode" type="java.lang.String" >
                   <bind-xml name="FIT_ACT_CODE" node="attribute" />
              </field>
              <field name="fitCode" type="java.lang.String" >
                   <bind-xml name="FIT_CODE" type="varchar" />
              </field>
              <field name="fitName" type="java.lang.String" >
                   <bind-xml name="FIT_NAME" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.tireoperation.bo.TireoperationBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="OPE_ACT_CODE" node="attribute" />
              </field>
              <field name="opeCode" type="java.lang.String" >
                   <sql name="OPE_CODE" type="varchar" />
              </field>
              <field name="opeName" type="java.lang.String" >
                   <sql name="OPE_NAME" type="varchar" />
              </field>
         </class>     
         <class name="com.michelin.npc.place.bo.PlaceBean">
              <field name="plCode" type="java.lang.String" >
                   <sql name="PL_CODE" node="attribute" />
              </field>
              <field name="plName" type="java.lang.String" >
                   <sql name="PL_NAME" type="varchar" />
              </field>
              <field name="plWareh" type="java.lang.String" >
                   <sql name="PL_WAREH" type="varchar" />
              </field>
              <field name="plInvoice" type="java.lang.String" >
                   <sql name="PL_INVOICE" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.dtocategory.bo.DtocategoryBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="CAT_ACT_CODE" node="attribute" />
              </field>
              <field name="catCode" type="java.lang.String" >
                   <sql name="CAT_CODE" type="varchar" />
              </field>
              <field name="catName" type="java.lang.String" >
                   <sql name="CAT_NAME" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.dtofamily.bo.DtofamilyBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="FAM_ACT_CODE" node="attribute"/>
              </field>
              <field name="famCode" type="java.lang.String" >
                   <sql name="FAM_CODE" type="varchar" />
              </field>
              <field name="famName" type="java.lang.String" >
                   <sql name="FAM_NAME" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.group.bo.GroupBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="GR_ACT_NUM" node="attribute" />
              </field>
              <field name="grNum" type="java.math.BigDecimal" >
                   <sql name="GR_NUM" type="decimal" />
              </field>
              <field name="grQtyMax" type="java.math.BigDecimal" >
                   <sql name="GR_QTY_MAX" type="decimal" />
              </field>
              <field name="grDtoMax" type="java.math.BigDecimal" >
                   <sql name="GR_DTO_MAX" type="decimal" />
              </field>
              <field name="grComment" type="java.lang.String" >
                   <sql name="GR_COMMENT" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.activity.bo.ActivityBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="ACT_CODE" node="attribute"/>
              </field>
              <field name="actName" type="java.lang.String" >
                   <sql name="ACT_NAME" type="varchar" />
              </field>
              <field name="actUnity" type="java.lang.String" >
                   <sql name="ACT_UNITY" type="varchar" />
              </field>
              <field name="actInvoicing" type="java.lang.String" >
                   <sql name="ACT_INVOICING" type="varchar" />
              </field>
              <field name="actWallpaper" type="java.lang.String" >
                   <sql name="ACT_WALLPAPER" type="varchar" />
              </field>
              <field name="actLogo" type="java.lang.String" >
                   <sql name="ACT_LOGO" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.parameter.bo.ParameterBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="PAR_ACT_CODE" node="attribute"/>
              </field>
              <field name="parCode" type="java.lang.String" >
                   <sql name="PAR_CODE" type="varchar" />
              </field>
              <field name="parValue" type="java.lang.String" >
                   <sql name="PAR_VALUE" type="varchar" />
              </field>
              <field name="parName" type="java.lang.String" >
                   <sql name="PAR_NAME" type="varchar" />
              </field>
         </class>
         <!-- REFERENTIAL end -->
    <!-- SHIPMENT begin -->     
    <class name="com.michelin.npc.shipment.bo.ImpWareFileShipmentBean">
         <field name="shipment"
    type="com.michelin.npc.shipment.bo.ShipmentBean">
    <bind-xml name="TB_TRN_SHIPMENT"/>
    </field>
         <field name="grMakes"
    type="com.michelin.npc.grmake.bo.GrMakeBean"
    collection="collection">
    <bind-xml name="TB_TRN_GR_MAKE"/>
    </field>
         <field name="packingList"
    type="com.michelin.npc.packinglist.bo.PackinglistBean"
    collection="collection">
    <bind-xml name="TB_TRN_PACKINGLIST"/>
    </field>
         <field name="tires"
    type="com.michelin.npc.tire.bo.TireBean"
    collection="collection">
    <bind-xml name="TB_TRN_TIRE"/>
    </field>
         <field name="dtos"
    type="com.michelin.npc.dto.bo.DtoBean"
    collection="collection">
    <bind-xml name="TB_TRN_DTO"/>
    </field>
         <field name="cqs"
    type="com.michelin.npc.cq.bo.CqBean"
    collection="collection">
    <bind-xml name="TB_TRN_CQ"/>
    </field>
         <field name="traceability"
    type="com.michelin.npc.traceability.bo.TraceabilityBean"
    collection="collection">
    <bind-xml name="TB_TRN_TRACEABILITY"/>
    </field>
    </class>
         <class name="com.michelin.npc.shipment.bo.ShipmentBean" >
              <field name="shipAutoNum" type="java.math.BigDecimal" >
                   <bind-xml name="SHIP_AUTO_NUM" node="attribute" />
              </field>
              <field name="actCode" type="java.lang.String" >
                   <bind-xml name="SHIP_ACT_CODE" type="varchar" />
              </field>
              <field name="plCodeShipper" type="java.lang.String" >
                   <bind-xml name="SHIP_PL_CODE_SHIPPER" type="varchar" />
              </field>
              <field name="plCodeDest" type="java.lang.String" >
                   <bind-xml name="SHIP_PL_CODE_DEST" type="varchar" />
              </field>
              <field name="shipEventDate" type="java.util.Date" >
                   <bind-xml name="SHIP_EVENT_DATE" type="timestamp" />
              </field>
              <field name="shipName" type="java.lang.String" >
                   <bind-xml name="SHIP_NAME" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.grmake.bo.GrMakeBean">
              <field name="grNum" type="java.math.BigDecimal" >
                   <sql name="GRM_GR_NUM" type="decimal" />
              </field>
              <field name="actCode" type="java.lang.String" >
                   <sql name="GRM_ACT_CODE" type="varchar" />
              </field>
              <field name="shipAutoNum" type="java.math.BigDecimal" >
                   <sql name="GRM_SHIP_NUM" type="decimal" />
              </field>
         </class>
         <class name="com.michelin.npc.packinglist.bo.PackinglistBean">
              <field name="shipAutoNum" type="java.math.BigDecimal" >
                   <sql name="PL_SHIP_NUM" type="decimal" />
              </field>
              <field name="plAutoNum" type="java.math.BigDecimal" >
                   <sql name="PL_AUTO_NUM" type="decimal" />
              </field>
              <field name="plName" type="java.lang.String" >
                   <sql name="PL_NAME" type="varchar" />
              </field>
              <field name="plDate" type="java.util.Date" >
                   <sql name="PL_DATE" type="timestamp" />
              </field>
              <field name="plCarrier" type="java.lang.String" >
                   <sql name="PL_CARRIER" type="varchar" />
              </field>
              <field name="plVehicle" type="java.lang.String" >
                   <sql name="PL_VEHICLE" type="varchar" />
              </field>
              <field name="plSent" type="java.lang.String" >
                   <sql name="PL_SENT" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.tire.bo.TireBean">
              <field name="actCode" type="java.lang.String" >
                   <sql name="TIRE_ACT_CODE" type="varchar" />
              </field>
              <field name="grNum" type="java.math.BigDecimal" >
                   <sql name="TIRE_GR_NUM" type="decimal" />
              </field>
              <field name="plCodeConsup" type="java.lang.String" >
                   <sql name="TIRE_PLA_CODE_CONSUP" type="varchar" />
              </field>
              <field name="plCode" type="java.lang.String" >
                   <sql name="TIRE_PL_CODE" type="varchar" />
              </field>
              <field name="fitCodeConsup" type="java.lang.String" >
                   <sql name="TIRE_FIT_CODE_CONSUP" type="varchar" />
              </field>
              <field name="fitCode" type="java.lang.String" >
                   <sql name="TIRE_FIT_CODE" type="varchar" />
              </field>
              <field name="opeCode" type="java.lang.String" >
                   <sql name="TIRE_OPE_CODE" type="varchar" />
              </field>
              <field name="stateCode" type="java.lang.String" >
                   <sql name="TIRE_STATE_CODE" type="varchar" />
              </field>
              <field name="boxNum" type="java.lang.String" >
                   <sql name="TIRE_BOX_CODE" type="varchar" />
              </field>
              <field name="dtoNumOrig" type="java.lang.String" >
                   <sql name="TIRE_DTO_NUM_ORIGIN" type="varchar" />
              </field>
              <field name="dtoNum" type="java.lang.String" >
                   <sql name="TIRE_DTO_NUM" type="varchar" />
              </field>
              <field name="llAutoNum" type="java.math.BigDecimal" >
                   <sql name="TIRE_LL_NUM" type="decimal" />
              </field>
              <field name="plAutoNum" type="java.math.BigDecimal" >
                   <sql name="TIRE_PL_NUM" type="decimal" />
              </field>
              <field name="shipAutoNum" type="java.math.BigDecimal" >
                   <sql name="TIRE_SHIP_NUM" type="decimal" />
              </field>
              <field name="tireCab" type="java.lang.String" >
                   <sql name="TIRE_CAB" type="varchar" />
              </field>
              <field name="tireMat" type="java.lang.String" >
                   <sql name="TIRE_MAT" type="varchar" />
              </field>
              <field name="tireFia" type="java.lang.String" >
                   <sql name="TIRE_FIA" type="varchar" />
              </field>
              <field name="tireSituation" type="java.lang.String" >
                   <sql name="TIRE_SITUATION" type="varchar" />
              </field>
              <field name="tireWeight" type="java.math.BigDecimal" >
                   <sql name="TIRE_WEIGHT" type="decimal" />
              </field>
              <field name="tireDateManu" type="java.util.Date" >
                   <sql name="TIRE_DATE_MANU" type="timestamp" />
              </field>
              <field name="tireLastUpdate" type="java.util.Date" >
                   <sql name="TIRE_LAST_UPDATE" type="timestamp" />
              </field>
              <field name="tireNbFitting" type="java.math.BigDecimal" >
                   <sql name="TIRE_NB_FITTING" type="decimal" />
              </field>
              <field name="tireDateConsup" type="java.util.Date" >
                   <sql name="TIRE_DATE_CONSUP" type="timestamp" />
              </field>
         </class>
         <class name="com.michelin.npc.dto.bo.DtoBean">
              <field name="caiCode" type="java.lang.String" >
                   <sql name="DTO_CAI_CODE" type="varchar" />
              </field>
              <field name="catCode" type="java.lang.String" >
                   <sql name="DTO_CAT_CODE" type="varchar" />
              </field>
              <field name="actCode" type="java.lang.String" >
                   <sql name="DTO_ACT_CODE" type="varchar" />
              </field>
              <field name="famCode" type="java.lang.String" >
                   <sql name="DTO_FAM_CODE" type="varchar" />
              </field>
              <field name="dtoNum" type="java.lang.String" >
                   <sql name="DTO_NUM" type="varchar" />
              </field>
              <field name="dtoDimension" type="java.lang.String" >
                   <sql name="DTO_DIMENSION" type="varchar" />
              </field>
              <field name="dtoFR" type="java.lang.String" >
                   <sql name="DTO_F_R" type="varchar" />
              </field>
              <field name="dtoLR" type="java.lang.String" >
                   <sql name="DTO_L_R" type="varchar" />
              </field>
              <field name="dtoCb" type="java.lang.String" >
                   <sql name="DTO_CB" type="varchar" />
              </field>
              <field name="dtoCbl" type="java.lang.String" >
                   <sql name="DTO_CBL" type="varchar" />
              </field>
              <field name="dtoLpc" type="java.lang.String" >
                   <sql name="DTO_LPC" type="varchar" />
              </field>
              <field name="dtoLimitedProd" type="java.lang.String" >
                   <sql name="DTO_LIMITED_PROD" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.cq.bo.CqBean">
              <field name="tireCab" type="java.lang.String" >
                   <sql name="CQ_CAB" type="varchar" />
              </field>
              <field name="cqCode" type="java.lang.String" >
                   <sql name="CQ_CODE" type="varchar" />
              </field>
              <field name="cqDate" type="java.util.Date" >
                   <sql name="CQ_DATE" type="timestamp" />
              </field>
              <field name="cqClassification" type="java.lang.String" >
                   <sql name="CQ_CLASSIFICATION" type="varchar" />
              </field>
              <field name="cqCote" type="java.lang.String" >
                   <sql name="CQ_COTE" type="varchar" />
              </field>
         </class>
         <class name="com.michelin.npc.traceability.bo.TraceabilityBean">
              <field name="tireCab" type="java.lang.String" >
                   <sql name="TRA_CAB" type="varchar" />
              </field>
              <field name="traDate" type="java.util.Date" >
                   <sql name="TRA_DATE" type="timestamp" />
              </field>
              <field name="traCode" type="java.lang.String" >
                   <sql name="TRA_CODE" type="varchar" />
              </field>
              <field name="traMat" type="java.lang.String" >
                   <sql name="TRA_MAT" type="varchar" />
              </field>
              <field name="traFia" type="java.lang.String" >
                   <sql name="TRA_FIA" type="varchar" />
              </field>
              <field name="traDtoNum" type="java.lang.String" >
                   <sql name="TRA_DTO_NUM" type="varchar" />
              </field>
              <field name="traPlCode" type="java.lang.String" >
                   <sql name="TRA_PL_CODE" type="varchar" />
              </field>
              <field name="traValue" type="java.lang.String" >
                   <sql name="TRA_VALUE" type="varchar" />
              </field>
              <field name="traGrNum" type="java.math.BigDecimal" >
                   <sql name="TRA_GR_NUM" type="decimal" />
              </field>
              <field name="traPlNum" type="java.math.BigDecimal" >
                   <sql name="TRA_PL_NUM" type="decimal" />
              </field>
              <field name="traLlNum" type="java.math.BigDecimal" >
                   <sql name="TRA_LL_NUM" type="decimal" />
              </field>
              <field name="traShipDate" type="java.util.Date" >
                   <sql name="TRA_SHIP_DATE" type="timestamp" />
              </field>
              <field name="traShipPlCodeDest" type="java.lang.String" >
                   <sql name="TRA_SHIP_PL_CODE_DEST" type="varchar" />
              </field>
              <field name="traUsrIdent" type="java.lang.String" >
                   <sql name="TRA_USR_IDENT" type="varchar" />
              </field>
              <field name="traActCode" type="java.lang.String" >
                   <sql name="TRA_ACT_CODE" type="varchar" />
              </field>
         </class>
    <!-- SHIPMENT end -->               
    </mapping>
    could anyone help me out here.

  • Mapped Data Binding

    I will like to consider XMLBeans for mapping XML instance, at run-time,
    into class loading/object instances/my-precoded handlers.
    Looking for the richest possible framewark to process SOAP/XML instances without
    code pre-generation, just run-time loading/calling of custom code. Yes - the SOAP
    body is 100% schema based.
    In a sense - XML instance will act as Declarative flow control thru non-XMLBeans-codeGenerated
    handlers - for a each SOAP request
    Castor and Quick are sometimes positioned to have such "mapped" functionality.
    I noticed XMLBeans roadmap to support Web Services and fully/timely support XMLSchema
    now searching for support of run-time routing to non-generated XML handlers.
    Shmuel Koller, BMC
    [email protected]

    Thank you for your responses,
    i resolved my problem on another way.
    @Ayyapparaj: Yes i call the execute in the component controller, but the data loss based on another problem. I used the public component of the model DC in both view DCs and create a data binding between the interface of the model DC and the component controler of both view components. At runtime, two model objects will be instantiated. That means that the two components uses two differen model contents.
    Now i build in the view DC only one component, so that i use only one model object and i'm able to display the model content in all views.
    Thanks
    Florian

Maybe you are looking for

  • Can't open raw files from Nikon D4s in CS3

    I recently purchased a Nikon D4s & can't open my RAW files in CS3 or Lightroom, do I need a Photoshop upgrade.  I noticed the D4s has an minimum ACR plugin requirement of 8. Thanks Kate

  • An authorised service provider does not want to repair based on applecare+

    I have an iPad 3, and its screen is broken,, I took it to an authorized apple service provider in Dubai (UAE) to fix it. I have applecare+ that is valid till 2014 and never used before. However, this service provider does not agree on repairing or re

  • How to configure staggered payments in SAP

    Hi Gurus, We need to make staggered payments to our vendors against service orders Is there a standard functionality in SAP for the same. Please help. Regards, Harmees

  • Pattern matching SQL

    Hello I have a data set that is similar to the following 00-1111-2222 01-2000 ABCDEFG A bcde 04-3456 08-2001 I want to retrieve only those records that match the following pattern: ##-YYYY where ## is a number and YYYY is a year So in this case I onl

  • Sap Note 918877 - DB13

    We have referred to the note 918877 and have noticed that in the table mentioned (SDBAC) that the entry for a specific key differs in the pre and post upgrade environments.  Is anyone aware if: 1) This is as expected i.e. a new mechanism introduced b