You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2007/10/09 10:56:50 UTC

[jira] Commented: (JAMES-820) java.io.IOException: Unknown encoding: 8-bit in AttachmentFileNameIs matcher

    [ https://issues.apache.org/jira/browse/JAMES-820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533304 ] 

Stefano Bagnara commented on JAMES-820:
---------------------------------------

Other mailets probably do not throw exception because they don't need to parse the message.

You just need to take care of the exception based on what you want to do when the mimemessage is invalid:
http://wiki.apache.org/james/HandlingExceptions

> java.io.IOException: Unknown encoding: 8-bit in AttachmentFileNameIs matcher
> ----------------------------------------------------------------------------
>
>                 Key: JAMES-820
>                 URL: https://issues.apache.org/jira/browse/JAMES-820
>             Project: James
>          Issue Type: Bug
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: 2.3.1
>         Environment: RHE Linux
> j2sdk1.4.2_13
>            Reporter: Ozkan Mehmedali
>
> We are getting quite a lot of these exceptions on our server:
> java.io.IOException: Unknown encoding: 8-bit                                                               
>         at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:106)              
>         at com.sun.mail.handlers.text_plain.getContent(text_plain.java:82)                                 
>         at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:789)                  
>         at javax.activation.DataHandler.getContent(DataHandler.java:536)                                   
>         at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1380)                               
>         at org.apache.james.core.MimeMessageCopyOnWriteProxy.getContent(MimeMessageCopyOnWriteProxy.java:34
> 3)                                                                                                         
>         at org.apache.james.transport.matchers.AttachmentFileNameIs.matchFound(AttachmentFileNameIs.java:16
> 2)                                                                                                         
>         at org.apache.james.transport.matchers.AttachmentFileNameIs.match(AttachmentFileNameIs.java:130)   
>         at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:357)                    
>         at org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:405)                
>         at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:309)                    
>         at java.lang.Thread.run(Thread.java:534)  
> We have other matchers/mailets called before AttachmentFileNameIs in our configuration but this is the only place the exception is thrown.

-- 
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org