james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hes Siemelink (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (JAMES-316) java.lang.ArrayIndexOutOfBoundsException from RemoteDelivery
Date Mon, 29 Nov 2004 15:09:30 GMT
     [ http://nagoya.apache.org/jira/browse/JAMES-316?page=comments#action_55974 ]
     
Hes Siemelink commented on JAMES-316:
-------------------------------------

Same here... 

James short-circuited in the RemoteDelivery, hogging all CPU time.


What probably happens is that it is possible to misconfigure the RemoteDelivery's delayTimes
in the config.xml file. This passes undetected, but at the hour of delivering a message getNextDelay()
throws the ArrayIndexOutOfBoundsException.

This will cause a (tight) loop in RemoteDelivery.run().

Work-around: configure your config.xml so there are less delayTimes entries than deliveryAttempts
and delete all your mail that is still hanging in a queue.




> java.lang.ArrayIndexOutOfBoundsException from RemoteDelivery
> ------------------------------------------------------------
>
>          Key: JAMES-316
>          URL: http://nagoya.apache.org/jira/browse/JAMES-316
>      Project: James
>         Type: Bug
>   Components: Remote Delivery
>     Versions: 2.2.1
>  Environment: Windows XP
>     Reporter: Bradley D. Brown
>  Attachments: config.xml
>
> When I look in the mailet logs, I see pages and pages of errors like this:
> 12/08/04 14:31:01 INFO  James.Mailet: RemoteDelivery: Exception caught in RemoteDelivery.run()
> java.lang.ArrayIndexOutOfBoundsException: 10
> 	at org.apache.james.transport.mailets.RemoteDelivery.getNextDelay(RemoteDelivery.java:981)
> 	at org.apache.james.transport.mailets.RemoteDelivery.access$000(RemoteDelivery.java:93)
> 	at org.apache.james.transport.mailets.RemoteDelivery$MultipleDelayFilter.accept(RemoteDelivery.java:155)
> 	at org.apache.james.mailrepository.AvalonSpoolRepository.accept(AvalonSpoolRepository.java:156)
> 	at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:901)
> 	at java.lang.Thread.run(Unknown Source)
> 12/08/04 14:31:01 INFO  James.Mailet: RemoteDelivery: Exception caught in RemoteDelivery.run()
> java.lang.ArrayIndexOutOfBoundsException: 2
> 	at org.apache.james.transport.mailets.RemoteDelivery.getNextDelay(RemoteDelivery.java:981)
> 	at org.apache.james.transport.mailets.RemoteDelivery.access$000(RemoteDelivery.java:93)
> 	at org.apache.james.transport.mailets.RemoteDelivery$MultipleDelayFilter.accept(RemoteDelivery.java:155)
> 	at org.apache.james.mailrepository.AvalonSpoolRepository.accept(AvalonSpoolRepository.java:156)
> 	at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:901)
> 	at java.lang.Thread.run(Unknown Source)
> Email does not appear to be delivered, my startup is exceptionally slow, but that may
be a different issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message