[JBoss JIRA] Created: (JBCL-77) Don't try to join with classloading space that does not exist
by Adrian Brock (JIRA)
Don't try to join with classloading space that does not exist
-------------------------------------------------------------
Key: JBCL-77
URL: https://jira.jboss.org/jira/browse/JBCL-77
Project: JBoss ClassLoader
Issue Type: Bug
Components: Dependencies
Affects Versions: JBossCL.2.0.1.GA
Reporter: Adrian Brock
Assignee: Adrian Brock
Fix For: JBossCL.2.0.2.GA, JBossCL.2.2.0.Alpha
If a classloading module has import-all=true we can't do a consistency check because its imports are not known.
This means the module has no classloading space.
Currently this leads to an NPE when such a module is resolved as an import of another module that is not imort-all=true
and it then tries to join with the non-existent space.
java.lang.NullPointerException
at org.jboss.classloading.spi.dependency.ClassLoadingSpace.resolve(ClassLoadingSpace.java:325)
at org.jboss.classloading.spi.dependency.ClassLoadingSpace.joinAndResolve(ClassLoadingSpace.java:122)
The joining should not happen if the resolved module doesn't belong to a classloading space,
i.e. import-all=true
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months
[JBoss JIRA] Created: (JBAS-6218) "org.jboss.util.NotImplementedException:Use a custom InstanceClassFactory" error occurs when trying to create XA Datasource via ManagementView.applyTemplate()
by Ian Springer (JIRA)
"org.jboss.util.NotImplementedException:Use a custom InstanceClassFactory" error occurs when trying to create XA Datasource via ManagementView.applyTemplate()
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBAS-6218
URL: https://jira.jboss.org/jira/browse/JBAS-6218
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: ProfileService
Reporter: Ian Springer
Assignee: Scott M Stark
Here's the full error:
17:15:52,368 WARN [AbstractManagedObjectPopulator] Cannot create String name from non-Simple property: ManagedProperty{
jndi-name,jndiName,metaType=SimpleMetaType:java.lang.String}, value=null
17:15:52,415 ERROR [ProfileJBossServerComponent] Unable to apply template [XADataSourceTemplate].
java.lang.reflect.UndeclaredThrowableException
at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.setValue(AbstractInstanceClassFactory.java:279
)
at org.jboss.managed.plugins.WritethroughManagedPropertyImpl.setValue(WritethroughManagedPropertyImpl.java:110)
at org.jboss.resource.deployers.management.DsDataSourceTemplate.writeTemplate(DsDataSourceTemplate.java:154)
at org.jboss.resource.deployers.management.DsDataSourceTemplate.applyTemplate(DsDataSourceTemplate.java:70)
at org.jboss.profileservice.management.ManagementViewImpl.applyTemplate(ManagementViewImpl.java:674)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java
:67)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
at org.jboss.remoting.Client.invoke(Client.java:1708)
at org.jboss.remoting.Client.invoke(Client.java:612)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at AOPProxy$1.applyTemplate(AOPProxy$1.java)
at org.rhq.plugins.jbossas5.ProfileJBossServerComponent.createConfigurationBasedResource(ProfileJBossServerCompo
nent.java:218)
at org.rhq.plugins.jbossas5.ProfileJBossServerComponent.createResource(ProfileJBossServerComponent.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:450)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:713)
Caused by: org.jboss.util.NotImplementedException: Use a custom InstanceClassFactory, property=DefaultPropertyInfo@e98e4
{name=securityMetaData getter=ReflectMethodInfoImpl@57dcae{name=getSecurityMetaData[] return=ReflectClassInfoImpl@595b13
{name=org.jboss.resource.metadata.mcf.SecurityMetaData}} setter=ReflectMethodInfoImpl@6a7c2c{name=setSecurityMetaData[Re
flectClassInfoImpl(a)595b13{name=org.jboss.resource.metadata.mcf.SecurityMetaData}] return=void}}
at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.setManagedObject(AbstractInstanceClassFactory.
java:346)
at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.setValue(AbstractInstanceClassFactory.java:272
)
at org.jboss.managed.plugins.WritethroughManagedPropertyImpl.setValue(WritethroughManagedPropertyImpl.java:110)
at org.jboss.resource.deployers.management.DsDataSourceTemplate.writeTemplate(DsDataSourceTemplate.java:154)
at org.jboss.resource.deployers.management.DsDataSourceTemplate.applyTemplate(DsDataSourceTemplate.java:70)
at org.jboss.profileservice.management.ManagementViewImpl.applyTemplate(ManagementViewImpl.java:674)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java
:67)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
at org.jboss.remoting.Client.invoke(Client.java:1708)
at org.jboss.remoting.Client.invoke(Client.java:612)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at AOPProxy$1.applyTemplate(AOPProxy$1.java)
at org.rhq.plugins.jbossas5.ProfileJBossServerComponent.createConfigurationBasedResource(ProfileJBossServerCompo
nent.java:218)
at org.rhq.plugins.jbossas5.ProfileJBossServerComponent.createResource(ProfileJBossServerComponent.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:450)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:713)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
... 18 more
And here's the set of properties contained in the template that I passed into applyTemplate():
Properties for DeploymentTemplateInfo [XADataSourceTemplate]:
name=allocation-retry, mappedName=null, required=false, value=SimpleMetaType:java.lang.Integer:0
name=allocation-retry-wait-millis, mappedName=null, required=false, value=SimpleMetaType:java.lang.Long:5000
name=background-validation, mappedName=null, required=true, value=SimpleMetaType:java.lang.Boolean:false
name=background-validation-millis, mappedName=null, required=false, value=SimpleMetaType:java.lang.Long:0
name=blocking-timeout-millis, mappedName=null, required=true, value=SimpleMetaType:java.lang.Long:30000
name=check-valid-connection-sql, mappedName=null, required=false, value=null
name=config-property, mappedName=null, required=false, value=CollectionMetaType{type=config-property elementType=Mutab
leCompositeMetaType{org.jboss.resource.metadata.mcf.ManagedConnectionFactoryPropertyMetaData}: [Lorg.jboss.metatype.api.
values.MetaValue;@f3d18a
Elements:
name=connection-definition, mappedName=null, required=true, value=null
name=depends, mappedName=null, required=false, value=null
name=exception-sorter-class-name, mappedName=null, required=false, value=SimpleMetaType:java.lang.String:org.jboss.res
ource.adapter.jdbc.vendor.OracleExceptionSorter
name=idle-timeout-minutes, mappedName=null, required=true, value=SimpleMetaType:java.lang.Integer:30
name=interleaving, mappedName=null, required=false, value=null
name=isSameRM-override-value, mappedName=null, required=true, value=SimpleMetaType:java.lang.Boolean:false
name=jmx-invoker-name, mappedName=null, required=true, value=null
name=jndi-name, mappedName=null, required=true, value=SimpleMetaType:java.lang.String:XAOracleDS
name=local-transaction, mappedName=null, required=true, value=null
name=max-pool-size, mappedName=null, required=true, value=SimpleMetaType:java.lang.Integer:10
name=metadata, mappedName=null, required=false, value=CompositeValueSupport: metaType=[MutableCompositeMetaType{org.jb
oss.resource.metadata.mcf.DBMSMetaData items=[name=typeMapping type=java.lang.String]}] items=[typeMapping=SimpleMetaTyp
e:java.lang.String:FirstSQL/J]
name=min-pool-size, mappedName=null, required=true, value=SimpleMetaType:java.lang.Integer:0
name=new-connection-sql, mappedName=null, required=false, value=null
name=no-tx-separate-pools, mappedName=null, required=true, value=SimpleMetaType:java.lang.Boolean:true
name=password, mappedName=null, required=false, value=null
name=prefill, mappedName=null, required=true, value=null
name=prepared-statement-cache-size, mappedName=null, required=false, value=SimpleMetaType:java.lang.Integer:0
name=query-timeout, mappedName=null, required=false, value=SimpleMetaType:java.lang.Integer:0
name=rar-name, mappedName=null, required=true, value=null
name=security-domain, mappedName=null, required=false, value=GenericMetaType:security-domain:ManagedObject{security-do
main}
name=set-tx-query-timeout, mappedName=null, required=false, value=SimpleMetaType:java.lang.Boolean:false
name=share-prepared-statements, mappedName=null, required=false, value=SimpleMetaType:java.lang.Boolean:false
name=stale-connection-checker-class-name, mappedName=null, required=false, value=null
name=statistics-formatter, mappedName=null, required=true, value=null
name=track-connection-by-tx, mappedName=null, required=false, value=SimpleMetaType:java.lang.Boolean:true
name=track-statements, mappedName=null, required=false, value=null
name=transaction-isolation, mappedName=null, required=false, value=null
name=type-mapping, mappedName=null, required=true, value=null
name=url-delimiter, mappedName=null, required=false, value=null
name=url-property, mappedName=null, required=true, value=SimpleMetaType:java.lang.String:urn:foo
name=url-selector-strategy-class-name, mappedName=null, required=false, value=null
name=use-java-context, mappedName=null, required=true, value=SimpleMetaType:java.lang.Boolean:true
name=use-strict-min, mappedName=null, required=true, value=null
name=use-try-lock, mappedName=null, required=false, value=SimpleMetaType:java.lang.Long:60000
name=user-name, mappedName=null, required=false, value=null
name=valid-connection-checker-class-name, mappedName=null, required=false, value=null
name=validate-on-match, mappedName=null, required=true, value=SimpleMetaType:java.lang.Boolean:true
name=xa-datasource-class, mappedName=null, required=true, value=SimpleMetaType:java.lang.String:oracle.jdbc.xa.client.
OracleXADataSource
name=xa-datasource-properties, mappedName=null, required=false, value=MapCompositeMetaType{java.util.Map}:{}
name=xa-resource-timeout, mappedName=null, required=true, value=SimpleMetaType:java.lang.Integer:111
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months