--
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-t...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/dfe21639-a7bc-4d8c-ba50-a37af166de6en%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/CAKGkhzbTqD_DpQ0m8ZPobwvF4UfKKU%2BoUbPZnJeDJ_RCwjP-8w%40mail.gmail.com.
On 29 Aug 2022, at 08:46, Douglas Fraser <sye1...@gmail.com> wrote:So far I have seen 3 variations on the ByteSequence that makes up the optional JMS PropertyNames - a null array (most of the time),[0, 0, 0, 1, 0, 14, 116, 114, 97, 110, 115, 102, 111, 114, 109, 97, 116, 105, 111, 110, 9, 0, 7, 106, 109, 115, 45, 120, 109, 108] (or most of the time)and[0, 0, 0, 2, 0, 14, 116, 114, 97, 110, 115, 102, 111, 114, 109, 97, 116, 105, 111, 110, 9, 0, 7, 106, 109, 115, 45, 120, 109, 108] (rarely)The only difference is the first four bytes which is the count of properties in the array. The rest of it is the property name(s) and their values along with some info like the char count and value type. There is only one property: "transformation" and its value is "jms-xml".So things would result in a EOFException and the message being lost or tossed due to the last variation - there is only 1 property, not two and thus a EOFException would get thrown because the array has no more data.
This is a minor thing, Camel/ActiveMQ ought to recover from it (I think the message gets dropped given the code), but I would say Network Rail/CACI should look into it as it may be causing issues elsewhere. But I do not know where or how to report this.
As for why my Camel 3.18.0 only app was breaking, I'm not sure. Perhaps I thought the route was down because of latency issues on the feed, but this was happening nearly ever day and data was definitely getting lost. I haven't yet figured out how to configure things to restart the route... I think it might be a problem with the build - on Linux, I was using prebuilt 3.18.0 Camel etc jars from Maven Central and on the Mac, I built Camel 3.18.1 myself. Or it was a change in Camel 3.18.1 that fixed the recovery process. In any case, I now have a custom 3.18.1 that overlooks this slight issue
Hi Doug
This is a minor thing, Camel/ActiveMQ ought to recover from it (I think the message gets dropped given the code), but I would say Network Rail/CACI should look into it as it may be causing issues elsewhere. But I do not know where or how to report this.What would really help would be a minimal example of the problem in a GitHub repository. That way, other people can have a look at it and may be able to see where things are going wrong, and CACI will be able to reproduce the problem.
As for why my Camel 3.18.0 only app was breaking, I'm not sure. Perhaps I thought the route was down because of latency issues on the feed, but this was happening nearly ever day and data was definitely getting lost. I haven't yet figured out how to configure things to restart the route... I think it might be a problem with the build - on Linux, I was using prebuilt 3.18.0 Camel etc jars from Maven Central and on the Mac, I built Camel 3.18.1 myself. Or it was a change in Camel 3.18.1 that fixed the recovery process. In any case, I now have a custom 3.18.1 that overlooks this slight issueDid this work with a previous version of Camel? If so, is it possible there was a code change to Apache Camel which enforced checking the order of the list, raising an exception rather than failing silently?
--
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-t...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/253c713c-96f9-4792-96aa-bd025336da86n%40googlegroups.com.
https://caci.freshservice.com/helpdesk/tickets/82219
It said the ticket has been resolved, but as I do not have an account for the helpdesk website, I can't see it or any info.... Maybe you do?
And perhaps their fix is what started this problem of propertyNames being [0,0,0,1] which still makes things break. so I am not 100% sure it is fixed but we'll see over the next day or two if my currently running test gets any errors.
I am using the existing platform - I haven't heard anything about this new platform (like how to get an account) because I have not been working on this stuff for awhile.
Doug
To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/caff7e61-e65a-4031-ba62-9d3aac0d93bfn%40googlegroups.com.