Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » rule-based adapter works from command line but fails as plugin
rule-based adapter works from command line but fails as plugin [message #84724] Mon, 02 October 2006 16:51 Go to next message
No real name is currently offline No real nameFriend
Messages: 121
Registered: July 2009
Senior Member
Hi,
I created a rule-based adapter and tested it in the GLA perspective.
Worked fine. I execute the same adapter from the command line using
gla.bat. Also works fine.

I create a plugin containing this rule-based adapter (plugin.xml below).
I launch the workbench, the adapter plugin appears when I import. I fill
in the form and start the import. However, after only 19 lines, it
throws a ParserException. I receive a modal dialog reporting the
ParserException and 19 lines appear in the Log View.

Why would an adapter work in the GLA Perspective and the command line
but throw a parsing exception as a plugin? Note I have written no Java
code. It is just 100% pure rule-based adapter.

I use TPTP 4.2.0, Eclipse 3.2.0, Java 1.4.2

Thanks, chris

My plugin.xml:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>

<extension
point="org.eclipse.hyades.logging.parsers.logParser">

<parser
class="com.abc.ParserExtension"
description="ABC import"
icon="./icons/full/obj16/apache_access.gif"
id="com.abc.Parser"
name="ABC log"
ui_name="ABC log">

<field
useBrowse="true"
defaultValue="C:\temp\abc.log"
name="Log path"
helpContextId=""
tooltip="Log path"
id="file_path"
browseType="*.log">
</field>
<field
useBrowse="false"
defaultValue="9.0"
defaultRuntimeValue="9.0"
name="Supported versions"
helpContextId=""
tooltip="Version"
ui_type="combobox"
id="version">
</field>
<commonFields
timeZone="DEFAULT">
</commonFields>
<parserParameter
name="9.0"
value="./config/abc.adapter">
</parserParameter>
<parserParameter
name="Default"
value="./config/abc.adapter">
</parserParameter>
</parser>

</extension>

</plugin>
Re: rule-based adapter works from command line but fails as plugin [message #84754 is a reply to message #84724] Tue, 03 October 2006 14:05 Go to previous message
Eclipse UserFriend
Originally posted by: cindyjin.ca.ibm.com

Hi Chris:

Which outputter are you using? If you can execute through the command
line, I guess you are using the
" org.eclipse.hyades.logging.adapter.outputters.CBEFileOutputt er ". But
you need to use other outputters , i.e.
" org.eclipse.hyades.logging.parsers.adapter.outputters.LogImp ortOutputter ",
if you want to use the log import wizard to import logs and display logs
in the log view.

Thanks

Cindy

Chris Giblin wrote:
> Hi,
> I created a rule-based adapter and tested it in the GLA perspective.
> Worked fine. I execute the same adapter from the command line using
> gla.bat. Also works fine.
>
> I create a plugin containing this rule-based adapter (plugin.xml below).
> I launch the workbench, the adapter plugin appears when I import. I fill
> in the form and start the import. However, after only 19 lines, it
> throws a ParserException. I receive a modal dialog reporting the
> ParserException and 19 lines appear in the Log View.
>
> Why would an adapter work in the GLA Perspective and the command line
> but throw a parsing exception as a plugin? Note I have written no Java
> code. It is just 100% pure rule-based adapter.
>
> I use TPTP 4.2.0, Eclipse 3.2.0, Java 1.4.2
>
> Thanks, chris
>
> My plugin.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.2"?>
> <plugin>
>
> <extension
> point="org.eclipse.hyades.logging.parsers.logParser">
>
> <parser
> class="com.abc.ParserExtension"
> description="ABC import"
> icon="./icons/full/obj16/apache_access.gif"
> id="com.abc.Parser"
> name="ABC log"
> ui_name="ABC log">
>
> <field
> useBrowse="true"
> defaultValue="C:\temp\abc.log"
> name="Log path"
> helpContextId=""
> tooltip="Log path"
> id="file_path"
> browseType="*.log">
> </field>
> <field
> useBrowse="false"
> defaultValue="9.0"
> defaultRuntimeValue="9.0"
> name="Supported versions"
> helpContextId=""
> tooltip="Version"
> ui_type="combobox"
> id="version">
> </field>
> <commonFields
> timeZone="DEFAULT">
> </commonFields>
> <parserParameter
> name="9.0"
> value="./config/abc.adapter">
> </parserParameter>
> <parserParameter
> name="Default"
> value="./config/abc.adapter">
> </parserParameter>
> </parser>
>
> </extension>
>
> </plugin>
Previous Topic:Running a JUnit test remotly on 2 (or more) machine in PARALLEL
Next Topic:java.awt.HeadlessException: No X11 DISPLAY variable was set
Goto Forum:
  


Current Time: Thu Nov 21 11:48:30 GMT 2024

Powered by FUDForum. Page generated in 0.03127 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top