DxlImporter error on memo doc: Invalid parameter passed to function

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!

Subject: DxlImporter error on memo doc: Invalid parameter passed to function

The tab settings use comma as a decimal separator. This causes the error when I try to import your DXL. If I change the commas to full stops, it is OK.

Subject: RE: DxlImporter error on memo doc: Invalid parameter passed to function

Yes, your right! After changing decimal separator to full stops I also can import the DXL.Now it would be interesting, WHY Domino exports this type of DXL file by default which cannot be imported on the same machine with the same libraries and binaries…?

I guess, if there’s an encoding property tag in the dxl file it could work.

And I have to test the same procedure on a windows platform…

Subject: RE: DxlImporter error on memo doc: Invalid parameter passed to function

I guess it is a bug in the export.

Subject: Bug: DxlImporter/DxlExporter on Domino for Linux V6.5.1 !

I tested

  • the same application and functions

  • with the same code

  • with the same JARs (NCSO from Websphere Toolkit for Domino taglibs)

  • on the same Notes databases

on another Domino server V6.5 on Win32.

And here it works properly without any failure.

So, this may be a bug

  1. inside the Linux platform version

  2. inside the 6.5.1 version

I guess, it is a problem within the 6.5.1 version. As I’m able to remember, I testet the code on Linux 6.5 it also worked…

So we have to wait, what comes up from IBM…

Subject: RE: DxlImporter error on memo doc: Invalid parameter passed to function

Hi again,

after certain tests I found the problem in the language settings on OS level (Linux).

DxlExporter seems to run properly only when language is set to en-US.

But DxlImporter results another error on a mail document with lot of html code exportet by DxlExporter.export method:

<?xml version='1.0'?>

Unexpected richtext element child element: picture

DXL importer operation failed

Can’t post the original xml file cause it’s to large. Ask me for sending it within a email.

Bye