[Bluej-discuss] Problem using submitter -- MIME issues
Cecilia Vargas
C.A.Vargas at kent.ac.uk
Wed Sep 12 15:25:04 BST 2007
Hello everyone,
The submitter has been fixed and now works with Java 6. You can get the
new version of the submitter in the bluej.org website. Note that you
need this version only if you are using Java 6. The previous version,
the one that ships with BlueJ 2.2, works well with Java 4 and 5.
Thanks to Stephen Edwards for pointing out the source of the problem,
that Java 6 now ships with the Java Activation Framework (JAF), and to
Bill Shannon at Sun Microsystems for informing us how JAF loads classes.
Cecilia and Ian
Brad Richards wrote:
> Hi all,
>
> I had my students use the submitter to E-mail their projects to me
> last semester. Unfortunately, after updating Java and BlueJ for the
> new semester, the submission process no longer works. The output
> from the bluej-debuglog file is shown below. It looks to me like the
> submitter has built the .zip file containing the submitted files, but
> throws an exception when trying to attach it to the outgoing E-mail
> since it can't find the appropriate MIME information. It must be a
> configuration issue of some sort, since submission works from Macs
> but not the PCs. Has anyone else encountered this? More
> importantly, does anyone know how to fix this?
>
> Thanks,
>
> Brad Richards
>
>
>
> BlueJ run started: Wed Sep 05 10:10:05 PDT 2007
> BlueJ version 2.2.0
> Java version 1.6.0_02
> Virtual machine: Java HotSpot(TM) Client VM 1.6.0_02-b06 (Sun
> Microsystems Inc.)
> Running on: Windows XP 5.1 (x86)
> Java Home: C:\Program Files\Java\jdk1.6.0_02\jre
> ----
> Connected to debug VM via dt_socket transport...
> Communication with debug VM fully established.
> javax.mail.MessagingException: IOException while sending message;
> nested exception is:
> javax.activation.UnsupportedDataTypeException: no object DCH
> for MIME type multipart/mixed;
> boundary="----=_Part_0_10183200.1189012834180"
> at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
> at
> org.bluej.extensions.submitter.transport.SmtpSession.disconnect(SmtpSession.java:222)
> at
> org.bluej.extensions.submitter.transport.JarSession.disconnect(JarSession.java:159)
> at
> org.bluej.extensions.submitter.SubmitDialog.sendFiles(SubmitDialog.java:362)
> at
> org.bluej.extensions.submitter.SubmitDialog.submitWork(SubmitDialog.java:477)
> at
> org.bluej.extensions.submitter.SubmitDialog.access$500(SubmitDialog.java:14)
> at
> org.bluej.extensions.submitter.SubmitDialog$SubmitThread.run(SubmitDialog.java:609)
> Caused by: javax.activation.UnsupportedDataTypeException: no object
> DCH for MIME type multipart/mixed;
> boundary="----=_Part_0_10183200.1189012834180"
> at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
> at javax.activation.DataHandler.writeTo(DataHandler.java:301)
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
> at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)
> ... 6 more
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>
More information about the bluej-discuss
mailing list