[jitsi-dev] Failed to create SIP request from MessageFactory createRequest(String request)

Hi All,

I want to create basic Sip Request using javax.sip.message.MessageFactory createRequest(String request)
When created the request it got Bad Message on ParseException and if it put null/emptyString on String request it will got NullPointerException.
Just wonder what should I put on the Parameter to get this Sip Request created successfully.
Here what I read on the document:
Create a new SIP Request object based on a specific string value. This method parses the supplied string into a SIP Request. The request string should only consist of the SIP portion of the Request and not the content. Supplying a null argument creates an empty SIP Request which may be used to end out "keep alive" messages for a connection.

I dont really know what the document meant by "the request string should only consist of the SIP portion of the Request".
Anyone can explain this to me?

This exception when I put javax.sip.message.Request.INVITE:
[java] 10:25:48.637 SEVERE: impl.protocol.sip.Merge3ptyCallSipImpl.throwOperationFailedException().2743 Failed to create invite Request!
[java] java.text.ParseException: Bad message
[java] at gov.nist.javax.sip.parser.StringMsgParser.parseSIPMessage(StringMsgParser.java:185)
[java] at gov.nist.javax.sip.message.MessageFactoryImpl.createRequest(MessageFactoryImpl.java:736)
[java] at net.java.sip.communicator.impl.protocol.sip.SipMessageFactory.createRequest(SipMessageFactory.java:210)
[java] at net.java.sip.communicator.impl.protocol.sip.Merge3ptyCallSipImpl.setInvite3ptyCall(Merge3ptyCallSipImpl.java:383)
[java] at net.java.sip.communicator.impl.gui.main.call.CallManager$MergeExistingCalls.run(CallManager.java:2386)

This exception when I put null or "" (empty string):

10:19:42.839 SEVERE: util.UtilActivator.uncaughtException().89 An uncaught exception occurred in thread=Thread[Thread-125,6,main] and message was: null
java.lang.NullPointerException
at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getListeningPoint(ProtocolProviderServiceSipImpl.java:1629)
at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getContactHeader(ProtocolProviderServiceSipImpl.java:1257)
at net.java.sip.communicator.impl.protocol.sip.SipMessageFactory.attachContactHeader(SipMessageFactory.java:562)
at net.java.sip.communicator.impl.protocol.sip.SipMessageFactory.attachScSpecifics(SipMessageFactory.java:506)
at net.java.sip.communicator.impl.protocol.sip.SipMessageFactory.createRequest(SipMessageFactory.java:211)

Thank you for any help.
Rgds/Dedy