Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1157

Fetchmail doesn't work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-beta3
    • Fix Version/s: 3.0-beta3
    • Component/s: FetchMail
    • Labels:
      None
    • Environment:
      Mac Snow Leopard

      Description

      I configured fetchmail adapter from this article: http://remoteadmin.org.uk/tutorials/42-linux/58-apache-james

      When I start James server it throws exception (below). It seems it can't read the list of domains. But when I type a listdomains in terminal it returns 2 my domains.

      jvm 1 | WrapperSimpleApp: Encountered an error running main: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fetchmail': Invocation of init method failed; nested exception is java.lang.NullPointerException
      jvm 1 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fetchmail': Invocation of init method failed; nested exception is java.lang.NullPointerException
      jvm 1 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
      jvm 1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
      jvm 1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
      jvm 1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
      jvm 1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      jvm 1 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
      jvm 1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      jvm 1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
      jvm 1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
      jvm 1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
      jvm 1 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
      jvm 1 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
      jvm 1 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      jvm 1 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      jvm 1 | at org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
      jvm 1 | at org.apache.james.container.spring.Main.main(Main.java:31)
      jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      jvm 1 | at java.lang.reflect.Method.invoke(Method.java:597)
      jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
      jvm 1 | at java.lang.Thread.run(Thread.java:680)
      jvm 1 | Caused by: java.lang.NullPointerException
      jvm 1 | at org.apache.james.fetchmail.ParsedConfiguration.validateDefaultDomainName(ParsedConfiguration.java:858)
      jvm 1 | at org.apache.james.fetchmail.ParsedConfiguration.setDefaultDomainName(ParsedConfiguration.java:839)
      jvm 1 | at org.apache.james.fetchmail.ParsedConfiguration.configure(ParsedConfiguration.java:358)
      jvm 1 | at org.apache.james.fetchmail.ParsedConfiguration.<init>(ParsedConfiguration.java:335)
      jvm 1 | at org.apache.james.fetchmail.FetchMail.configure(FetchMail.java:429)
      jvm 1 | at org.apache.james.fetchmail.FetchScheduler.init(FetchScheduler.java:148)
      jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      jvm 1 | at java.lang.reflect.Method.invoke(Method.java:597)
      jvm 1 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
      jvm 1 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
      jvm 1 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
      jvm 1 | ... 21 more

        Attachments

          Activity

            People

            • Assignee:
              norman Norman Maurer
              Reporter:
              kievbs Alex
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: