[jboss-jira] [JBoss JIRA] (JBRULES-3498) SolutionDescriotpr: NullPointer when Solution class has indexed properties

Thorben Bochenek (JIRA) jira-events at lists.jboss.org
Wed May 9 10:07:18 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thorben Bochenek reopened JBRULES-3498:
---------------------------------------



This is indeed a duplicate. However, in 5.4.0.CR1 I can reproduce the error getting the following Stacktracke:

Exception in thread "main" java.lang.NullPointerException
	at org.drools.planner.core.domain.solution.SolutionDescriptor.processPropertyAnnotations(SolutionDescriptor.java:72)
	at org.drools.planner.core.domain.solution.SolutionDescriptor.processAnnotations(SolutionDescriptor.java:64)
	at org.drools.planner.config.solver.SolverConfig.buildSolutionDescriptor(SolverConfig.java:178)
	at org.drools.planner.config.solver.SolverConfig.buildSolver(SolverConfig.java:149)
	at org.drools.planner.config.XmlSolverFactory.buildSolver(XmlSolverFactory.java:112)
	at logistikApPrototyp.app.LogistikApp.main(LogistikApp.java:16)

                
> SolutionDescriotpr: NullPointer when Solution class has indexed properties
> --------------------------------------------------------------------------
>
>                 Key: JBRULES-3498
>                 URL: https://issues.jboss.org/browse/JBRULES-3498
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-planner
>            Reporter: Thorben Bochenek
>            Assignee: Geoffrey De Smet
>
> When the Solution Class has IndexedProperties like "public Day getDay (int dayIndex)" the method processPropertyAnnotations() in SolutionDescriptor will get a NullPointerException on line 71, because for an IndexedPropertyDescriptor getReadMethod() will return null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list