Genesys Engage on-premises

 View Only

Discussion Thread View
Expand all | Collapse all

Email Server Java Error | java.io.EOFException: source exhausted prematurely

  • 1.  Email Server Java Error | java.io.EOFException: source exhausted prematurely

    Posted 02-21-2024 07:23

    Hi,

    We are facing an issue with Email Server Java, the mails are entering extremely slow and we find the following error. Has anyone seen this error before? Can you think of any solution?

    11:59:10.419 Std 20015 [MsgIn-1] <[pop-client_Ayuda]> JavaMail Exception.jakarta.mail.MessagingException: IOException;
      nested exception is:
        jakarta.mail.MessagingException: IOException;
      nested exception is:
        java.io.EOFException: source exhausted prematurely
        at com.genesyslab.icc.emailserver.MailDeliveryAgentGraph.getUnreadMessages(MailDeliveryAgentGraph.java:117)
        at com.genesyslab.icc.emailserver.MailDeliveryAgentImpl.getUnreadMessages(MailDeliveryAgentImpl.java:365)
        at com.genesyslab.icc.emailserver.InboundMessagingClient$SessionRunLoop.retrieveMessages(InboundMessagingClient.java:1202)
        at com.genesyslab.icc.emailserver.InboundMessagingClient$SessionRunLoop.run(InboundMessagingClient.java:1015)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at com.genesyslab.util.concurrent16.NamedThreadFactory$1.run(NamedThreadFactory.java:55)
        at java.lang.Thread.run(Unknown Source)
    Caused by: jakarta.mail.MessagingException: IOException;
      nested exception is:
        java.io.EOFException: source exhausted prematurely
        at jakarta.mail.internet.MimeMessage.parse(MimeMessage.java:338)
        at com.genesyslab.icc.emailserver.graph.GraphMessage.createFromStream(GraphMessage.java:69)
        at com.genesyslab.icc.emailserver.graph.util.GraphMailConverter.convert(GraphMailConverter.java:40)
        at com.genesyslab.icc.emailserver.graph.GraphFolder.getUnreadMessage(GraphFolder.java:559)
        at com.genesyslab.icc.emailserver.MailDeliveryAgentGraph.getUnreadMessages(MailDeliveryAgentGraph.java:87)
        ... 7 more
    Caused by: java.io.EOFException: source exhausted prematurely
        at okio.InflaterSource.read(InflaterSource.kt:52)
        at okio.GzipSource.read(GzipSource.kt:69)
        at okio.RealBufferedSource$inputStream$1.read(RealBufferedSource.kt:158)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read1(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at com.sun.mail.util.ASCIIUtility.getBytes(ASCIIUtility.java:278)
        at jakarta.mail.internet.MimeMessage.parse(MimeMessage.java:336)
        ... 11 more

    Thanks

    Regards


    #DigitalChannels

    ------------------------------
    Manuel Villajos Muñoz
    British Telecommunications PLC
    ------------------------------


  • 2.  RE: Email Server Java Error | java.io.EOFException: source exhausted prematurely

    Posted 02-27-2024 04:31

    Hi Manual

    At a quick google and guess I would think you have a corrupt email containing perhaps an attached file pretending/named to be a zip file but is not actually.



    ------------------------------
    Anders Vejen
    NetDesign A/S, a part of Nuuday A/S
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources