[rules-users] [Optaplanner] No-arg constructor for BendableScoreDefinition

Geoffrey De Smet ge0ffrey.spam at gmail.com
Thu Apr 25 11:12:28 EDT 2013


On 25-04-13 16:18, jonathan.labin wrote:
> Is there an example that uses BendableScore?
>
> I'm trying to convert my app from using HardSoftScore to BendableScore and
> I've run into my first issue:
>
>
> Changing from:
> @XStreamConverter(value = XStreamScoreConverter.class, types =
> {HardSoftLongScoreDefinition.class})
>
> to
> @XStreamConverter(value = XStreamScoreConverter.class, types =
> {BendableScoreDefinition.class})
>
> throws:
> Caused by: java.lang.IllegalArgumentException: The scoreDefinitionClass
> (class
> org.optaplanner.core.impl.score.buildin.bendable.BendableScoreDefinition)
> does not have a public no-arg constructor.
Reported a few days ago too, should be fixed for 6.0.0.Beta2
https://github.com/droolsjbpm/optaplanner/commit/c042baea7dd937ac14af289580695a5992ad6e77
>
> The answer to this issue would be helpful but I'll probably hit other bumps
> along the way.  Does anyone have an example that uses BendableScore?
A new example that is coming in a few weeks is called Project Scheduling 
and that will use it.
   https://github.com/triceo/mista13/
>
> Thanks,
>
> Jon
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Optaplanner-No-arg-constructor-for-BendableScoreDefinition-tp4023523.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list