• Post Reply Bookmark Topic Watch Topic
  • New Topic

NullPointerError and various helps  RSS feed

 
Aaron Ng
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,i just registered today and i'm kind of stuck at an assignment right now
when i try to get the messages it gives me an error here is the code

this is under the class MailServer



i'm not sure if this has something to do with it but here's the code from another class known as mailClient


thanks
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Can you show us the error you get?
 
Aaron Ng
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:Welcome to the Ranch!

Can you show us the error you get?


nevermind i got it working but i got another problem
when i try to post it in uppercase and send it to person it won't send it
maybe i did the coding wrong or something but the logic looked right

here are the codes





 
Paul Witten
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aaron Ng wrote:when i try to post it in uppercase and send it to person it won't send it
maybe i did the coding wrong or something but the logic looked right


What is the exact error message Aaron?

Can you step through it in the debugger and see if all the params are being passed?

If no debugger can you put some debug code in the method before the send to output the params?

You need to include error message text if there is one, and if no error then you have to debug with something like this for each param:



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!