Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cf-dev] Californium on Android

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?

Francesco Leacche


Il giorno 20/gen/2015, alle ore 20:56, Julien Vermillard <jvermillard@xxxxxxxxx> ha scritto:

It should work but I never tried it myself.
Please report your issues!
Julien


Le mar. 20 janv. 2015 18:42, Francesco Leacche <francescoleacche@xxxxxxx> a écrit :
Hi everyone, I’d like to know if Californium works out-of-the-box on Android and if it's just me who encounters problems in using it!


Francesco Leacche
_______________________________________________
cf-dev mailing list
cf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cf-dev
_______________________________________________
cf-dev mailing list
cf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cf-dev


Back to the top