Bug 779650 (SOA-2019) - RuleAgent could not get the RuleBase (BRMS5+SOA5) can't find properties file
Summary: RuleAgent could not get the RuleBase (BRMS5+SOA5) can't find properties file
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-2019
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBossESB
Version: 5.0.0 GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-30 17:13 UTC by Burr Sutter
Modified: 2013-03-29 10:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Windows7 Java 1.6 32-bit - JBDS 3.0, BRMS 5.0, SOA 5.0
Last Closed: 2010-09-22 15:54:34 UTC
Type: Bug


Attachments (Terms of Use)
ESBTestBRMS.zip (18.58 KB, application/zip)
2010-03-30 17:15 UTC, Burr Sutter
no flags Details
repository_export(5).zip (17.54 KB, application/zip)
2010-03-30 17:15 UTC, Burr Sutter
no flags Details
ESBTestBRMS.esb (7.61 KB, application/octet-stream)
2010-03-30 17:15 UTC, Burr Sutter
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-2019 0 Major Closed RuleAgent could not get the RuleBase (BRMS5+SOA5) can't find properties file 2013-03-29 11:06:47 UTC

Description Burr Sutter 2010-03-30 17:13:34 UTC
Workaround Description: Drop the .properties files into jbrules.esb, then it all works well.
project_key: SOA

    <action class="org.jboss.soa.esb.actions.BusinessRulesProcessor" name="testBRMS">
     <property name="object-paths">
      <object-path esb="body.orderHeader"/>
      <object-path esb="body.customer"/>
     </property>
     <property name="ruleAgentProperties" value="brmsPriorityRules.properties"/>
    </action>

The brmsPriorityRules.properties needs to be dropped into the jbrules.esb (or some other place in the classpath) it is not read from the .esb archive (zipped nor exploded).

Attached is the JBDS project.
The .esb archive from the deploy directory (.properties file inside)
A repository export for the BRMS

Comment 1 Burr Sutter 2010-03-30 17:15:05 UTC
Attachment: Added: ESBTestBRMS.zip
Attachment: Added: repository_export(5).zip
Attachment: Added: ESBTestBRMS.esb


Comment 2 Burr Sutter 2010-03-30 17:15:58 UTC
Workaround Description: Added: Drop the .properties files into jbrules.esb, then it all works well.


Comment 4 Kevin Conner 2011-05-18 10:49:24 UTC
java.lang.NullPointerException
	java.util.Properties$LineReader.readLine(Properties.java:435)
	java.util.Properties.load0(Properties.java:354)
	java.util.Properties.load(Properties.java:342)
	org.drools.agent.RuleAgent.loadFromProperties(RuleAgent.java:299)
	org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:273)

Comment 5 Kevin Conner 2011-05-18 11:22:41 UTC
This seems to have been caused by two issues, the fact that the drools code base did not refer to the TCCL and the fact that the initial http support caused the esb deployment to be scoped.

In SOA 5.1 we parse the properties ourselves and we have created a separate deployment for the http/ebws aspects.


Note You need to log in before you can comment on or make changes to this bug.