apache - encountering poi exceptions while running my Java code -
apache - encountering poi exceptions while running my Java code -
the exceptions :
exception in thread "awt-eventqueue-1" org.apache.poi.poixmlexception: org.apache.poi.openxml4j.exceptions.invalidformatexception: bundle should contain content type part [m1.13] @ org.apache.poi.util.packagehelper.open(packagehelper.java:41) @ org.apache.poi.xssf.usermodel.xssfworkbook.<init>(xssfworkbook.java:218) @ defg.jbutton4actionperformed(defg.java:984) @ defg.access$900(defg.java:86) @ defg$9.actionperformed(defg.java:547) @ javax.swing.abstractbutton.fireactionperformed(abstractbutton.java:2022) ... lot more [edited brevity] code snipplet [copied comment]:
try { thread.sleep(1000); } grab (interruptedexception ex) { logger.getlogger(def.class.getname()).log(level.severe, null, ex); } seek { system.out.println("njfklasndjklasdnl"); file inputfile = new file(str1); file inputfile1 = new file (str2); xssfworkbook wb = new xssfworkbook(new fileinputstream(inputfile)); xssfworkbook wb1 =new xssfworkbook(new fileinputstream(inputfile1)); system.out.println(wb1.getnumberofsheets()); xssfsheet sheettemp=wb1.createsheet("temp"); xssfsheet sheeta= wb1.createsheet("repeatitions"); java apache
Comments
Post a Comment