Eclipse audit view problem in 6.0.1.Final

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Eclipse audit view problem in 6.0.1.Final

sumantp
The Eclipse audit view using the 6.0.1.Final plugin says "The selected audit log is empty" when opening a seemingly valid log file. Steps to reproduce the problem ...

1. Use Eclipse Kepler
2. Install plugin using update URL http://download.jboss.org/drools/release/6.0.1.Final/org.drools.updatesite/
3. Create hello world project using the drools project wizard
4. Modify kmodule.xml to specify file logger
        <fileLogger file="events" threaded="true" interval="10"/>
5. Ensure logger is closed before exiting
6. Open the log file in the audit view
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse audit view problem in 6.0.1.Final

sumantp
Here's the log ...

<object-stream>
<org.drools.core.audit.WorkingMemoryLog>
  <version>6.1</version>
  <events/>
  <engine>PHREAK</engine>
</org.drools.core.audit.WorkingMemoryLog>
<org.drools.core.audit.WorkingMemoryLog>
  <version>6.1</version>
  <events>
    <org.drools.core.audit.event.ObjectLogEvent>
      <type>1</type>
      <factId>1</factId>
      <objectToString>com.sample.DroolsTest$Message@61e090ee</objectToString>
    </org.drools.core.audit.event.ObjectLogEvent>
    <org.drools.core.audit.event.ActivationLogEvent>
      <type>4</type>
      <activationId>Hello World [1]</activationId>
      <rule>Hello World</rule>
      <declarations>myMessage=Hello World(1); m=com.sample.DroolsTest$Message@61e090ee(1)</declarations>
      <factHandleIds>1</factHandleIds>
    </org.drools.core.audit.event.ActivationLogEvent>
    <org.drools.core.audit.event.ActivationLogEvent>
      <type>6</type>
      <activationId>Hello World [1]</activationId>
      <rule>Hello World</rule>
      <declarations>myMessage=Hello World(1); m=com.sample.DroolsTest$Message@61e090ee(1)</declarations>
      <factHandleIds>1</factHandleIds>
    </org.drools.core.audit.event.ActivationLogEvent>
  </events>
  <engine>PHREAK</engine>
</org.drools.core.audit.WorkingMemoryLog>
<org.drools.core.audit.WorkingMemoryLog>
  <version>6.1</version>
  <events>
    <org.drools.core.audit.event.ObjectLogEvent>
      <type>2</type>
      <factId>1</factId>
      <objectToString>com.sample.DroolsTest$Message@61e090ee</objectToString>
    </org.drools.core.audit.event.ObjectLogEvent>
    <org.drools.core.audit.event.ActivationLogEvent>
      <type>7</type>
      <activationId>Hello World [1]</activationId>
      <rule>Hello World</rule>
      <declarations>myMessage=Goodbye cruel world(1); m=com.sample.DroolsTest$Message@61e090ee(1)</declarations>
      <factHandleIds>1</factHandleIds>
    </org.drools.core.audit.event.ActivationLogEvent>
    <org.drools.core.audit.event.ActivationLogEvent>
      <type>4</type>
      <activationId>GoodBye [1]</activationId>
      <rule>GoodBye</rule>
      <declarations>myMessage=Goodbye cruel world(1)</declarations>
      <factHandleIds>1</factHandleIds>
    </org.drools.core.audit.event.ActivationLogEvent>
    <org.drools.core.audit.event.ActivationLogEvent>
      <type>6</type>
      <activationId>GoodBye [1]</activationId>
      <rule>GoodBye</rule>
      <declarations>myMessage=Goodbye cruel world(1)</declarations>
      <factHandleIds>1</factHandleIds>
    </org.drools.core.audit.event.ActivationLogEvent>
    <org.drools.core.audit.event.ActivationLogEvent>
      <type>7</type>
      <activationId>GoodBye [1]</activationId>
      <rule>GoodBye</rule>
      <declarations>myMessage=Goodbye cruel world(1)</declarations>
      <factHandleIds>1</factHandleIds>
    </org.drools.core.audit.event.ActivationLogEvent>
  </events>
  <engine>PHREAK</engine>
</org.drools.core.audit.WorkingMemoryLog>
</object-stream>
<org.drools.core.audit.WorkingMemoryLog>
  <version>6.1</version>
  <events/>
  <engine>PHREAK</engine>
</org.drools.core.audit.WorkingMemoryLog>
</object-stream>