[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-3023) The Audit view in Drools Eclipse plugin does not work

Michael Anstis (JIRA) jira-events at lists.jboss.org
Wed May 11 08:44:19 EDT 2011


     [ https://issues.jboss.org/browse/JBRULES-3023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Anstis resolved JBRULES-3023.
-------------------------------------

    Resolution: Done


Also fixed bug in ThreadedFileLogger where it closed too many <object-stream> XML tags which led to the log file not being parsable by Eclipse's AuditView.

> The Audit view in Drools Eclipse plugin does not work
> -----------------------------------------------------
>
>                 Key: JBRULES-3023
>                 URL: https://issues.jboss.org/browse/JBRULES-3023
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core, drools-eclipse
>    Affects Versions: 5.2.0.M2
>            Reporter: Jervis Liu
>            Assignee: Michael Anstis
>             Fix For: 5.2.0.CR1
>
>
> 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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list