Bug 778315 (SOA-800) - ERROR message when running business_ruleservice_ruleAgent QS
Summary: ERROR message when running business_ruleservice_ruleAgent QS
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-800
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Examples
Version: 4.3 IR4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3 CP02
Assignee: Daniel Bevenius
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-17 11:00 UTC by Jaroslaw Kijanowski
Modified: 2009-08-27 20:14 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-27 20:11:49 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 779062 0 medium CLOSED business_ruleservice_ruleAgent QS raises WARNING in server log do to call to deprecated method 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-800 0 None None None Never

Internal Links: 779062

Description Jaroslaw Kijanowski 2008-09-17 11:00:23 UTC
Date of First Response: 2008-09-17 07:48:43
project_key: SOA

When I run this QS for the first time I see folowing ERROR messages:

12:51:48,313 INFO  [STDOUT] Message before transformation: 
12:51:48,313 INFO  [STDOUT] [<Policy type="COMPREHENSIVE" >
        <Driver name="Bill Smith" age="30" priorClaims="0" locationRiskProfile="LOW" />
</Policy>
].
12:51:48,353 INFO  [ContentDeliveryConfigBuilder] All configured XML Element Content Handler resource configurations can be applied using the SAX or DOM Stream Filter.  Defaulting to DOM Filter.  Set 'global-parameters:stream.filter.type'.  Turn on debug logging for more info.
12:51:48,359 INFO  [SetupMessage] Moved the transformed driver and policy
12:51:48,373 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Configuring with newInstance=true, secondsToRefresh=30
12:51:48,374 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Configuring package provider : FileScanner scanning: /home/jarek/Desktop/SOA-P-4.3.GA/soa-ir4/jboss-soa-p.4.3.0/jboss-as/samples/quickstarts/business_ruleservice_ruleAgent/ruleAgent/package/org.jboss.soa.esb.services.rules.pkg 
12:51:48,451 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Applying changes to the rulebase.
12:51:48,452 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Creating a new rulebase as per settings.
12:51:48,452 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Adding package called org.jboss.soa.esb.services.rules
12:51:48,478 INFO  [STDOUT] Safe adult - pay 120
12:51:48,478 INFO  [STDOUT] { ================ Sent notification: 
12:51:48,479 INFO  [STDOUT] Name: Bill Smith
12:51:48,479 INFO  [STDOUT] Policy Price: 120
12:51:48,479 INFO  [STDOUT] } ================ Sent notification:



This happens on SOA-P IR4 embedded.

Comment 1 Jaroslaw Kijanowski 2008-09-17 11:08:20 UTC
Link: Added: This issue depends JBESB-2048


Comment 2 Jaroslaw Kijanowski 2008-09-17 11:21:19 UTC
Moreover there is an unused empty directory "processDefinition"

Comment 3 Daniel Bevenius 2008-09-17 11:48:43 UTC
This is probably due to that ruleAgent/brmsdeployedrules-unfiltered.properties is not getting filtered when 'ant run' is executed.
Adding :
<target name="config" depends="dependencies,quickstart-specific-assemblies"/>
will make the filtering be performed for the 'run' target as well.

Comment 4 Jaroslaw Kijanowski 2008-09-17 12:09:04 UTC
I'm afraid this won't help. Filtering happens when deploying the esb archive.
These ERROR messages go away when running the test again. They are there just for the first time.

Comment 5 Kevin Conner 2008-09-17 12:12:07 UTC
Link: Removed: This issue depends JBESB-2048 


Comment 6 Kevin Conner 2008-09-17 12:15:07 UTC
I believe Daniel has address SOA-799 and not this one.

JBESB-2048 is not related to this issue and I have removed it from the links.

Comment 7 Daniel Bevenius 2008-09-17 13:15:46 UTC
Yeah sorry, my comment was not related to this issue actually.

So is the issue here these statements:
12:51:48,373 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Configuring with newInstance=true, secondsToRefresh=30
12:51:48,374 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Configuring package provider : FileScanner scanning: /home/jarek/Desktop/SOA-P-4.3.GA/soa-ir4/jboss-soa-p.4.3.0/jboss-as/samples/quickstarts/business_ruleservice_ruleAgent/ruleAgent/package/org.jboss.soa.esb.services.rules.pkg
12:51:48,451 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Applying changes to the rulebase.
12:51:48,452 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Creating a new rulebase as per settings.
12:51:48,452 ERROR [STDERR] RuleAgent(insuranceconfig) INFO (Wed Sep 17 12:51:48 CEST 2008): Adding package called org.jboss.soa.esb.services.rules 

This is logged from RuleAgent class in Drools as we are not specifying a AgentEventListener, and default that will be used prints to System.err. 
We can fix this by adding AgentEventListener that delegates to log4j. This might be configurable in Drools though but I'm not sure if it is.

Comment 8 Jaroslaw Kijanowski 2008-09-17 13:31:54 UTC
Link: Added: This issue is a dependency of JBESB-2050


