Bug 545498

Summary: NullPointerException when creating new Cron Tab
Product: [Other] RHQ Project Reporter: John Sefler <jsefler>
Component: PluginsAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jshaughn
Target Milestone: ---Keywords: SubBug
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-16 15:57:25 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On:    
Bug Blocks: 545537, 565628    

Description John Sefler 2009-12-08 12:40:00 EST
Description of problem:
When trying to create a new valid Cron Tab resource, a Null Pointer Exception is thrown after clicking submit

Version-Release number of selected component (if applicable):
Not sure what commit has this build is.
This server was built during sprint 3 (a server in Pune - 10.65.201.165)

How reproducible:


Steps to Reproduce:
1.Login to rhq server and open a managed platform .
2.Select the cron resource.
3.Select the 'Inventory' tab.
4.Click on 'OK' button to create new cron tab.
5.Enter a resource name(Ex: /etc/cron.d/somefile)
6.Click on 'Add New' button for cron entries section.
7.Enter/Select the minute, hour, day of month, month, day of week, user, and the command to be executed as:
30      10      *       *       *       root    echo “This command runs at 10:30 am.”

8.Click on Submit.
9. refresh the page to see the updated "Request Status" of the "History of create child resource requests" table
  
Actual results:
The status changes to "Failure" and displays
No resource key specified for failed request
java.lang.NullPointerException:null

The server log has:
2009-12-08 23:05:21,288 INFO  [org.rhq.enterprise.server.resource.ResourceFactoryServerServiceImpl] Received create resource response: CreateResourceResponse[RequestId=10123, Status=Failure]


The client log has:
2009-12-08 13:45:54,403 INFO  [ResourceFactory.executor-1] (rhq.core.pc.inventory.CreateResourceRunner)- Creating resource through report: CreateResourceReport: ResourceType=[ResourceType[id=0, category=Service, name=Cron Tab, plugin=Cron]], ResourceKey=[null]



Expected results:
successful creation of cron tab

Additional info:
Comment 1 wes hayutin 2010-02-16 11:58:50 EST
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

keyword:
new = Tracking + FutureFeature + SubBug
Comment 2 wes hayutin 2010-02-16 12:03:33 EST
making sure we're not missing any bugs in rhq_triage
Comment 3 Corey Welton 2010-10-05 09:08:20 EDT
Lowering severity/priority - not an enterprise plugin