title: how to solve unparseable date ""
body: <p>I am gonna ask you guys something I give on to :( I want to parse 56 atribute seperated by tab on each row to database but when I run, there is error:</p>
  <blockquote>
  <p>12:39:12,452 INFO  [com.daksa.jsfconsolidated.beans.FetchBean] (default task-3) Masuk Fungsi Fetch Data Controller
  12:39:12,454 INFO  [com.daksa.jsfconsolidated.beans.FetchBean] (default task-3) DATA KE : 1
  12:39:12,455 SEVERE [com.daksa.jsfconsolidated.beans.FetchBean] (default task-3) null: java.text.ParseException: Unparseable date: &quot;&quot;
  at java.base/java.text.DateFormat.parse(DateFormat.java:395)
  at deployment.Consolidated-JSF-0.war//com.daksa.jsfconsolidated.beans.FetchBean.save(FetchBean.java:225)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  at javax.el.api@2.0.0.Final//javax.el.ELUtil.invokeMethod(ELUtil.java:245)</p>
  </blockquote>
  <p>Here is my code especially on FetchBean:225 (dataWork)</p>
  <pre><code>try {
          BufferedReader buf = new BufferedReader(new FileReader(&quot;D:/fetchfile/nasabah&quot;));
          ArrayList&lt;String&gt; words = new ArrayList&lt;&gt;();
          String lineJustFetched = null;
          String[] wordsArray;
          int iterasi = 1;
          while (true) {
              lineJustFetched = buf.readLine();
              if (lineJustFetched == null) {
                  break;
              } else {
                  wordsArray = lineJustFetched.split(&quot;\t&quot;);
                  for (String each : wordsArray) {
                      words.add(each);
                      if (iterasi % 55 == 0) {
                          LOG.info(&quot;DATA KE : {}&quot;, iterasi / 55);
  
                          
                          Date reportDate = format.parse(words.get(0));
                          Date birthDate = format.parse(words.get(19));
                          Date dateWork = format.parse(words.get(28));
                          
                          nasabahModel.setReportDate(reportDate);
                          nasabahModel.setCustomerInformationNumber(words.get(1));
                          nasabahModel.setCustomerName(words.get(2));
                          .........
                          nasabahModel.setCompanyName(words.get(27));
                          nasabahModel.setDateOfWork(dateWork);
                          ...........
                          words.clear();
                      }
                      iterasi++;
                  }
              }
              controller.addNasabah(nasabahModel);
          }
          buf.close();
          LOG.info(&quot;Nasabah READ AND SAVE : DONE&quot;);
      } catch (Exception ex) {
          java.util.logging.Logger.getLogger(FetchBean.class.getName()).log(Level.SEVERE, null, ex);
      }
  </code></pre>
  <p>Please, I need you guys help, I hope I will find the good answer here, thanks and good days^^</p>