Bug 1232836 - NoResultException in server.log when deploying from resource content for war type != File (Deployment:AS7)
Summary: NoResultException in server.log when deploying from resource content for war ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Content
Version: JON 3.3.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: DR01
: JON 3.3.6
Assignee: Josejulio Martínez
QA Contact: Sunil Kondkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-17 15:26 UTC by Armine Hovsepyan
Modified: 2016-07-27 15:30 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-27 15:30:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
server.log_fragment (104.11 KB, text/plain)
2015-06-17 15:26 UTC, Armine Hovsepyan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1188751 0 high CLOSED Deploying Versioned WAR package from repository to JBOSS EAP 6 deployment resource fails 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2016:1519 0 normal SHIPPED_LIVE Critical: Red Hat JBoss Operations Network 3.3.6 update 2016-08-26 00:44:36 UTC

Internal Links: 1188751

Description Armine Hovsepyan 2015-06-17 15:26:32 UTC
Created attachment 1039998 [details]
server.log_fragment

Description of problem:
NoResultException in server.log when deploying from resource content for war type != File (Deployment:AS7)

Version-Release number of selected component (if applicable):
JON 3.3.0 + jon-plugin-pack-eap-3.3.0.GA-update-01

How reproducible:
always

Steps to Reproduce:
1. install a versioned war iBook-1.0.0.war
2. create a repo content & add iBook-1.0.2.war with type != File (Deployment:AS7)
3. subscribe to iBook-1.0.0.war from repo
4. navigate to resource, content -> new, deploy the uploaded war file

Actual results:
iBook.war-1.0.0.war is not updated, exception in server.log (see fragment from server.log attached)
GUI does not show history for deployment try

Expected results:
no exception in server.log
GUI shows failure history 

Additional info:

Comment 4 Josejulio Martínez 2016-04-12 21:37:07 UTC
I did reproduce this on JON 3.3.0 + jon-plugin-pack-eap-3.3.0.GA-update-01.
However on JON 3.3.5 + jon-plugin-pack-eap-3.3.0.GA-update-01 the issue is gone, instead you get a message that doesn't allow you to complete the operation:

Could not send deploy request to agent Cause: javax.ejb.EJBException:java.lang.RuntimeException: Package of PackageType[name=cumulativePatch] cannot be deployed to resource of ResourceType[id=10183, name=Deployment, plugin=JBossAS7, category=Service] allowed packageTypes are [File [Deployment:JBossAS7]] -> java.lang.RuntimeException:Package of PackageType[name=cumulativePatch] cannot be deployed to resource of ResourceType[id=10183, name=Deployment, plugin=JBossAS7, category=Service] allowed packageTypes are [File [Deployment:JBossAS7]]

Comment 5 Josejulio Martínez 2016-04-13 15:27:02 UTC
Now the message is less verbose:

Package of PackageType[name=alpha-content0] cannot be deployed to resource of ResourceType[id=10253, name=Deployment, plugin=JBossAS7, category=Service] allowed packageTypes are [File [Deployment:JBossAS7]]


commit 861053d25434f1e0e879181aaac4fb541ae4dea8
Author: Josejulio Martínez <jmartine>
Date:   Tue Apr 12 18:59:55 2016 -0500

    Bug 1232836 - Shows a less verbose message when deploying package that doesn't match resource's expected type.

Comment 7 Simeon Pinder 2016-06-18 01:12:05 UTC
Moving to ON_QA as available to test with JON 3.3.6 DR01 brew build:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=499890

Comment 8 Sunil Kondkar 2016-06-29 11:23:38 UTC
Verified on version : 3.3.0.GA Update 06 Build Number :	675641d:2fcd5b7

When tried to deploy package that does not match expected type, below message is shown is UI:

Package of PackageType[name=cumulativePatch] cannot be deployed to resource of ResourceType[id=10201, name=Deployment, plugin=JBossAS7, category=Service] allowed packageTypes are [File [Deployment:JBossAS7]]

Comment 10 errata-xmlrpc 2016-07-27 15:30:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-1519.html


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