Thanks for the help.
Fixed the file-upload settings but got a new error I don't understand.
It's on the last line of code,
Exception in thread "main" java.lang.IllegalAccessError: tried to access
method
com.sun.syndication.io.impl.Atom10Parser.isAbsoluteURI(Ljava/lang/String;)Z
from class com.sun.syndication.propono.atom.common.Collection
at
com.sun.syndication.propono.atom.common.Collection.getHrefResolved(Collection.java:97)
at
com.sun.syndication.propono.atom.client.ClientMediaEntry.addToCollection(ClientMediaEntry.java:236)
at
com.sun.syndication.propono.atom.client.ClientCollection.addEntry(ClientCollection.java:212)
at Post1.main(Post1.java:30)
Whats the problem?
Dave Johnson-8 wrote:
>
> On 9/11/07, Dudee <[EMAIL PROTECTED]> wrote:
>>
>> Hi again,
>> I upgrade to Propono 0.6 and that solved the problem but gave me a new
>> one.
>> "Exception in thread "main" java.lang.NullPointerException at
>> Post1.main(Post1.java:26)"
>>
>> Line 26: ClientMediaEntry entry = collection.createMediaEntry(slug, slug,
>> "image/jpg", new FileInputStream(filepath));
>>
>> The roller log gave me this:
>> DEBUG 2007-09-11 15:42:33,233 AtomServlet:createAtomRequestHandler -
>> Creating Atom handler
>> DEBUG 2007-09-11 15:42:33,250 RollerAtomHandler:getIntrospection -
>> Entering
>> DEBUG 2007-09-11 15:42:33,276 RollerAtomHandler:getIntrospection -
>> Exiting
>> DEBUG 2007-09-11 15:42:33,278 AtomServlet:doGet - Exiting
>>
>> I don't know what the problem is now.
>
> Sounds like this call is returning a null collection:
>
> ClientCollection collection = (ClientCollection)
> workspace.findCollection(null, "image/jpg");
>
> Which means that no collection could be found for content type
> "image/jpg".
>
> Make sure your file-upload settings allow "image/jpg" or "image/*" if
> you want to allow all image types. You can set the list of allowed
> File Upload types on the Server Admin page.
>
> - Dave
>
>
--
View this message in context:
http://www.nabble.com/Help-noob-with-rome-propono-%21%21-tf4422109s12275.html#a12629426
Sent from the Roller - User mailing list archive at Nabble.com.