[jboss-jira] [JBoss JIRA] Commented: (JBAS-6796) "java.lang.IllegalArgumentException: Null type." error in DelegatingPersistencePlugin.getPlugin() when updating a Datasource or Connection Factory's properties with 'security-domain' prop with null security deployment type

Ian Springer (JIRA) jira-events at lists.jboss.org
Fri Apr 17 14:25:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBAS-6796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12462956#action_12462956 ] 

Ian Springer commented on JBAS-6796:
------------------------------------

I've switched over to using the CompositeValue. There's an issue though. If I set the value of the Domain to null and then create or update the component, the Security Deployment Type gets reset to null. If the Security Deployment Type is DOMAIN or DOMAIN_AND_APPLICATION, an exception should be thrown if the Domain is null, and otherwise a null Domain should be acceptable and a non-null Domain should either cause an error or just be ignored. And in any case, the Security Deployment Type should not get reset to null.


> "java.lang.IllegalArgumentException: Null type." error in DelegatingPersistencePlugin.getPlugin() when updating a Datasource or Connection Factory's properties with 'security-domain' prop with null security deployment type
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-6796
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6796
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: ProfileService
>            Reporter: Ian Springer
>            Assignee: Emanuel Muckenhuber
>             Fix For: JBossAS-5.1.0.CR1
>
>
> It occurs while processing the following property:
>    ManagedProperty{security-domain,securityMetaData,metaType=GenericMetaType:security-domain}
> and the Security Deployment Type sub-metaValue has a null value.
> The metaValue looks like:
>    GenericMetaType:security-domain:ManagedObject{security-domain}
> and the persistedProperty looks like:
>    PersistedProperty at 1b0d4cb{name = security-domain, value = null}
> Here's the stack trace:
> 11:55:13,454 ERROR [ManagedComponentComponent] Failed to update configuration for ResourceType[id=0, category=Service, name=No Tx ConnectionFactory, plugin=JBos
> sAS5] Resource with key [ConnectionFactory:NoTx:MyNoTxCF].
> java.lang.IllegalArgumentException: Null type.
>         at org.jboss.system.server.profileservice.persistence.DelegatingPersistencePlugin.getPlugin(DelegatingPersistencePlugin.java:105)
>         at org.jboss.system.server.profileservice.persistence.DelegatingPersistencePlugin.createPersistedManagedObject(DelegatingPersistencePlugin.java:74)
>         at org.jboss.system.server.profileservice.persistence.AbstractValuePersistence.createGenericValue(AbstractValuePersistence.java:259)
>         at org.jboss.system.server.profileservice.persistence.AbstractValuePersistence.createGenericValue(AbstractValuePersistence.java:238)
>         at org.jboss.system.server.profileservice.persistence.AbstractValuePersistence.createPersistedValue(AbstractValuePersistence.java:152)
>         at org.jboss.system.server.profileservice.persistence.AbstractManagedObjectPersistencePlugin.processProperty(AbstractManagedObjectPersistencePlugin.java
> :227)
>         at org.jboss.system.server.profileservice.persistence.AbstractManagedObjectPersistencePlugin.processProperties(AbstractManagedObjectPersistencePlugin.ja
> va:162)
>         at org.jboss.system.server.profileservice.persistence.AbstractManagedObjectPersistencePlugin.processProperties(AbstractManagedObjectPersistencePlugin.ja
> va:131)
>         at org.jboss.system.server.profileservice.persistence.DefaultManagedObjectPlugin.createPersistedManagedObject(DefaultManagedObjectPlugin.java:56)
>         at org.jboss.system.server.profileservice.persistence.AbstractManagedObjectPersistencePlugin.createPersistedManagedObject(AbstractManagedObjectPersisten
> cePlugin.java:82)
>         at org.jboss.system.server.profileservice.persistence.DelegatingPersistencePlugin.createPersistedManagedObject(DelegatingPersistencePlugin.java:75)
>         at org.jboss.system.server.profileservice.persistence.AbstractValuePersistence.createGenericValue(AbstractValuePersistence.java:259)
>         at org.jboss.system.server.profileservice.persistence.AbstractValuePersistence.createGenericValue(AbstractValuePersistence.java:238)
>         at org.jboss.system.server.profileservice.persistence.AbstractValuePersistence.createPersistedValue(AbstractValuePersistence.java:152)
>         at org.jboss.system.server.profileservice.persistence.AbstractValuePersistence.createPersistedValue(AbstractValuePersistence.java:111)
>         at org.jboss.system.server.profileservice.persistence.AbstractValuePersistence.createCollectionValue(AbstractValuePersistence.java:222)
>         at org.jboss.system.server.profileservice.persistence.AbstractValuePersistence.createPersistedValue(AbstractValuePersistence.java:147)
>         at org.jboss.system.server.profileservice.persistence.AbstractManagedObjectPersistencePlugin.processProperty(AbstractManagedObjectPersistencePlugin.java
> :227)
>         at org.jboss.system.server.profileservice.persistence.AbstractManagedObjectPersistencePlugin.processProperties(AbstractManagedObjectPersistencePlugin.ja
> va:162)
>         at org.jboss.system.server.profileservice.persistence.AbstractManagedObjectPersistencePlugin.processProperties(AbstractManagedObjectPersistencePlugin.ja
> va:131)
>         at org.jboss.system.server.profileservice.persistence.DefaultManagedObjectPlugin.createPersistedManagedObject(DefaultManagedObjectPlugin.java:56)
>         at org.jboss.system.server.profileservice.persistence.AbstractManagedObjectPersistencePlugin.createPersistedManagedObject(AbstractManagedObjectPersisten
> cePlugin.java:82)
>         at org.jboss.system.server.profileservice.persistence.DelegatingPersistencePlugin.createPersistedManagedObject(DelegatingPersistencePlugin.java:75)
>         at org.jboss.system.server.profileservice.persistence.ManagedObjectPeristenceHandler.createPersistenceMetaData(ManagedObjectPeristenceHandler.java:55)
>         at org.jboss.system.server.profileservice.repository.AbstractAttachmentStore.createPersistedMetaData(AbstractAttachmentStore.java:560)
>         at org.jboss.system.server.profileservice.repository.AbstractAttachmentStore.updateDeployment(AbstractAttachmentStore.java:438)
>         at org.jboss.system.server.profileservice.repository.AbstractAttachmentStore.updateDeployment(AbstractAttachmentStore.java:333)
>         at org.jboss.profileservice.management.ManagementViewImpl.updateComponent(ManagementViewImpl.java:1218)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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:97)
>         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 org.jboss.aop.generatedproxies.AOPProxy$2.updateComponent(AOPProxy$2.java)
>         at org.rhq.plugins.jbossas5.ManagedComponentComponent.updateComponent(ManagedComponentComponent.java:171)
>         at org.rhq.plugins.jbossas5.AbstractManagedComponent.updateResourceConfiguration(AbstractManagedComponent.java:90)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:449)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
>         at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
>         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 org.jboss.aop.generatedproxies.AOPProxy$2.updateComponent(AOPProxy$2.java)
>         at org.rhq.plugins.jbossas5.ManagedComponentComponent.updateComponent(ManagedComponentComponent.java:171)
>         at org.rhq.plugins.jbossas5.AbstractManagedComponent.updateResourceConfiguration(AbstractManagedComponent.java:90)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:449)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)

-- 
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

        



More information about the jboss-jira mailing list