I don't see this on 4.2 anymore, so it's hard to debug. But when I saw this, the 'haPlanners' property was missing from my setup's nonOssComponentContext.xml
Are you guys using Simulator? I think there is one version for Simulator too - Do you see this property defined in your client/tomcatconf/simulatorComponentContext.xml.in? If it is not there, adding it in this file and recompiling should solve this. Nitin - have you added it to simulatorComponentContext.xml? Prachi -----Original Message----- From: Alex Ough [mailto:[email protected]] Sent: Monday, November 04, 2013 11:29 AM To: [email protected] Subject: Re: haPlanners error in fresh 4.2 checkout I still have this issue.... Any update on this? Thanks Alex Ough On Fri, Nov 1, 2013 at 4:41 AM, sebgoa <[email protected]> wrote: > I deleted my local 4.2 branch and did a brand new checkout, same result. > > latest 4.2 does not work for me -same error as below - > > On Oct 31, 2013, at 8:34 PM, Srikanteswararao Talluri < > [email protected]> wrote: > > > I too faced this issue today. Is there any resolution for this? > > > > Thanks, > > ~Talluri > > > > On 31/10/13 2:35 pm, "sebgoa" <[email protected]> wrote: > > > >> > >> On Oct 29, 2013, at 7:56 PM, Nitin Mehta <[email protected]> > wrote: > >> > >>> Yeah, that should have cleaned the workspace. Did you see what > >>> Prachi recommended below ? > >> > >> Yes and it's there. I do a fresh 4.2 checkout > >> > >> it compiles fine with: > >> > >> mvn -Pdeveloper -Dsimulator -DskipTests clean install > >> > >> But when I run with: > >> > >> mvn -pl client jetty:run > >> > >> I get this: > >> > >> 2013-10-31 10:01:31.403:INFO::Started > [email protected]:8080 > >> [INFO] Started Jetty Server > >> Exception in thread "Timer-2" > >> org.springframework.beans.factory.BeanExpressionException: > >> Expression parsing failed; nested exception is > >> org.springframework.expression.spel.SpelEvaluationException: > EL1008E:(pos > >> 0): Field or property 'haPlanners' cannot be found on object of > >> type 'org.springframework.beans.factory.config.BeanExpressionContext' > >> at > >> > org.springframework.context.expression.StandardBeanExpressionResolver. > eval > >> uate(StandardBeanExpressionResolver.java:142) > >> at > >> > org.springframework.beans.factory.support.AbstractBeanFactory.evaluate > Bean > >> DefinitionString(AbstractBeanFactory.java:1299) > >> at > >> > org.springframework.beans.factory.support.BeanDefinitionValueResolver. > eval > >> uate(BeanDefinitionValueResolver.java:210) > >> at > >> > org.springframework.beans.factory.support.BeanDefinitionValueResolver. > reso > >> lveValueIfNecessary(BeanDefinitionValueResolver.java:182) > >> at > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF > acto > >> ry.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360) > >> at > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF > acto > >> ry.populateBean(AbstractAutowireCapableBeanFactory.java:1118) > >> at > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF > acto > >> ry.configureBean(AbstractAutowireCapableBeanFactory.java:314) > >> at > >> > com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(Com > pone > >> ntContext.java:71) > >> at > >> com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54) > >> at java.util.TimerThread.mainLoop(Timer.java:555) > >> at java.util.TimerThread.run(Timer.java:505) > >> Caused by: org.springframework.expression.spel.SpelEvaluationException: > >> EL1008E:(pos 0): Field or property 'haPlanners' cannot be found on > object > >> of type 'org.springframework.beans.factory.config.BeanExpressionContext' > >> at > >> > org.springframework.expression.spel.ast.PropertyOrFieldReference.readP > rope > >> rty(PropertyOrFieldReference.java:208) > >> at > >> > org.springframework.expression.spel.ast.PropertyOrFieldReference.getVa > lueI > >> nternal(PropertyOrFieldReference.java:72) > >> at > >> > org.springframework.expression.spel.ast.CompoundExpression.getValueInt > erna > >> l(CompoundExpression.java:52) > >> at > >> > org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNode > Impl > >> .java:93) > >> at > >> > org.springframework.expression.spel.standard.SpelExpression.getValue(S > pelE > >> xpression.java:88) > >> at > >> > org.springframework.context.expression.StandardBeanExpressionResolver. > eval > >> uate(StandardBeanExpressionResolver.java:139) > >> ... 10 more > >> ERROR [cloud.api.ApiServlet] (770998563@qtp-534473248-6:) unknown > >> exception writing api response java.lang.NullPointerException > >> at com.cloud.api.ApiServer.loginUser(ApiServer.java:770) > >> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:211) > >> at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71) > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > >> at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) > >> at > >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) > >> at > >> > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java > :216 > >> ) > >> at > >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > >> at > >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > >> at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > >> at > >> > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl > erCo > >> llection.java:230) > >> at > >> > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: > >> 114) > >> at > >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > >> at org.mortbay.jetty.Server.handle(Server.java:326) > >> at > >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > >> at > >> > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection > .jav > >> a:945) > >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) > >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) > >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > >> at > >> > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.jav > a:41 > >> 0) > >> at > >> > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja > va:5 > >> 82) > >> ERROR [cloud.api.ApiServlet] (770998563@qtp-534473248-6:) unknown > >> exception writing api response java.lang.NullPointerException > >> > >> The NPE is raised when I try to log in. > >> > >> > >> > >>> > >>> On 29/10/13 2:02 AM, "sebgoa" <[email protected]> wrote: > >>> > >>>> > >>>> On Oct 28, 2013, at 7:14 PM, Nitin Mehta <[email protected]> > >>>> wrote: > >>>> > >>>>> Probably cleaning up you workspace might help. > >>>> > >>>> Dummy question of the day then, how do I do that ? > >>>> I did compile with `mvn clean install` > >>>> > >>>> > >>>>> > >>>>> On 28/10/13 10:51 AM, "Prachi Damle" <[email protected]> > wrote: > >>>>> > >>>>>> I had encountered this sometime back ... you need to check if > >>>>>> your componentContext.xml or its equivalent has following defined. > >>>>>> However I > >>>>>> do see it is present in the 4.2 branch > >>>>>> > >>>>>> <bean id="haPlanners" > >>>>>> class="com.cloud.utils.component.AdapterList"> > >>>>>> <property name="Adapters"> > >>>>>> <list> > >>>>>> <ref bean="SkipHeuresticsPlanner" /> </list> </property> > >>>>>> </bean> > >>>>>> > >>>>>> -----Original Message----- > >>>>>> From: sebgoa [mailto:[email protected]] > >>>>>> Sent: Monday, October 28, 2013 6:43 AM > >>>>>> To: [email protected] > >>>>>> Subject: haPlanners error in fresh 4.2 checkout > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I just checked out the latest from 4.2 and I get this: > >>>>>> > >>>>>> INFO [factory.annotation.AutowiredAnnotationBeanPostProcessor] > >>>>>> (main:) > >>>>>> JSR-330 'javax.inject.Inject' annotation found and supported > >>>>>> for autowiring INFO > >>>>>> [factory.annotation.AutowiredAnnotationBeanPostProcessor] > >>>>>> (main:) > >>>>>> JSR-330 > >>>>>> 'javax.inject.Inject' annotation found and supported for > >>>>>> autowiring INFO > >>>>>> [factory.annotation.AutowiredAnnotationBeanPostProcessor] > >>>>>> (main:) > >>>>>> JSR-330 > >>>>>> 'javax.inject.Inject' annotation found and supported for > >>>>>> autowiring > >>>>>> 2013-10-28 14:41:36.018:INFO::Started > >>>>>> [email protected]:8080 > >>>>>> [INFO] Started Jetty Server > >>>>>> Exception in thread "Timer-2" > >>>>>> org.springframework.beans.factory.BeanExpressionException: > Expression > >>>>>> parsing failed; nested exception is > >>>>>> org.springframework.expression.spel.SpelEvaluationException: > >>>>>> EL1008E:(pos > >>>>>> 0): Field or property 'haPlanners' cannot be found on object of > >>>>>> type 'org.springframework.beans.factory.config.BeanExpressionContext' > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.context.expression.StandardBeanExpressionResolver. > >>>>>> ev > >>>>>> al > >>>>>> uate(StandardBeanExpressionResolver.java:142) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.beans.factory.support.AbstractBeanFactory.evaluate > >>>>>> Be > >>>>>> an > >>>>>> DefinitionString(AbstractBeanFactory.java:1299) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.beans.factory.support.BeanDefinitionValueResolver. > >>>>>> ev > >>>>>> al > >>>>>> uate(BeanDefinitionValueResolver.java:210) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.beans.factory.support.BeanDefinitionValueResolver. > >>>>>> re > >>>>>> so > >>>>>> lveValueIfNecessary(BeanDefinitionValueResolver.java:182) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF > >>>>>> ac > >>>>>> to > >>>>>> ry.applyPropertyValues(AbstractAutowireCapableBeanFactory.java: > >>>>>> 1360) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF > >>>>>> ac > >>>>>> to > >>>>>> ry.populateBean(AbstractAutowireCapableBeanFactory.java:1118) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF > >>>>>> ac > >>>>>> to > >>>>>> ry.configureBean(AbstractAutowireCapableBeanFactory.java:314) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(Com > >>>>>> po > >>>>>> ne > >>>>>> ntContext.java:71) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:5 > >>>>>> 4) > >>>>>> at java.util.TimerThread.mainLoop(Timer.java:555) > >>>>>> at java.util.TimerThread.run(Timer.java:505) > >>>>>> Caused by: > >>>>>> org.springframework.expression.spel.SpelEvaluationException: > >>>>>> EL1008E:(pos 0): Field or property 'haPlanners' cannot be found > >>>>>> on object of type > >>>>>> 'org.springframework.beans.factory.config.BeanExpressionContext' > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.expression.spel.ast.PropertyOrFieldReference.readP > >>>>>> ro > >>>>>> pe > >>>>>> rty(PropertyOrFieldReference.java:208) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.expression.spel.ast.PropertyOrFieldReference.getVa > >>>>>> lu > >>>>>> eI > >>>>>> nternal(PropertyOrFieldReference.java:72) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.expression.spel.ast.CompoundExpression.getValueInt > >>>>>> er > >>>>>> na > >>>>>> l(CompoundExpression.java:52) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNode > >>>>>> Im > >>>>>> pl > >>>>>> .java:93) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.expression.spel.standard.SpelExpression.getValue(S > >>>>>> pe > >>>>>> lE > >>>>>> xpression.java:88) > >>>>>> at > >>>>>> > >>>>>> > >>>>>> > org.springframework.context.expression.StandardBeanExpressionResolver. > >>>>>> ev > >>>>>> al > >>>>>> uate(StandardBeanExpressionResolver.java:139) > >>>>>> ... 10 more > >>>>>> > >>>>>> > >>>>>> Any thoughts ? > >>>>>> > >>>>>> -sebastien > >>>>> > >>>> > >>> > >> > > > > >
