2 Replies Latest reply on Oct 17, 2012 11:22 PM by jmaan

    Activity Engine Service throwing errors in Windows Development Environment setup

    jmaan

      I am getting an error while starting the Activity Engine Service (./eae-start). I have attached error logs. I followed "Windows Development Environment Setup" document step-by-step. No failure noticed before starting the EAE. I have installed the Postgresql locally on Windows XP machine and setup all databases (Jive and EAE) therein. Not too sure of possible reason for the error except a point to mention here that I have not setup/configured Activity Engine on CentOS Virtual Box, but used Windows XP instead.

       

      Anybody has an idea on how to get rid of below exception, kindly suggest.

       

      2012-10-10 17:31:40,343 [main] ERROR [] com.jivesoftware.eae.service.Main - Serv

      ice startup cannot continue after bean creation failure. Shutting down.

      org.springframework.beans.factory.BeanCreationException: Error creating bean wit

      h name 'runtimeConfiguration': Injection of autowired dependencies failed; neste

      d exception is org.springframework.beans.factory.BeanCreationException: Could no

      t autowire field: com.jivesoftware.eae.marshall.api.ActivityIngress com.jivesoft

      ware.eae.service.RuntimeConfiguration.activityIngress; nested exception is org.s

      pringframework.beans.factory.BeanCreationException: Error creating bean with nam

      e 'serviceConnector' defined in class com.jivesoftware.eae.service.RuntimeConfig

      uration: Instantiation of bean failed; nested exception is org.springframework.b

      eans.factory.BeanDefinitionStoreException: Factory method [public org.springfram

      ework.jmx.support.ConnectorServerFactoryBean com.jivesoftware.eae.service.Runtim

      eConfiguration.serviceConnector() throws java.lang.Exception] threw exception; n

      ested exception is java.lang.NullPointerException

              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP

      ostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java

      :286)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBean

      Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1064)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBean

      Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBean

      Factory.createBean(AbstractAutowireCapableBeanFactory.java:456)

              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb

      ject(AbstractBeanFactory.java:291)

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr

      y.getSingleton(DefaultSingletonBeanRegistry.java:222)

              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe

      an(AbstractBeanFactory.java:288)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean

      (AbstractBeanFactory.java:190)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.

      preInstantiateSingletons(DefaultListableBeanFactory.java:563)

              at org.springframework.context.support.AbstractApplicationContext.finish

      BeanFactoryInitialization(AbstractApplicationContext.java:872)

              at org.springframework.context.support.AbstractApplicationContext.refres

      h(AbstractApplicationContext.java:423)

              at org.springframework.context.annotation.AnnotationConfigApplicationCon

      text.<init>(AnnotationConfigApplicationContext.java:65)

              at com.jivesoftware.eae.common.service.Service.startup(Service.java:85)

              at com.jivesoftware.eae.common.service.Service.startup(Service.java:46)

              at com.jivesoftware.eae.service.Main.startup(Main.java:70)

              at com.jivesoftware.eae.service.Main.main(Main.java:55)

      Caused by: org.springframework.beans.factory.BeanCreationException: Could not au

      towire field: com.jivesoftware.eae.marshall.api.ActivityIngress com.jivesoftware

      .eae.service.RuntimeConfiguration.activityIngress; nested exception is org.sprin

      gframework.beans.factory.BeanCreationException: Error creating bean with name 's

      erviceConnector' defined in class com.jivesoftware.eae.service.RuntimeConfigurat

      ion: Instantiation of bean failed; nested exception is org.springframework.beans

      .factory.BeanDefinitionStoreException: Factory method [public org.springframewor

      k.jmx.support.ConnectorServerFactoryBean com.jivesoftware.eae.service.RuntimeCon

      figuration.serviceConnector() throws java.lang.Exception] threw exception; neste

      d exception is java.lang.NullPointerException

              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP

      ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j

      ava:507)

              at org.springframework.beans.factory.annotation.InjectionMetadata.inject

      (InjectionMetadata.java:84)

              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP

      ostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java

      :283)

              ... 15 more

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creati

      ng bean with name 'serviceConnector' defined in class com.jivesoftware.eae.servi

      ce.RuntimeConfiguration: Instantiation of bean failed; nested exception is org.s

      pringframework.beans.factory.BeanDefinitionStoreException: Factory method [publi

      c org.springframework.jmx.support.ConnectorServerFactoryBean com.jivesoftware.ea

      e.service.RuntimeConfiguration.serviceConnector() throws java.lang.Exception] th

      rew exception; nested exception is java.lang.NullPointerException

              at org.springframework.beans.factory.support.ConstructorResolver.instant

      iateUsingFactoryMethod(ConstructorResolver.java:568)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBean

      Factory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:97

      3)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBean

      Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:879)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBean

      Factory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.j

      ava:735)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBean

      Factory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:666)

              at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeM

      atch(AbstractBeanFactory.java:500)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.

      getBeanNamesForType(DefaultListableBeanFactory.java:306)

              at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIn

      cludingAncestors(BeanFactoryUtils.java:185)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.

      findAutowireCandidates(DefaultListableBeanFactory.java:812)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.

      doResolveDependency(DefaultListableBeanFactory.java:769)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.

      resolveDependency(DefaultListableBeanFactory.java:686)

              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP

      ostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.j

      ava:478)

              ... 17 more

      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Facto

      ry method [public org.springframework.jmx.support.ConnectorServerFactoryBean com

      .jivesoftware.eae.service.RuntimeConfiguration.serviceConnector() throws java.la

      ng.Exception] threw exception; nested exception is java.lang.NullPointerExceptio

      n

              at org.springframework.beans.factory.support.SimpleInstantiationStrategy

      .instantiate(SimpleInstantiationStrategy.java:158)

              at org.springframework.beans.factory.support.ConstructorResolver.instant

      iateUsingFactoryMethod(ConstructorResolver.java:557)

              ... 28 more

      Caused by: java.lang.NullPointerException

              at com.jivesoftware.eae.service.RuntimeConfiguration.serviceConnector(Ru

      ntimeConfiguration.java:468)

              at com.jivesoftware.eae.service.RuntimeConfiguration$$EnhancerByCGLIB$$7

      d51000f.CGLIB$serviceConnector$45(<generated>)

              at com.jivesoftware.eae.service.RuntimeConfiguration$$EnhancerByCGLIB$$7

      d51000f$$FastClassByCGLIB$$55776f5d.invoke(<generated>)

              at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)

              at org.springframework.context.annotation.ConfigurationClassEnhancer$Bea

      nMethodInterceptor.intercept(ConfigurationClassEnhancer.java:210)

              at com.jivesoftware.eae.service.RuntimeConfiguration$$EnhancerByCGLIB$$7

      d51000f.serviceConnector(<generated>)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.springframework.beans.factory.support.SimpleInstantiationStrategy

      .instantiate(SimpleInstantiationStrategy.java:146)

              ... 29 more

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 19:28.844s

      [INFO] Finished at: Wed Oct 10 17:31:40 IST 2012

      [INFO] Final Memory: 6M/15M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (d

      efault-cli) on project web: Command execution failed. Process exited with an err

      or: 2 (Exit value: 2) -> [Help 1]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

      ch.

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please rea

      d the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE

      xception