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 <ja...@jamesagnew.ca> wrote:
> 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
> directory.
>
> Note that you can override the location on disk where this file is stored
> by specifying a new one in the system property "hapi.home". Looking over
> the JavaDoc for MessageIDGenerator, this is pretty lacking. I'm making a
> note to myself that this needs to be cleaned up.
>
> Cheers,
> James
>
> On Mon, Dec 12, 2011 at 11:48 AM, Garrett McTear <garrett.mct...@gmail.com
> > wrote:
>
>> 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,
>> Garrett
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Windows Azure Live! Tuesday, Dec 13, 2011
>> Microsoft is holding a special Learn Windows Azure training event for
>> developers. It will provide a great way to learn Windows Azure and what it
>> provides. You can attend the event by watching it streamed LIVE online.
>> Learn more at http://p.sf.net/sfu/ms-windowsazure
>> _______________________________________________
>> Hl7api-devel mailing list
>> Hl7api-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>>
>>
>
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel