Well, the error message concerns the failure of creating a texture, which happens way before you create the sprite. You seem to create a texture of 0x0 size, and that won't work.
If you can't figure out what's wrong, please post the code that you use for loading your texture?