Note that there are some explanatory texts on larger screens.

plurals
  1. POVerifyError when reading ini
    primarykey
    data
    text
    <p>I am using ini4j as i prefer windoze's inis. This part makes sure the file exists:</p> <pre><code>File INI_FILE = new File(getActivity().getFilesDir().getAbsolutePath()+File.separator+"config.ini"); final String INI = getActivity().getFilesDir().getAbsolutePath()+File.separator+"config.ini"; if(!GetProp.Supports(INI_FILE)){ File INI_F = new File(getActivity().getFilesDir().getAbsolutePath()+File.separator+"config.ini"); if (!INI_F.exists()) { try { INI_F.createNewFile(); } catch (IOException e) { e.printStackTrace(); } Wini ini = null; try { ini = new Wini(new File(INI)); } catch (InvalidFileFormatException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } ini.put("Throttle", "refresh_interval", 1000); ini.put("Throttle", "active", false); ini.put("Throttle", "temp_limit", 80); try { ini.store(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } </code></pre> <p>This is how i am trying to read it: (THIS CODE IS UNDER A onClick() )</p> <pre><code>Wini ini = null; try { ini = new Wini(new File(INI)); } catch (InvalidFileFormatException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } int refresh_interval = ini.get("Throttle", "refresh_interval", int.class); // ERROR HERE boolean active = ini.get("Throttle", "active", boolean.class); int max_temp = ini.get("Throttle", "temp_limit", int.class); </code></pre> <p>I am getting the following error:</p> <pre><code>E/AndroidRuntime(12340): FATAL EXCEPTION: main E/AndroidRuntime(12340): java.lang.VerifyError: org/ini4j/spi/BeanTool E/AndroidRuntime(12340): at org.ini4j.BasicOptionMap.get(BasicOptionMap.java:161) E/AndroidRuntime(12340): at org.ini4j.BasicProfile.get(BasicProfile.java:129) E/AndroidRuntime(12340): at com.costinutz32.hox_control.fragments.CPU$6.onClick(CPU.java:622) E/AndroidRuntime(12340): at android.view.View.performClick(View.java) E/AndroidRuntime(12340): at android.view.View$PerformClick.run(View.java) E/AndroidRuntime(12340): at android.os.Handler.handleCallback(Handler.java) E/AndroidRuntime(12340): at android.os.Handler.dispatchMessage(Handler.java) E/AndroidRuntime(12340): at android.os.Looper.loop(Looper.java) E/AndroidRuntime(12340): at android.app.ActivityThread.main(ActivityThread.java) E/AndroidRuntime(12340): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(12340): at java.lang.reflect.Method.invoke(Method.java) E/AndroidRuntime(12340): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java) E/AndroidRuntime(12340): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java) E/AndroidRuntime(12340): at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>I have searched all across the internet for a fix, tried reimporting jars, fixing buildpaths, cleaning projects and everything i could find. Nothing helped.</p> <p>If there is something i forgot to mention, let me know so i can add it. If needed, i can add screenshots of my project's settings.</p> <p>Thank you!</p> <p>Edit: Here is a screen with complete logs: <a href="http://img823.imageshack.us/img823/7144/54gx.png" rel="nofollow">http://img823.imageshack.us/img823/7144/54gx.png</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload