Bug 829394 - war deployment via CLI throws NullPointerException in AS7-plugin
war deployment via CLI throws NullPointerException in AS7-plugin
Product: RHQ Project
Classification: Other
Component: Plugins (Show other bugs)
x86_64 Linux
unspecified Severity medium (vote)
: ---
: RHQ 4.5.0
Assigned To: Heiko W. Rupp
Mike Foley
Depends On:
Blocks: as7-plugin 830809
  Show dependency treegraph
Reported: 2012-06-06 11:16 EDT by Armine Hovsepyan
Modified: 2015-09-02 20:01 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 830809 (view as bug list)
Last Closed: 2013-08-31 06:13:39 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

  None (edit)
Description Armine Hovsepyan 2012-06-06 11:16:08 EDT
Created attachment 589935 [details]

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:

Steps to Reproduce:
1. Run the testDeployWar_2 under CLI Remote Client (which creates createPackageBackedResource to deploy a war).
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 11:18:01 EDT
Created attachment 589942 [details]
iBook.war for deployment
Comment 2 Armine Hovsepyan 2012-06-06 11:18:55 EDT
Hi all,

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

Armine H
Comment 3 Armine Hovsepyan 2012-06-06 11:37:33 EDT
Created attachment 589944 [details]
GUI exception
Comment 6 Heiko W. Rupp 2012-06-08 08:23:39 EDT
What version of the plugin are you using here?
Comment 8 Heiko W. Rupp 2012-06-11 07:24:34 EDT
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 08:04:23 EDT
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 08:59:50 EDT
master e1f5fb046fb
Comment 11 Armine Hovsepyan 2012-06-14 09:29:32 EDT
verified on rhq with small war
Comment 12 Heiko W. Rupp 2013-08-31 06:13:39 EDT
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.