Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Missing start boundary

843834Aug 18 2004 — edited Feb 3 2005
Hi.

I'm using SOAP Http messages with attachments. I send images, text, and audio files with soap attachments. It function very well in many machines, but we can't do function it in two specific machines. I don't know exacly.

Sometimes the program don't found the attachment. And we prove specific messages in all machines, and i'm sure that the messages are identic. But in some machines function and in other don't!!!

Would be a library problem? or a SO problem?

Any help would be really appreciated!!.

We are using tomcat 4.1.30, with SDK 1.4.2_04 and axis 1.0

the code is the following:

for (Iterator ai = reqMsg.getAttachments(); ai.hasNext();)
{
AttachmentPart p = (AttachmentPart) ai.next();
DataHandler dh = p.getDataHandler();
BufferedInputStream bis = new BufferedInputStream(dh.getInputStream());
MimeMultipart multipart = new javax.mail.internet.MimeMultipart(dh.getDataSource());
// Here the code throws an exception
c = multipart.getCount()
}


The exception is
javax.mail.MessagingException: Missing start boundary
at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:284)
at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:159)

I re-re-re analize the problem and i think isn't the code, because it function in many machines. Maybe something about the libraries?


Any help or ideas would be really appreciated!!.


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2005
Added on Aug 18 2004
4 comments
366 views