1 2 Previous Next 15 Replies Latest reply on Nov 21, 2008 7:22 PM by alesj

    Handling of null native values

    starksm64

      Related to https://jira.jboss.org/jira/browse/JBAS-6188, the following error occurs when one tries to pass a null value through to a native valued property:

      Caused by: java.lang.IllegalArgumentException: Wrong arguments. setUseTryLock for target org.jboss.resource.metadata.mcf
      .LocalDataSourceDeploymentMetaData@75687c expected=[long] actual=[null]
       at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)
       at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:69)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
       at org.jboss.beans.info.plugins.DefaultPropertyInfo.set(DefaultPropertyInfo.java:143)
       at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.setValue(AbstractInstanceClassFactory.java:378
      )
       at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.setValue(AbstractInstanceClassFactory.java:273
      )
       at org.jboss.managed.plugins.WritethroughManagedPropertyImpl.setValue(WritethroughManagedPropertyImpl.java:109)
       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:673)
      


      Is this something that the PropertyInfo implementation should be handling, or should this have been handled when the null MetaValue was unwrapped?


        1 2 Previous Next