You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by Pascal Christoph <ch...@hbz-nrw.de> on 2010/02/19 14:26:45 UTC

1.0-SNAPSHOT: javax.activation.MimeTypeParseException

Hello *,

at first, thanks for the great work!
I use abdera 0.4 and now want to update to 1.0 but cannot build
abdera-server 1.0-SNAPSHOT.
I wonder why there is no ticket I could found, so I assume I may do
something wrong. On the other hand you seem to have problems with abdera
1.0? There are some unanswered Mails in the Mailing list archives, e.g.
"July 2009" from Jun Yang with the subject "trunk version fails tests;
known issue?". While I had the same problems as him most of them were
trivial to fix or had functions I donot need (yet). One problem costs me
some nerves, though:

Linux: debian-lenny, i386
IDE: netbeans 6.8
Apache Maven 2.2.0 (rdebian-2)
Java version: 1.6.0_12 (also tried jdk1.6.0_18)
Source:$ git clone git://github.com/apache/abdera

I got a MimeTypeParseException when building abdera-server 1.0-SNAPSHOT
(i.e. by executing
org.apache.abdera.protocol.server.test.custom.CustomProviderTest ) which
is thrown in
org.apache.abdera.protocol.util.AbstractMessage.getContentType() . In
this method a new MimeType should be returned by "new MimeType(value)",
but "value" consists at this point of the String "application/atom+xml;
type=feed charset=ISO-8859-1" ; the problem is at least the missing ";"
between 'type' and 'charset'.

To solve this one could just delete the line
"response.setContentType(MimeTypeHelper.getMimeType(base));"
in org.apache.abdera.protocol.server.ProviderHelper in the method
ResponseContext returnBase(Base base, int status,Date lastModified).

This line seems to be redundant anyhow (sure not sure about this) but
then not harmless.

oo


Re: 1.0-SNAPSHOT: javax.activation.MimeTypeParseException

Posted by David Calavera <da...@gmail.com>.
Thank you Pascal, that bug almost got me nuts, it's already solved in trunk.

On Thu, Feb 25, 2010 at 2:22 PM, Pascal Christoph <ch...@hbz-nrw.de>wrote:

> Using "abdera 1.0-SNAPSHOT" is not good, use "abdera 1.0" instead.
>
> checkout https://svn.apache.org/repos/asf/abdera/java/tags/abdera-1.0/
> instead of:
> git://github.com/apache/abdera or git://git.apache.org/abdera.git .
>
> oo
>

Re: 1.0-SNAPSHOT: javax.activation.MimeTypeParseException

Posted by Pascal Christoph <ch...@hbz-nrw.de>.
Using "abdera 1.0-SNAPSHOT" is not good, use "abdera 1.0" instead.

checkout https://svn.apache.org/repos/asf/abdera/java/tags/abdera-1.0/
instead of:
git://github.com/apache/abdera or git://git.apache.org/abdera.git .

oo