Re: [Dev] [IoTS]Error when downloading virtual fire alarm on IoT Server in Windows

2016-05-23 Thread Ayyoob Hamza
Hi Dakshitha,
In our sample implementation we delete the sketch from the temporary folder
once the device agent zip is created. In windows it does not allow todo
when the pack is in the C Drive since it requires admin permission. Could
it be possible to try this out in another drive.

Thanks
Ayyoob

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IoTS]Error when downloading virtual fire alarm on IoT Server in Windows

2016-05-23 Thread Dakshitha Ratnayake
Please see error below -

Caused by: java.io.IOException: Unable to delete file:
C:\CLIENT~1\2016\IOT_SE~1\WSO2IO~1.0-A\bin\..\repository\resources\sketches\archives\1h8226aoqvo11\start-device.sh
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279)
at
org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
at
org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
at
org.wso2.carbon.device.mgt.iot.util.Utils.getSketchArchive(Utils.java:107)
at
org.wso2.carbon.device.mgt.iot.virtualfirealarm.service.impl.util.ZipUtil.createZipFile(ZipUtil.java:85)
... 53 more
[2016-05-23 14:18:06,740] ERROR - jag {}

-- 
Dakshitha Ratnayake | Lead Solutions Engineer | WSO2 
+94 772 962 552 | http://dakshithar.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev