[ 
https://issues.apache.org/jira/browse/JAMES-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975584#action_12975584
 ] 

Alex commented on JAMES-1157:
-----------------------------

Sorry, your fix didn't help me. The same exception.

My domainlist has following content:
<domainlist class="org.apache.james.domainlist.xml.XMLDomainList">
  <domainnames>
    <domainname>localhost</domainname>
    <domainname>loggy.me</domainname>
  </domainnames>
  <autodetect>true</autodetect>
  <autodetectIP>true</autodetectIP>
  <defaultDomain>localhost</defaultDomain>
</domainlist>

and fetchmail:



<fetchmail enabled="true">
    <!-- The number of threads to use for the scheduled execution -->
    <threads>5</threads>

    <!-- The JMX Name to use -->
    <jmxName>fetchmail</jmxName>

    <fetch name="loggy.me">
        <accounts>
            <alllocal userprefix="" usersuffix="" password="postmaster" 
recipientprefix="" recipientsuffix="@loggy.me"
                      ignorercpt-header="true"/>
            <account user="imap_username" password="imap_pass" 
recipient="postmas...@localhost" ignorercpt-header="true"/>
            -->
        </accounts>

        <!-- The address of the server from which to fetch the mail -->
        <host>imap.1and1.com</host>

        <!-- How frequently this host is checked - in milliseconds. 600000 is 
every ten minutes -->
        <interval>10000</interval>

        <!-- name of the javamail provider you wish to use -->
        <!-- (pop3, imap, etc. -->
        <javaMailProviderName>imap</javaMailProviderName>

        <!-- name of the folder to open -->
        <javaMailFolderName>INBOX</javaMailFolderName>

        <javaMailProperties>
            <!-- Set the connection timeout to 3 minutes -->
            <property name="mail.imaps.connectiontimeout" value="180000"/>
            <!-- Set the I/O timeout to 3 minutes -->
            <property name="mail.imaps.timeout" value="180000"/>
        </javaMailProperties>

        <fetchall>true</fetchall>

        <recursesubfolders>false</recursesubfolders>

        <defaultdomain>loggy.me</defaultdomain>

        <fetched leaveonserver="false" markseen="true"/>

        <remotereceivedheader index="1" reject="true" leaveonserver="true" 
markseen="false"/>

        <maxmessagesize limit="0" reject="false" leaveonserver="true" 
markseen="false"/>

        <undeliverable leaveonserver="true" markseen="false"/>

        <recipientnotfound defer="true" reject="false" leaveonserver="true" 
markseen="false"/>

        <blacklist reject="true" leaveonserver="true" 
markseen="false">wib...@localhost, flob...@localhost</blacklist>

        <userundefined reject="false" leaveonserver="false" markseen="true"/>

        <remoterecipient reject="true" leaveonserver="true" markseen="false"/>
    </fetch>
</fetchmail>


> Fetchmail doesn't work
> ----------------------
>
>                 Key: JAMES-1157
>                 URL: https://issues.apache.org/jira/browse/JAMES-1157
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: FetchMail
>    Affects Versions: 3.0-M3
>         Environment: Mac Snow Leopard 
>            Reporter: Alex
>            Assignee: Norman Maurer
>             Fix For: 3.0-M3
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to