0 Replies Latest reply: May 18, 2012 1:24 AM by 938178 RSS

    Unknown image type error

    938178
      Hi,

      I raised java version from 1.6.0_25 to 1.6.0.31 and now i'm gettin' error in my app durring receive email with jpeg and gif attachment. With others attachment it looks fine (ex. png).

      error line:

      IMAPBodyPart.getDataHandler().getContent();

      stack trace:

      javax.activation.UnsupportedDataTypeException: Unknown image type image/gif; name=test-201.gif
           at org.apache.geronimo.activation.handlers.AbstractImageHandler.getContent(AbstractImageHandler.java:57)
           at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:775)
           at javax.activation.DataHandler.getContent(DataHandler.java:522)
           at com.springloops.ws.scripting.services.EmailScriptingService.iterateThrowContentFromMimeMultipart(EmailScriptingService.java:541)
           at com.springloops.ws.scripting.services.EmailScriptingService.iterateThrowMessages(EmailScriptingService.java:170)
           at com.springloops.ws.scripting.services.EmailScriptingService.receiveEmailsAndUpdateTickets(EmailScriptingService.java:126)
           at com.springloops.ws.scripting.jobs.UpdateTicketsViaEmailJob.run(UpdateTicketsViaEmailJob.java:22)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)
           at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
           at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
           at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:680)

      Maybe it's not caused with upgrade java, but i'll be regard if some if you got explanation.