Solved

Logevent activity causing java.lang.IllegalArgumenException

  • 7 February 2024
  • 4 replies
  • 78 views

Userlevel 5
Badge +16

 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.

icon

Best answer by Brian Bruno 7 February 2024, 15:57

View original

4 replies

Userlevel 5
Badge +13

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

Userlevel 5
Badge +16

Thanks Brian, Does case matter for these?

Userlevel 5
Badge +13

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

Userlevel 5
Badge +16

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.

Reply