You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Aki Yoshida <el...@gmail.com> on 2012/09/04 12:38:14 UTC
issue with camel-beanio's version used in trunk
Hi,
I stumbled on this issue as I was trying to build camel without
network connection.
The test file (mapping.xml) included in camel-beanio is using
namespace http://www.beanio.org/2011/01 with its schema location at
http://www.beanio.org/2011/01/mapping.xsd
The version of beanio that is included in camel trunk is 2.0.1. which
has an entity resolver for its namespace http://www.beanio.org/2012/03
but not for this 2011/01 namespace.
Although the beanio-2.0.1.jar contains both schema files, the
documentation for beanio 2.0 (that uses the 2012/03 namespace) says in
its migration guide
(http://beanio.org/2.0/docs/reference/index.html#Migration) that
beanio 2.0 is not compatible with beanio 1.2 which uses the 2011/01
namespace. So, I am not sure, if it is an error to omit the entity
resolver for the 2011/01 namespace in this jar or not.
But anyway, I am wondering, if camel-beanio is using beanio-2.0,
should it be using the 2012/03 namespace in its test cases?
When I switched the namespace of the test file to the 2012/03 one and
adjust one attribute which was changed from 2011/01 to 2012/03, the
tests run without network connection.
Index: components/camel-beanio/src/test/resources/org/apache/camel/dataformat/beanio/mappings.xml
===================================================================
--- components/camel-beanio/src/test/resources/org/apache/camel/dataformat/beanio/mappings.xml (revision
1380478)
+++ components/camel-beanio/src/test/resources/org/apache/camel/dataformat/beanio/mappings.xml (working
copy)
@@ -14,8 +14,8 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<beanio xmlns="http://www.beanio.org/2011/01"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.beanio.org/2011/01
http://www.beanio.org/2011/01/mapping.xsd">
+<beanio xmlns="http://www.beanio.org/2012/03"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.beanio.org/2012/03
http://www.beanio.org/2012/03/mapping.xsd">
<template name="A1Record">
<field name="sedol" type="string" length="7"/>
@@ -43,7 +43,7 @@
</record>
</stream>
- <stream name="securityData" format="fixedlength" ordered="true">
+ <stream name="securityData" format="fixedlength" strict="true">
<group name="headerGroup" minOccurs="1" maxOccurs="1" order="1">
thanks.
regards, aki
Re: issue with camel-beanio's version used in trunk
Posted by Aki Yoshida <el...@gmail.com>.
Hi,
thanks for the quick answer.
logged in CAMEL-5562.
regards, aki
2012/9/4 Claus Ibsen <cl...@gmail.com>:
> Hi
>
> Yeah the schema should be updated IMHO. Fell free to log a JIRA with a patch.
>
>
> On Tue, Sep 4, 2012 at 12:38 PM, Aki Yoshida <el...@gmail.com> wrote:
>> Hi,
>> I stumbled on this issue as I was trying to build camel without
>> network connection.
>>
>> The test file (mapping.xml) included in camel-beanio is using
>> namespace http://www.beanio.org/2011/01 with its schema location at
>> http://www.beanio.org/2011/01/mapping.xsd
>>
>> The version of beanio that is included in camel trunk is 2.0.1. which
>> has an entity resolver for its namespace http://www.beanio.org/2012/03
>> but not for this 2011/01 namespace.
>>
>> Although the beanio-2.0.1.jar contains both schema files, the
>> documentation for beanio 2.0 (that uses the 2012/03 namespace) says in
>> its migration guide
>> (http://beanio.org/2.0/docs/reference/index.html#Migration) that
>> beanio 2.0 is not compatible with beanio 1.2 which uses the 2011/01
>> namespace. So, I am not sure, if it is an error to omit the entity
>> resolver for the 2011/01 namespace in this jar or not.
>>
>> But anyway, I am wondering, if camel-beanio is using beanio-2.0,
>> should it be using the 2012/03 namespace in its test cases?
>>
>> When I switched the namespace of the test file to the 2012/03 one and
>> adjust one attribute which was changed from 2011/01 to 2012/03, the
>> tests run without network connection.
>>
>> Index: components/camel-beanio/src/test/resources/org/apache/camel/dataformat/beanio/mappings.xml
>> ===================================================================
>> --- components/camel-beanio/src/test/resources/org/apache/camel/dataformat/beanio/mappings.xml (revision
>> 1380478)
>> +++ components/camel-beanio/src/test/resources/org/apache/camel/dataformat/beanio/mappings.xml (working
>> copy)
>> @@ -14,8 +14,8 @@
>> See the License for the specific language governing permissions and
>> limitations under the License.
>> -->
>> -<beanio xmlns="http://www.beanio.org/2011/01"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> - xsi:schemaLocation="http://www.beanio.org/2011/01
>> http://www.beanio.org/2011/01/mapping.xsd">
>> +<beanio xmlns="http://www.beanio.org/2012/03"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> + xsi:schemaLocation="http://www.beanio.org/2012/03
>> http://www.beanio.org/2012/03/mapping.xsd">
>>
>> <template name="A1Record">
>> <field name="sedol" type="string" length="7"/>
>> @@ -43,7 +43,7 @@
>> </record>
>> </stream>
>>
>> - <stream name="securityData" format="fixedlength" ordered="true">
>> + <stream name="securityData" format="fixedlength" strict="true">
>>
>> <group name="headerGroup" minOccurs="1" maxOccurs="1" order="1">
>>
>>
>> thanks.
>> regards, aki
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cibsen@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
Re: issue with camel-beanio's version used in trunk
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Yeah the schema should be updated IMHO. Fell free to log a JIRA with a patch.
On Tue, Sep 4, 2012 at 12:38 PM, Aki Yoshida <el...@gmail.com> wrote:
> Hi,
> I stumbled on this issue as I was trying to build camel without
> network connection.
>
> The test file (mapping.xml) included in camel-beanio is using
> namespace http://www.beanio.org/2011/01 with its schema location at
> http://www.beanio.org/2011/01/mapping.xsd
>
> The version of beanio that is included in camel trunk is 2.0.1. which
> has an entity resolver for its namespace http://www.beanio.org/2012/03
> but not for this 2011/01 namespace.
>
> Although the beanio-2.0.1.jar contains both schema files, the
> documentation for beanio 2.0 (that uses the 2012/03 namespace) says in
> its migration guide
> (http://beanio.org/2.0/docs/reference/index.html#Migration) that
> beanio 2.0 is not compatible with beanio 1.2 which uses the 2011/01
> namespace. So, I am not sure, if it is an error to omit the entity
> resolver for the 2011/01 namespace in this jar or not.
>
> But anyway, I am wondering, if camel-beanio is using beanio-2.0,
> should it be using the 2012/03 namespace in its test cases?
>
> When I switched the namespace of the test file to the 2012/03 one and
> adjust one attribute which was changed from 2011/01 to 2012/03, the
> tests run without network connection.
>
> Index: components/camel-beanio/src/test/resources/org/apache/camel/dataformat/beanio/mappings.xml
> ===================================================================
> --- components/camel-beanio/src/test/resources/org/apache/camel/dataformat/beanio/mappings.xml (revision
> 1380478)
> +++ components/camel-beanio/src/test/resources/org/apache/camel/dataformat/beanio/mappings.xml (working
> copy)
> @@ -14,8 +14,8 @@
> See the License for the specific language governing permissions and
> limitations under the License.
> -->
> -<beanio xmlns="http://www.beanio.org/2011/01"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> - xsi:schemaLocation="http://www.beanio.org/2011/01
> http://www.beanio.org/2011/01/mapping.xsd">
> +<beanio xmlns="http://www.beanio.org/2012/03"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> + xsi:schemaLocation="http://www.beanio.org/2012/03
> http://www.beanio.org/2012/03/mapping.xsd">
>
> <template name="A1Record">
> <field name="sedol" type="string" length="7"/>
> @@ -43,7 +43,7 @@
> </record>
> </stream>
>
> - <stream name="securityData" format="fixedlength" ordered="true">
> + <stream name="securityData" format="fixedlength" strict="true">
>
> <group name="headerGroup" minOccurs="1" maxOccurs="1" order="1">
>
>
> thanks.
> regards, aki
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen