And now there's a test (that also shows how it works) so it definitely
works this time around :)
This fix will be in
6.0.0.Beta3:https://github.com/droolsjbpm/optaplanner/commit/63b1f7284fad...
Solution: use XStreamBendableScoreConverter instead
On 24-05-13 21:28, jonathan.labin wrote:
> I have switched to 6.0.0.beta2 and I am still receiving a similar error.
> While BendableScoreDefinition does now have a no-arg constructor, It seems
> that XStream is still upset that the constructor is not public.
>
> ...
> Caused by: java.lang.IllegalArgumentException: The scoreDefinitionClass
> (class
> org.optaplanner.core.impl.score.buildin.bendable.BendableScoreDefinition)
> does not have a public no-arg constructor
> at
>
org.optaplanner.persistence.xstream.XStreamScoreConverter.<init>(XStreamScoreConverter.java:43)
> ... 17 more
> Caused by: java.lang.IllegalAccessException: Class
> org.optaplanner.persistence.xstream.XStreamScoreConverter can not access a
> member of class
> org.optaplanner.core.impl.score.buildin.bendable.BendableScoreDefinition
> with modifiers "private"
> at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)
> at java.lang.Class.newInstance0(Class.java:366)
> at java.lang.Class.newInstance(Class.java:325)
> at
>
org.optaplanner.persistence.xstream.XStreamScoreConverter.<init>(XStreamScoreConverter.java:38)
> ... 17 more
>
>
>
>
> --
> View this message in context:
http://drools.46999.n3.nabble.com/Optaplanner-No-arg-constructor-for-Bend...
> 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
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users