I suspect the application was not content with the to be imported
file. I presume you followed these steps:
1. Set a directory to upload in using the top most form in http://
127.0.0.1:8080/mmbase/xmlimporter/importhome.jsp and uploaded a file
to it (you can also place it by hand there, if you want :-) You'll
get a message:
XML Importer Upload To Server
FilePathName = testje.xml
Size = 536
1 file(s) uploaded
2. Choose the file to import in the pulldown below 'Start import' on
'importhome.jsp', click 'Start import'...
Op 17-feb-2007, om 11:41 heeft Bram Enning het volgende geschreven:
Hi all,
I'm trying to get XML-importer to work on a 1.8.3 installation. Can
someone tell me if this is feasible, are more people using it, or
am I the only one?
This is what I tried:
- installed XML-importer ( i.e copying templates, libs and config-
file)
- I tested by uploading a transaction.xml with the following contents:
Allthough you should add:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE transactions SYSTEM "transactions.dtd">
<transactions exceptionPage="none" reportFile="tcpReport.txt"
key="hokusspokuspitaluspas">
<transactions key="hokusspokuspitaluspas">
<createObject id="1" type="urls">
<setfield name="name">MyFirstXMLImport</setfield>
<setfield name="url">www.xmlimporttest.nl</setfield>
<setfield name="owner">admin</setfield>
</createObject>
</transactions>
And the XMLImporter is very case sensitive setfield = setField. And
you will get the message:
XML Importer Finished
NO DUPLICATES FOUND
Looking in the log-file only gives me:
2007-02-17 11:39:06,539 INFO xmlimporter.jsp.startimport.jsp -
import started with file: /Users/username/EclipseWorkspace/project/
transactions/transactions.xml
2007-02-17 11:39:06,540 SERVICE
mmbase.applications.xmlimporter.TransactionHandler -
TransactionHandler processing TCP
2007-02-17 11:39:06,575 SERVICE
mmbase.applications.xmlimporter.TransactionsParser - Sax parser
system id set to "/usr/local/apache-tomcat-5.5.20/webapps/ROOT/WEB-
INF/config/dtd/"
Should state
.. /WEB-INF/config/dtd/transactions.dtd (No such file or directory)
when you've corrected the xml.
2007-02-17 11:39:06,578 ERROR
mmbase.applications.xmlimporter.TransactionHandler -
TransactionError :java.lang.NullPointerException
2007-02-17 11:39:06,578 ERROR
mmbase.applications.xmlimporter.TransactionHandler - ExceptionPage
null
2007-02-17 11:39:06,578 WARN
mmbase.applications.xmlimporter.TransactionHandler - Transaction
stopped at : Sat Feb 17 11:39:06 CET 2007
Maybe someone has got a pointer?
That should be it. I tried your (fixed) xml and it imported fine.
---André
--
André van Toly
MMBase development & Userfriendly webdesign
W: http://www.toly.nl
M: +31(0)627233562
------------------------------------------------------------------
~~<<>>~~
_______________________________________________
Users mailing list
Users@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/users