Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3023

The Audit view in Drools Eclipse plugin does not work

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      The Audit view in Drools Eclipse plugin does not work. Or maybe it is sth wrong with the logger.

      How to reproduce:
      1. download drools distribution from https://hudson.qa.jboss.com/hudson/view/Drools%20jBPM/job/drools-5.2.x/3/
      2. Build example using pom provided: mvn clean install
      3. Generate Eclipse project: mvn eclipse:eclipse
      4. Import example project into Eclipse.
      5. Set a break point in Helloworld.drl. Uncomment the logger in HelloWorldExample.java
      6. Debug HelloWorldExample as Drools
      7. There is nothing showed up in Audit view. And there is an exception in console:

      Exception in thread "main" java.lang.RuntimeException: Could not create the log file. Please make sure that directory that the log file should be placed in does exist.
      at org.drools.audit.WorkingMemoryFileLogger.initializeLog(WorkingMemoryFileLogger.java:148)
      at org.drools.audit.WorkingMemoryFileLogger.writeToDisk(WorkingMemoryFileLogger.java:113)
      at org.drools.audit.KnowledgeRuntimeLoggerProviderImpl$KnowledgeRuntimeFileLoggerWrapper.close(KnowledgeRuntimeLoggerProviderImpl.java:56)
      at org.drools.examples.helloworld.HelloWorldExample.main(HelloWorldExample.java:81)

      Attachments

        Activity

          People

            manstis@redhat.com Michael Anstis
            jervisliu Jervis Liu (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty