Open GoogleCodeExporter opened 9 years ago
After a frustrating couple of days I found that this problem only rears its
ugly head
in java 6. I switched to java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Server VM (build 1.5.0_16-b02, mixed mode) and the problem
went away.
Everything else was the same except for the java version. Weird.
Original comment by bigwy...@gmail.com
on 23 Oct 2008 at 10:43
Weird. Which version of Java Activation Framework did you see this issue on? I
believe the latest one is 1.1.1.
Original comment by vbarat...@gmail.com
on 24 Oct 2008 at 2:10
I have been using jaf-1.1.1 and javamail-1.4.1
Original comment by bigwy...@gmail.com
on 24 Oct 2008 at 5:08
hello
I am integrate the jsp Picasa code in my application ...
the application is running successfully but it is not working in webserver
& throw Exception org.apache.jasper.JasperException: Exception in JSP:
/createAlbum.jsp:49
& Line no 49 :PicasawebService service=new PicasawebService("exampleClient");
Original comment by starnet....@gmail.com
on 14 Nov 2008 at 12:23
Attachments:
There was an issue in V1.22 of the Java client when uploading. The latest
version of
the Java client contains a NO_CHUNKED_MEDIA_REQUEST property on MediaService
which
allows you to disable chunked requests if they are causing issues. Please
check if
that helps the issue, and refile a bug if it does not.
Original comment by mon...@gmail.com
on 6 Mar 2009 at 8:52
I still get this error even with the following line. I didn't try with Java 1.5.
myService.setChunkedMediaUpload(MediaService.NO_CHUNKED_MEDIA_REQUEST);
java 1.6.0_11
gdata java client lib 1.30.0
jaf 1.1.1
javamail 1.4.2
Original comment by yosi...@gmail.com
on 11 Mar 2009 at 1:55
I am still getting this error on Ubuntu 9.04 with gdata framework v1.35.
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)
I have tried with activation.jar 1.1.1 on the classpath and off the
classpath(as I
understand it is part of the Java 6 now). Still same problem. Any ideas what
could
be wrong? I still have no problem with Java 5.
Original comment by bigwy...@gmail.com
on 14 Aug 2009 at 3:24
bigwynnr,
Sounds like some kind of classpath issue.
1. Can you check if you are loading the activation.jar lib from java 1.6
framework or
from a third_party location included in CLASS_PATH?
2. Are you using the jars from the downloaded package (compiled in java 5) or
are
these jars came from recompiling the source code locally (java 6)?
Original comment by vbarat...@gmail.com
on 24 Aug 2009 at 6:46
Ok i tried with jaf 1.1.1 activation framework jar as well in java 6. Didnt
run into
any problem. Looks mostly like you are using a different JAF jar. Please
re-confirm
that the jaf that is loaded is the right one.
Original comment by vbarat...@gmail.com
on 24 Aug 2009 at 7:02
I run into this error in a different context. I have a Java application that
does
different things using the Doc List Data API. This app has a method that
uploads
files to my Google Docs. It works fine from Java. When I try to call the same
method from R using the rJava bridge I get the exception "Exception: no object
DCH
for MIME type application/atom+xml".
The arguments I pass in both cases are the same strings. I have about 30 java
methods that I call successfully in the R code but this one fails. I'm using
the
same jars in both cases. Cannot figure out why it fails from R.
Original comment by RDOCSD...@gmail.com
on 25 Aug 2009 at 9:56
I probably should have mentioned that I am calling this method in the context
of a fuse
filesystem which is interfaced through the fuse-j library (uses jni). That
might be
causing classloader problems somehow.
Original comment by ryan.m.w...@gmail.com
on 26 Aug 2009 at 12:39
Ryan,
It looks like the MIME mappings are not loaded correctly when run inside your
environment. These are loaded statically in
http://code.google.com/p/gdata-java-client/source/browse/trunk/java/src/com/goog
le/gdata/data/media/MediaMultipart.java
using loadMimeMappings() method.
Can you explicitly call MediaMultipart#loadMimeMappings in your code
initialization
and see if that helps?
Original comment by vbarat...@gmail.com
on 27 Aug 2009 at 1:51
A year later I finally figured out how to fix this issue. Since
activation.jar's
classes are now in rt.jar (the bootclasspath) since java 6, I needed to
explicitly
set the context classloader before any google api call that needed the custom
mime
mappings. This is because fuse-j was triggering api calls in a new thread which
evidently had the context classloader set such that the data handlers were
accessible. This was not an issue in java 5 since activation.jar was on the
bootclasspath. Please close this issue it is working for me now. Not sure if
it
makes sense to attempt to fix this inside the google libraries so that people
like me
won't run into this problem. Thank you for your help!
Original comment by ryan.m.w...@gmail.com
on 1 Oct 2009 at 12:18
Like one of the previous commenters, I have simple Java application that uploads
documents using the Documents List Data API. The application works fine when I
run it
as a standalone application. However, when I run it inside Matlab, I get the
"javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
application/atom+xml" error. Matlab is using the same version of Java and all
the
necessary JAR files are loaded, but problems arise in the Matlab environment
for some
reason (Matlab otherwise integrates with Java quite seamlessly).
Original comment by rsingh0@gmail.com
on 16 Dec 2009 at 4:26
Original issue reported on code.google.com by
bigwy...@gmail.com
on 20 Oct 2008 at 9:50