[jboss-jira] [JBoss JIRA] (AS7-4869) TypeConverter does not properly convert ExpressionValue
Kabir Khan (JIRA)
jira-events at lists.jboss.org
Wed Jun 6 13:00:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-4869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kabir Khan reassigned AS7-4869:
-------------------------------
Assignee: Kabir Khan
> TypeConverter does not properly convert ExpressionValue
> -------------------------------------------------------
>
> Key: AS7-4869
> URL: https://issues.jboss.org/browse/AS7-4869
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management, JMX
> Affects Versions: 7.1.0.Final
> Reporter: Emanuel Muckenhuber
> Assignee: Kabir Khan
> Fix For: 7.1.3.Final (EAP), 7.2.0.Alpha1
>
>
> Executing the following code results in an IAE:
> {code}
> String[] offsetPath = {"jboss.as:socket-binding-group=standard-sockets","port-offset"};
>
> MBeanServer server = ManagementFactory.getPlatformMBeanServer();
> ObjectName name;
> try {
> name = new ObjectName(offsetPath[0]);
> Object offset = server.getAttribute(name, offsetPath[1]);
> } catch (Exception e){
> e.printStackTrace();
> }
> {code}
> {noformat}
> ExpressionValue(ModelValue).asInt() line: 58
> ModelNode.asInt() line: 226
> TypeConverter$IntegerTypeConverter.fromModelNode(ModelNode) line: 303
> TypeConverter.fromModelNode(ModelNode, ModelNode) line: 83
> ModelControllerMBeanHelper.getAttribute(RootResourceHack$ResourceAndRegistration, PathAddress, ObjectName, String) line: 220
> ModelControllerMBeanHelper.getAttribute(ObjectName, String) line: 181
> ModelControllerMBeanServerPlugin.getAttribute(ObjectName, String) line: 69
> PluggableMBeanServerImpl.getAttribute(ObjectName, String) line: 154
> TestSingleton.<init>() line: 39
> NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method]
> NativeConstructorAccessorImpl.newInstance(Object[]) line: 39
> DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27
> Constructor<T>.newInstance(Object...) line: 513
> ConstructedValue<T>.getValue() line: 61
> ValueManagedReferenceFactory.getReference() line: 49
> ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(InterceptorContext) line: 90
> InterceptorContext.proceed() line: 288
> WeavedInterceptor.processInvocation(InterceptorContext) line: 53
> InterceptorContext.proceed() line: 288
> NamespaceContextInterceptor.processInvocation(InterceptorContext) line: 50
> InterceptorContext.proceed() line: 288
> EjbBMTInterceptor.handleInvocation(InterceptorContext) line: 105
> EjbBMTInterceptor(BMTInterceptor).processInvocation(InterceptorContext) line: 56
> InterceptorContext.proceed() line: 288
> CurrentInvocationContextInterceptor.processInvocation(InterceptorContext) line: 41
> InterceptorContext.proceed() line: 288
> TCCLInterceptor.processInvocation(InterceptorContext) line: 45
> InterceptorContext.proceed() line: 288
> ChainedInterceptor.processInvocation(InterceptorContext) line: 61
> SingletonComponent(BasicComponent).constructComponentInstance(ManagedReference, boolean, InterceptorFactoryContext) line: 161
> SingletonComponent(BasicComponent).createInstance() line: 85
> SingletonComponent.getComponentInstance() line: 116
> SingletonComponent.start() line: 130
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list