Yeah once my friend too I had this same issue and suggested him to wait and try later. And he did the same and it took 3 to 4 hours to get solved. Hope the same case with you, so wait and try later....
It doesn't matter where we sleep bed or floor, only the sleeping position and the posture matters. I too had suffered back pains at times and even had many sleepless nights. Then one my friend suggested me stretching exercises and also this site http://www.irehab.com , which helped me to get rid...