On 2010-04-18 13.00, Niclas Hedhman wrote:
Hi,

getting an non-informative exception. Any clue when this can happen,
and what we should do about it?


org.qi4j.api.constraint.ConstraintViolationException: Constraint
violation in .<unknown>  for method name with constraint not optional,
for value 'null'
        
org.qi4j.runtime.property.AbstractPropertyModel.checkConstraints(AbstractPropertyModel.java:205)
        
org.qi4j.runtime.property.AbstractPropertyModel.checkConstraints(AbstractPropertyModel.java:217)
        
org.qi4j.runtime.property.AbstractPropertiesModel.checkConstraints(AbstractPropertiesModel.java:257)
        
org.qi4j.runtime.entity.EntityPropertiesInstance.checkConstraints(EntityPropertiesInstance.java:97)
        
org.qi4j.runtime.entity.EntityStateModel$EntityStateInstance.checkConstraints(EntityStateModel.java:167)
        
org.qi4j.runtime.entity.EntityInstance.checkConstraints(EntityInstance.java:293)
        
org.qi4j.runtime.unitofwork.EntityBuilderInstance.newInstance(EntityBuilderInstance.java:106)
        
org.hedhman.codestorm.model.Registrar$Mixin.createCaptain(Registrar.java:75)
        
org.hedhman.codestorm.model.Registrar$Mixin.registerTeam(Registrar.java:62)
        
org.hedhman.codestorm.model.Registrar$Mixin$$EnhancerByCGLIB$$104ea1b5.CGLIB$registerTeam$0(<generated>)
        
org.hedhman.codestorm.model.Registrar$Mixin$$EnhancerByCGLIB$$104ea1b5$$FastClassByCGLIB$$c3758a25.invoke(<generated>)
        net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
        
org.qi4j.runtime.composite.TypedMixinInvocationHandler.invoke(TypedMixinInvocationHandler.java:41)
        
org.qi4j.runtime.composite.CompositeMethodInstance.invoke(CompositeMethodInstance.java:60)
        
org.qi4j.runtime.composite.TransientInstance.invoke(TransientInstance.java:114)
        
org.qi4j.runtime.composite.CompositeMethodModel.invoke(CompositeMethodModel.java:153)
        
org.qi4j.runtime.composite.CompositeMethodsModel.invoke(CompositeMethodsModel.java:122)
        
org.qi4j.runtime.composite.AbstractCompositeModel.invoke(AbstractCompositeModel.java:122)
        
org.qi4j.runtime.composite.TransientInstance.invoke(TransientInstance.java:61)
        
org.qi4j.runtime.service.ServiceReferenceInstance$ServiceInvocationHandler.invoke(ServiceReferenceInstance.java:156)
        $Proxy221.registerTeam(Unknown Source)
        
org.hedhman.codestorm.runtime.TeamRegistrationAction$Mixin.act(TeamRegistrationAction.java:51)

I think you have a Property which is not set, and which does not have @UseDefaults declared. I think the exception is correct, but the error message needs to be fixed.

Any suggestions on what it should look like?

/Rickard


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to