<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 5.50.4926.2500" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2>Hello:</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003> </SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial size=2>I am in the process
of evaluating your software. I have been trying (unsuccessfully) to embed XEP
into my JBoss application.</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2>Enviro:</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2>xep351_developer_stamped_jar</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2>win2K</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2>JDK1.4.0</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial size=2>Jboss
3.2.1</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial size=2>The stack
trace:</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2>java.lang.NullPointerException<BR>
at
java.util.Hashtable.put(Hashtable.java:386)<BR>
at
com.renderx.util.User.getProperties(User.java:12)<BR>
at
com.renderx.xep.lib.Conf.init(Conf.java:102)<BR>
at com.renderx.xep.Driver.init(Driver.java:29)</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial size=2>my code:
</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial size=2>protected void
render(InputStream in, OutputStream out, RendererMetaData meta) throws
RenderingException {<BR><SPAN class=660485812-15102003><FONT face=Arial
size=2>//rootPath: is set through a configuration
file</FONT></SPAN></DIV></FONT></SPAN>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2>System.setProperty("com.renderx.xep.ROOT",
rootPath);<BR>com.renderx.xep.Driver.init();</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial size=2>H4PDF generator =
new H4PDF();</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2> try{<BR> generator.setOutFile(out);
<BR> com.renderx.xep.Driver.render(new InputSource(in),
generator);<BR> }catch (IOException e)
{<BR> <snip>...<BR> }<BR>}<BR></FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial size=2>When I run this
exact code from within my ide (Eclipse) it works fine. When i pull the code
out and run it as a JBoss Service to run extrnal to our app, but just a service
that JBoss calls I get the same error.</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial size=2>I have also included
a zip file that contains a class that can run from the command line
and work, or be dropped into JBoss as a service and it fails, with the same
nullpointer exception</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003></SPAN> </DIV>
<DIV><SPAN class=660485812-15102003></SPAN><SPAN class=660485812-15102003><FONT
face=Arial size=2>Are there other properties I need to set? The null pointer
seems to stem from the user.getProperties method. </FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial size=2>Thanks in advance
</FONT></SPAN></DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=660485812-15102003><FONT face=Arial
size=2>Rob</DIV></FONT></SPAN></BODY></HTML>