# "java.io.IOException: Permission denied"

**URL:** <https://forum.cloverdx.com/t/java-io-ioexception-permission-denied/60>\
**Category:** CloverDX Platform\
**Created:** [July 16, 2007, 12:00am UTC](https://forum.cloverdx.com/t/java-io-ioexception-permission-denied/60 "2007-07-16T00:00:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 12:00am UTC](https://forum.cloverdx.com/t/java-io-ioexception-permission-denied/60/1 "2007-07-16T00:00:00Z")

</div>

Hello,

I’ve a problem during the execution of one graph:

“Graph definition file: FREF002\_Maj\_OD\_Date.grf  
DEBUG [main] - Reference: repertoireDonneesTravail  
DEBUG [main] - Reference: ref\_calendrier01  
DEBUG [main] - Reference: numeroIntegration  
DEBUG [main] - Reference: numeroIntegration  
INFO [main] - Initializing DB connection:  
INFO [main] - DBConnection driver[org.postgresql.Driver]:url[jdbc:postgresql://localhost:5432/dm-dev]:user[dm-dev  
] … OK  
INFO [main] - Initializing sequence:  
INFO [main] - org.jetel.data.sequence.SimpleSequence@723d7c … OK  
INFO [main] - Initializing sequence:  
INFO [main] - org.jetel.data.sequence.SimpleSequence@22c95b … OK  
INFO [main] - Initializing sequence:  
INFO [main] - org.jetel.data.sequence.SimpleSequence@1d1acd3 … OK  
INFO [main] - Initializing sequence:  
INFO [main] - org.jetel.data.sequence.SimpleSequence@1503a3 … OK  
INFO [main] - Initializing sequence:  
INFO [main] - org.jetel.data.sequence.SimpleSequence@1a1c887 … OK  
INFO [main] - Initializing sequence:  
INFO [main] - org.jetel.data.sequence.SimpleSequence@743399 … OK  
INFO [main] - Starting WatchDog thread …  
INFO [WatchDog] - Thread started.  
INFO [WatchDog] - Running on 2 CPU(s) max available memory for JVM 692 KB  
INFO [WatchDog] - [Clover] Initializing phase: 10  
DEBUG [WatchDog] - initializing edges:  
ERROR [WatchDog] - java.io.IOException: Permission denied  
ERROR [WatchDog] - !!! Phase finished with error - stopping graph run !!!  
INFO [main] - WatchDog thread finished - total execution time: 0 (sec)  
ERROR [main] - !!! Graph execution finished with errors !!!  
Failed starting graph !”

Does anybody has an idea about the origin of this error ?

Thanks,

Jeremy  
(French)

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/java-io-ioexception-permission-denied/60/2 "2007-07-16T08:23:44Z")

</div>

Thanks, apparently it was the first solution.  
I put all the components of my graph in the same phase and the execution was ok.

I don’t understand the system of phase. Is it explain somewhere ? I don’t know when I can pass to another phase and when I can’t ?

Thanks again David.

Jeremy

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/java-io-ioexception-permission-denied/60/3 "2007-07-16T08:23:45Z")

</div>

Just one word to say that in fact, the problem was about the tmp directory.  
His properties were not ok.  
So it was not a problem with phases.

thanks again David

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/java-io-ioexception-permission-denied/60/4 "2007-07-16T08:23:46Z")

</div>

Hi !

There is “The Concept” document on clover’s web - [http://cloveretl.berlios.de/docs/doc1.html](http://cloveretl.berlios.de/docs/doc1.html) which explains basis about graph, nodes, edges, phases.

David.

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/java-io-ioexception-permission-denied/60/5 "2007-07-16T08:23:47Z")

</div>

Hi !

It looks like the problem occures when intializing Edge. That can be cause by two reasons:  
a) the edge is Phase-crossing edge and Clover needs to allocate temp-file - at that point it fails  
b) you are using Edge in debug mode which means whatever flows through that Edge is duplicated to a file which has to be created  
c) some other obscure reason 🙂

In either case, check where Java’s “java.io.tmpdir” property points (also check your TEMP/tmp environment variable).

Also, you could send me the graph file for more detailed analysis (to [david.pavlis@centrum.cz](mailto:david.pavlis@centrum.cz)).

David.
