Novell Home

Workaround for Java exception

Novell Cool Solutions: Question & Answer

Posted: 21 Jul 2005

Q:
I was testing something and didn't want any transactions to actually go through, so I put a veto on the Pub Event Transform channel to stop everything from getting through the driver. So a document came in and was vetoed, but the driver did a Java null-pointer exception and aborted.

A:
It's definitely a bug, but you can work around it if you want to: In your output transformation look for an empty output element and if found, put in a . Here's the XSLT:

<xsl:template match="output[not(child::*)]"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> <status level="success"/> </xsl:copy> </xsl:template>

This will avoid the null-pointer exception. Novell knows about this; it should be fixed at some point in the future.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.