Bug 545498 - NullPointerException when creating new Cron Tab
Summary: NullPointerException when creating new Cron Tab
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: RHQ_Config rhq_triage
TreeView+ depends on / blocked
 
Reported: 2009-12-08 17:40 UTC by John Sefler
Modified: 2014-05-16 19:57 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-16 19:57:25 UTC
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2009-12-08 17:40:00 UTC
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 16:58:50 UTC
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 17:03:33 UTC
making sure we're not missing any bugs in rhq_triage

Comment 3 Corey Welton 2010-10-05 13:08:20 UTC
Lowering severity/priority - not an enterprise plugin


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