Comment 9 Jiri Pechanec 2008-10-07 10:24:00 UTC
Let me to add that there is one more problem
12:19:37,061 WARN  [BeanInstanceCreator] The setOn parameter is deprecated. It is possible that it will be removed in the next major release. It is better to use the bean binding method (bean binding = binding with a ${beanId} selector notation). This warning is only given once.

The example uses obsolete Smooks configuration

Comment 10 Mark Little 2009-02-13 14:06:32 UTC
Link: Added: This issue is a dependency of JBESB-2402


Comment 11 Dana Mison 2009-08-04 05:30:31 UTC
added to 4.3.CP02 release notes as resolved:

JBESB-2402 - The RuleAgent class now uses log4j for its messages instead of sending them to System.err.

Comment 12 Len DiMaggio 2009-08-27 20:11:49 UTC
The errors are resolved - I'll open a new JIRA for the warning:

2009-08-27 16:08:42,533 INFO  [org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] create esb service, Quickstart_business_ruleservice_ruleAgent.esb
2009-08-27 16:08:42,542 INFO  [org.jboss.jms.server.destination.QueueService] Queue[/queue/quickstart_Business_Rules_RuleAgent_Request_GW] started, fullSize=200000, pageSize=2000, downCacheSize=2000
2009-08-27 16:08:42,544 INFO  [org.jboss.jms.server.destination.QueueService] Queue[/queue/quickstart_Business_Rules_RuleAgent_Request_ESB] started, fullSize=200000, pageSize=2000, downCacheSize=2000
2009-08-27 16:08:42,546 INFO  [org.jboss.jms.server.destination.QueueService] Queue[/queue/quickstart_Business_Rules_RuleAgent_Notify] started, fullSize=200000, pageSize=2000, downCacheSize=2000
2009-08-27 16:08:42,588 INFO  [org.milyn.util.ClassUtil] Loaded 4 classes from 2 URLs through class list file META-INF/content-handlers.inf.  Process took 2ms.  Turn on debug logging for more info.
2009-08-27 16:09:12,968 INFO  [STDOUT] Message before transformation: 
2009-08-27 16:09:12,968 INFO  [STDOUT] [<Policy type="COMPREHENSIVE" >
        <Driver name="Bill Smith" age="30" priorClaims="0" locationRiskProfile="LOW" />
</Policy>
].
2009-08-27 16:09:12,994 WARN  [org.milyn.javabean.BeanInstanceCreator] The setOn parameter is deprecated. It is possible that it will be removed in the next major release. It is better to use the bean binding method (bean binding = binding with a ${beanId} selector notation). This warning is only given once.
2009-08-27 16:09:13,002 INFO  [org.milyn.delivery.ContentDeliveryConfigBuilder] All configured XML Element Content Handler resource configurations can be applied using the SAX or DOM Stream Filter.  Defaulting to DOM Filter.  Set 'global-parameters:stream.filter.type'.  Turn on debug logging for more info.
2009-08-27 16:09:13,015 INFO  [org.jboss.soa.esb.samples.quickstart.ruleagent.businessrules.SetupMessage] Moved the transformed driver and policy
2009-08-27 16:09:13,038 INFO  [org.jboss.internal.soa.esb.services.rules.LogAgentEventListener] AgentName = 'insuranceconfig' Configuring with newInstance=true, secondsToRefresh=30
2009-08-27 16:09:13,038 INFO  [org.jboss.internal.soa.esb.services.rules.LogAgentEventListener] AgentName = 'insuranceconfig' Configuring package provider : FileScanner scanning: /jboss/local/43_CP02_CR2/jboss-soa-p.4.3.0/jboss-as/samples/quickstarts/business_ruleservice_ruleAgent/ruleAgent/package/org.jboss.soa.esb.services.rules.pkg 
2009-08-27 16:09:13,085 INFO  [org.jboss.internal.soa.esb.services.rules.LogAgentEventListener] AgentName = 'insuranceconfig' Applying changes to the rulebase.
2009-08-27 16:09:13,085 INFO  [org.jboss.internal.soa.esb.services.rules.LogAgentEventListener] AgentName = 'insuranceconfig' Creating a new rulebase as per settings.
2009-08-27 16:09:13,085 INFO  [org.jboss.internal.soa.esb.services.rules.LogAgentEventListener] AgentName = 'insuranceconfig' Adding package called org.jboss.soa.esb.services.rules
2009-08-27 16:09:13,102 INFO  [STDOUT] Safe adult - pay 120
2009-08-27 16:09:13,102 INFO  [STDOUT] { ================ Sent notification: 
2009-08-27 16:09:13,102 INFO  [STDOUT] Name: Bill Smith
2009-08-27 16:09:13,102 INFO  [STDOUT] Policy Price: 120
2009-08-27 16:09:13,102 INFO  [STDOUT] } ================ Sent notification: 
[ldimaggi@ldimaggi log]$ 



Comment 13 Len DiMaggio 2009-08-27 20:14:26 UTC
Link: Added: This issue related SOA-1468



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