• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JEXCEL copy a File , cannot able to open ?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

When i try the above program most of the time its giving null pointer exception or some times copied xls file is not in the proper format to open (I am using Ubuntu Linux OS)but if i open the "Sample_WordMasterTemplate.xls" and do so editing and save and close it then every thing works fine .. only when i download a file from network and try to process through JExcel this problem arises otherwise everything is working fine .
 
Saloon Keeper
Posts: 7327
170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any particular reason you're not simply using FileInputStream/FileOutputStreamm for copying the file? Seems like there would be less chance for problems.
 
vicky ece
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:Any particular reason you're not simply using FileInputStream/FileOutputStreamm for copying the file? Seems like there would be less chance for problems.



Thanks for you reply ....

I have tried with FileInputStream/FileOutputStreamm the same problem arises.

And also i find that, if i have a cell with formula then every things works fine[Actually NullPointer Exception is caused by some method in Jexcel Api class i found that by Debugging , so i tried with adding a formula in a cell then uploaded to my mail and then downloaded from my Mail every thing works fine but without that one the same problem arises] ...................
 
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic