javax.xml.bind.UnmarshalException:

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • popprem
    New Member
    • Nov 2008
    • 19

    javax.xml.bind.UnmarshalException:

    hi,
    I validated my schema & xml in JAXP. its validated fine. I created the object model in JAXB using xjc command & wn i try to run run the program in throws javax.xml.bind. UnmarshalExcept ion: unexpected element{} exception.
    Can anyone please help me???
    Thanks in advance.
    here are the schema & file
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
                jxb:version="1.0">
      <xsd:annotation>
      <xsd:appinfo>
        <jxb:globalBindings
            fixedAttributeAsConstantProperty="false"
            collectionType="java.util.Vector"
            choiceContentProperty="false"
            enableFailFastCheck="false"   
            generateIsSetMethod="false"
            underscoreBinding="asCharInWord"/>
        <jxb:schemaBindings>
          <jxb:package name="schema"/>
          <jxb:nameXmlTransform>
             <jxb:elementName suffix="Element"/>
          </jxb:nameXmlTransform>
        </jxb:schemaBindings>
      </xsd:appinfo>
      </xsd:annotation>
      <xsd:element name="FIXadaptor2">
        <xsd:complexType>
           <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="FIXadaptor2"/>
             </xsd:appinfo>
           </xsd:annotation>
          <xsd:sequence>
            <xsd:element name="CounterParty" type="Counter_Party" minOccurs="1" maxOccurs="unbounded">
              <xsd:key name="PK_CounterParty">
                <xsd:selector xpath="CounterParty" />
                <xsd:field xpath="CPID" />
              </xsd:key>
              <xsd:keyref name="CounterParty_CPID" refer="PK_CounterParty">
                <xsd:selector xpath="Counter_Party" />
                <xsd:field xpath="CPID" />
              </xsd:keyref>
            </xsd:element>
            <xsd:element name="TransformList" type="Transform_List" minOccurs="1" maxOccurs="unbounded">
              <xsd:key name="PK_TransformList">
                <xsd:selector xpath=".//Transform_List" />
                <xsd:field xpath="TransformType" />
              </xsd:key>
              <xsd:keyref name="TransformListTransform" refer="PK_TransformList">
                <xsd:selector xpath=".//Transform_List" />
                <xsd:field xpath="TransformType" />
              </xsd:keyref>
            </xsd:element>
            <xsd:element name="Filter" type="Filter_List" minOccurs="1" maxOccurs="unbounded">
              <xsd:key name="PK_Filter">
                <xsd:selector xpath=".//Filter_List" />
                <xsd:field xpath="FilterID" />
              </xsd:key>
              <xsd:keyref name="TransformProfleFilter" refer="PK_Filter">
                <xsd:selector xpath=".//Filter_List" />
                <xsd:field xpath="FilterID" />
              </xsd:keyref>
            </xsd:element>
            <xsd:element name="TransformProfile" type="Transform_Profile" minOccurs="1" maxOccurs="unbounded">
              <xsd:key name="PK_TransformProfile">
                <xsd:selector xpath=".//Transform_Profile" />
                <xsd:field xpath="ProfileID" />
              </xsd:key>
              <xsd:keyref name="ProfileDetailTransform" refer="PK_TransformProfile">
                <xsd:selector xpath=".//Transform_Profile" />
                <xsd:field xpath="ProfileID" />
              </xsd:keyref>
            </xsd:element>
          </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
      <xsd:complexType name="Transform_List">
         <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="TransformList"/>
             </xsd:appinfo>
          </xsd:annotation>
        <xsd:sequence>
          <xsd:element name="TransformType" type="xsd:string" />
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="IsSourceTag" type="xsd:boolean" />
          <xsd:element name="IsTargetTag" type="xsd:boolean" />
          <xsd:element name="IsConstValue" type="xsd:boolean" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
          <xsd:element name="Transform" type="Transform_Detail" minOccurs="1" maxOccurs="unbounded">
            <xsd:key name="PK_Transform">
              <xsd:selector xpath=".//Transform_Detail" />
              <xsd:field xpath="TransformID" />
              <xsd:field xpath="TransformCode" />
            </xsd:key>
            <xsd:keyref name="TransformProfileTransform" refer="PK_Transform">
              <xsd:selector xpath=".//Transform_Detail" />
              <xsd:field xpath="ActionID" />
              <xsd:field xpath="ActionType" />
            </xsd:keyref>
            
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Transform_Detail">
          <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="TransformDetail"/>
             </xsd:appinfo>
          </xsd:annotation>
        <xsd:sequence>
          <xsd:element name="TransformID" type="xsd:int" />
          <xsd:element name="TransformCode" type="xsd:string" />
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="TransformType" type="xsd:string" />
          <xsd:element name="SourceTag" type="xsd:string" />
          <xsd:element name="DestTag" type="xsd:string" />
          <xsd:element name="ConstValue" type="xsd:string" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
          <xsd:element name="TransformProfileDetail" type="Transform_Profile_Detail" minOccurs="0" maxOccurs="unbounded">
            <xsd:key name="PK_TransformProfilDetail">
              <xsd:selector xpath=".//Transform_Profile_Detail" />
              <xsd:field xpath="ProfileDetailID" />
            </xsd:key>
            
            
            
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Transform_Profile_Detail">
          <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="TransformProfileDetail"/>
             </xsd:appinfo>
          </xsd:annotation>
        <xsd:sequence>
          <xsd:element name="ProfileID" type="xsd:int" />
          <xsd:element name="ProfileDetailID" type="xsd:int" />
          <xsd:element name="Priority" type="xsd:int" />
          <xsd:element name="FilterID" type="xsd:int" />
          <xsd:element name="ActionType" type="xsd:string" />
          <xsd:element name="ActionID" type="xsd:int" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Filter_List">
          <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="Filter"/>
             </xsd:appinfo>
          </xsd:annotation>
        <xsd:sequence>
          <xsd:element name="FilterID" type="xsd:int" />
          <xsd:element name="FilterCode" type="xsd:string" />
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
          <xsd:element name="TransformProfileDetail" type="Transform_Profile_Detail" minOccurs="0" maxOccurs="unbounded" />
          <xsd:element name="FilterDetail" type="Filter_Detail" minOccurs="0" maxOccurs="unbounded">
            <xsd:key name="PK_FilterDetail">
              <xsd:selector xpath=".//Filter_Detail" />
              <xsd:field xpath="FilterDetailID" />
            </xsd:key>
            <xsd:keyref name="FilterDetailFilter" refer="PK_FilterDetail">
              <xsd:selector xpath=".//Filter_List" />
              <xsd:field xpath="FilterID" />
            </xsd:keyref>
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Filter_Detail">
          <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="FilterDetail"/>
             </xsd:appinfo>
          </xsd:annotation>
        <xsd:sequence>
          <xsd:element name="FilterDetailID" type="xsd:int" />
          <xsd:element name="FilterID" type="xsd:int" />
          <xsd:element name="FIXTag" type="xsd:int" />
          <xsd:element name="FIXTagValue" type="xsd:string" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Transform_Profile">
          <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="TransformProfile"/>
             </xsd:appinfo>
          </xsd:annotation>
        <xsd:sequence>
          <xsd:element name="ProfileID" type="xsd:int" />
          <xsd:element name="ProfileCode" type="xsd:string" />
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="FIXVersion" type="xsd:string" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
          <xsd:element name="SessionProfile" type="Session_Profile" minOccurs="0" maxOccurs="unbounded">
            <xsd:key name="PK_SessionProfile">
              <xsd:selector xpath=".//Session_Profile" />
              <xsd:field xpath="SessionID" />
              <xsd:field xpath="ProfileID" />
            </xsd:key>
            
            <xsd:keyref name="SessionProfileTransorm" refer="PK_TransformProfile">
              <xsd:selector xpath=".//Transform_Profile" />
              <xsd:field xpath="ProfileID" />
            </xsd:keyref>
          </xsd:element>
          <xsd:element name="TransformProfileDetail" type="Transform_Profile_Detail" minOccurs="0" maxOccurs="unbounded">
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Counter_Party">
          <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="CounterParty"/>
             </xsd:appinfo>
          </xsd:annotation> 
        <xsd:sequence>
          <xsd:element name="CPID" type="xsd:int" />
          <xsd:element name="CPCode" type="xsd:string" />
          <xsd:element name="CPName" type="xsd:string" />
          <xsd:element name="CPType" type="xsd:string" />
          <xsd:element name="CPAddress" type="xsd:string" />
          <xsd:element name="CPTPNo" type="xsd:string" />
          <xsd:element name="CPContactPerson" type="xsd:string" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
          <xsd:element name="CounterPartyCID" type="Counter_Party_CID" minOccurs="1" maxOccurs="unbounded">
            <xsd:key name="PK_CounterPartyCID">
              <xsd:selector xpath="CounterPartyCID" />
              <xsd:field xpath="CompID" />
            </xsd:key>
            <xsd:keyref name="SessionCounterParty" refer="PK_CounterPartyCID">
              <xsd:selector xpath=".//Counter_Party_CID" />
              <xsd:field xpath="CompID" />
            </xsd:keyref>
            
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Counter_Party_CID">
           <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="CounterPartyCID"/>
             </xsd:appinfo>
          </xsd:annotation>
        <xsd:sequence>
          <xsd:element name="CompID" type="xsd:int" />
          <xsd:element name="MainComp" type="xsd:string" />
          <xsd:element name="SubComp" type="xsd:string" />
          <xsd:element name="CPID" type="xsd:string" />
          <xsd:element name="Host" type="xsd:string" />
          <xsd:element name="Port" type="xsd:int" />
          <xsd:element name="STBHost" type="xsd:string" />
          <xsd:element name="STBPort" type="xsd:int" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
          <xsd:element name="Session" type="Session_Detail" minOccurs="0" maxOccurs="unbounded">
            <xsd:key name="PK_Session">
              <xsd:selector xpath=".//Session_Detail" />
              <xsd:field xpath="SessionID" />
            </xsd:key>
            <xsd:keyref name="SessionProfile" refer="PK_Session">
              <xsd:selector xpath=".//Session_Detail" />
              <xsd:field xpath="SessionID" />
            </xsd:keyref>
            
          </xsd:element>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Session_Detail">
          <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="SessionDetail"/>
             </xsd:appinfo>
          </xsd:annotation>  
        <xsd:sequence>
          <xsd:element name="SessionID" type="xsd:int" />
          <xsd:element name="SessionCode" type="xsd:string" />
          <xsd:element name="InternalComp" type="xsd:int" />
          <xsd:element name="ExternalComp" type="xsd:int" />
          <xsd:element name="InitiatorSide" type="xsd:string" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
          <xsd:element name="SessionProfile" type="Session_Profile" minOccurs="0" maxOccurs="1" />
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Session_Profile">
          <xsd:annotation>
             <xsd:appinfo>
               <jxb:class name="SessionProfile"/>
             </xsd:appinfo>
          </xsd:annotation>
        <xsd:sequence>
          <xsd:element name="SessionID" type="xsd:int" />
          <xsd:element name="ProfileID" type="xsd:int" />
          <xsd:element name="Status" type="xsd:string" />
          <xsd:element name="CreatedBy" type="xsd:string" />
          <xsd:element name="CreatedDate" type="xsd:date" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedDate" type="xsd:date" />
        </xsd:sequence>
      </xsd:complexType>
     </xsd:schema>
    xml
    [code=xml]
    <?xml version="1.0"?>

    <FIXadaptor2 xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespace SchemaLocation= "XMLSchema4.xsd ">
    <CounterParty >
    <CPID>1</CPID>
    <CPCode>RCAPL </CPCode>
    <CPName>Ridgecr est Financial</CPName>
    <CPType>I</CPType>
    <CPAddress>Addr ess 1</CPAddress>
    <CPTPNo>9875643 2</CPTPNo>
    <CPContactPerso n>Name of contact person</CPContactPerson >
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>

    <CounterPartyCI D>
    <CompID>1</CompID>
    <MainComp>R1</MainComp>
    <SubComp> </SubComp>
    <CPID>1</CPID>
    <Host>localhost </Host>
    <Port>5353</Port>
    <STBHost>localh ost</STBHost>
    <STBPort>5354 </STBPort>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>

    <Session>
    <SessionID>1</SessionID>
    <SessionCode> R1-E1</SessionCode>
    <InternalComp>1 </InternalComp>
    <ExternalComp>3 </ExternalComp>
    <InitiatorSide> 0</InitiatorSide>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <SessionProfile >
    <SessionID>1</SessionID>
    <ProfileID>1</ProfileID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </SessionProfile>
    </Session>

    <Session>
    <SessionID>2</SessionID>
    <SessionCode> R1-E2</SessionCode>
    <InternalComp>1 </InternalComp>
    <ExternalComp>4 </ExternalComp>
    <InitiatorSide> 0</InitiatorSide>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <SessionProfile >
    <SessionID>2</SessionID>
    <ProfileID>2</ProfileID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </SessionProfile>
    </Session>

    <Session>
    <SessionID>3</SessionID>
    <SessionCode> R1-E3</SessionCode>
    <InternalComp>1 </InternalComp>
    <ExternalComp>5 </ExternalComp>
    <InitiatorSide> 0</InitiatorSide>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <SessionProfile >
    <SessionID>3</SessionID>
    <ProfileID>1</ProfileID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </SessionProfile>
    </Session>
    </CounterPartyCID >

    <CounterPartyCI D>
    <CompID>2</CompID>
    <MainComp>R2</MainComp>
    <SubComp> </SubComp>
    <CPID>1</CPID>
    <Host>localhost </Host>
    <Port>5454</Port>
    <STBHost>localh ost</STBHost>
    <STBPort>5455 </STBPort>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>

    <Session>
    <SessionID>4</SessionID>
    <SessionCode> R2-E1</SessionCode>
    <InternalComp>2 </InternalComp>
    <ExternalComp>3 </ExternalComp>
    <InitiatorSide> 0</InitiatorSide>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <SessionProfile >
    <SessionID>4</SessionID>
    <ProfileID>2</ProfileID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </SessionProfile>
    </Session>

    <Session>
    <SessionID>5</SessionID>
    <SessionCode> R2-E2</SessionCode>
    <InternalComp>2 </InternalComp>
    <ExternalComp>4 </ExternalComp>
    <InitiatorSide> 0</InitiatorSide>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </Session>

    </CounterPartyCID >
    </CounterParty>

    <CounterParty >
    <CPID>2</CPID>
    <CPCode>BR1</CPCode>
    <CPName>Broke r 1</CPName>
    <CPType>E</CPType>
    <CPAddress>Addr ess 2</CPAddress>
    <CPTPNo>76788 9</CPTPNo>
    <CPContactPerso n>Name of contact person</CPContactPerson >
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>

    <CounterPartyCI D>
    <CompID>3</CompID>
    <MainComp>E1</MainComp>
    <SubComp> </SubComp>
    <CPID>2</CPID>
    <Host>localhost </Host>
    <Port>5656</Port>
    <STBHost>localh ost</STBHost>
    <STBPort>5657 </STBPort>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </CounterPartyCID >
    </CounterParty>

    <CounterParty >
    <CPID>3</CPID>
    <CPCode>BR2</CPCode>
    <CPName>Broke r 2</CPName>
    <CPType>E</CPType>
    <CPAddress>Addr ess 3</CPAddress>
    <CPTPNo>45678 9</CPTPNo>
    <CPContactPerso n>Name of contact person</CPContactPerson >
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>

    <CounterPartyCI D>
    <CompID>4</CompID>
    <MainComp>E2</MainComp>
    <SubComp> </SubComp>
    <CPID>3</CPID>
    <Host>localhost </Host>
    <Port>5757</Port>
    <STBHost>localh ost</STBHost>
    <STBPort>5758 </STBPort>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </CounterPartyCID >

    <CounterPartyCI D>
    <CompID>5</CompID>
    <MainComp>E3</MainComp>
    <SubComp> </SubComp>
    <CPID>3</CPID>
    <Host>localhost </Host>
    <Port>5858</Port>
    <STBHost>localh ost</STBHost>
    <STBPort>5859 </STBPort>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </CounterPartyCID >
    </CounterParty>
    <TransformLis t>
    <TransformType> ADD</TransformType>
    <Description>Ad d a tag and the value</Description>
    <IsSourceTag>tr ue</IsSourceTag>
    <IsTargetTag>fa lse</IsTargetTag>
    <IsConstValue>t rue</IsConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <Transform>
    <TransformID> 1</TransformID>
    <TransformCode> T1</TransformCode>
    <Description>Ad d tag 12 and set its value to 3</Description>
    <TransformType> ADD</TransformType>
    <SourceTag>12 </SourceTag>
    <DestTag></DestTag>
    <ConstValue>3 </ConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>

    </Transform>
    </TransformList>

    <TransformLis t>
    <TransformType> CONST</TransformType>
    <Description>se t the value of a tag to a constant</Description>
    <IsSourceTag>tr ue</IsSourceTag>
    <IsTargetTag>fa lse</IsTargetTag>
    <IsConstValue>t rue</IsConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <Transform>
    <TransformID> 2</TransformID>
    <TransformCode> T2</TransformCode>
    <Description>Se t the value of tag 55 to a constant T-IBM</Description>
    <TransformType> CONST</TransformType>
    <SourceTag>55 </SourceTag>
    <DestTag></DestTag>
    <ConstValue>T-IBM</ConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <TransformProfi leDetail>
    <ProfileID>1</ProfileID>
    <ProfileDetailI D>1</ProfileDetailID >
    <Priority>1</Priority>
    <FilterID>1</FilterID>
    <ActionType>T </ActionType>
    <ActionID>2</ActionID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil eDetail>

    <TransformProfi leDetail>
    <ProfileID>2</ProfileID>
    <ProfileDetailI D>4</ProfileDetailID >
    <Priority>1</Priority>
    <FilterID>3</FilterID>
    <ActionType>T </ActionType>
    <ActionID>2</ActionID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil eDetail>
    </Transform>
    </TransformList>

    <TransformLis t>
    <TransformType> COPY</TransformType>
    <Description>Co py the value of a tag to another</Description>
    <IsSourceTag>tr ue</IsSourceTag>
    <IsTargetTag>tr ue</IsTargetTag>
    <IsConstValue>f alse</IsConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <Transform>
    <TransformID> 3</TransformID>
    <TransformCode> T3</TransformCode>
    <Description>Co py the value of tag 38 to tag 55</Description>
    <TransformType> COPY</TransformType>
    <SourceTag>38 </SourceTag>
    <DestTag>55</DestTag>
    <ConstValue></ConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <TransformProfi leDetail>
    <ProfileID>1</ProfileID>
    <ProfileDetailI D>3</ProfileDetailID >
    <Priority>3</Priority>
    <FilterID>1</FilterID>
    <ActionType>P </ActionType>
    <ActionID>3</ActionID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil eDetail>
    </Transform>
    </TransformList>

    <TransformLis t>
    <TransformType> DELETE</TransformType>
    <Description>Re move a tag and its value</Description>
    <IsSourceTag>tr ue</IsSourceTag>
    <IsTargetTag>fa lse</IsTargetTag>
    <IsConstValue>f alse</IsConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <Transform>
    <TransformID> 4</TransformID>
    <TransformCode> T4</TransformCode>
    <Description>Re move tag 12 and its value</Description>
    <TransformType> DELETE</TransformType>
    <SourceTag>12 </SourceTag>
    <DestTag></DestTag>
    <ConstValue></ConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <TransformProfi leDetail>
    <ProfileID>2</ProfileID>
    <ProfileDetailI D>5</ProfileDetailID >
    <Priority>2</Priority>
    <FilterID>3</FilterID>
    <ActionType>T </ActionType>
    <ActionID>4</ActionID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil eDetail>
    </Transform>
    </TransformList>

    <TransformLis t>
    <TransformType> DELR</TransformType>
    <Description>De lete a tag range</Description>
    <IsSourceTag>tr ue</IsSourceTag>
    <IsTargetTag>tr ue</IsTargetTag>
    <IsConstValue>f alse</IsConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <Transform>
    <TransformID> 5</TransformID>
    <TransformCode> T5</TransformCode>
    <Description>De lete tag range, from tag 15 to tag 18</Description>
    <TransformType> DELR</TransformType>
    <SourceTag>15 </SourceTag>
    <DestTag>18</DestTag>
    <ConstValue></ConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <TransformProfi leDetail>
    <ProfileID>1</ProfileID>
    <ProfileDetailI D>2</ProfileDetailID >
    <Priority>2</Priority>
    <FilterID>1</FilterID>
    <ActionType>T </ActionType>
    <ActionID>5</ActionID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil eDetail>
    </Transform>
    </TransformList>

    <TransformLis t>
    <TransformType> MOVE</TransformType>
    <Description>De lete a tag and move its value to another tag</Description>
    <IsSourceTag>tr ue</IsSourceTag>
    <IsTargetTag>tr ue</IsTargetTag>
    <IsConstValue>f alse</IsConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <Transform>
    <TransformID> 6</TransformID>
    <TransformCode> T6</TransformCode>
    <Description>De lete tag 625 and move its value to tag 55</Description>
    <TransformType> MOVE</TransformType>
    <SourceTag>62 5</SourceTag>
    <DestTag>55</DestTag>
    <ConstValue></ConstValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <TransformProfi leDetail>
    <ProfileID>2</ProfileID>
    <ProfileDetailI D>6</ProfileDetailID >
    <Priority>3</Priority>
    <FilterID>3</FilterID>
    <ActionType>T </ActionType>
    <ActionID>6</ActionID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil eDetail>

    <TransformProfi leDetail>
    <ProfileID>3</ProfileID>
    <ProfileDetailI D>7</ProfileDetailID >
    <Priority>1</Priority>
    <FilterID>1</FilterID>
    <ActionType>T </ActionType>
    <ActionID>6</ActionID>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil eDetail>
    </Transform>
    </TransformList>

    <Filter>
    <FilterID>-1</FilterID>
    <FilterCode>A LL-APPLICATIONS</FilterCode>
    <Description>Ap plication messages only</Description>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </Filter>

    <Filter>
    <FilterID>0</FilterID>
    <FilterCode>ALL </FilterCode>
    <Description>Ad ministrative messages + Application messages</Description>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </Filter>

    <Filter>
    <FilterID>1</FilterID>
    <FilterCode>FIL TER1</FilterCode>
    <Description>Fi lter 1</Description>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <FilterDetail >
    <FilterDetailID >1</FilterDetailID>
    <FilterID>1</FilterID>
    <FIXTag>35</FIXTag>
    <FIXTagValue> D</FIXTagValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </FilterDetail>

    <FilterDetail >
    <FilterDetailID >2</FilterDetailID>
    <FilterID>1</FilterID>
    <FIXTag>55</FIXTag>
    <FIXTagValue>IB M</FIXTagValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </FilterDetail>

    </Filter>

    <Filter>
    <FilterID>2</FilterID>
    <FilterCode>FIL TER2</FilterCode>
    <Description>Fi lter 2</Description>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <FilterDetail >
    <FilterDetailID >3</FilterDetailID>
    <FilterID>2</FilterID>
    <FIXTag>35</FIXTag>
    <FIXTagValue> D</FIXTagValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </FilterDetail>

    <FilterDetail >
    <FilterDetailID >4</FilterDetailID>
    <FilterID>2</FilterID>
    <FIXTag>55</FIXTag>
    <FIXTagValue>SU NW</FIXTagValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </FilterDetail>

    </Filter>

    <Filter>
    <FilterID>3</FilterID>
    <FilterCode>FIL TER3</FilterCode>
    <Description>Fi lter 3</Description>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <FilterDetail >
    <FilterDetailID >5</FilterDetailID>
    <FilterID>3</FilterID>
    <FIXTag>35</FIXTag>
    <FIXTagValue> D</FIXTagValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </FilterDetail>

    <FilterDetail >
    <FilterDetailID >6</FilterDetailID>
    <FilterID>3</FilterID>
    <FIXTag>38</FIXTag>
    <FIXTagValue>33 33</FIXTagValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </FilterDetail>
    </Filter>

    <Filter>
    <FilterID>4</FilterID>
    <FilterCode>FIL TER4</FilterCode>
    <Description>Fi lter 4</Description>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    <FilterDetail >
    <FilterDetailID >7</FilterDetailID>
    <FilterID>4</FilterID>
    <FIXTag>35</FIXTag>
    <FIXTagValue> D</FIXTagValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </FilterDetail>

    <FilterDetail >
    <FilterDetailID >8</FilterDetailID>
    <FilterID>4</FilterID>
    <FIXTag>55</FIXTag>
    <FIXTagValue>CA </FIXTagValue>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </FilterDetail>
    </Filter>

    <TransformProfi le>
    <ProfileID>1</ProfileID>
    <ProfileCode>PR OFILE1</ProfileCode>
    <Description>Pr ofile 1</Description>
    <FIXVersion>4.4 </FIXVersion>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil e>

    <TransformProfi le>
    <ProfileID>2</ProfileID>
    <ProfileCode>PR OFILE2</ProfileCode>
    <Description>Pr ofile 2</Description>
    <FIXVersion>4.1 </FIXVersion>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil e>

    <TransformProfi le>
    <ProfileID>3</ProfileID>
    <ProfileCode>PR OFILE3</ProfileCode>
    <Description>Pr ofile 3</Description>
    <FIXVersion>4.1 </FIXVersion>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil e>

    <TransformProfi le>
    <ProfileID>4</ProfileID>
    <ProfileCode>PR OFILE4</ProfileCode>
    <Description>Pr ofile 1</Description>
    <FIXVersion>4.1 </FIXVersion>
    <Status>0</Status>
    <CreatedBy>AM A</CreatedBy>
    <CreatedDate>20 08-09-05</CreatedDate>
    <ModifiedBy>SAF </ModifiedBy>
    <ModifiedDate>2 008-09-05</ModifiedDate>
    </TransformProfil e>
    </FIXadapter2>[/CODE]
    Last edited by jkmyoung; Nov 13 '08, 03:39 PM. Reason: newlines
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Minor thing:
    </FIXadapter2>
    should be
    </FIXadaptor2>

    Don't know if that's the problem though.

    Comment

    • popprem
      New Member
      • Nov 2008
      • 19

      #3
      Originally posted by jkmyoung
      Minor thing:
      </FIXadapter2>
      should be
      </FIXadaptor2>

      Don't know if that's the problem though.
      thanks
      It was that XmlRootElement prob.

      i gt anothr prob nw
      i gt a ClassCastExcept ion nw when this statement is executed :

      JAXBElement poe = (JAXBElement) u.unmarshal(new FileInputStream ("/home/prasad/Design/XMLFile.xml"));

      error:
      Exception in thread "main" java.lang.Class CastException: com.rcfi.qxlink .xmlp.schema.FI Xadaptor2 cannot be cast to javax.xml.bind. JAXBElement.


      Is thr any othr way to gt the JAXBElement?

      Thanks in advance.
      Last edited by popprem; Nov 14 '08, 08:02 AM. Reason: mistake

      Comment

      • jkmyoung
        Recognized Expert Top Contributor
        • Mar 2006
        • 2057

        #4
        Need more context:
        1. What class is u?

        JAXBElement poe = (JAXBElement) u.unmarshal(new FileInputStream ("/home/prasad/Design/XMLFile.xml"));
        -------

        Original poster has reported this as solved. Closing thread.

        Comment

        Working...