You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Jana Manju <ja...@gmail.com> on 2024/12/20 07:15:18 UTC

java.lang.IllegalArgumentException Error

Hi Team,

Recently we migrated our ActiveMQ service from windows to linux. We are
seeing the following error for only one of the consumers.

2024-12-20 12:33:11,959 | ERROR | Failed delivery for (MessageId:
ID:svfls2000004pr.nbndc.local-18161-1734521123745-3:1:1:1:147 on
ExchangeId: ID-svpniabbc3d8pr-aws-nbndc-local-1734254938673-1-21885).
Exhausted after delivery attempt: 1 caught:
org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException:
Property with key [LIMIT.PRIORITY.UpdateResource.FLS] not found in
properties from text: {{LIMIT.PRIORITY.UpdateResource.FLS}}

Following are the consumers from properties files.

LIMIT.PRIORITY.updateResource.UNIFY={{PRIORITY.Best Effort}}
LIMIT.PRIORITY.updateResource.FLS={{PRIORITY.Best Effort}}
LIMIT.PRIORITY.updateResource.EIS={{PRIORITY.Best Effort}}
LIMIT.PRIORITY.updateResource.TVT={{PRIORITY.Best Effort}}

The issue is occurring only for LIMIT.PRIORITY.updateResource.FLS and as
per our validation the error is occurring due to case sensitive in
UpdateResource where U is capital letter but our property file has correct
details only and i am unable figure out where UpdateResource value coming
in this message..

property with key [LIMIT.PRIORITY.UpdateResource.FLS]

can you please review and help with your input to resolve the issue.

Re: java.lang.IllegalArgumentException Error

Posted by Jana Manju <ja...@gmail.com>.
Hi,

Please find the details below:

How do you start the ActiveMQ broker ? standalone (with the
bin/activemq script) or with the wrapper ?
[Answer]: activemq script & bin both

Does you camel route run inside ActiveMQ (directly included in the
conf/activemq.xml) ?
[Answer]: directly included in activemq.xml

Did you tune bin/setenv or wrapper.conf ?
[Anwer]: no tuning of bin/setenv


On Sat, 21 Dec 2024 at 17:37, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:

> Hi,
>
> At first glance, it doesn't look like an ActiveMQ issue but more a
> Camel issue. The Camel placeholder doesn't seem to be populated.
> Maybe we don't use the right path for the placeholder prop file (from
> file:c to file://).
>
> How do you start the ActiveMQ broker ? standalone (with the
> bin/activemq script) or with the wrapper ?
> Does you camel route run inside ActiveMQ (directly included in the
> conf/activemq.xml) ?
>
> Did you tune bin/setenv or wrapper.conf ?
>
> Regards
> JB
>
> On Fri, Dec 20, 2024 at 8:15 AM Jana Manju <ja...@gmail.com> wrote:
> >
> > Hi Team,
> >
> > Recently we migrated our ActiveMQ service from windows to linux. We are
> > seeing the following error for only one of the consumers.
> >
> > 2024-12-20 12:33:11,959 | ERROR | Failed delivery for (MessageId:
> > ID:svfls2000004pr.nbndc.local-18161-1734521123745-3:1:1:1:147 on
> > ExchangeId: ID-svpniabbc3d8pr-aws-nbndc-local-1734254938673-1-21885).
> > Exhausted after delivery attempt: 1 caught:
> > org.apache.camel.RuntimeCamelException:
> java.lang.IllegalArgumentException:
> > Property with key [LIMIT.PRIORITY.UpdateResource.FLS] not found in
> > properties from text: {{LIMIT.PRIORITY.UpdateResource.FLS}}
> >
> > Following are the consumers from properties files.
> >
> > LIMIT.PRIORITY.updateResource.UNIFY={{PRIORITY.Best Effort}}
> > LIMIT.PRIORITY.updateResource.FLS={{PRIORITY.Best Effort}}
> > LIMIT.PRIORITY.updateResource.EIS={{PRIORITY.Best Effort}}
> > LIMIT.PRIORITY.updateResource.TVT={{PRIORITY.Best Effort}}
> >
> > The issue is occurring only for LIMIT.PRIORITY.updateResource.FLS and as
> > per our validation the error is occurring due to case sensitive in
> > UpdateResource where U is capital letter but our property file has
> correct
> > details only and i am unable figure out where UpdateResource value coming
> > in this message..
> >
> > property with key [LIMIT.PRIORITY.UpdateResource.FLS]
> >
> > can you please review and help with your input to resolve the issue.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@activemq.apache.org
> For additional commands, e-mail: users-help@activemq.apache.org
> For further information, visit: https://activemq.apache.org/contact
>
>
>

Re: java.lang.IllegalArgumentException Error

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

At first glance, it doesn't look like an ActiveMQ issue but more a
Camel issue. The Camel placeholder doesn't seem to be populated.
Maybe we don't use the right path for the placeholder prop file (from
file:c to file://).

How do you start the ActiveMQ broker ? standalone (with the
bin/activemq script) or with the wrapper ?
Does you camel route run inside ActiveMQ (directly included in the
conf/activemq.xml) ?

Did you tune bin/setenv or wrapper.conf ?

Regards
JB

On Fri, Dec 20, 2024 at 8:15 AM Jana Manju <ja...@gmail.com> wrote:
>
> Hi Team,
>
> Recently we migrated our ActiveMQ service from windows to linux. We are
> seeing the following error for only one of the consumers.
>
> 2024-12-20 12:33:11,959 | ERROR | Failed delivery for (MessageId:
> ID:svfls2000004pr.nbndc.local-18161-1734521123745-3:1:1:1:147 on
> ExchangeId: ID-svpniabbc3d8pr-aws-nbndc-local-1734254938673-1-21885).
> Exhausted after delivery attempt: 1 caught:
> org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException:
> Property with key [LIMIT.PRIORITY.UpdateResource.FLS] not found in
> properties from text: {{LIMIT.PRIORITY.UpdateResource.FLS}}
>
> Following are the consumers from properties files.
>
> LIMIT.PRIORITY.updateResource.UNIFY={{PRIORITY.Best Effort}}
> LIMIT.PRIORITY.updateResource.FLS={{PRIORITY.Best Effort}}
> LIMIT.PRIORITY.updateResource.EIS={{PRIORITY.Best Effort}}
> LIMIT.PRIORITY.updateResource.TVT={{PRIORITY.Best Effort}}
>
> The issue is occurring only for LIMIT.PRIORITY.updateResource.FLS and as
> per our validation the error is occurring due to case sensitive in
> UpdateResource where U is capital letter but our property file has correct
> details only and i am unable figure out where UpdateResource value coming
> in this message..
>
> property with key [LIMIT.PRIORITY.UpdateResource.FLS]
>
> can you please review and help with your input to resolve the issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@activemq.apache.org
For additional commands, e-mail: users-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



R: java.lang.IllegalArgumentException Error

Posted by Marco Garavello <ma...@carel.com.INVALID>.
Hello,

are you sure no spurious Windows chars are present in the properties files?
Maybe linefeed or similar


Distinti Saluti / Kind Regards
M.G.
________________________________
Da: Jana Manju <ja...@gmail.com>
Inviato: venerdì 20 dicembre 2024 09:32
A: users@activemq.apache.org <us...@activemq.apache.org>
Oggetto: Re: java.lang.IllegalArgumentException Error

Hi Ken,

The ActiveMQ version is 5.18.4 and it is classic.

On Fri, 20 Dec 2024 at 19:16, Ken Liao <ke...@gmail.com> wrote:

