Bug 779434 (SOA-1820) - Setting HDScanner's scanEnabled Attribute to True via XML Results In NPE
Summary: Setting HDScanner's scanEnabled Attribute to True via XML Results In NPE
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-1820
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EAP
Version: 5.0.0 ER6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.0 GA
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-12 18:15 UTC by Len DiMaggio
Modified: 2011-02-11 06:35 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-11 06:35:20 UTC
Type: Bug


Attachments (Terms of Use)
server.log (701.17 KB, text/x-log)
2010-01-12 18:16 UTC, Len DiMaggio
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-1820 0 None None None Never

Description Len DiMaggio 2010-01-12 18:15:20 UTC
project_key: SOA

See:  https://jira.jboss.org/jira/browse/JBAS-7528

If the  <property name="scanEnabled">true</property> is omitted, or is set to false, the exception is not raised. If it is set to true, this exception is raised:

13:09:24,038 ERROR [AbstractKernelController] Error installing to Configured: name=HDScanner state=Instantiated
java.lang.RuntimeException: Error configuring property: scanEnabled for HDScanner

Comment 1 Len DiMaggio 2010-01-12 18:16:14 UTC
Attachment: Added: server.log


Comment 2 Len DiMaggio 2010-01-12 18:17:37 UTC
Link: Added: This issue depends JBAS-7528


Comment 3 Len DiMaggio 2010-01-12 18:36:41 UTC
The same exception is raised if the server is booted with the property set to false and then set to true while the server is running.

13:29:10,895 ERROR [AbstractKernelController] Error installing to Configured: name=HDScanner state=Instantiated
java.lang.RuntimeException: Error configuring property: scanEnabled for HDScanner


Comment 4 Len DiMaggio 2010-01-12 18:37:14 UTC
Link: Added: This issue is a dependency of JBQA-2973


Comment 6 Dana Mison 2011-01-05 00:14:35 UTC
Writer: Added: dlesage


Comment 7 Len DiMaggio 2011-01-06 16:45:18 UTC
Thi smbean is AS4 specific:

<!-- An mbean for hot deployment/undeployment of archives. 
--> 
<mbean code="org.jboss.deployment.scanner.URLDeploymentScanner" 
name="jboss.deployment:type=DeploymentScanner,flavor=URL"> 
... 

<attribute name="ScanPeriod">5000</attribute> 
<attribute name="ScanEnabled">False</attribute> 
... 
</mbean> 

========================================

In 5.1, removing server/server-profile/deploy/hdscanner-jboss-beans.xml disables hotdeploy



Comment 8 David Le Sage 2011-02-11 06:33:00 UTC
Temporarily reopening to update release note info.

Comment 9 David Le Sage 2011-02-11 06:35:11 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Release Notes Text: Added: https://issues.jboss.org/browse/JBAS-7528

Setting HDScanner's scanEnabled attribute to true via XML caused an null-pointer exception because the setter logic relied on the fact that the class's create method had already been called. To fix this issues, a test case for the HDScanner has been added.  As a result, users will no longer encounter this null-pointer exception.



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