javax.mail.MessagingException: Unable to load BODYSTRUCTURE

JIRA | Andy Brook | 1 year ago
  1. 0

    {noformat} 2015-07-03 11:34:36,520 [pool-1163212-thread-1] INFO MessageSourceImapJavaMailImpl -[apmgserviceoperations.atlassian.net]-[/app]- Processing message 1/3 - Subject:4b594d0a9d1c5d00c7a6e19c890489b5 2015-07-03 11:34:38,952 [pool-1163212-thread-1] ERROR ContentTypeMapTask -[apmgserviceoperations.atlassian.net]-[/app]- Unknown error processing email Unable to load BODYSTRUCTURE javax.mail.MessagingException: Unable to load BODYSTRUCTURE at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1306) ~[mail-1.4.7.jar:1.4.7] at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:465) ~[mail-1.4.7.jar:1.4.7] at com.thepluginpeople.hydra.util.mail.HydraMailUtils.getMultipart(HydraMailUtils.java:464) ~[hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.util.mail.HydraMailUtils.iterateParts(HydraMailUtils.java:324) ~[hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.util.mail.MessageHeaderPreProcessingTask.processMimeMessage(MessageHeaderPreProcessingTask.java:63) ~[hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.util.mail.HydraMessageMimeImpl.<init>(HydraMessageMimeImpl.java:50) [hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.util.mail.HydraMessageBuilder.inbound(HydraMessageBuilder.java:53) [hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessageProcessorServiceJiraExceptionHandling.preProcess(MessageProcessorServiceJiraExceptionHandling.java:136) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessageProcessorServiceJiraExceptionHandling.processMessage(MessageProcessorServiceJiraExceptionHandling.java:156) [hydra-service-1.1.16.jar:na] at sun.reflect.GeneratedMethodAccessor793.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_72] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_72] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) [spring-tx-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) [spring-tx-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) [spring-tx-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at com.sun.proxy.$Proxy177.processMessage(Unknown Source) [na:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl.processMessage(MessagePollingServiceImpl.java:188) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl$MessageProcessorImpl.apply(MessagePollingServiceImpl.java:207) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessageSourceJavaMailAbstract.processMessages(MessageSourceJavaMailAbstract.java:99) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl.poll(MessagePollingServiceImpl.java:236) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl$2$1.call(MessagePollingServiceImpl.java:140) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl$2$1.call(MessagePollingServiceImpl.java:135) [hydra-service-1.1.16.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_72] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_72] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_72] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_72] {noformat} Seems to be related to - https://confluence.atlassian.com/display/JIRAKB/'MessagingException+creating+comment+Unable+to+load+BODYSTRUCTURE'+Due+to+Digitally+Signed+Email Attached is the original. If I load it, I can run it? With 'use pre-processed message' enabled, there should be no difference between the message used 'live', but I still see the exceptions in sdbtail?

    JIRA | 1 year ago | Andy Brook
    javax.mail.MessagingException: Unable to load BODYSTRUCTURE
  2. 0

    {noformat} 2015-07-03 11:34:36,520 [pool-1163212-thread-1] INFO MessageSourceImapJavaMailImpl -[apmgserviceoperations.atlassian.net]-[/app]- Processing message 1/3 - Subject:4b594d0a9d1c5d00c7a6e19c890489b5 2015-07-03 11:34:38,952 [pool-1163212-thread-1] ERROR ContentTypeMapTask -[apmgserviceoperations.atlassian.net]-[/app]- Unknown error processing email Unable to load BODYSTRUCTURE javax.mail.MessagingException: Unable to load BODYSTRUCTURE at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1306) ~[mail-1.4.7.jar:1.4.7] at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:465) ~[mail-1.4.7.jar:1.4.7] at com.thepluginpeople.hydra.util.mail.HydraMailUtils.getMultipart(HydraMailUtils.java:464) ~[hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.util.mail.HydraMailUtils.iterateParts(HydraMailUtils.java:324) ~[hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.util.mail.MessageHeaderPreProcessingTask.processMimeMessage(MessageHeaderPreProcessingTask.java:63) ~[hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.util.mail.HydraMessageMimeImpl.<init>(HydraMessageMimeImpl.java:50) [hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.util.mail.HydraMessageBuilder.inbound(HydraMessageBuilder.java:53) [hydra-commons-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessageProcessorServiceJiraExceptionHandling.preProcess(MessageProcessorServiceJiraExceptionHandling.java:136) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessageProcessorServiceJiraExceptionHandling.processMessage(MessageProcessorServiceJiraExceptionHandling.java:156) [hydra-service-1.1.16.jar:na] at sun.reflect.GeneratedMethodAccessor793.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_72] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_72] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) [spring-tx-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) [spring-tx-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) [spring-tx-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] at com.sun.proxy.$Proxy177.processMessage(Unknown Source) [na:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl.processMessage(MessagePollingServiceImpl.java:188) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl$MessageProcessorImpl.apply(MessagePollingServiceImpl.java:207) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessageSourceJavaMailAbstract.processMessages(MessageSourceJavaMailAbstract.java:99) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl.poll(MessagePollingServiceImpl.java:236) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl$2$1.call(MessagePollingServiceImpl.java:140) [hydra-service-1.1.16.jar:na] at com.thepluginpeople.hydra.service.MessagePollingServiceImpl$2$1.call(MessagePollingServiceImpl.java:135) [hydra-service-1.1.16.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_72] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_72] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_72] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_72] {noformat} Seems to be related to - https://confluence.atlassian.com/display/JIRAKB/'MessagingException+creating+comment+Unable+to+load+BODYSTRUCTURE'+Due+to+Digitally+Signed+Email Attached is the original. If I load it, I can run it? With 'use pre-processed message' enabled, there should be no difference between the message used 'live', but I still see the exceptions in sdbtail?

    JIRA | 1 year ago | Andy Brook
    javax.mail.MessagingException: Unable to load BODYSTRUCTURE
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    JavaMail can't parse BODYSTRUCTURE for inline attachment

    GitHub | 11 months ago | DavidWhitlock
    javax.mail.MessagingException: Unable to load BODYSTRUCTURE

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.mail.MessagingException

      Unable to load BODYSTRUCTURE

      at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE()
    2. JavaMail API (compat)
      IMAPMessage.getContentType
      1. com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1306)[mail-1.4.7.jar:1.4.7]
      2. com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:465)[mail-1.4.7.jar:1.4.7]
      2 frames
    3. com.thepluginpeople.hydra
      MessageProcessorServiceJiraExceptionHandling.processMessage
      1. com.thepluginpeople.hydra.util.mail.HydraMailUtils.getMultipart(HydraMailUtils.java:464)[hydra-commons-1.1.16.jar:na]
      2. com.thepluginpeople.hydra.util.mail.HydraMailUtils.iterateParts(HydraMailUtils.java:324)[hydra-commons-1.1.16.jar:na]
      3. com.thepluginpeople.hydra.util.mail.MessageHeaderPreProcessingTask.processMimeMessage(MessageHeaderPreProcessingTask.java:63)[hydra-commons-1.1.16.jar:na]
      4. com.thepluginpeople.hydra.util.mail.HydraMessageMimeImpl.<init>(HydraMessageMimeImpl.java:50)[hydra-commons-1.1.16.jar:na]
      5. com.thepluginpeople.hydra.util.mail.HydraMessageBuilder.inbound(HydraMessageBuilder.java:53)[hydra-commons-1.1.16.jar:na]
      6. com.thepluginpeople.hydra.service.MessageProcessorServiceJiraExceptionHandling.preProcess(MessageProcessorServiceJiraExceptionHandling.java:136)[hydra-service-1.1.16.jar:na]
      7. com.thepluginpeople.hydra.service.MessageProcessorServiceJiraExceptionHandling.processMessage(MessageProcessorServiceJiraExceptionHandling.java:156)[hydra-service-1.1.16.jar:na]
      7 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor793.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_72]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_72]
      3 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)[spring-tx-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)[spring-tx-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)[spring-tx-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      3 frames
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      2 frames
    8. com.sun.proxy
      $Proxy177.processMessage
      1. com.sun.proxy.$Proxy177.processMessage(Unknown Source)[na:na]
      1 frame
    9. com.thepluginpeople.hydra
      MessagePollingServiceImpl$2$1.call
      1. com.thepluginpeople.hydra.service.MessagePollingServiceImpl.processMessage(MessagePollingServiceImpl.java:188)[hydra-service-1.1.16.jar:na]
      2. com.thepluginpeople.hydra.service.MessagePollingServiceImpl$MessageProcessorImpl.apply(MessagePollingServiceImpl.java:207)[hydra-service-1.1.16.jar:na]
      3. com.thepluginpeople.hydra.service.MessageSourceJavaMailAbstract.processMessages(MessageSourceJavaMailAbstract.java:99)[hydra-service-1.1.16.jar:na]
      4. com.thepluginpeople.hydra.service.MessagePollingServiceImpl.poll(MessagePollingServiceImpl.java:236)[hydra-service-1.1.16.jar:na]
      5. com.thepluginpeople.hydra.service.MessagePollingServiceImpl$2$1.call(MessagePollingServiceImpl.java:140)[hydra-service-1.1.16.jar:na]
      6. com.thepluginpeople.hydra.service.MessagePollingServiceImpl$2$1.call(MessagePollingServiceImpl.java:135)[hydra-service-1.1.16.jar:na]
      6 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)[na:1.7.0_72]
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_72]
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_72]
      4. java.lang.Thread.run(Thread.java:745)[na:1.7.0_72]
      4 frames