> Hi, what version of ActiveMQ are you using? Also is it Classic or Artemis?
>
> Thanks,
> Ken
>
> On Thu, Dec 19, 2024 at 11:18 PM Jana Manju <ja...@gmail.com> wrote:
>
> > Hi Team,
> >
> > Recently we migrated our ActiveMQ service from windows to linux. We are
> > seeing the following error for only one of the consumers.
> >
> > 2024-12-20 12:33:11,959 | ERROR | Failed delivery for (MessageId:
> > ID:svfls2000004pr.nbndc.local-18161-1734521123745-3:1:1:1:147 on
> > ExchangeId: ID-svpniabbc3d8pr-aws-nbndc-local-1734254938673-1-21885).
> > Exhausted after delivery attempt: 1 caught:
> > org.apache.camel.RuntimeCamelException:
> java.lang.IllegalArgumentException:
> > Property with key [LIMIT.PRIORITY.UpdateResource.FLS] not found in
> > properties from text: {{LIMIT.PRIORITY.UpdateResource.FLS}}
> >
> > Following are the consumers from properties files.
> >
> > LIMIT.PRIORITY.updateResource.UNIFY={{PRIORITY.Best Effort}}
> > LIMIT.PRIORITY.updateResource.FLS={{PRIORITY.Best Effort}}
> > LIMIT.PRIORITY.updateResource.EIS={{PRIORITY.Best Effort}}
> > LIMIT.PRIORITY.updateResource.TVT={{PRIORITY.Best Effort}}
> >
> > The issue is occurring only for LIMIT.PRIORITY.updateResource.FLS and as
> > per our validation the error is occurring due to case sensitive in
> > UpdateResource where U is capital letter but our property file has
> correct
> > details only and i am unable figure out where UpdateResource value coming
> > in this message..
> >
> > property with key [LIMIT.PRIORITY.UpdateResource.FLS]
> >
> > can you please review and help with your input to resolve the issue.
> >
>

Re: java.lang.IllegalArgumentException Error

Posted by Jana Manju <ja...@gmail.com>.
Hi Ken,

The ActiveMQ version is 5.18.4 and it is classic.

On Fri, 20 Dec 2024 at 19:16, Ken Liao <ke...@gmail.com> wrote:

> Hi, what version of ActiveMQ are you using? Also is it Classic or Artemis?
>
> Thanks,
> Ken
>
> On Thu, Dec 19, 2024 at 11:18 PM Jana Manju <ja...@gmail.com> wrote:
>
> > Hi Team,
> >
> > Recently we migrated our ActiveMQ service from windows to linux. We are
> > seeing the following error for only one of the consumers.
> >
> > 2024-12-20 12:33:11,959 | ERROR | Failed delivery for (MessageId:
> > ID:svfls2000004pr.nbndc.local-18161-1734521123745-3:1:1:1:147 on
> > ExchangeId: ID-svpniabbc3d8pr-aws-nbndc-local-1734254938673-1-21885).
> > Exhausted after delivery attempt: 1 caught:
> > org.apache.camel.RuntimeCamelException:
> java.lang.IllegalArgumentException:
> > Property with key [LIMIT.PRIORITY.UpdateResource.FLS] not found in
> > properties from text: {{LIMIT.PRIORITY.UpdateResource.FLS}}
> >
> > Following are the consumers from properties files.
> >
> > LIMIT.PRIORITY.updateResource.UNIFY={{PRIORITY.Best Effort}}
> > LIMIT.PRIORITY.updateResource.FLS={{PRIORITY.Best Effort}}
> > LIMIT.PRIORITY.updateResource.EIS={{PRIORITY.Best Effort}}
> > LIMIT.PRIORITY.updateResource.TVT={{PRIORITY.Best Effort}}
> >
> > The issue is occurring only for LIMIT.PRIORITY.updateResource.FLS and as
> > per our validation the error is occurring due to case sensitive in
> > UpdateResource where U is capital letter but our property file has
> correct
> > details only and i am unable figure out where UpdateResource value coming
> > in this message..
> >
> > property with key [LIMIT.PRIORITY.UpdateResource.FLS]
> >
> > can you please review and help with your input to resolve the issue.
> >
>

Re: java.lang.IllegalArgumentException Error

Posted by Ken Liao <ke...@gmail.com>.
Hi, what version of ActiveMQ are you using? Also is it Classic or Artemis?

