Bug 829394

Summary: war deployment via CLI throws NullPointerException in AS7-plugin
Product: [Other] RHQ Project Reporter: Armine Hovsepyan <ahovsepy>
Component: PluginsAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: hrupp, lzoubek, mfoley
Target Milestone: ---   
Target Release: RHQ 4.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 830809 (view as bug list) Environment:
Last Closed: 2013-08-31 10:13:39 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 707223, 830809    
Attachments:
Description Flags
testDeployWar_2.js
none
iBook.war for deployment
none
GUI exception none

Description Armine Hovsepyan 2012-06-06 15:16:08 UTC
Created attachment 589935 [details]
testDeployWar_2.js

Description of problem:
While trying to create a PackageBackedResource with a war for  deploying it via CLI, it throws NullPointerException in GUI.

Version-Release number of selected component (if applicable):

JON - Version: 3.1.0.ER6

How reproducible:
always

Steps to Reproduce:
1. Run the testDeployWar_2 under CLI Remote Client (which creates createPackageBackedResource to deploy a war).
2.
3.
  
Actual results:
Null pointer exception is being thrown on UI

Expected results:

Child resource under EAP with deployed war should have been created.

Additional info:

Attached is the js file. Please come back to me concerning the war file.

Comment 1 Armine Hovsepyan 2012-06-06 15:18:01 UTC
Created attachment 589942 [details]
iBook.war for deployment

Comment 2 Armine Hovsepyan 2012-06-06 15:18:55 UTC
Hi all,

It was posible to attache the war file to this bug. Please get it from attachment.

Regards,
Armine H

Comment 3 Armine Hovsepyan 2012-06-06 15:37:33 UTC
Created attachment 589944 [details]
GUI exception

Comment 6 Heiko W. Rupp 2012-06-08 12:23:39 UTC
What version of the plugin are you using here?

Comment 8 Heiko W. Rupp 2012-06-11 11:24:34 UTC
The call in the script

ResourceFactoryManager.createResource(jBossId, appType.id, fileName, null,deployConfig, null);

Does not work for package based resources (i.e. deployments)

Comment 9 Armine Hovsepyan 2012-06-11 12:04:23 UTC
Just comment that command (createResource) and you'll get the java heap exception for 12MB war file from CLI.

Comment 10 Heiko W. Rupp 2012-06-11 12:59:50 UTC
master e1f5fb046fb

Comment 11 Armine Hovsepyan 2012-06-14 13:29:32 UTC
verified on rhq with small war

Comment 12 Heiko W. Rupp 2013-08-31 10:13:39 UTC
Bulk close of old bugs in VERIFIED state.