DOORS export to HTML using 9.1

I've attempted to export a DOORS module to HTML, to include all of the links and the modules, and I keep receiving this DXL error.

-R-E- DXL: <utils/libhtml.dxl:1570> null Module parameter was passed into argument position 1
Backtrace:
<utils/libhtml.dxl:1608>
<utils/libhtml.dxl:1775>
<utils/libhtml.dxl:1775>
<utils/libhtml.dxl:1943>
<Line:87>

I'm not sure what this means. Any suggestions?
semokoo10 - Mon Apr 04 10:36:23 EDT 2011

Re: DOORS export to HTML using 9.1
llandale - Mon Apr 04 16:36:28 EDT 2011

I have no idea what you could be doing wrong to trigger this error, but the underlying code doesn't look right to me.

I'm running v9.2.0.1, what are you? That file is not encrypted so you can edit it and take a look. My line numbers match up pretty closely so I can see what its doing.

c:\Program Files\IBM\Rational\DOORS\9.2\lib\dxl\utils\libhtml.dxl

function fillLinkListForModule() therein looks suspicious. The code in question is at the end of the function, for me line 1782.



if (recurse) 
{ 

for modVersion in skpTemp 

do 
{ Module nxtModule = load(modVersion, 

false) 

if (!fillLinkListForModule(nxtModule, recurse)) 
{ delete skpTemp 

return 

false 
} 
} 
}

The module handle "nxtModule" is null going into function fillLinkListForModule() and then into getNameWithVersion(), which presumes a non-null handle. The solution seems to move these three lines



if (

null m) 
{ 

return 

false 
}

starting at about 1615, up to be the 2nd thing this function does, instead of the 3rd.

However, function fillLinkListForModule() has several "delete(modVersion)" commands that frankly do NOT look right. I surely must be wrong, but that command appears to be deleting an actual module, not just deleting some construct to free memory (like delete(Skip)).

As for you and after just browsing this code, I wonder if perhaps you have links from deleted modules or baselines that this piece of <Disallowed Contect Detected> code cannot deal with. Not much help, sorry.

  • Louie