Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1088169

Summary: Quickstart business-resource-planner failed on ER1
Product: [Retired] JBoss BRMS Platform 6 Reporter: Ryan Zhang <rzhang>
Component: OptaPlannerAssignee: Geoffrey De Smet <gdesmet>
Status: CLOSED CURRENTRELEASE QA Contact: jvahala
Severity: high Docs Contact:
Priority: high    
Version: 6.0.2CC: gdesmet, lpetrovi, rrajasek
Target Milestone: ER2   
Target Release: 6.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:54:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
server.log none

Description Ryan Zhang 2014-04-16 07:43:33 UTC
Description of problem:
The quickstart business-resource-planner failed on ER1.

The error stack:
15:39:57,948 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/brms-business-resource-planner].[FacesServlet]] (http-localhost/127.0.0.1:8080-3) JBWEB000236: Servlet.service() for servlet FacesServlet threw exception: com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field org.optaplanner.core.config.termination.TerminationConfig.minutesSpentLimit
---- Debugging information ----
field               : minutesSpentLimit
class               : org.optaplanner.core.config.termination.TerminationConfig
required-type       : org.optaplanner.core.config.termination.TerminationConfig
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
line number         : 34
class[1]            : org.optaplanner.core.config.solver.SolverConfig
version             : 1.4.7
-------------------------------
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.handleUnknownField(AbstractReflectionConverter.java:495) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:351) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:474) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:406) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1185) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1169) [xstream-1.4.7.jar:1.4.7]
	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1040) [xstream-1.4.7.jar:1.4.7]
	at org.optaplanner.core.config.solver.XmlSolverFactory.configure(XmlSolverFactory.java:84) [optaplanner-core-6.0.2-redhat-7.jar:6.0.2-redhat-7]
	at org.optaplanner.core.config.solver.XmlSolverFactory.configure(XmlSolverFactory.java:74) [optaplanner-core-6.0.2-redhat-7.jar:6.0.2-redhat-7]
	at org.optaplanner.core.config.solver.XmlSolverFactory.configure(XmlSolverFactory.java:67) [optaplanner-core-6.0.2-redhat-7.jar:6.0.2-redhat-7]
	at org.optaplanner.core.config.solver.XmlSolverFactory.<init>(XmlSolverFactory.java:51) [optaplanner-core-6.0.2-redhat-7.jar:6.0.2-redhat-7]
	at org.jboss.quickstarts.planner.controller.SolverSessionProducer.getSolver(SolverSessionProducer.java:48) [classes:]
	at org.jboss.quickstarts.planner.controller.RoutingController.solve(RoutingController.java:92) [classes:]
	at org.jboss.quickstarts.planner.controller.RoutingController$Proxy$_$$_WeldClientProxy.solve(RoutingController$Proxy$_$$_WeldClientProxy.java) [classes:]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_17]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_17]
	at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_17]
	at org.apache.el.parser.AstValue.invoke(AstValue.java:258) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40) [weld-core-1.1.13.Final-redhat-1.jar:1.1.13.Final-redhat-1]
	at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) [weld-core-1.1.13.Final-redhat-1.jar:1.1.13.Final-redhat-1]
	at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]
	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:101) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]
	at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:786) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1251) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_17]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_17]
	at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_17]
	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:263) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:261) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_17]
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:536) [rt.jar:1.7.0_17]
	at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:155) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:288) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:59) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:197) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_17]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:408) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Follow the Readme in quickstarts/business-resource-planner .
2. See the error in server.log and UI page.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Ryan Zhang 2014-04-16 07:44:19 UTC
Created attachment 886777 [details]
server.log

Comment 4 Geoffrey De Smet 2014-04-16 11:36:55 UTC
Quickstart business-resource-planner has been written against bom.brms 6.1.0-build-8:
  https://github.com/jboss-developer/jboss-brms-quickstarts/blob/6.1.x-develop/business-resource-planner/pom.xml#L46

Since it's written against BRMS 6.1 and therefore it's not written against BRMS 6.0.x, so it's not compatible with BRMS 6.0.2.ER2.


Important note: OptaPlanner 6.1.0.CR1 will be the first version that has a public API which is backwards compatible in 6.2, 6.3, etc.

Important note: BRMS optaplanner 6.1 is still changing. Only once community OptaPlanner 6.1.0.CR1 is out, the API will be stable. This means that the current quickstart business-resource-planner might need to do a few changes to be compatible with 6.1.0.CR1 (and every version later), as specified in the upgrade recipe:
https://github.com/droolsjbpm/optaplanner/blob/master/optaplanner-distribution/src/main/assembly/filtered-resources/UpgradeFromPreviousVersionRecipe.txt#L3714

Comment 5 Ryan Zhang 2014-04-16 13:08:36 UTC
Hi, Rafael
Could you have a look on this issue?

Comment 6 Rafael Benevides 2014-04-16 13:24:45 UTC
Hi Ryan,

Unfortunately I would have to setup an environment, to start debugging and fix it. I'm afraid that I don't have time to do that since it's a high:high priority/severity.

and also based on what Geoffrey De Smet  said, its possible that it could need a refactor to run on 6.0.2 (which will consume more time).


Sorry, but I'm returning the ticket assignment to you since I can't work on that at the moment.

Comment 8 jvahala 2014-05-28 11:16:32 UTC
Verified on BPMS 6.0.2 ER2