Page 1 of 1

Forcing an error message in case of missing profile

Posted: Thu Dec 14, 2017 2:07 pm
by daxbin
I'm using xRoute via Java WS API.

Years ago I got the following exception, if I used a wrong (e.g. misspelled) profile name:

Code: Select all

com.ptvag.jabba.core.exception.UnexpectedException:
requested profile does not exist: xxxxx
Now I don't get an error but a regular result because xRoute falls back to a default profile silently
(it only logs a warning "Requested profile xxxxx.xml which does not exist, using default.xml instead.")

How can I get the xRoute to generate an error message again?
I can't find the corresponding entry in e.g. xroute.properties.


Best regards, Birk

Re: Forcing an error message in case of missing profile

Posted: Thu Dec 14, 2017 2:15 pm
by Bernd Welter
Hello Dirk,

check xserver.properites... as the desired behaviour is a FRAMEWORK topic it is a generic key:
# fail if a non-existing profile is requested
#
#failOnIllegalProfile=false
failOnIllegalProfile=true
Best regards,
Bernd

Re: Forcing an error message in case of missing profile

Posted: Thu Dec 14, 2017 2:46 pm
by daxbin
Hello Bernd,

thanks a lot, that was exactly what I was looking for.

Best regards,
Birk

BTW, Your red Xmas coat looks great!