Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1150009

Summary: [as7] It's not possible to add a port to SocketBindingGroup resource
Product: [JBoss] JBoss Operations Network Reporter: Radim Hatlapatka <rhatlapa>
Component: Plugin -- JBoss EAP 6Assignee: Thomas Segismont <tsegismo>
Status: CLOSED CURRENTRELEASE QA Contact: Filip Brychta <fbrychta>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.3.0CC: fbrychta, hrupp, jshaughn, mfoley, myarboro, rhatlapa, rhq-maint
Target Milestone: ER05   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1099447 Environment:
Last Closed: 2014-12-11 14:00:08 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: 1099447    
Bug Blocks:    

Description Radim Hatlapatka 2014-10-07 08:47:58 UTC
+++ This bug was initially created as a clone of Bug #1099447 +++

Description of problem:
Attempt to add a port to SocketBindingGroup resource ends with:
BadArgumentException: configuration not updated: [Required property 'fixed-port' has a null value.

Version-Release number of selected component (if applicable):
Version :	
4.12.0-SNAPSHOT
Build Number :	
494e428

How reproducible:
Always

Steps to Reproduce:
1. navigate to eap6 standalone server resource->SocketBindingGroups->standard-sockets->Configuration
2. click on Add button inside Individual socket bindings section
3. fill in name and port
4. Click on Ok
5. Click on Save

Actual results:
org.rhq.enterprise.server.rest.BadArgumentException:Bad parameter(s) given: Invalid newResourceConfiguration, configuration not updated: [Required property 'fixed-port' has a null value.]


Expected results:
No errors

Additional info:
Exception from server.log:
06:19:09,077 WARN  [org.rhq.coregui.server.gwt.ConfigurationGWTServiceImpl] (http-/0.0.0.0:7080-29) Sending exception to client: [1400581149077] : org.rhq.enterprise.server.rest.BadArgumentException: Bad parameter(s) given: Invalid newResourceConfiguration, configuration not updated: [Required property 'fixed-port' has a null value.]
        at org.rhq.enterprise.server.configuration.ConfigurationManagerBean.updateResourceConfiguration(ConfigurationManagerBean.java:1372) [rhq-server.jar:4.12.0-SNAPSHOT]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:58) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.rhq.enterprise.server.common.PerformanceMonitorInterceptor.monitorHibernatePerformance(PerformanceMonitorInterceptor.java:32) [rhq-server.jar:4.12.0-SNAPSHOT]
        at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source) [:1.7.0_45]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
        at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:123) [jboss-as-ee-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
        at org.rhq.enterprise.server.common.TransactionInterruptInterceptor.addCheckedActionToTransactionManager(TransactionInterruptInterceptor.java:78) [rhq-server.jar:4.12.0-SNAPSHOT]
.
.

Comment 1 Radim Hatlapatka 2014-10-07 08:49:05 UTC
This issue is also valid for JON 3.3.0 ER4 build

Comment 3 Thomas Segismont 2014-10-10 15:42:09 UTC
Cherry-picked over to release/jon3.3.x

commit ec29ba22c8502376fa56b494af3fa73b2f36551f
Author: Thomas Segismont <tsegismo>
Date:   Fri Oct 10 17:40:02 2014 +0200
    
    'fixed-port' property is not required by EAP, mark it as such in the plugin descriptor
    
    (cherry picked from commit e6c85505ede4077d511b73e55daf0a7cc46163e8)
    Signed-off-by: Thomas Segismont <tsegismo>

Comment 5 Simeon Pinder 2014-10-21 20:24:06 UTC
Moving to ON_QA as available to test with the latest brew build:
https://brewweb.devel.redhat.com//buildinfo?buildID=394734

Comment 6 Filip Brychta 2014-10-22 09:36:46 UTC
Verified on
Version :	
3.3.0.ER05
Build Number :	
92b6d6a:2cdb528