Hi all,
I got an error while importing a document from a mail database exported with DxlExporter (Java):
Here’s the log:
Invalid parameter passed to function
DXL importer operation failed
NotesException: DXL importer operation failed
at lotus.domino.NotesExceptionHelper.read(Unknown Source)
at lotus.domino.NotesExceptionHolder._read(Unknown Source)
at lotus.priv.CORBA.iiop.RepImpl.invoke(Unknown Source)
at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at lotus.domino.corba._IDxlImporterStub.importDxlStream(Unknown Source)
at lotus.domino.cso.DxlImporter.importDxl(Unknown Source)
I tested this functionality with other databases and documents with and without attachments and it works fine. The error results only on documents with the Memo mask, generally on mails! Is there something with encoding Mimes or html tags? Maybe it is a bug since 6.5.1?
I think, I worked under Windows and Domino 6.5 successful in the same way…
Here’s my snipped code:
//EXPORTING:
// lotus.domino.Session session = …; // created remote
DxlExporter exporter = session.createDxlExporter();
exporter.setOutputDOCTYPE(true);
exporter.setDoctypeSYSTEM(“xmlschemas/domino_6_5_1.dtd”);
Database db = session.getDatabase(…)
Document doc = db.getDocumentByUNID()
// Exporting with …
String dxlResult = exporter.exportDxl(doc);
// and so on…
//IMPORTING:
importer = session.createDxlImporter();
importer.setUnknownTokenLogOption(DxlImporter.DXLLOGOPTION_ERROR);
byte inpBytes = archive.retrieveFileAsByteArray(id, new byte[size]); // this is an own class which returns the dxl file as a byte array
Stream in = session.createStream();
in.write(inpBytes);
importer.importDxl(in,db);
// … and so on
And here is the dxl file which has been exportet by DxlExporter:
<?xml version='1.0'?><document xmlns=‘http://www.lotus.com/dxl’ version=‘6.0’ maintenanceversion=‘4.0’
replicaid=‘C1256CDE0038FB0B’ form=‘Memo’>
20040406T165319,43+02
20040406T165418,22+02
20040406T165417,78+02
20040406T165418,20+02
20040406T165418,20+02
CN=test/O=testserver
CN=Magnus Lobenhofer/O=testserver
stdNotesLtr0
True
1
subject content
useApplet=“False”
This is a text in the body field.
<code
event=‘hidewhen’>useApplet=“True”
0
0
CN=Magnus Musteruser/O=testserver
testuser@testserver
1
Lotus Notes Release 6.5 September 26, 2003
<OF9529B500.68C5A6ED-ONC1256E6E.0051C947-C1256E6E.0051DE0A@LocalDomain>
CN=Magnus Lobenhofer/O=testserver
20040406T165417,73+02
AQDtpsVoALUplUfJUQBubiXB
CN=test/O=server
<datetime
dst=‘true’>20040406T165417,78+0220040406T165418,20+02
0
20040406T165418,20+02
So what to do? There’s no attachment or other things which could be a reason.
Platform / environment:
Suse Linux 9.0
Lotus Domino 6.5.1 for Linux
Lotus Notes 6.5
eclipse 2.1
Domino Websphere Studio Plugin for domino taglibs 1.2 (used NCSO.jar from this)
Thanx!