Hi there,
I can debug and fix the issue you are having. I have extensive experience with Java and HTTP protocols and clients in it. And have actually personally run in to this issue multiple times in the past, all of them for completely different reasons.
That is the nature of the beast in this case, and the Sun Java security package unfortunately is very quirky and it requires things done in a very specific manner.
I can fix the issue for you anyway. We can get started and get this wrapped up any time you are ready to begin.
If you have any questions, don't hesitate to let me know. Look forward to hearing from you and working with you.
Regards,
V