[jboss-dev-forums] [Design the new POJO MicroContainer] - Handling of null native values

scott.stark@jboss.org do-not-reply at jboss.com
Fri Nov 21 11:57:31 EST 2008


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191349#4191349

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191349



More information about the jboss-dev-forums mailing list