[jboss-dev-forums] [Design of POJO Server] - Re: HDScanner exception

anil.saldhana@jboss.com do-not-reply at jboss.com
Mon Jun 9 17:58:55 EDT 2008


  |  /*  
  |      * Note: the semantics of FileURLConnection object is that the
  |      * results of the various URLConnection calls, such as
  |      * getContentType, getInputStream or getContentLength reflect
  |      * whatever was true when connect was called.  
  |      */
  |     public void connect() throws IOException {
  |         if (!connected) {
  |             try {
  |                 filename = file.toString();
  |                 isDirectory = file.isDirectory();
  |                 if (isDirectory) {
  |                     files = (List) Arrays.asList(file.list());
  |                 } else {
  | 
  | 

Scott, the last line.......   Every method in FileURLConnection apparently calls initializeHeaders() internally which always calls connect().  So maybe as a start, we need to see which file in question leads to this NPE????

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156855#4156855

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156855



More information about the jboss-dev-forums mailing list