title: Thread [main] (Suspended (exception ZipException))
body: <p>I am using apache spark. I am getting the following exception when i try to debug the application. There are no errors in the project. I am trying to run a simple wordcount application.</p>
  
  <pre><code>Thread [main] (Suspended (exception ZipException))  
      owns: JarFile  (id=32)  
      owns: URLClassPath  (id=33) 
      owns: Object  (id=34)   
      ZipFile.read(long, long, long, byte[], int, int) line: not available [native method]    
      ZipFile.access$1400(long, long, long, byte[], int, int) line: not available 
      ZipFile$ZipFileInputStream.read(byte[], int, int) line: not available   
      ZipFile$ZipFileInflaterInputStream.fill() line: not available   
      ZipFile$ZipFileInflaterInputStream(InflaterInputStream).read(byte[], int, int) line: not available  
      IOUtils.readFully(InputStream, int, boolean) line: not available    
      JarFile.getBytes(ZipEntry) line: not available  
      JarFile.checkForSpecialAttributes() line: not available 
      JarFile.hasClassPathAttribute() line: not available 
      JavaUtilJarAccessImpl.jarFileHasClassPathAttribute(JarFile) line: not available 
      URLClassPath$JarLoader.getClassPath() line: not available   
      URLClassPath.getLoader(int) line: not available 
      URLClassPath.getNextLoader(int[], int) line: not available  
      URLClassPath.getResource(String, boolean) line: not available   
      URLClassLoader$1.run() line: not available  
      URLClassLoader$1.run() line: not available  
      AccessController.doPrivileged(PrivilegedExceptionAction&lt;T&gt;,    AccessControlContext) line: not available [native method]    
      Launcher$AppClassLoader(URLClassLoader).findClass(String) line: not available   
      Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available 
      Launcher$AppClassLoader.loadClass(String, boolean) line: not available  
      Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available  
      LauncherHelper.checkAndLoadMain(boolean, int, String) line: not available
  </code></pre>
  
  <p>Here is the code snippet..</p>
  
  <pre><code>SparkConf sparkConf = new   SparkConf().setAppName("JavaSparkSQL").setMaster("local");   
  JavaSparkContext ctx = new JavaSparkContext(sparkConf);
  // SQLContext sqlContext = new SQLContext(ctx);
  JavaRDD&lt;String&gt; lines = ctx.textFile("file.txt");
  JavaRDD&lt;String&gt; words = lines.flatMap(new FlatMapFunction&lt;String, String&gt;() {
  public Iterable&lt;String&gt; call(String s) {
       System.out.println("hello");
  System.out.println(Arrays.asList(s.split(" ")));
  return Arrays.asList(s.split(" "));
  }
  });
  </code></pre>