[jboss-user] [JBoss Microcontainer] - EOFException from ShrinkWrap Deployment into MCAnn

Ales Justin do-not-reply at jboss.com
Tue May 11 16:54:45 EDT 2010


Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion

"EOFException from ShrinkWrap Deployment into MCAnn"

To view the discussion, visit: http://community.jboss.org/message/542418#542418

--------------------------------------------------------------
> Anyone can give me some context as to what they're trying to do, and why they're using GZIPInputStream?  
> 
Weird, it looks like it's assuming that there exists a pre-indexed version of AnnotationRepository.
e.g. this is a notion from Papaki, where one would do standalone scan, and serialize pre-indexed repo instance into a jar

You need to check why it returns non-null input stream from this code:

protected InputStream getMcAnnInputStream(URL url)
   {
      try
      {
 
         String urlString = url.toExternalForm();
         if (urlString.endsWith("/") == false)
            urlString += "/";
         urlString += AnnotationRepository.MCANN_PATH;
         URL mcannURL = new URL(urlString);
         return mcannURL.openStream();
      }
      catch (IOException e)
      {
         if (log.isTraceEnabled())
            log.trace("Cannot access mcann.ser file: " + e);
         return null;
      }
   }


--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/542418#542418]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100511/b1e594b5/attachment.html 


More information about the jboss-user mailing list