Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Sip-Servlets MSS-1.8.0.FINAL
Roadmap-Fix
New issue 122 by [email protected]: Multipart issue with
SipServletMessageImpl
http://code.google.com/p/sipservlets/issues/detail?id=122
What steps will reproduce the problem?
1. Send a message to MSS
2. Try to use the setContent() method for a SipServletRequest object with a
byte[] or a MimeMultipart as the first object (content).
3. Exceptions in SipServletMessageImpl
What is the expected output? What do you see instead?
I have some errors when I use a MimeMultipart object:
java.lang.IllegalArgumentException: Parse error reading content
javax.mail.internet.MimeMultipart
at
org.mobicents.servlet.sip.message.SipServletMessageImpl.setContent(SipServletMessageImpl.java:1344)
at
org.mobicents.servlet.sip.message.SipServletRequestImpl.setContent(SipServletRequestImpl.java:2148)
........
Caused by: java.lang.ClassCastException: javax.mail.internet.MimeMultipart
cannot be cast to javax.mail.Multipart
Moreover I can't use a byte[] object.
What version of the product are you using? On what operating system?
Mobicents Sip Servlets 1.7 on linux
Please provide any additional information below.
The specification of the setContent() method in the SipServletMessage
interface says:
"Containers are required to handle byte[] content with any MIME type."
but it seems that SipServletMessageImpl do not support byte[].