Re: Invalid escaping of XML
Artem Portnoy <[email protected]>
| Newsgroups | gmane.text.xml.xmlbeans.user |
|---|---|
| Message-ID | <[email protected]> |
There appears to be some kind of problem with passing the
XmlOptions().setSavePrettyPrint().setSavePrettyPrintIndent(4) option to the
Document’s save function. It produces a corrupt output with certain data.
See attached documents result1.xml and result2.xml.
result1.xml was produced by code like this
FileOutputStream result1 = *new* FileOutputStream(
"c:\\temp\\result1.xml");
resDoc.save(result1);
result2.xml was produced by
FileOutputStream result2 = *new* FileOutputStream(
"c:\\temp\\result2.xml");
resDoc.save(result2,
*new*XmlOptions().setSavePrettyPrint().setSavePrettyPrintIndent(4));
Problem is the behavior seems to be highly dependent on data and is kind of
hard to reproduce, so I’m not sure how to create a bug report for it.
Artem
On Fri, Oct 2, 2009 at 5:21 PM, Wing Yew Poon <[email protected]>wrote:
> Jacob is correct. Only the '<' needs to be escaped, not the '>'.
> XML predefines exactly 5 entity references:
> <
> &
> >
> "
> '
> but only < and & must be used instead of the literal characters in
> element content; the others are optional, with the exception that the
> 3-character sequence "]]>" cannot appear in character data and must be
> written as "]]>".
> - Wing Yew
>
> ------------------------------
> *From:* Jacob Danner [mailto:[email protected]]
> *Sent:* Friday, October 02, 2009 1:55 PM
> *To:* [email protected]
> *Subject:* Re: Invalid escaping of XML
>
> Off the top of my head I think this is as expected. The > does not need to
> be escaped only < .
> -jacobd
>
> On Fri, Oct 2, 2009 at 1:17 PM, Artem Portnoy <[email protected]
> > wrote:
>
>> Hello,
>>
>>
>>
>> We have an XmlBean that takes in a String. The problem is that if we pass
>> in an XML String, the XML characters are not properly escaped.
>>
>>
>>
>> Here’s a simple program I use to test…
>>
>>
>>
>> *public* *static* *void* main(String[] args) {
>>
>> Trace trace = TestProcessFlowV2Res.Traces.Trace.Factory.*newInstance*
>> ();
>>
>> trace.setStringValue("<test>");
>>
>> System.*out*.println(trace);
>>
>> }
>>
>>
>>
>> The output produced looks as follows…
>>
>>
>>
>> <xml-fragment><test></xml-fragment>
>>
>>
>>
>> For some reason the ‘>’ character is not getting escaped. We are currently
>> using XmlBeans 2.1.0. I’ve tried searching for similar bug reports on the
>> mailing list archive and couldn’t find anything. If anybody could shed some
>> light on this issue it would be greatly appreciated.
>>
>>
>> Thanks,
>>
>>
>> Artem Portnoy
>>
>> Information Builders, Inc
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
result1.xml
(text/xml, 16 KB)
<?xml version="1.0" encoding="UTF-8"?>
<ser:TestProcessFlowV2Res executionTime="15" returnState="NORMAL" xmlns:ser="http://configsm.ibi.com/xml/server"><ser:Traces><ser:Trace level="info">system name is: C77C868F0664DEFEBC7D8016D0075058</ser:Trace><ser:Trace level="debug">precompiling xslt transform in transforms/205A3D9EBFE74AFFEFDA422A3FFDF6BF/trans_artem.gxp</ser:Trace><ser:Trace level="info">[threadPool] Starting pool threads....</ser:Trace><ser:Trace level="info">[threadPool] Started pool with '1' threads.</ser:Trace><ser:Trace level="info">Found adapter 'IWAF'</ser:Trace><ser:Trace level="info">Found adapter 'CICS'</ser:Trace><ser:Trace level="info">Found adapter 'DOTNET'</ser:Trace><ser:Trace level="info">Found adapter 'EDI'</ser:Trace><ser:Trace level="info">Found adapter 'IMS'</ser:Trace><ser:Trace level="info">Found adapter 'iWay'</ser:Trace><ser:Trace level="info">Found adapter 'Java'</ser:Trace><ser:Trace level="info">Found adapter 'LDAP'</ser:Trace><ser:Trace level="info">Found adapter 'MSMQ'</ser:Trace><ser:Trace level="info">Found adapter 'MySAP'</ser:Trace><ser:Trace level="info">Found adapter 'RDBMS'</ser:Trace><ser:Trace level="info">Found adapter 'SWIFT'</ser:Trace><ser:Trace level="debug">Debug: Try to load class:com.ibi.ldap.LdapEventAdapter</ser:Trace><ser:Trace level="info">Loaded locale:</ser:Trace><ser:Trace level="debug">Processing descriptor definition :<descriptor>
<option title="event_messageTitle">
<group title="event_standard">
<param name="factory" required="true" label="label" type="string" description="Ldap Connection Factory" default="com.sun.jndi.ldap.LdapCtxFactory"/>
<param name="url" required="true" label="label" type="string" description="Ldap Connection Url" default="ldap://localhost:10389"/>
<param name="auth" required="true" label="label" type="enum" description="Ldap Authentication Mechanism" enum="simple" default="simple"/>
<param name="user" required="true" label="label" type="string" description="Ldap Connection Principal" default="uid=admin,ou=system"/>
<param name="password" required="true" label="label" type="passwd" description="Ldap Connection Credentials" default="secret"/>
<param name="baseDN" required="true" label="label" type="string" description="Ldap Base Context" default=""/>
<param name="protocol" required="true" label="label" type="enum" description="Ldap Protocol Version" enum="LDAP v2,LDAP v3" default=""/>
<param name="referral" required="true" label="label" type="enum" description="Ldap Referrals Handling" enum="ignore,follow" default=""/>
</group>
<group title="event_basicconfig">
<param name="pollinterval" required="true" label="label" type="string" description="Polling Interval for Directory Sync (ms)" default="5000"/>
<param name="eventstrategy" required="true" label="label" type="enum" description="Event Generation Strategy" enum="Active Directory Synchronization,Asynchronous Ldap Notification, " default=""/>
<param name="eventsearchfilter" required="true" label="label" type="string" description="Search Filter" default=""/>
</group>
<group title="event_typeconfig">
<param name="add_event" required="true" label="label" type="boolean" description="Monitor Add Event" default="true"/>
<param name="update_event" required="true" label="label" type="boolean" description="Monitor Update Event" default="true"/>
<param name="delete_event" required="true" label="label" type="boolean" description="Monitor Delete Event" default="true"/>
<param name="rename_event" required="true" label="label" type="boolean" description="Monitor Rename Event" default="true"/>
<param name="eventfilterargs" required="true" label="label" type="string" description="List of Attributes to be monitored" default=""/>
</group>
</option>
</descriptor>
</ser:Trace><ser:Trace level="info">Descriptor definition is missing the template attribute. Fine if not a shim</ser:Trace><ser:Trace level="debug">Debug: Try to load class:com.ibi.sap.inbound.SapInboundAdapter_MS</ser:Trace><ser:Trace level="debug">No Class for :com.ibi.sap.inbound.SapInboundAdapter_MS from MySAP</ser:Trace><ser:Trace level="debug">Debug: Try to load class:com.ibi.sap.inbound.SapInboundAdapter_AS</ser:Trace><ser:Trace level="debug">No Class for :com.ibi.sap.inbound.SapInboundAdapter_AS from MySAP</ser:Trace><ser:Trace level="error">Unknown configuration [location]: C77C868F0664DEFEBC7D8016D0075058</ser:Trace><ser:Trace level="error">Exception when adding exits to the dictionary: XD[FAIL] cause: 1 subcause: 0 message: Unknown configuration [location]: C77C868F0664DEFEBC7D8016D0075058</ser:Trace><ser:Trace level="debug">Encoding from ExecProcess context is: UTF-8</ser:Trace><ser:Trace level="info">[threadPool] Starting pool threads....</ser:Trace><ser:Trace level="info">[threadPool] Started pool with '1' threads.</ser:Trace><ser:Trace level="info">Found adapter 'IWAF'</ser:Trace><ser:Trace level="info">Found adapter 'CICS'</ser:Trace><ser:Trace level="info">Found adapter 'DOTNET'</ser:Trace><ser:Trace level="info">Found adapter 'EDI'</ser:Trace><ser:Trace level="info">Found adapter 'IMS'</ser:Trace><ser:Trace level="info">Found adapter 'iWay'</ser:Trace><ser:Trace level="info">Found adapter 'Java'</ser:Trace><ser:Trace level="info">Found adapter 'LDAP'</ser:Trace><ser:Trace level="info">Found adapter 'MSMQ'</ser:Trace><ser:Trace level="info">Found adapter 'MySAP'</ser:Trace><ser:Trace level="info">Found adapter 'RDBMS'</ser:Trace><ser:Trace level="info">Found adapter 'SWIFT'</ser:Trace><ser:Trace level="debug">Debug: Try to load class:com.ibi.ldap.LdapEventAdapter</ser:Trace><ser:Trace level="info">Loaded locale:</ser:Trace><ser:Trace level="debug">Processing descriptor definition :<descriptor>
<option title="event_messageTitle">
<group title="event_standard">
<param name="factory" required="true" label="label" type="string" description="Ldap Connection Factory" default="com.sun.jndi.ldap.LdapCtxFactory"/>
<param name="url" required="true" label="label" type="string" description="Ldap Connection Url" default="ldap://localhost:10389"/>
<param name="auth" required="true" label="label" type="enum" description="Ldap Authentication Mechanism" enum="simple" default="simple"/>
<param name="user" required="true" label="label" type="string" description="Ldap Connection Principal" default="uid=admin,ou=system"/>
<param name="password" required="true" label="label" type="passwd" description="Ldap Connection Credentials" default="secret"/>
<param name="baseDN" required="true" label="label" type="string" description="Ldap Base Context" default=""/>
<param name="protocol" required="true" label="label" type="enum" description="Ldap Protocol Version" enum="LDAP v2,LDAP v3" default=""/>
<param name="referral" required="true" label="label" type="enum" description="Ldap Referrals Handling" enum="ignore,follow" default=""/>
</group>
<group title="event_basicconfig">
<param name="pollinterval" required="true" label="label" type="string" description="Polling Interval for Directory Sync (ms)" default="5000"/>
<param name="eventstrategy" required="true" label="label" type="enum" description="Event Generation Strategy" enum="Active Directory Synchronization,Asynchronous Ldap Notification, " default=""/>
<param name="eventsearchfilter" required="true" label="label" type="string" description="Search Filter" default=""/>
</group>
<group title="event_typeconfig">
<param name="add_event" required="true" label="label" type="boolean" description="Monitor Add Event" default="true"/>
<param name="update_event" required="true" label="label" type="boolean" description="Monitor Update Event" default="true"/>
<param name="delete_event" required="true" label="label" type="boolean" description="Monitor Delete Event" default="true"/>
<param name="rename_event" required="true" label="label" type="boolean" description="Monitor Rename Event" default="true"/>
<param name="eventfilterargs" required="true" label="label" type="string" description="List of Attributes to be monitored" default=""/>
</group>
</option>
</descriptor>
</ser:Trace><ser:Trace level="info">Descriptor definition is missing the template attribute. Fine if not a shim</ser:Trace><ser:Trace level="debug">Debug: Try to load class:com.ibi.sap.inbound.SapInboundAdapter_MS</ser:Trace><ser:Trace level="debug">No Class for :com.ibi.sap.inbound.SapInboundAdapter_MS from MySAP</ser:Trace><ser:Trace level="debug">Debug: Try to load class:com.ibi.sap.inbound.SapInboundAdapter_AS</ser:Trace><ser:Trace level="debug">No Class for :com.ibi.sap.inbound.SapInboundAdapter_AS from MySAP</ser:Trace><ser:Trace level="debug">start recognized at 1</ser:Trace><ser:Trace level="debug">end recognized at 3</ser:Trace><ser:Trace level="debug">There are 2 relations</ser:Trace><ser:Trace level="debug">building fresh agents</ser:Trace><ser:Trace level="debug">No flow timeout specified, so default of 10 seconds has been set for this test. To change, set a specific flow timeout property.</ser:Trace><ser:Trace level="debug">setting flow variable xtrack=full</ser:Trace><ser:Trace level="debug">setting flow variable Debug=true</ser:Trace><ser:Trace level="debug">setting flow variable timeout=0</ser:Trace><ser:Trace level="debug">setting flow variable debug=null</ser:Trace><ser:Trace level="debug">node Start returned edges: success</ser:Trace><ser:Trace level="debug">any type requested, input is xml not error.</ser:Trace><ser:Trace level="debug">Setting iWay transform template, file 'C:\iway6.0.1_ga.22561\config\C77C868F0664DEFEBC7D8016D0075058\transforms\205A3D9EBFE74AFFEFDA422A3FFDF6BF\trans_artem.gxp'</ser:Trace><ser:Trace level="debug">Template base url is: file:/C:/iway6.0.1_ga.22561/config/C77C868F0664DEFEBC7D8016D0075058/transforms/205A3D9EBFE74AFFEFDA422A3FFDF6BF/</ser:Trace><ser:Trace level="debug">Template alias 'trans_artem' = url(file:/C:/iway6.0.1_ga.22561/config/C77C868F0664DEFEBC7D8016D0075058/transforms/205A3D9EBFE74AFFEFDA422A3FFDF6BF/) will be set into Transformer Manager.</ser:Trace><ser:Trace level="debug">Applying iway transform[3] 'trans_artem'</ser:Trace><ser:Trace level="debug"><![CDATA[Transform input: <?xml version="1.0" encoding="UTF-8" ?><test><a a="dddd"><b/></a></test>]]></ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Base URL:file:/C:/iway6.0.1_ga.22561/config/C77C868F0664DEFEBC7D8016D0075058/transforms/205A3D9EBFE74AFFEFDA422A3FFDF6BF/</ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Transform process started:</ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Base url: file:/C:/iway6.0.1_ga.22561/config/C77C868F0664DEFEBC7D8016D0075058/transforms/205A3D9EBFE74AFFEFDA422A3FFDF6BF/</ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Input format:XML</ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Input source type: Node</ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Output format:XML</ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Output target type: Content Handler</ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Is pipelining enabled? :false</ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Is the declaration needed in the output? :true</ser:Trace><ser:Trace level="debug">[TRANSFORM DEBUG] Transform process ended</ser:Trace><ser:Trace level="debug">node trans_artem returned edges: fail_transform</ser:Trace><ser:Trace level="debug">Pflow thread stopping at End</ser:Trace><ser:Trace level="debug">Ending pflow, number of subthreads still running=0</ser:Trace><ser:Trace level="debug">back from pflow, doc count=4</ser:Trace><ser:Trace level="debug">commit is set to TRUE; pflow will be COMMITTED</ser:Trace><ser:Trace level="debug">terminating pools</ser:Trace></ser:Traces><ser:Output><ser:Document documentSeq="1" suffix="dat" termNodeName="trace_FLOWCHART_STARTUP_START_Start#1">TmFtZT1TdGFydCAgVHlwZT1TdGFydCAgSW5FZGdlPXN1Y2Nlc3MgIEZyb209YmVnaW4gIE5vdCBuZXN0ZWQKUmVnaXN0ZXJzCiAgICAgQURERUQgPiBlbmdpbmUgICAgICAgICAgICAgIFtTWVNdICAgQzc3Qzg2OEYwNjY0REVGRUJDN0Q4MDE2RDAwNzUwNTgKICAgICBBRERFRCA+IGl3YXkucGlkICAgICAgICAgICAgW1NZU10gICAyMTQwCiAgICAgQURERUQgPiBpd2F5LnNlcnZlcmZ1bGxob3N0IFtTWVNdICAgYXJ0ZW0teHAuaWJpLmNvbQogICAgIEFEREVEID4gaXdheS5zZXJ2ZXJob3N0ICAgICBbU1lTXSAgIGFydGVtLXhwCiAgICAgQURERUQgPiBpd2F5LnNlcnZlcmlwICAgICAgIFtTWVNdICAgMTcyLjMwLjI0NC41MAogICAgIEFEREVEID4gaXdheWNvbmZpZyAgICAgICAgICBbU1lTXSAgIEM3N0M4NjhGMDY2NERFRkVCQzdEODAxNkQwMDc1MDU4CiAgICAgQURERUQgPiBpd2F5aG9tZSAgICAgICAgICAgIFtTWVNdICAgQzovaXdheTYuMC4xX2dhLjIyNTYxLwogICAgIEFEREVEID4gaXdheXZlcnNpb24gICAgICAgICBbU1lTXSAgIDYuMC4wCiAgICAgQURERUQgPiBpd2F5d29ya2RpciAgICAgICAgIFtTWVNdICAgQzovaXdheTYuMC4xX2dhLjIyNTYxL2NvbmZpZy9DNzdDODY4RjA2Li4uWzYxXQogICAgIEFEREVEID4gbmFtZSAgICAgICAgICAgICAgICBbU1lTXSAgIEV4ZWNQcm9jZXNzCiAgICAgQURERUQgPiBwcm90b2NvbCAgICAgICAgICAgIFtTWVNdICAgTGNsCk9iamVjdCB0eXBlIGRvZXMgbm90IHN1cHBvcnQgZG9jdW1lbnQgZGlzcGxheQ==</ser:Document><ser:Document documentSeq="1" suffix="dat" termNodeName="trace_FLOWCHART_TRANSFORM_trans_artem#1">TmFtZT10cmFuc19hcnRlbSAgVHlwZT1BZ2VudCAgSW5FZGdlPU9uQ29tcGxldGlvbiAgRnJvbT1TdGFydCAgTm90IG5lc3RlZApSZWdpc3RlcnMKICAgICAgICAgICAgIGVuZ2luZSAgICAgICAgICAgICAgW1NZU10gICBDNzdDODY4RjA2NjRERUZFQkM3RDgwMTZEMDA3NTA1OAogICAgICAgICAgICAgaXdheS5waWQgICAgICAgICAgICBbU1lTXSAgIDIxNDAKICAgICAgICAgICAgIGl3YXkuc2VydmVyZnVsbGhvc3QgW1NZU10gICBhcnRlbS14cC5pYmkuY29tCiAgICAgICAgICAgICBpd2F5LnNlcnZlcmhvc3QgICAgIFtTWVNdICAgYXJ0ZW0teHAKICAgICAgICAgICAgIGl3YXkuc2VydmVyaXAgICAgICAgW1NZU10gICAxNzIuMzAuMjQ0LjUwCiAgICAgICAgICAgICBpd2F5Y29uZmlnICAgICAgICAgIFtTWVNdICAgQzc3Qzg2OEYwNjY0REVGRUJDN0Q4MDE2RDAwNzUwNTgKICAgICAgICAgICAgIGl3YXlob21lICAgICAgICAgICAgW1NZU10gICBDOi9pd2F5Ni4wLjFfZ2EuMjI1NjEvCiAgICAgICAgICAgICBpd2F5dmVyc2lvbiAgICAgICAgIFtTWVNdICAgNi4wLjAKICAgICAgICAgICAgIGl3YXl3b3JrZGlyICAgICAgICAgW1NZU10gICBDOi9pd2F5Ni4wLjFfZ2EuMjI1NjEvY29uZmlnL0M3N0M4NjhGMDYuLi5bNjFdCiAgICAgICAgICAgICBuYW1lICAgICAgICAgICAgICAgIFtTWVNdICAgRXhlY1Byb2Nlc3MKICAgICAgICAgICAgIHByb3RvY29sICAgICAgICAgICAgW1NZU10gICBMY2wKQ29udGVudCBvZiBkb2N1bWVudAoJRm9ybT14bWwsIHN0YXRlPWVycm9yCgk8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgPz4KPGVkYT4KICAgPGVycm9yIHRpbWVzdGFtcD0iMjAwOS0xMC0wM1QwMzowMDoyOVoiIGNvZGU9IjYiIHN0YWdlPSJBR0VOVCIgc291cmNlPSJYRFRyYW5zZm9ybUFnZW50IiBzdWJjb2RlPSIxIiBlbmdpbmU9Iml3YXkiIHdhbnRlb3M9ImZhbHNlIiB0cmFuc2Zvcm09InRyYW5zX2FydGVtIiB0eXBlPSJ4bWwiIHNob3VsZFRyaW09ImZhbHNlIiBpbnR5cGU9ImFsbCI+VHJhbnNmb3JtIHJldHVybmVkIG5vIG91dHB1dDwvZXJyb3I+CjwvZWRhPg==</ser:Document><ser:Document documentSeq="1" suffix="xml" termNodeName="End">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+PGVkYT48ZXJyb3IgdGltZXN0YW1wPSIyMDA5LTEwLTAzVDAzOjAwOjI5WiIgY29kZT0iNiIgc3RhZ2U9IkFHRU5UIiBzb3VyY2U9IlhEVHJhbnNmb3JtQWdlbnQiIHN1YmNvZGU9IjEiIGVuZ2luZT0iaXdheSIgd2FudGVvcz0iZmFsc2UiIHRyYW5zZm9ybT0idHJhbnNfYXJ0ZW0iIHR5cGU9InhtbCIgc2hvdWxkVHJpbT0iZmFsc2UiIGludHlwZT0iYWxsIj5UcmFuc2Zvcm0gcmV0dXJuZWQgbm8gb3V0cHV0PC9lcnJvcj48L2VkYT4=</ser:Document><ser:Document documentSeq="1" suffix="dat" termNodeName="trace_FLOWCHART_STARTUP_END_End#1">TmFtZT1FbmQgIFR5cGU9VGVybWluYXRlICBJbkVkZ2U9T25Db21wbGV0aW9uICBGcm9tPXRyYW5zX2FydGVtICBOb3QgbmVzdGVkClJlZ2lzdGVycwogICAgICAgICAgICAgZW5naW5lICAgICAgICAgICAgICBbU1lTXSAgIEM3N0M4NjhGMDY2NERFRkVCQzdEODAxNkQwMDc1MDU4CiAgICAgICAgICAgICBpd2F5LnBpZCAgICAgICAgICAgIFtTWVNdICAgMjE0MAogICAgICAgICAgICAgaXdheS5zZXJ2ZXJmdWxsaG9zdCBbU1lTXSAgIGFydGVtLXhwLmliaS5jb20KICAgICAgICAgICAgIGl3YXkuc2VydmVyaG9zdCAgICAgW1NZU10gICBhcnRlbS14cAogICAgICAgICAgICAgaXdheS5zZXJ2ZXJpcCAgICAgICBbU1lTXSAgIDE3Mi4zMC4yNDQuNTAKICAgICAgICAgICAgIGl3YXljb25maWcgICAgICAgICAgW1NZU10gICBDNzdDODY4RjA2NjRERUZFQkM3RDgwMTZEMDA3NTA1OAogICAgICAgICAgICAgaXdheWhvbWUgICAgICAgICAgICBbU1lTXSAgIEM6L2l3YXk2LjAuMV9nYS4yMjU2MS8KICAgICAgICAgICAgIGl3YXl2ZXJzaW9uICAgICAgICAgW1NZU10gICA2LjAuMAogICAgICAgICAgICAgaXdheXdvcmtkaXIgICAgICAgICBbU1lTXSAgIEM6L2l3YXk2LjAuMV9nYS4yMjU2MS9jb25maWcvQzc3Qzg2OEYwNi4uLls2MV0KICAgICAgICAgICAgIG5hbWUgICAgICAgICAgICAgICAgW1NZU10gICBFeGVjUHJvY2VzcwogICAgICAgICAgICAgcHJvdG9jb2wgICAgICAgICAgICBbU1lTXSAgIExjbApPYmplY3QgdHlwZSBkb2VzIG5vdCBzdXBwb3J0IGRvY3VtZW50IGRpc3BsYXk=</ser:Document></ser:Output></ser:TestProcessFlowV2Res>
result2.xml
(text/xml, 16.8 KB)
ram name="pollinterval" required="true" label="label" type="string" description="Polling Interval for Directory Sync (ms)" default="5000"/>
<param name="eventstrategy" required="true" label="label" type="enum" description="Event Generation Strategy" enum="Active Directory Synchronization,Asynchronous Ldap Notification, " default=""/>
<param name="eventsearchfilter" required="true" label="label" type="string" description="Search Filter" default=""/>
</group>
<group title="event_typeconfig">
<param name="add_event" required="true" label="label" type="boolean" description="Monitor Add Event" default="true"/>
<param name="update_event" required="true" label="label" type="boolean" description="Monitor Update Event" default="true"/>
<param name="delete_event" required="true" label="label" type="boolean" description="Monitor Delete Event" default="true"/>
<param name="rename_event" required="true" label="label" type="boolean" description="Monitor Rename Event" default="true"/>
<param name="eventfilterargs" required="true" label="label" type="string" description="List of Attributes to be monitored" default=""/>
</group>
</option>
</descriptor>>Found adapter 'MySAP'</ser:Trace>
<ser:Trace level="info">Found adapter 'RDBMS'</ser:Trace>
<ser:Trace level="info">Found adapter 'SWIFT'</ser:Trace>
<ser:Trace level="debug">Debug: Try to load class:com.ibi.ldap.LdapEventAdapter</ser:Trace>
<ser:Trace level="info">Loaded locale:</ser:Trace>
<ser:Trace level="debug">Processing descriptor definition :<descriptor>
<option title="event_messageTitle">
<group title="event_standard">
<param name="factory" required="true" label="label" type="string" description="Ldap Connection Factory" default="com.sun.jndi.ldap.LdapCtxFactory"/>
<param name="url" required="true" label="label" type="string" description="Ldap Connection Url" default="ldap://localhost:10389"/>
<param name="auth" required="true" label="label" type="enum" description="Ldap Authentication Mechanism" enum="simple" default="simple"/>
<param name="user" required="true" label="label" type="string" description="Ldap Connection Principal" default="uid=admin,ou=system"/>
<param name="password" required="true" label="label" type="passwd" description="Ldap Connection Credentials" default="secret"/>
<param name="baseDN" required="true" label="label" type="string" description="Ldap Base Context" default=""/>
<param name="protocol" required="true" label="label" type="enum" description="Ldap Protocol Version" enum="LDAP v2,LDAP v3" default=""/>
<param name="referral" required="true" label="label" type="enum" description="Ldap Referrals Handling" enum="ignore,follow" default=""/>
</group>
<group title="event_basicconfig">
<pa name="pollinterval" required="true" label="label" type="string" description="Polling Interval for Directory Sync (ms)" default="5000"/>
<param name="eventstrategy" required="true" label="label" type="enum" description="Event Generation Strategy" enum="Active Directory Synchronization,Asynchronous Ldap Notification, " default=""/>
<param name="eventsearchfilter" required="true" label="label" type="string" description="Search Filter" default=""/>
</group>
<group title="event_typeconfig">
<param name="add_event" required="true" label="label" type="boolean" description="Monitor Add Event" default="true"/>
<param name="update_event" required="true" label="label" type="boolean" description="Monitor Update Event" default="true"/>
<param name="delete_event" required="true" label="label" type="boolean" description="Monitor Delete Event" default="true"/>
<param name="rename_event" required="true" label="label" type="boolean" description="Monitor Rename Event" default="true"/>
<param name="eventfilterargs" required="true" label="label" type="string" description="List of Attributes to be monitored" default=""/>
</group>
</option>
</descriptor>???</ser:Trace>
<ser:Trace level="info">Descriptor definition is missing the template attribute. Fine if not a shim</ser:Trace>
<ser:Trace level="debug">Debug: Try to load class:com.ibi.sap.inbound.SapInboundAdapter_MS</ser:Trace>
<ser:Trace level="debug">No Class for :com.ibi.sap.inbound.SapInboundAdapter_MS from MySAP</ser:Trace>
<ser:Trace level="debug">Debug: Try to load class:com.ibi.sap.inbound.SapInboundAdapter_AS</ser:Trace>
<ser:Trace level="debug">No Class for :com.ibi.sap.inbound.SapInboundAdapter_AS from MySAP</ser:Trace>
<ser:Trace level="error">Unknown configuration [location]: C77C868F0664DEFEBC7D8016D0075058</ser:Trace>
<ser:Trace level="error">Exception when adding exits to the dictionary: XD[FAIL] cause: 1 subcause: 0 message: Unknown configuration [location]: C77C868F0664DEFEBC7D8016D0075058</ser:Trace>
<ser:Trace level="debug">Encoding from ExecProcess context is: UTF-8</ser:Trace>
<ser:Trace level="info">[threadPool] Starting pool threads....</ser:Trace>
<ser:Trace level="info">[threadPool] Started pool with '1' threads.</ser:Trace>
<ser:Trace level="info">Found adapter 'IWAF'</ser:Trace>
<ser:Trace level="info">Found adapter 'CICS'</ser:Trace>
<ser:Trace level="info">Found adapter 'DOTNET'</ser:Trace>
<ser:Trace level="info">Found adapter 'EDI'</ser:Trace>
<ser:Trace level="info">Found adapter 'IMS'</ser:Trace>
<ser:Trace level="info">Found adapter 'iWay'</ser:Trace>
<ser:Trace level="info">Found adapter 'Java'</ser:Trace>
<ser:Trace level="info">Found adapter 'LDAP'</ser:Trace>
<ser:Trace level="info">Found adapter 'MSMQ'</ser:Trace>
<ser:Trace level="info">Found adapter 'MySAP'</ser:Trace>
<ser:Trace level="info">Found adapter 'RDBMS'</ser:Trace>
<ser:Trace level="info">Found adapter 'SWIFT'</ser:Trace>
<ser:Trace level="debug">Debug: Try to load class:com.ibi.ldap.LdapEventAdapter</ser:Trace>
<ser:Trace level="info">Loaded locale:</ser:Trace>
<ser:Trace level="debug">Processing descriptor definition :<descriptor>
<option title="event_messageTitle">
<group title="event_standard">
<param name="factory" required="true" label="label" type="string" description="Ldap Connection Factory" default="com.sun.jndi.ldap.LdapCtxFactory"/>
<param name="url" required="true" label="label" type="string" description="Ldap Connection Url" default="ldap://localhost:10389"/>
<param name="auth" required="true" label="label" type="enum" description="Ldap Authentication Mechanism" enum="simple" default="simple"/>
<param name="user" required="true" label="label" type="string" description="Ldap Connection Principal" default="uid=admin,ou=system"/>
<param name="password" required="true" label="label" type="passwd" description="Ldap Connection Credentials" default="secret"/>
<param name="baseDN" required="true" label="label" type="string" description="Ldap Base Context" default=""/>
<param name="protocol" required="true" label="label" type="enum" description="Ldap Protocol Version" enum="LDAP v2,LDAP v3" default=""/>
<param name="referral" required="true" label="label" type="enum" description="Ldap Referrals Handling" enum="ignore,follow" default=""/>
</group>
<group title="event_basicconfig">
<param name="pollinterval" required="true" label="label" type="string" description="Polling Interval for Directory Sync (ms)" default="5000"/>
<param name="eventstrategy" required="true" label="label" type="enum" description="Event Generation Strategy" enum="Active Directory Synchronization,Asynchronous Ldap Notification, " default=""/>
<param name="eventsearchfilter" required="true" label="label" type="string" description="Search Filter" default=""/>
</group>
<group title="event_typeconfig">
<param name="add_event" required="true" label="label" type="boolean" description="Monitor Add Event" default="true"/>
<param name="update_event" required="true" label="label" type="boolean" description="Monitor Update Event" default="true"/>
<param name="delete_event" required="true" label="label" type="boolean" description="Monitor Delete Event" default="true"/>
<param name="rename_event" required="true" label="label" type="boolean" description="Monitor Rename Event" default="true"/>
<param name="eventfilterargs" required="true" label="label" type="string" description="List of Attributes to be monitored" default=""/>
</group>
</option>
</descriptor></ser:Trace>
<ser:Trace level="info">Descriptor definition is missing the template attribute. Fine if not a shim</ser:Trace>
<ser:Trace level="debug">Debug: Try to load class:com.ibi.sap.inbound.SapInboundAdapter_MS</ser:Trace>
<ser:Trace level="debug">No Class for :com.ibi.sap.inbound.SapInboundAdapter_MS from MySAP</ser:Trace>
<ser:Trace level="debug">Debug: Try to load class:com.ibi.sap.inbound.SapInboundAdapter_AS</ser:Trace>
<ser:Trace level="debug">No Class for :com.ibi.sap.inbound.SapInboundAdapter_AS from MySAP</ser:Trace>
<ser:Trace level="debug">start recognized at 1</ser:Trace>
<ser:Trace level="debug">end recognized at 3</ser:Trace>
<ser:Trace level="debug">There are 2 relations</ser:Trace>
<ser:Trace level="debug">building fresh agents</ser:Trace>
<ser:Trace level="debug">No flow timeout specified, so default of 10 seconds has been set for this test. To change, set a specific flow timeout property.</ser:Trace>
<ser:Trace level="debug">setting flow variable xtrack=full</ser:Trace>
<ser:Trace level="debug">setting flow variable Debug=true</ser:Trace>
<ser:Trace level="debug">setting flow variable timeout=0</ser:Trace>
<ser:Trace level="debug">setting flow variable debug=null</ser:Trace>
<ser:Trace level="debug">node Start returned edges: success</ser:Trace>
<ser:Trace level="debug">any type requested, input is xml not error.</ser:Trace>
<ser:Trace level="debug">Setting iWay transform template, file 'C:\iway6.0.1_ga.22561\config\C77C868F0664DEFEBC7D8016D0075058\transforms\205A3D9EBFE74AFFEFDA422A3FFDF6BF\trans_artem.gxp'</ser:Trace>
<ser:Trace level="debug">Template base url is: file:/C:/iway6.0.1_ga.22561/config/C77C868F0664DEFEBC7D8016D0075058/transforms/205A3D9EBFE74AFFEFDA422A3FFDF6BF/</ser:Trace>
<ser:Trace level="debug">Template alias 'trans_artem' = url(file:/C:/iway6.0.1_ga.22561/config/C77C868F0664DEFEBC7D8016D0075058/transforms/205A3D9EBFE74AFFEFDA422A3FFDF6BF/) will be set into Transformer Manager.</ser:Trace>
<ser:Trace level="debug">Applying iway transform[3] 'trans_artem'</ser:Trace>
<ser:Trace level="debug"><![CDATA[Transform input: <?xml version="1.0" encoding="UTF-8" ?><test><a a="dddd"><b/></a></test>]]></ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Base URL:file:/C:/iway6.0.1_ga.22561/config/C77C868F0664DEFEBC7D8016D0075058/transforms/205A3D9EBFE74AFFEFDA422A3FFDF6BF/</ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Transform process started:</ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Base url: file:/C:/iway6.0.1_ga.22561/config/C77C868F0664DEFEBC7D8016D0075058/transforms/205A3D9EBFE74AFFEFDA422A3FFDF6BF/</ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Input format:XML</ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Input source type: Node</ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Output format:XML</ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Output target type: Content Handler</ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Is pipelining enabled? :false</ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Is the declaration needed in the output? :true</ser:Trace>
<ser:Trace level="debug">[TRANSFORM DEBUG] Transform process ended</ser:Trace>
<ser:Trace level="debug">node trans_artem returned edges: fail_transform</ser:Trace>
<ser:Trace level="debug">Pflow thread stopping at End</ser:Trace>
<ser:Trace level="debug">Ending pflow, number of subthreads still running=0</ser:Trace>
<ser:Trace level="debug">back from pflow, doc count=4</ser:Trace>
<ser:Trace level="debug">commit is set to TRUE; pflow will be COMMITTED</ser:Trace>
<ser:Trace level="debug">terminating pools</ser:Trace>
</ser:Traces>
<ser:Output>
<ser:Document documentSeq="1" suffix="dat" termNodeName="trace_FLOWCHART_STARTUP_START_Start#1">TmFtZT1TdGFydCAgVHlwZT1TdGFydCAgSW5FZGdlPXN1Y2Nlc3MgIEZyb209YmVnaW4gIE5vdCBuZXN0ZWQKUmVnaXN0ZXJzCiAgICAgQURERUQgPiBlbmdpbmUgICAgICAgICAgICAgIFtTWVNdICAgQzc3Qzg2OEYwNjY0REVGRUJDN0Q4MDE2RDAwNzUwNTgKICAgICBBRERFRCA+IGl3YXkucGlkICAgICAgICAgICAgW1NZU10gICAyMTQwCiAgICAgQURERUQgPiBpd2F5LnNlcnZlcmZ1bGxob3N0IFtTWVNdICAgYXJ0ZW0teHAuaWJpLmNvbQogICAgIEFEREVEID4gaXdheS5zZXJ2ZXJob3N0ICAgICBbU1lTXSAgIGFydGVtLXhwCiAgICAgQURERUQgPiBpd2F5LnNlcnZlcmlwICAgICAgIFtTWVNdICAgMTcyLjMwLjI0NC41MAogICAgIEFEREVEID4gaXdheWNvbmZpZyAgICAgICAgICBbU1lTXSAgIEM3N0M4NjhGMDY2NERFRkVCQzdEODAxNkQwMDc1MDU4CiAgICAgQURERUQgPiBpd2F5aG9tZSAgICAgICAgICAgIFtTWVNdICAgQzovaXdheTYuMC4xX2dhLjIyNTYxLwogICAgIEFEREVEID4gaXdheXZlcnNpb24gICAgICAgICBbU1lTXSAgIDYuMC4wCiAgICAgQURERUQgPiBpd2F5d29ya2RpciAgICAgICAgIFtTWVNdICAgQzovaXdheTYuMC4xX2dhLjIyNTYxL2NvbmZpZy9DNzdDODY4RjA2Li4uWzYxXQogICAgIEFEREVEID4gbmFtZSAgICAgICAgICAgICAgICBbU1lTXSAgIEV4ZWNQcm9jZXNzCiAgICAgQURERUQgPiBwcm90b2NvbCAgICAgICAgICAgIFtTWVNdICAgTGNsCk9iamVjdCB0eXBlIGRvZXMgbm90IHN1cHBvcnQgZG9jdW1lbnQgZGlzcGxheQ==</ser:Document>
<ser:Document documentSeq="1" suffix="dat" termNodeName="trace_FLOWCHART_TRANSFORM_trans_artem#1">TmFtZT10cmFuc19hcnRlbSAgVHlwZT1BZ2VudCAgSW5FZGdlPU9uQ29tcGxldGlvbiAgRnJvbT1TdGFydCAgTm90IG5lc3RlZApSZWdpc3RlcnMKICAgICAgICAgICAgIGVuZ2luZSAgICAgICAgICAgICAgW1NZU10gICBDNzdDODY4RjA2NjRERUZFQkM3RDgwMTZEMDA3NTA1OAogICAgICAgICAgICAgaXdheS5waWQgICAgICAgICAgICBbU1lTXSAgIDIxNDAKICAgICAgICAgICAgIGl3YXkuc2VydmVyZnVsbGhvc3QgW1NZU10gICBhcnRlbS14cC5pYmkuY29tCiAgICAgICAgICAgICBpd2F5LnNlcnZlcmhvc3QgICAgIFtTWVNdICAgYXJ0ZW0teHAKICAgICAgICAgICAgIGl3YXkuc2VydmVyaXAgICAgICAgW1NZU10gICAxNzIuMzAuMjQ0LjUwCiAgICAgICAgICAgICBpd2F5Y29uZmlnICAgICAgICAgIFtTWVNdICAgQzc3Qzg2OEYwNjY0REVGRUJDN0Q4MDE2RDAwNzUwNTgKICAgICAgICAgICAgIGl3YXlob21lICAgICAgICAgICAgW1NZU10gICBDOi9pd2F5Ni4wLjFfZ2EuMjI1NjEvCiAgICAgICAgICAgICBpd2F5dmVyc2lvbiAgICAgICAgIFtTWVNdICAgNi4wLjAKICAgICAgICAgICAgIGl3YXl3b3JrZGlyICAgICAgICAgW1NZU10gICBDOi9pd2F5Ni4wLjFfZ2EuMjI1NjEvY29uZmlnL0M3N0M4NjhGMDYuLi5bNjFdCiAgICAgICAgICAgICBuYW1lICAgICAgICAgICAgICAgIFtTWVNdICAgRXhlY1Byb2Nlc3MKICAgICAgICAgICAgIHByb3RvY29sICAgICAgICAgICAgW1NZU10gICBMY2wKQ29udGVudCBvZiBkb2N1bWVudAoJRm9ybT14bWwsIHN0YXRlPWVycm9yCgk8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgPz4KPGVkYT4KICAgPGVycm9yIHRpbWVzdGFtcD0iMjAwOS0xMC0wM1QwMzowMDoyOVoiIGNvZGU9IjYiIHN0YWdlPSJBR0VOVCIgc291cmNlPSJYRFRyYW5zZm9ybUFnZW50IiBzdWJjb2RlPSIxIiBlbmdpbmU9Iml3YXkiIHdhbnRlb3M9ImZhbHNlIiB0cmFuc2Zvcm09InRyYW5zX2FydGVtIiB0eXBlPSJ4bWwiIHNob3VsZFRyaW09ImZhbHNlIiBpbnR5cGU9ImFsbCI+VHJhbnNmb3JtIHJldHVybmVkIG5vIG91dHB1dDwvZXJyb3I+CjwvZWRhPg==</ser:Document>
<ser:Document documentSeq="1" suffix="xml" termNodeName="End">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+PGVkYT48ZXJyb3IgdGltZXN0YW1wPSIyMDA5LTEwLTAzVDAzOjAwOjI5WiIgY29kZT0iNiIgc3RhZ2U9IkFHRU5UIiBzb3VyY2U9IlhEVHJhbnNmb3JtQWdlbnQiIHN1YmNvZGU9IjEiIGVuZ2luZT0iaXdheSIgd2FudGVvcz0iZmFsc2UiIHRyYW5zZm9ybT0idHJhbnNfYXJ0ZW0iIHR5cGU9InhtbCIgc2hvdWxkVHJpbT0iZmFsc2UiIGludHlwZT0iYWxsIj5UcmFuc2Zvcm0gcmV0dXJuZWQgbm8gb3V0cHV0PC9lcnJvcj48L2VkYT4=</ser:Document>
<ser:Document documentSeq="1" suffix="dat" termNodeName="trace_FLOWCHART_STARTUP_END_End#1">TmFtZT1FbmQgIFR5cGU9VGVybWluYXRlICBJbkVkZ2U9T25Db21wbGV0aW9uICBGcm9tPXRyYW5zX2FydGVtICBOb3QgbmVzdGVkClJlZ2lzdGVycwogICAgICAgICAgICAgZW5naW5lICAgICAgICAgICAgICBbU1lTXSAgIEM3N0M4NjhGMDY2NERFRkVCQzdEODAxNkQwMDc1MDU4CiAgICAgICAgICAgICBpd2F5LnBpZCAgICAgICAgICAgIFtTWVNdICAgMjE0MAogICAgICAgICAgICAgaXdheS5zZXJ2ZXJmdWxsaG9zdCBbU1lTXSAgIGFydGVtLXhwLmliaS5jb20KICAgICAgICAgICAgIGl3YXkuc2VydmVyaG9zdCAgICAgW1NZU10gICBhcnRlbS14cAogICAgICAgICAgICAgaXdheS5zZXJ2ZXJpcCAgICAgICBbU1lTXSAgIDE3Mi4zMC4yNDQuNTAKICAgICAgICAgICAgIGl3YXljb25maWcgICAgICAgICAgW1NZU10gICBDNzdDODY4RjA2NjRERUZFQkM3RDgwMTZEMDA3NTA1OAogICAgICAgICAgICAgaXdheWhvbWUgICAgICAgICAgICBbU1lTXSAgIEM6L2l3YXk2LjAuMV9nYS4yMjU2MS8KICAgICAgICAgICAgIGl3YXl2ZXJzaW9uICAgICAgICAgW1NZU10gICA2LjAuMAogICAgICAgICAgICAgaXdheXdvcmtkaXIgICAgICAgICBbU1lTXSAgIEM6L2l3YXk2LjAuMV9nYS4yMjU2MS9jb25maWcvQzc3Qzg2OEYwNi4uLls2MV0KICAgICAgICAgICAgIG5hbWUgICAgICAgICAgICAgICAgW1NZU10gICBFeGVjUHJvY2VzcwogICAgICAgICAgICAgcHJvdG9jb2wgICAgICAgICAgICBbU1lTXSAgIExjbApPYmplY3QgdHlwZSBkb2VzIG5vdCBzdXBwb3J0IGRvY3VtZW50IGRpc3BsYXk=</ser:Document>
</ser:Output>
</ser:TestProcessFlowV2Res>