[rules-users] [Optaplanner] No-arg constructor for BendableScoreDefinition
jonathan.labin
jonathan.labin at gmail.com
Fri May 24 15:28:26 EDT 2013
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-BendableScoreDefinition-tp4023523p4023961.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list