Search:

Type: Posts; User: copeg

Search: Search took 0.23 seconds.

  1. Replies
    12
    Views
    4,534

    Re: Sending SMS in java

    That println statement is for your benefit, not the code. It lets you see the values of variables through the runtime of a program. I doubt it prints anything as you try to access poll as an object...
  2. Replies
    12
    Views
    4,534

    Re: Sending SMS in java

    You will still get an error if you follow my advice from my previous post. What did it print out? The point of my previous post was for you to determine what is null using println's, then backtrack...
  3. Replies
    12
    Views
    4,534

    Re: Sending SMS in java

    Are you sure what the status of the variables on that line are? Try debugging by adding some println statements in there to make sure your variables are not null. For example


    if ( poll == null...
  4. Replies
    12
    Views
    4,534

    Re: Sending SMS in java

    Read the API for SynchronousQueue.poll, null is returned if no element is available. Suggest you first check the size of the queue first before trying to remove and cast something that isn't there.
  5. Replies
    12
    Views
    4,534

    Re: Sending SMS in java

    That still doesn't help. The exception has a line number in it (350), which doesn't seem to match up to anything in your code...it is important to tell us where that is. In more general terms, should...
  6. Replies
    12
    Views
    4,534

    Re: Sending SMS in java

    Please read the Welcome Announcement, in it you will find instructions on how to use the code tags which makes your code actually readable (I have edited your post to input the tags).

    You have...
Results 1 to 6 of 6