Thanks,
Ken

On Thu, Dec 19, 2024 at 11:18 PM Jana Manju <ja...@gmail.com> wrote:

> Hi Team,
>
> Recently we migrated our ActiveMQ service from windows to linux. We are
> seeing the following error for only one of the consumers.
>
> 2024-12-20 12:33:11,959 | ERROR | Failed delivery for (MessageId:
> ID:svfls2000004pr.nbndc.local-18161-1734521123745-3:1:1:1:147 on
> ExchangeId: ID-svpniabbc3d8pr-aws-nbndc-local-1734254938673-1-21885).
> Exhausted after delivery attempt: 1 caught:
> org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException:
> Property with key [LIMIT.PRIORITY.UpdateResource.FLS] not found in
> properties from text: {{LIMIT.PRIORITY.UpdateResource.FLS}}
>
> Following are the consumers from properties files.
>
> LIMIT.PRIORITY.updateResource.UNIFY={{PRIORITY.Best Effort}}
> LIMIT.PRIORITY.updateResource.FLS={{PRIORITY.Best Effort}}
> LIMIT.PRIORITY.updateResource.EIS={{PRIORITY.Best Effort}}
> LIMIT.PRIORITY.updateResource.TVT={{PRIORITY.Best Effort}}
>
> The issue is occurring only for LIMIT.PRIORITY.updateResource.FLS and as
> per our validation the error is occurring due to case sensitive in
> UpdateResource where U is capital letter but our property file has correct
> details only and i am unable figure out where UpdateResource value coming
> in this message..
>
> property with key [LIMIT.PRIORITY.UpdateResource.FLS]
>
> can you please review and help with your input to resolve the issue.
>

Re: java.lang.IllegalArgumentException Error

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

At first glance, it doesn't look like an ActiveMQ issue but more a
Camel issue. The Camel placeholder doesn't seem to be populated.
Maybe we don't use the right path for the placeholder prop file (from
file:c to file://).

How do you start the ActiveMQ broker ? standalone (with the
bin/activemq script) or with the wrapper ?
Does you camel route run inside ActiveMQ (directly included in the
conf/activemq.xml) ?

Did you tune bin/setenv or wrapper.conf ?

Regards
JB

On Fri, Dec 20, 2024 at 8:15 AM Jana Manju <ja...@gmail.com> wrote:
>
> Hi Team,
>
> Recently we migrated our ActiveMQ service from windows to linux. We are
> seeing the following error for only one of the consumers.
>
> 2024-12-20 12:33:11,959 | ERROR | Failed delivery for (MessageId:
> ID:svfls2000004pr.nbndc.local-18161-1734521123745-3:1:1:1:147 on
> ExchangeId: ID-svpniabbc3d8pr-aws-nbndc-local-1734254938673-1-21885).
> Exhausted after delivery attempt: 1 caught:
> org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException:
> Property with key [LIMIT.PRIORITY.UpdateResource.FLS] not found in
> properties from text: {{LIMIT.PRIORITY.UpdateResource.FLS}}
>
> Following are the consumers from properties files.
>
> LIMIT.PRIORITY.updateResource.UNIFY={{PRIORITY.Best Effort}}
> LIMIT.PRIORITY.updateResource.FLS={{PRIORITY.Best Effort}}
> LIMIT.PRIORITY.updateResource.EIS={{PRIORITY.Best Effort}}
> LIMIT.PRIORITY.updateResource.TVT={{PRIORITY.Best Effort}}
>
> The issue is occurring only for LIMIT.PRIORITY.updateResource.FLS and as
> per our validation the error is occurring due to case sensitive in
> UpdateResource where U is capital letter but our property file has correct
> details only and i am unable figure out where UpdateResource value coming
> in this message..
>
> property with key [LIMIT.PRIORITY.UpdateResource.FLS]
>
> can you please review and help with your input to resolve the issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@activemq.apache.org
For additional commands, e-mail: dev-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact