This is the full Error:
java.lang.ClassCastException: 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
at com.ll.io.GeoImageReader.readTif(GeoImageReader.java:54)
at com.ll.cidb.server.MapsServlet.doGet(MapsServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at 
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

On Monday, October 28, 2013 3:32:42 PM UTC-4, Sean wrote:
>
> I'm trying to read a .tiff on the back end of my server. I do:
>
> [...]
> FileImageInputStream fis = new FileImageInputStream(new File(p_tifName));
> Object o = ImageIO.getImageReadersByFormatName(
> "tiff").next();
> TIFFImageReader reader = (TIFFImageReader)o;
> reader.setInput(fis);
> [...]
>
> If I run this code in the Servlet via a main() it works fine. But when 
> running in Dev Mode, I get the error:
> java.lang.ClassCastException: 
> com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to 
> com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
>
> I have the imageIO.jar on the class path. Everything seems happy, except 
> in Dev mode. Does anyone have any ideas? I'm at a loss at how to get around 
> an error saying a class can't be casted to itself. 
>
> -Sean
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to