User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 402,525 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,479 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 1559 | Replies: 3
Reply
Join Date: May 2007
Posts: 3
Reputation: ashitha is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ashitha ashitha is offline Offline
Newbie Poster

Help copy the file from a localsytem to another file

  #1  
May 12th, 2007
i am trying for copied the file from a local system to another file.but it displays the null pointer exception.y the null pointer exception is coming.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2006
Posts: 1,378
Reputation: masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough 
Rep Power: 8
Solved Threads: 120
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Virtuoso

Re: copy the file from a localsytem to another file

  #2  
May 12th, 2007
Could you be at least a LITLLE more specific. Post the entire error message, together with the code (abd use code tags) and mark with a comment, or something, the line referenced in the NullPointerException.

As far as to your question "y the null pointer exception is coming" (which I assume is supposed to be "Why am I getting a NullPointerException?") is, because you are using a reference that hasn't been defined.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,698
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 195
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: copy the file from a localsytem to another file

  #3  
May 12th, 2007
most likely cause: he's trying to use a serverside visualisation technology to perform clientside filesystem operations without understanding either the technology, why it's the wrong one, or the underlying programming languages, network protocols, or operating systems.

Recipe for disaster whatever way you look at it.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Mar 2007
Posts: 83
Reputation: rgtaylor is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 2
rgtaylor rgtaylor is offline Offline
Junior Poster in Training

Re: copy the file from a localsytem to another file

  #4  
May 18th, 2007
First, be a little nicer about how they wrote their question. NOT all people using these sites are native or even good English speakers...
If the question seems to make sense which this one does, don't complain about the language choice...
What I see is typical language for a Japanese or Korean trying to find help on an English site because there are few resources available int heir native languages.

That aside, jwenting, if you are not going to be productive then shut up... your post adds no value to this guys question, to the previous question or to daniweb at all...

Don't assume to know what he's trying to do, no one has asked him.... and as I have seen you know little about how the world works anyway...


Now, ashitha, null pointer, in the generic term, means what masijade has said and he is correct we will need more detail to better help you. Depending upon where the null pointing exception is being thrown, it can mean slightly different things... Such as if you create a file object without actually pointing it at a file... versus trying to use a variable name that hasn't been defined, versus etc.. So more specific will be needed to help...

Also, if you're a native English speaker and I insulted you by saying your sentences were like what I commonly see from Asians trying to write English, then I am sorry... if that is the case then perhaps you should clean up the English... If you ARE a non-native English speaker then you did a good job getting the message across and shouldn't be afraid to try ;-)

Peace,
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 7:09 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC