Bug 829394 - war deployment via CLI throws NullPointerException in AS7-plugin
Summary: war deployment via CLI throws NullPointerException in AS7-plugin
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: RHQ 4.5.0
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: as7-plugin 830809
TreeView+ depends on / blocked
 
Reported: 2012-06-06 15:16 UTC by Armine Hovsepyan
Modified: 2015-09-03 00:01 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
: 830809 (view as bug list)
Environment:
Last Closed: 2013-08-31 10:13:39 UTC
Embargoed:


Attachments (Terms of Use)
testDeployWar_2.js (3.64 KB, application/javascript)
2012-06-06 15:16 UTC, Armine Hovsepyan
no flags Details
iBook.war for deployment (12.32 MB, application/octet-stream)
2012-06-06 15:18 UTC, Armine Hovsepyan
no flags Details
GUI exception (267.02 KB, image/png)
2012-06-06 15:37 UTC, Armine Hovsepyan
no flags Details

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.


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