05-25-2011 08:28 PM - edited 03-14-2019 07:58 AM
I am at the last piece to my puzzle in a script. I use an XML template to transform the document. I cannot for the life of me get the write document to work. I keep getting "java.io.FilePermission" error when I debug the script. Anyone enlighten me as to what has changed (beside that its an appliance now). I am figuring I am either referencing the file name and/or location incorrectly.
Solved! Go to Solution.
05-26-2011 10:18 AM
Hello gpworld and JMC,
The java.io.FilePermission is received because you are trying to write a document in a folder in which you don't have permission. In UCCX 8.0 and 8.5 the only place you have permission to write files is the Customer folder: /opt/cisco/uccx/Customer.
So you need to put this path in the Write Document step:
A similar thing can be done with an XML document.
You can check if the files in the Customer folder with this CLI command:
admin:file uccx list custom_file *
And use an SFTP server to retrieve the files:
admin:file uccx get custom_file
HTH
Pablo
05-26-2011 04:39 AM
I have the same problem.. I have a TAC case open..It worked in 8.0 but is broke in 8.5
05-26-2011 06:06 AM
Would love to know what the fix / problem is. Please post solution when TAC or yourself has figured this one out.
Thanks in advance!
05-26-2011 10:18 AM
Hello gpworld and JMC,
The java.io.FilePermission is received because you are trying to write a document in a folder in which you don't have permission. In UCCX 8.0 and 8.5 the only place you have permission to write files is the Customer folder: /opt/cisco/uccx/Customer.
So you need to put this path in the Write Document step:
A similar thing can be done with an XML document.
You can check if the files in the Customer folder with this CLI command:
admin:file uccx list custom_file *
And use an SFTP server to retrieve the files:
admin:file uccx get custom_file
HTH
Pablo
05-26-2011 01:43 PM
Thanks!
Just need to re-think how I do things. That worked like a charm. I am determining whether I am better off uploading the file via Upload Document. Regardless, I now have a working solution using your comments. Much appreciated.
G
05-26-2011 02:09 PM
Awesome news! Just remember that if you want to use the Upload Document you need to use the Authenticate user before that.
Cheers,
Pablo
06-06-2011 11:19 AM
Interesting note---
I took the script I had problems with.. and used the EXACT script on an 8.5 SU1 lab box and it works fine...
TAC told me that 8.5 had a bug and the java error was solved in 8.5SU1.
The bug was fixed in 8.0(3) but did not make it into 8.5 base.
It was bug ID CSCtn46871
Jim
07-21-2011 07:38 AM
Hi Pablo,
I am also working on wrting an XML file from my script.Hence i followed suggestion by you to write it in Customer folder: /opt/cisco/uccx/Customer folder
But how do I read the modified XML file again what I mean is "Create XML document" node is not supporting to pull the file from a specific location (i.e. Customer folder: /opt/cisco/uccx/Customer.)and "Create file document" dosen't work in UCCX ver 8.0.
Please help me.
Regards
Amit Prasad
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide