The app crashes when i try to create a client with
CoapClient client = new CoapClient(uri);
Here is a part of the stack trace:
01-20 18:16:45.537 1215-1245/com.wirelesslab.bitsuicide.coaptester I/NetworkConfig﹕ Storing standard properties in file Californium.properties 01-20 18:16:45.916 1215-1245/com.wirelesslab.bitsuicide.coaptester W/NetworkConfig﹕ Error while storing properties to /Californium.properties java.io.FileNotFoundException: Californium.properties: open failed: EROFS (Read-only file system) at libcore.io.IoBridge.open(IoBridge.java:456) at java.io.FileOutputStream.<init>(FileOutputStream.java:87) at java.io.FileOutputStream.<init>(FileOutputStream.java:72) at java.io.FileWriter.<init>(FileWriter.java:42) at org.eclipse.californium.core.network.config.NetworkConfig.store(NetworkConfig.java:218) at org.eclipse.californium.core.network.config.NetworkConfig.store(NetworkConfig.java:205) at org.eclipse.californium.core.network.config.NetworkConfig.createStandardWithFile(NetworkConfig.java:170) at org.eclipse.californium.core.network.config.NetworkConfig.getStandard(NetworkConfig.java:125) at org.eclipse.californium.core.CoapClient.<init>(CoapClient.java:52) at com.wirelesslab.bitsuicide.coaptester.MainActivity$RequestTask.doInBackground(MainActivity.java:76) at com.wirelesslab.bitsuicide.coaptester.MainActivity$RequestTask.doInBackground(MainActivity.java:71)
From what i understood the app crashed because californium tries to create the file “Californium.properties” in the root directory and it’s not authorized! Any ideas? |