abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Christoph <christ...@hbz-nrw.de>
Subject 1.0-SNAPSHOT: javax.activation.MimeTypeParseException
Date Fri, 19 Feb 2010 13:26:45 GMT
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
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.


View raw message