Navitabs doesn't work with Export to Word
Asked by David Hergert _PAYX_:

I tried submitting an issue using Navitabs JIRA Instance, but I logged in and still don't have permission to create issues so I put it here.

When you have a page with Tabs and click Tools \> Export to Word, you get a error page. Export to PDF works as expected. The error in the logs has to do with encoding.

```
2014-07-17 10:09:06,805 ERROR [http-8090-146] [ContainerBase.[Standalone].[localhost].[/]] log Unhandled exception occurred whilst decorating page -- url: /exportword | userName: dhergert | referer: http://wiki.example.com/display/SPACE/PageNamejava.lang.NullPointerException        at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:226)        at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:299)        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1375)        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)        at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1354)        at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2107)        at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2075)        at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1770)        at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749)        at com.atlassian.confluence.servlet.ExportWordPageServer.outputWordDocument(ExportWordPageServer.java:245)        at com.atlassian.confluence.servlet.ExportWordPageServer.service(ExportWordPageServer.java:172)        at com.atlassian.confluence.servlet.SpringManagedServlet.service(SpringManagedServlet.java:64)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.wittified.filters.CheckAccessFilter.doFilter(CheckAccessFilter.java:109)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.mywork.client.filter.ServingRequestsFilter.doFilter(ServingRequestsFilter.java:37)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.prettyurls.filter.PrettyUrlsDispatcherFilter.doFilter(PrettyUrlsDispatcherFilter.java:60)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter.doFilter(PrettyUrlsSiteMeshFilter.java:70)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.prettyurls.filter.PrettyUrlsMatcherFilter.doFilter(PrettyUrlsMatcherFilter.java:56)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)        at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)...
```


Answers:
author: Remo Siegwart
body: This is probably caused by a broken remote image on the same page: <https://confluence.atlassian.com/display/CONFKB/NullPointerException+at+javax.mail.internet.MimeUtility.getEncoding+When+Exporting+Page+to+Word>


author: David Hergert _PAYX_
body: This will be tracked on <https://bitvoodoo.atlassian.net/browse/NAVITABS-20>


Tags: addon-ch.bitvoodoo.confluence.plugins.navitabs

confluence-administration