Bug 779434 (SOA-1820)

Summary: Setting HDScanner's scanEnabled Attribute to True via XML Results In NPE
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Len DiMaggio <ldimaggi>
Component: EAPAssignee: Default User <jbpapp-maint>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.0.0 ER6   
Target Milestone: ---   
Target Release: 5.1.0 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1820
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-11 06:35:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
server.log none

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.