Skip to main content
Solved

Logevent activity causing java.lang.IllegalArgumenException


christopherlecky
Byte
Forum|alt.badge.img+17

 Ok, So I am passing two string variables to the Logevent activity.

One for severity, and one for status.

And its throwing the following :

 

I did no such thing

 

Apparently it’s expecting a “SeverityLevel” object.

 


​​​​​​It’s expecting a severity level object?

The wierd thing is that I have done this before without a problem so I don’t know what the issue is.

 

I can’t get Jiggy with this someone help.

Best answer by Brian Bruno

Hi @christopherlecky,

 

You can pass the SeverityLevel object is expecting one of the following values:

 

INFO

MINOR

MAJOR

CRITICAL

 

It looks like your xpath is sending ‘Information’ when it should instead send ‘INFO’.  So long as your other activity returns one of the above 4 strings, this should work as expected.

 

-Brian Bruno

View original
Did this answer your question?

4 replies

Forum|alt.badge.img+13
  • Vaulter
  • 166 replies
  • Answer
  • February 7, 2024

Hi @christopherlecky,

 

You can pass the SeverityLevel object is expecting one of the following values:

 

INFO

MINOR

MAJOR

CRITICAL

 

It looks like your xpath is sending ‘Information’ when it should instead send ‘INFO’.  So long as your other activity returns one of the above 4 strings, this should work as expected.

 

-Brian Bruno


christopherlecky
Byte
Forum|alt.badge.img+17

Thanks Brian, Does case matter for these?


Forum|alt.badge.img+13
  • Vaulter
  • 166 replies
  • February 7, 2024

Yes, it appears it does.  I just tested passing ‘info’ in all lower case and it failed with the same error.  It does appear to expect each of those to be in all capital letters in order for this to succeed.

-Brian Bruno


christopherlecky
Byte
Forum|alt.badge.img+17

That explains it, I was using “Minor”, “Major” etc… and getting the same error. 

I switched to what I saw in the controller after I started getting these errors.

 

Thanks again for the help.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings