*Exception in thread "main"
java.lang.IllegalArgumentException: The
planningEntityClass (class
org.drools.planner.examples.cloudbalancing.domain.CloudAssignment) has a
PlanningVariable annotated property (cloudComputer) with
excludeUninitializedPlanningEntity (true), but there is no planning entity
class that extends the variablePropertyType (class
org.drools.planner.examples.cloudbalancing.domain.CloudComputer).
Why is the error
not understandable?
Take a look in the manual what excludeUninitializedPlanningEntity does.
This won't work on cloudBalance naturally, as no planning value is a
planning entity.
Op 16-04-12 11:12, TEddahabi schreef:
> I use the 5.4.0.CR1 version and make
> ValueRange.excludeUninitializedPlanningEntity on true (as you advised me),
> but I'm getting this exception :
>
*Exception in thread "main"
java.lang.IllegalArgumentException: The
planningEntityClass (class
org.drools.planner.examples.cloudbalancing.domain.CloudAssignment) has a
PlanningVariable annotated property (cloudComputer) with
excludeUninitializedPlanningEntity (true), but there is no planning entity
class that extends the variablePropertyType (class
org.drools.planner.examples.cloudbalancing.domain.CloudComputer).
> at
>
org.drools.planner.core.domain.variable.AbstractPlanningValueRangeDescriptor.processExcludeUninitializedPlanningEntity(AbstractPlanningValueRangeDescriptor.java:50)
> at
>
org.drools.planner.core.domain.variable.SolutionPropertyPlanningValueRangeDescriptor.processValueRangeAnnotation(SolutionPropertyPlanningValueRangeDescriptor.java:57)
> at
>
org.drools.planner.core.domain.variable.SolutionPropertyPlanningValueRangeDescriptor.<init>(SolutionPropertyPlanningValueRangeDescriptor.java:35)
> at
>
org.drools.planner.core.domain.variable.PlanningVariableDescriptor.buildValueRangeDescriptor(PlanningVariableDescriptor.java:161)
> at
>
org.drools.planner.core.domain.variable.PlanningVariableDescriptor.processValueRangeAnnotation(PlanningVariableDescriptor.java:141)
> at
>
org.drools.planner.core.domain.variable.PlanningVariableDescriptor.processPropertyAnnotations(PlanningVariableDescriptor.java:64)
> at
>
org.drools.planner.core.domain.variable.PlanningVariableDescriptor.processAnnotations(PlanningVariableDescriptor.java:54)
> at
>
org.drools.planner.core.domain.entity.PlanningEntityDescriptor.processPropertyAnnotations(PlanningEntityDescriptor.java:148)
> at
>
org.drools.planner.core.domain.entity.PlanningEntityDescriptor.processAnnotations(PlanningEntityDescriptor.java:64)
> at
>
org.drools.planner.config.solver.SolverConfig.buildSolutionDescriptor(SolverConfig.java:187)
> at
> org.drools.planner.config.solver.SolverConfig.buildSolver(SolverConfig.java:149)
> at
> org.drools.planner.config.XmlSolverFactory.buildSolver(XmlSolverFactory.java:112)*
>
> Could you help me please to fix this problem ?
> Thank you !!
>
> --
> View this message in context:
http://drools.46999.n3.nabble.com/Drools-Planner-multiple-planning-entiti...
> Sent from the Drools: User forum mailing list archive at
Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
--
With kind regards,
Geoffrey De Smet