SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

no object DCH for MIME type application/atom+xml #171

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install java 6 on Ubuntu 9.04
2. Download mail.jar and activation.jar from Sun per instructions and put
in classpath
3. Upload a photo or document using gdata framework v1.35
4. Try both with or without
service.setChunkedMediaUpload(MediaService.NO_CHUNKED_MEDIA_REQUEST);
5. Try both with or without activation.jar in the classpath (seems to be
included in Java 6)

What is the expected output? What do you see instead?
Expected photo or document to be succesfully uploaded to server.  Instead
get Caused by: javax.activation.UnsupportedDataTypeException: no object DCH
for MIME type application/atom+xml
    at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:877)
    at javax.activation.DataHandler.writeTo(DataHandler.java:302)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:874)
    at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:444)
    at
com.google.gdata.wireformats.output.media.MediaMultipartGenerator.generate(Media
MultipartGenerator.java:58)
    at
com.google.gdata.wireformats.output.media.MediaMultipartGenerator.generate(Media
MultipartGenerator.java:37)
    at com.google.gdata.client.Service.writeRequestData(Service.java:1831)
    at
com.google.gdata.client.media.MediaService.updateMedia(MediaService.java:497)
    at com.google.gdata.data.media.MediaEntry.updateMedia(MediaEntry.java:159)
    at goofs.docs.Documents.updateDocumentContent(Unknown Source)
    ... 10 more

What version of the product are you using? On what operating system?
Linux/Ubuntu 9.04 with gdata framework v1.35, jaf-1.1.1 and javamail-1.4.1
.
java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)

Please provide any additional information below.

Works ok if I use Java 5. I used the gdata libraries in binary form and did
not compile them myself.

Original issue reported on code.google.com by bigwy...@gmail.com on 14 Aug 2009 at 3:46

GoogleCodeExporter commented 9 years ago
Duplicate of following issue:
http://code.google.com/p/gdata-java-client/issues/detail?id=75

Original comment by vbarat...@gmail.com on 24 Aug 2009 at 6:47

GoogleCodeExporter commented 9 years ago

Original comment by vbarat...@gmail.com on 24 Aug 2009 at 6:47