XML Parser problem

Hail,

i’m trying to set up a RSS feeds system, with a Java agent which would feed up the document base. It works great on my client computer (when I execute the agent manually), but it keeps giving me errors when i try to schedule that agent on the domino server (every 5 mins, for instance).

So, here we go.

First, the code it doesn’t like (errors are thrown at the parse() method call) :

import com.ibm.xml.parsers.* ;

DOMParser parser = new DOMParser();

parser.parse(url.trim());

org.w3c.dom.Document rssDom = parser.getDocument();

Then, the error messages grabbed from the domino console :

15/12/2003 15:56:02 AMgr: Agent (‘ReadActiveRSSFeeds’ in ‘PROD\site\isite.nsf’

) error message: at RssFeed.(RssFeed.java:9)

15/12/2003 15:56:02 AMgr: Agent (‘ReadActiveRSSFeeds’ in ‘PROD\site\isite.nsf’

) error message: at JavaAgent.NotesMain(JavaAgent.java:18)

15/12/2003 15:56:02 AMgr: Agent (‘ReadActiveRSSFeeds’ in ‘PROD\site\isite.nsf’

) error message: at lotus.domino.AgentBase.runNotes(Unknown Source)

15/12/2003 15:56:02 AMgr: Agent (‘ReadActiveRSSFeeds’ in ‘PROD\site\isite.nsf’

) error message: at lotus.domino.NotesThread.run(NotesThread.java:208)

15/12/2003 15:56:02 AMgr: Agent (‘ReadActiveRSSFeeds’ in ‘PROD\site\isite.nsf’

) error message: www.codestore.net,-1

15/12/2003 15:56:02 AMgr: Agent (‘ReadActiveRSSFeeds’ in ‘PROD\site\isite.nsf’

) error message: at com.ibm.xml.framework.XMLParser.parse(Unknown Source)

I really dunno what to do, i thought it was a path problem so I added xml4j.jar in the path, classpath and in the domino’s notes.ini (JavaUserClasses), but it doesn’t make it working better.

Thx for any help or workaround about this…

regards,

Subject: XML Parser problem

Set your agents execution rights to unrestricted mode (mode 3) in the security property of your agent.

You need that level to access the XML data to parse.

Hope this helps

Renaud

Subject: RE: XML Parser problem

Argh, indeed, it works better.

Strange full admin rights are needed to parse XML, but… domino is domino !

Thanks a lot,

Subject: RE: XML Parser problem

100% agree !

I goes more weird knowing you’re not able to parse XML data from a Notes DB if the notes element that contains the xml data(page, form,…) requires a login (anonymous access to none).

And that even if you’re logued with a valid userid and password…

But as you said, domino is domino… ;oP