[HAPI-devel] generateAck() throwing an exception

2011-12-12 Thread Garrett McTear
The HL7 project has been going rather smoothly. I am working on responding back to my client program with an ACK message, but I keep getting this: java.io.IOException: Permission denied The specific code that is throwing this is: String ack = msg.generateACK().toString(); Any ideas? Thanks, G

Re: [HAPI-devel] generateAck() throwing an exception

2011-12-12 Thread James Agnew
Hi Garrett, I'm guessing this is probably caused by MessageIDGenerator. HAPI uses a file on disk, created in your application's working directory by default to generate sequential control IDs for messages it sends. I'm guessing your application may not have write permission to the working directo

Re: [HAPI-devel] generateAck() throwing an exception

2011-12-12 Thread Garrett McTear
James, You called it. It was not being allowed to write to the directory set by the "hapi.hom" property. This simple line fixed it: System.setProperty( "hapi.home", "/tmp"); Thanks for your help! Garrett On Mon, Dec 12, 2011 at 11:04 AM, James Agnew wrote: > Hi Garrett, > > I'm guessing thi