Felix Breske wrote:
Hi,
i am working on an crm-import mailet vor opencustomer.org. On James 2.2.0 i have problems when i try to read hibernate config files from a jar file.
So i tryed James 2.3.0a1 and it works fine. :-)

But now i have another problem.
Fetchmail throws a NullPointer Exception when fetching mails.
I try Windows XP and Linux with Java 1.5.0_06.

I found a mail on the mailinglist with the same exception (November, 2 , 2005, Topic:"Fetchmail and IMAP"). But there was no solution.

Is it a James problem, or a problem with my configuration?

Let's see:
[EMAIL PROTECTED]:
Map newAccounts = new HashMap(
getLocalUsers().countUsers() * getParsedDynamicAccountParameters().size());

so the problem should be with getLocalUsers returning null or getParsedDynamicAccountParameters() returning null.

the localUserRepository is filled in the service method.
If you have the corret configuration in the assembly.xml you should have no problems.

So, first thing, check that you updated your assembly.xml (this is a lot different that 2.2.0 assembly.xml)

  <!-- FetchMail Service -->
<block name="fetchmail" class="org.apache.james.fetchmail.FetchScheduler" >
    <provide name="scheduler"

role="org.apache.avalon.cornerstone.services.scheduler.TimeScheduler"/>
<provide name="James" role="org.apache.james.services.MailServer"/> <provide name="localusersrepository" role="org.apache.james.services.UsersRepository"/>
  </block>

<!-- This is needed to link the smtpserver to the local user repository --> <block name="localusersrepository" class="org.apache.james.core.LocalUsersRepository">
    <provide name="users-store"
             role="org.apache.james.services.UsersStore"/>
  </block>

The parsedDynamicAccountParameters shouldn't be null, ever, so please check you assembly and return your feedback.

Stefano


java.lang.NullPointerException
at org.apache.james.fetchmail.FetchMail.computeDynamicAccounts(FetchMail.java:747) at org.apache.james.fetchmail.FetchMail.updateDynamicAccounts(FetchMail.java:723)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to