under certain conditions, execution of the command "tell dots profileCreate DOTS" results in the following exception:
02.08.2011 16:00:26 [DOTS] A Java Exception occurred: lotus.domino.NotesException</div>
02.08.2011 16:00:26 [DOTS] NotesException: DXL importer operation failed</div>
02.08.2011 16:00:26 [DOTS] at lotus.domino.local.DxlImporter.NimportDxl(Native Method)</div>
02.08.2011 16:00:26 [DOTS] at lotus.domino.local.DxlImporter.importDxl(Unknown Source)</div>
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.utils.NotesUtils.processFromDXL(NotesUtils.java:167)</div>
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.internal.preferences.DominoOSGiPreferences$Backend.<init>(DominoOSGiPreferences.java:82)</div>
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.internal.preferences.DominoOSGiPreferences.getDocument(DominoOSGiPreferences.java:425)</div>
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.internal.preferences.DominoOSGiPreferences.createProfile(DominoOSGiPreferences.java:752)</div>
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.Activator._profileCreate(Activator.java:230)</div>
02.08.2011 16:00:26 [DOTS] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div>
02.08.2011 16:00:26 [DOTS] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)</div>
02.08.2011 16:00:26 [DOTS] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)</div>
02.08.2011 16:00:26 [DOTS] at java.lang.reflect.Method.invoke(Method.java:600)</div>
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.internal.OSGIConsoleAdaptor.runCommand(OSGIConsoleAdaptor.java:257)</div>
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.task.ServerTaskManager._processCommand(ServerTaskManager.java:627)</div>
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.task.ServerTaskManager.processCommand(ServerTaskManager.java:604)</div>
At this point, the DXLImporter log contains this message:
> Importer-Log:
<?xml version='1.0'?>
<DXLImporterLog>
<fatalerror source='NotesInputSource' line='2' column='96'>An exception occurred! Type:XMLPlatformException, Message:Could not open file: C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas\domino_8_5_2.dtd</fatalerror>
<error>DXL importer operation failed</error>
</DXLImporterLog>
> Importer-Log:</div>
<?xml version='1.0'?></div>
<DXLImporterLog></div>
<fatalerror source='NotesInputSource' line='2' column='96'>An exception occurred! Type:XMLPlatformException, Message:Could not open file: C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas\domino_8_5_2.dtd</fatalerror></div>
<error>DXL importer operation failed</error></div>
</DXLImporterLog></div>
This is due to hard coded paths in the doctype definitions of the dxl files in res/.
If domino is installed on a path other than C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas\domino_8_5_2.dtd (linux, windows XP), validation of the dxl will fail, resulting in the above described exception.
resolution: As the DTD is not required for the importer to work, I recommend removing the DTD from the DXL files, see the following patch.
Index: res/rootConfigForm.dxl</div>
===================================================================</div>
<span style="font-size:9px;">--- res/rootConfigForm.dxl (revision 6)</span></div>
<span style="font-size:9px;">+++ res/rootConfigForm.dxl (working copy)</span></div>
@@ -1,5 +1,4 @@</div>
<?xml version='1.0' encoding='utf-8'?></div>
-<!DOCTYPE database SYSTEM 'C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas/domino_8_5_3.dtd'></div>
<database xmlns='http://www.lotus.com/dxl' version='8.5' maintenanceversion='3.0'</div>
replicaid='8525788E007517D9' path='C:\dev\javaddin\workspace\org.openntf.javaddin\res\osgiconf.ntf'</div>
title='Osgiconf' increasemaxfields='true'></div>
Index: res/configurationView.dxl</div>
===================================================================</div>
<span style="font-size:9px;">--- res/configurationView.dxl (revision 6)</span></div>
<span style="font-size:9px;">+++ res/configurationView.dxl (working copy)</span></div>
@@ -1,5 +1,4 @@</div>
<?xml version='1.0' encoding='utf-8'?></div>
-<!DOCTYPE database SYSTEM 'C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas/domino_8_5_2.dtd'></div>
<database xmlns='http://www.lotus.com/dxl' version='8.5' maintenanceversion='2.0'</div>
replicaid='85257832001E5FC2' path='CN=DAVIDT11/O=DAVDEV!!osgi.nsf' title='Osgi'></div>
<databaseinfo dbid='85257832001E5FC2' odsversion='43' diskspace='663552' percentused='89.5447530864198'</div>
Index: res/defaultConfigForm.dxl</div>
===================================================================</div>
<span style="font-size:9px;">--- res/defaultConfigForm.dxl (revision 6)</span></div>
<span style="font-size:9px;">+++ res/defaultConfigForm.dxl (working copy)</span></div>
@@ -1,5 +1,4 @@</div>
<?xml version='1.0' encoding='utf-8'?></div>
-<!DOCTYPE database SYSTEM 'C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas/domino_8_5_3.dtd'></div>
<database xmlns='http://www.lotus.com/dxl' version='8.5' maintenanceversion='3.0'</div>
replicaid='8525788E007517D9' path='C:\dev\javaddin\workspace\org.openntf.javaddin\res\osgiconf.ntf'</div>
title='Osgiconf' increasemaxfields='true'></div>
</div>
Index: res/rootConfigForm.dxl
Index: res/rootConfigForm.dxl
===================================================================
--- res/rootConfigForm.dxl (revision 6)
+++ res/rootConfigForm.dxl (working copy)
@@ -1,5 +1,4 @@
<?xml version='1.0' encoding='utf-8'?>
-<!DOCTYPE database SYSTEM 'C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas/domino_8_5_3.dtd'>
<database xmlns='http://www.lotus.com/dxl' version='8.5' maintenanceversion='3.0'
replicaid='8525788E007517D9' path='C:\dev\javaddin\workspace\org.openntf.javaddin\res\osgiconf.ntf'
title='Osgiconf' increasemaxfields='true'>
Index: res/configurationView.dxl
===================================================================
--- res/configurationView.dxl (revision 6)
+++ res/configurationView.dxl (working copy)
@@ -1,5 +1,4 @@
<?xml version='1.0' encoding='utf-8'?>
-<!DOCTYPE database SYSTEM 'C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas/domino_8_5_2.dtd'>
<database xmlns='http://www.lotus.com/dxl' version='8.5' maintenanceversion='2.0'
replicaid='85257832001E5FC2' path='CN=DAVIDT11/O=DAVDEV!!osgi.nsf' title='Osgi'>
<databaseinfo dbid='85257832001E5FC2' odsversion='43' diskspace='663552' percentused='89.5447530864198'
Index: res/defaultConfigForm.dxl
===================================================================
--- res/defaultConfigForm.dxl (revision 6)
+++ res/defaultConfigForm.dxl (working copy)
@@ -1,5 +1,4 @@
<?xml version='1.0' encoding='utf-8'?>
-<!DOCTYPE database SYSTEM 'C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas/domino_8_5_3.dtd'>
<database xmlns='http://www.lotus.com/dxl' version='8.5' maintenanceversion='3.0'
replicaid='8525788E007517D9' path='C:\dev\javaddin\workspace\org.openntf.javaddin\res\osgiconf.ntf'
title='Osgiconf' increasemaxfields='true'>
===================================================================
--- res/rootConfigForm.dxl (revision 6)
+++ res/rootConfigForm.dxl (working copy)
@@ -1,5 +1,4 @@
<?xml version='1.0' encoding='utf-8'?>
-<!DOCTYPE database SYSTEM 'C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas/domino_8_5_3.dtd'>
<database xmlns='http://www.lotus.com/dxl' version='8.5' maintenanceversion='3.0'
replicaid='8525788E007517D9' path='C:\dev\javaddin\workspace\org.openntf.javaddin\res\osgiconf.ntf'
title='Osgiconf' increasemaxfields='true'>
Index: res/configurationView.dxl
===================================================================
--- res/configurationView.dxl (revision 6)
+++ res/configurationView.dxl (working copy)
@@ -1,5 +1,4 @@
<?xml version='1.0' encoding='utf-8'?>
-<!DOCTYPE database SYSTEM 'C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas/domino_8_5_2.dtd'>
<database xmlns='http://www.lotus.com/dxl' version='8.5' maintenanceversion='2.0'
replicaid='85257832001E5FC2' path='CN=DAVIDT11/O=DAVDEV!!osgi.nsf' title='Osgi'>
<databaseinfo dbid='85257832001E5FC2' odsversion='43' diskspace='663552' percentused='89.5447530864198'
Index: res/defaultConfigForm.dxl
===================================================================
--- res/defaultConfigForm.dxl (revision 6)
+++ res/defaultConfigForm.dxl (working copy)
@@ -1,5 +1,4 @@
<?xml version='1.0' encoding='utf-8'?>
-<!DOCTYPE database SYSTEM 'C:\Program Files (x86)\IBM\Lotus\Notes\xmlschemas/domino_8_5_3.dtd'>
<database xmlns='http://www.lotus.com/dxl' version='8.5' maintenanceversion='3.0'
replicaid='8525788E007517D9' path='C:\dev\javaddin\workspace\org.openntf.javaddin\res\osgiconf.ntf'
title='Osgiconf' increasemaxfields='true'>
02.08.2011 16:00:26 [DOTS] A Java Exception occurred: lotus.domino.NotesException
02.08.2011 16:00:26 [DOTS] NotesException: DXL importer operation failed
02.08.2011 16:00:26 [DOTS] at lotus.domino.local.DxlImporter.NimportDxl(Native Method)
02.08.2011 16:00:26 [DOTS] at lotus.domino.local.DxlImporter.importDxl(Unknown Source)
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.utils.NotesUtils.processFromDXL(NotesUtils.java:167)
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.internal.preferences.DominoOSGiPreferences$Backend.<init>(DominoOSGiPreferences.java:82)
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.internal.preferences.DominoOSGiPreferences.getDocument(DominoOSGiPreferences.java:425)
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.internal.preferences.DominoOSGiPreferences.createProfile(DominoOSGiPreferences.java:752)
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.Activator._profileCreate(Activator.java:230)
02.08.2011 16:00:26 [DOTS] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
02.08.2011 16:00:26 [DOTS] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
02.08.2011 16:00:26 [DOTS] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
02.08.2011 16:00:26 [DOTS] at java.lang.reflect.Method.invoke(Method.java:600)
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.internal.OSGIConsoleAdaptor.runCommand(OSGIConsoleAdaptor.java:257)
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.task.ServerTaskManager._processCommand(ServerTaskManager.java:627)
02.08.2011 16:00:26 [DOTS] at org.openntf.javaddin.task.ServerTaskManager.processCommand(ServerTaskManager.java:604)