Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 112590

Summary: Verify that the GLA demo on the external web site works
Product: z_Archived Reporter: amehrega
Component: TPTP.monitoringAssignee: Dave Smith <smith>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: jx_china, norbert.ploett, popescu
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard: closed460

Description amehrega CLA 2005-10-13 22:51:01 EDT
I'm opening this defect in respond to the following newsgroup message on Oct 13,
2005:

------------------------------------------------------------------
Hello,

I am trying out the sample log parser from the tutorial

http://www.eclipse.org/tptp/home/documents/tutorials/gla/GLA_CreatingLogParser/GLA_CreatingLogParser.viewlet/GLA_CreatingLogParser_viewlet_swf.html

When I try import the sample log file the progress quickly goes to 98%, then 
seems to hang indefinitely (for minutes, at least). When I cancel I get an 
error message

IWAT0027E Error importing the specified log file(s)

The details have around 18.000 entries, so many that the output is garbled 
up, but I can copy-paste to a text editor. The output looks like this:

==========snip===========
IWAT0027E Error importing the specified log file(s).
  IWAT0412E Errors occurred parsing the log file d:\Temp\sample.log.
  IWAT0398I Sensor will read file sample.log from directory d:\Temp using 
the converter command null.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 1 items.
IWAT0425I Component OS File Sensor is returning 0 items.
IWAT0425I Component OS File Sensor is returning 0 items.
IWAT0425I Component OS File Sensor is returning 0 items.
==========snap===========

then repeat the last line "to infinity". Eclipse seems to be missing the 
fact that the file is at it's end.
Can anybody help? More info required?

This is the configuration:

WinXP
eclipse 3.1.1
EMF 2.1.0
TPTP 4.0.0
RAServer 4.0.0.0

Thanks,


Norbert Ploett

-----------------------------------------------------------------------

Verify that the demo on the web site works.
Comment 1 Norbert Plött CLA 2005-10-14 03:43:38 EDT
More findings after some drilling into the code:

- The "hanging" behaviour is due to the fact that I had the "Continuous 
Operation" setting for the context instance set. This does not make sense for 
importing a static log file. So maybe this should be unchecked for the demo.
- The amount of messages can be reduced when I set the Pause Interval for the 
context instance to a higher value.

After these changes the import ends with an error message box "IWAT0027E Error 
importing the specified log file(s)."

Copy-pasting the details yields:

=========snip==========
IWAT0027E Error importing the specified log file(s).
  IWAT0412E Errors occurred parsing the log file d:\Temp\sample.log.
  IWAT0398I Sensor will read file sample.log from directory d:\Temp using the 
converter command null.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 5 items.
IWAT0425I Component OS File Sensor is returning 1 items.
IWAT0425I Component OS File Sensor is returning 0 items.
IWAT0425I Component OS File Sensor is returning 0 items.
IWAT0425I Component OS File Sensor is returning 0 items.

=========snip==========

The log view is opened but says that it has no filter, and that 0 of 0 records 
matched the filter.
I'll try to find out about the parsing errors now.
Comment 2 Norbert Plött CLA 2005-10-14 04:58:40 EDT
Even more drilling:

In the component definition for the OS File Sensor the logging level is set 
to 0. --> Even the most minor information message is logged to the adapter's 
internal log. ParserWrapper.parse() will throw it's LogParserException 
because it only sees that the message count is >0, without distinction what 
kind of message was processed.

I can increase the logging level (to > 10) to suppress the info messages and 
there is no more error popup dialog now.

So the logging level should be > 10 for the demo to fix the problem. But more 
needs to be done since I am still not happy because the log view which is 
opened does not contain any entries, as described before.

I looked into all components with the debugger and they all had 36 messages 
processed, so where does the output go?
Comment 3 Norbert Plött CLA 2005-10-14 05:34:51 EDT
The question "Where does my output go"? led me to the solution. It can also be 
found in the documentation (at least partially): 

Help book Monitoring and analyzing ... --> Determining problems ...--> Creating 
a log parser --> Creating a rules-based adapter --> Configuring the outputter 
component

says: 

"4. ... Update the Name, Description and Executable Class for the Outputter. 
Refer to the Configuration file structure reference to obtain the correct name 
of outputter classes to use. In the example below, the outputter has been 
changed to use the LogImportOutputter which receives Common Base Event 
instances and writes the externalized records to the Log Import loader of the 
Log and Trace Analyzer."

In the demo the outputter type is preset to LoggingAgentOutputter, and 
consequently the output goes nowhere and nothing is shown in the Log View.

BTW when I follow the link to the  Configuration file structure then the 
LogImportOutputter is not listed there so the list does not seem to be up-to-
date. The LogImportOutputter can of course be found with the java search, but 
that is not the way it is supposed to be.

OK, so now I have answered all my own questions, maybe others can learn 
something from it. (I sure learned a lot)

I hope that it was not all my fault by making some blunder, but I think 
somebody should look through the demo example and documentations.

Comment 4 Dave Smith CLA 2005-10-14 10:26:07 EDT
Norbert, thank you for your investigation into the problems.  We will use this 
information to improve the GLA demo and documentation.
Comment 5 Dave Smith CLA 2005-10-18 10:22:44 EDT
Deferring to 4.1 i3.
Comment 6 Dave Smith CLA 2005-11-01 10:58:38 EST
Cannot contain this work in 4.1.  Deferring this to 4.2.
Comment 7 Dave Smith CLA 2006-06-05 10:32:42 EDT
This can be fixed later in iteration 4 as it is web documentation
Comment 8 Dave Smith CLA 2006-06-16 12:33:51 EDT
This cannot be contained in 4.2.  It will be targetted to 4.3
Comment 9 Dave Smith CLA 2006-11-10 02:47:01 EST
Will try to get this demo fixed once 4.3 is wrapped up.
Comment 10 Dave Smith CLA 2007-01-17 23:18:39 EST
Added sizing.
Comment 11 Dave Smith CLA 2007-02-06 02:42:59 EST
Targetting to complete in i2.
Comment 12 Dave Smith CLA 2007-04-03 10:56:33 EDT
Deferring to iteration 3.
Comment 13 Dave Smith CLA 2007-07-04 04:26:29 EDT
GLA Demo viewlet has been updated.  Here is a link to it: http://www.eclipse.org/tptp/home/documents/tutorials/gla/GLA_Intro/GLA_Intro.viewlet/GLA_Intro_viewlet_swf.html.  Thanks to Cindy for making the updates.  I committed the updated files to CVS.
Comment 14 Paul Slauenwhite CLA 2009-06-30 12:18:11 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.