Yes, I need to be checking the readability of the property before trying
to read it. I should probably only lazily create the ManagedDeployments
when something tries to inject them.
Dimitris Andreadis wrote:
Don't know if you have noticed; boot log has quite a few of those
stacktraces:
20:57:56,265 DEBUG [BeanMetaDataICF] Using bean class:, class
org.jboss.beans.metadata.plugins.AbstractBeanMetaData for bean:
AbstractBeanMetaData@88a970{name=AOPJBossIntegration
bean=org.jboss.aop.asintegration.jboss5.JBoss5Integration properties=
classLoader=AbstractClassLoaderMetaData@18f1be9{classloader=AbstractDependencyValueMetaData@2c06b2{value=aop-classloader:0.0.0}}
constructor=null autowireCandidate=true}
20:57:56,265 DEBUG [BeanMetaDataICF] Using bean class:, class
org.jboss.beans.metadata.plugins.AbstractBeanMetaData for bean:
AbstractBeanMetaData@88a970{name=AOPJBossIntegration
bean=org.jboss.aop.asintegration.jboss5.JBoss5Integration properties=
classLoader=AbstractClassLoaderMetaData@18f1be9{classloader=AbstractDependencyValueMetaData@2c06b2{value=aop-classloader:0.0.0}}
constructor=null autowireCandidate=true}
20:57:56,265 DEBUG [BeanMetaDataICF] Using bean class:, class
org.jboss.beans.metadata.plugins.AbstractBeanMetaData for bean:
AbstractBeanMetaData@6bb93c{name=DefaultAspectManager
bean=org.jboss.aop.microcontainer.beans.metadata.DefaultAspectManager
properties=[managerProperty, managerBean]
classLoader=AbstractClassLoaderMetaData@18f1be9{classloader=AbstractDependencyValueMetaData@2c06b2{value=aop-classloader:0.0.0}}
constructor=null autowireCandidate=true}
20:57:56,265 DEBUG [BeanMetaDataICF] Using bean class:, class
org.jboss.beans.metadata.plugins.AbstractBeanMetaData for bean:
AbstractBeanMetaData@6bb93c{name=DefaultAspectManager
bean=org.jboss.aop.microcontainer.beans.metadata.DefaultAspectManager
properties=[managerProperty, managerBean]
classLoader=AbstractClassLoaderMetaData@18f1be9{classloader=AbstractDependencyValueMetaData@2c06b2{value=aop-classloader:0.0.0}}
constructor=null autowireCandidate=true}
20:57:56,265 DEBUG [BeanMetaDataICF] Failed to get property value for
bean: org.jboss.beans.metadata.plugins.AbstractBeanMetaData, property:
properties
java.lang.IllegalArgumentException: Property is not readable:
propertyReplace for
org.jboss.beans.metadata.plugins.AbstractPropertyMetaData
at
org.jboss.beans.info.plugins.DefaultPropertyInfo.get(DefaultPropertyInfo.java:131)
at
org.jboss.beans.info.plugins.BeanInfoUtil.getNestedTarget(BeanInfoUtil.java:78)
at
org.jboss.beans.info.plugins.BeanInfoUtil.get(BeanInfoUtil.java:142)
at
org.jboss.beans.info.plugins.AbstractBeanInfo.getProperty(AbstractBeanInfo.java:284)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.createCompositeValue(DefaultMetaValueFactory.java:444)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.internalCreate(DefaultMetaValueFactory.java:997)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.createCollectionValue(DefaultMetaValueFactory.java:231)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.internalCreate(DefaultMetaValueFactory.java:1003)
at
org.jboss.metatype.plugins.values.DefaultMetaValueFactory.create(DefaultMetaValueFactory.java:515)
at
org.jboss.deployers.plugins.managed.BeanMetaDataICF.getValue(BeanMetaDataICF.java:165)
at
org.jboss.deployers.plugins.managed.BeanMetaDataICF.getValue(BeanMetaDataICF.java:48)
at
org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateValues(AbstractManagedObjectPopulator.java:201)
at
org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateManagedObject(AbstractManagedObjectPopulator.java:130)
at
org.jboss.managed.plugins.factory.AbstractManagedObjectFactory.initManagedObject(AbstractManagedObjectFactory.java:327)
at
org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getManagedObjectValue(AbstractInstanceClassFactory.java:305)
at
org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getManagedObjectArray(AbstractInstanceClassFactory.java:321)
at
org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getValue(AbstractInstanceClassFactory.java:242)
at
org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateValues(AbstractManagedObjectPopulator.java:201)
at
org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateManagedObject(AbstractManagedObjectPopulator.java:130)
at
org.jboss.managed.plugins.factory.AbstractManagedObjectFactory.initManagedObject(AbstractManagedObjectFactory.java:327)
at
org.jboss.managed.api.factory.ManagedObjectFactory.initManagedObject(ManagedObjectFactory.java:77)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:434)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:188)
at
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:404)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:595)