View previous topic :: View next topic |
Author |
Message |
rc
Joined: 01 Aug 2005 Posts: 100
|
Posted: Wed Feb 06, 2013 3:24 am Post subject: TextLog test: Invalid expression, Unknown operator found |
|
|
Hi Aleks,
I don't understand the Reply message from this text log test:
Tested object info : Text log file D:\jboss7\standalone\log\solvencyCheckService_error.log on localhost
Status : Unknown
Reply : Invalid expression: Unknown operator: "&'"
What does it mean?
HostMonitor should search a specific string and not an expression.
It seems that HostMonitor try to interpret the found text as expression.
This makes no sense in my opinion.
My test settings:
File = D:\jboss7\standalone\log\solvencyCheckService_error.log
FileMacros = No
AlertMode = LastEvent
ReplyMode = Line
ReplyFilter = WholeLine
ReplyRange1 = 0
ReplyRange2 = 0
TestOkMode = IfNoBadEvent
BadFilter = 1
LookFor = ERROR
LookMode = String
MatchCase = Yes
WholeWord = No
UseMacros = No
Encoding = ASCII
CodePage = 1252
Here is the original found line from this text log:
2013-02-05 06:17:09,923 ERROR.TEXT=Error in UserDefinedFunction Normierung_Text: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'. Exception: de.insiders.dss.core.SchufaException: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'.
Many thanks in advance!
Enrico |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Feb 06, 2013 9:24 am Post subject: |
|
|
Cannot reproduce this error.
What HostMonitor version do you use ?
Is this exact text in your log file(D:\jboss7\standalone\log\solvencyCheckService_error.log)?
Quote: | 2013-02-05 06:17:09,923 ERROR.TEXT=Error in UserDefinedFunction Normierung_Text: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'. Exception: de.insiders.dss.core.SchufaException: Unsupported character '&' in text 'Mustermann Str. 1 ENGEL & CO'. |
|
|
Back to top |
|
|
rc
Joined: 01 Aug 2005 Posts: 100
|
Posted: Wed Feb 06, 2013 9:44 am Post subject: |
|
|
We use Advanced Host Monitor v 9.32 and the test is executed by RMA v 4.53
The text line from the log file is a bit stripped-down. I can send you the hole line to your private address |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Feb 06, 2013 9:53 am Post subject: |
|
|
Please send whole line or log file to support@ks-soft.net |
|
Back to top |
|
|
rc
Joined: 01 Aug 2005 Posts: 100
|
Posted: Thu Feb 07, 2013 3:22 am Post subject: |
|
|
Ok, I sent you the hole line from logfile to support@ks-soft.net |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Thu Feb 07, 2013 11:29 am Post subject: |
|
|
- You are using '%SuggestedReply%'=='RMA: Connection error' expression for "Normal" status
- You are using ReplyFilter:WholeLine option for the test
- Log contains string with quotation marks.
The same marks used for logical expression. This means %SuggestedReply% variable contains quotation marks so expression '%SuggestedReply%'=='RMA: Connection error' cannot be evaluated properly.
Solution? If your log file does not contain strings with "" marks, use these marks instead of ''
Regards
Alex |
|
Back to top |
|
|
rc
Joined: 01 Aug 2005 Posts: 100
|
Posted: Fri Feb 08, 2013 8:27 am Post subject: |
|
|
Ok, I understand the problem and I will try your solution.
Thank you
Enrico |
|
Back to top |
|
|
|