Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4843] Android: Ti.Filesystem.getTempDirectory() drillbit test fails due to file not found exception

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2011-08-01T11:17:42.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-31
ComponentsAndroid
Labelsdrillbit, filesystem, tempdir
ReporterOpie Cyrus
AssigneeDon Thorp
Created2011-07-31T09:41:37.000+0000
Updated2014-06-19T12:46:11.000+0000

Description

Drillbit filesystem test "tempDirTest" fails due to file not found exception: "4975 E KrollMethod: (kroll$1: app://app.js) [18,3420] Exception calling kroll method openStream, invocation: null ] 07-31 11:18:15.582 4965 4975 E KrollMethod: java.io.FileNotFoundException: /data/data/org.appcelerator.titanium.testharness/app_appdata/mnt/sdcard/Android/data/org.appcelerator.titanium.testharness/cache/_tmp/drillbit_temp_file.txt (No such file or directory) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.apache.harmony.luni.platform.OSFileSystem.openImpl(Native Method) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:152) 07-31 11:18:15.582 4965 4975 E KrollMethod: at java.io.FileOutputStream.(FileOutputStream.java:97) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.appcelerator.titanium.io.TiFile.getOutputStream(TiFile.java:228) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.appcelerator.titanium.io.TiFile.open(TiFile.java:284) 07-31 11:18:15.582 4965 4975 E KrollMethod: at ti.modules.titanium.filesystem.FilesystemModule.openStream(FilesystemModule.java:116) 07-31 11:18:15.582 4965 4975 E KrollMethod: at ti.modules.titanium.filesystem.FilesystemModuleBindingGen$19.invoke(FilesystemModuleBindingGen.java:621) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.appcelerator.titanium.kroll.KrollCoverage$KrollFunctionCoverage.call(KrollCoverage.java:213) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.appcelerator.titanium.testharness.Test_harnessActivity$1.run(Test_harnessActivity.java:90) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:219) 07-31 11:18:15.582 4965 4975 E KrollMethod: at android.os.Handler.dispatchMessage(Handler.java:95) 07-31 11:18:15.582 4965 4975 E KrollMethod: at android.os.Looper.loop(Looper.java:143) 07-31 11:18:15.582 4965 4975 E KrollMethod: at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86) 07-31 11:18:15.699 4965 4975 W TiConvert: (kroll$1: app://app.js) [77,3549] Unsupported type class org.appcelerator.kroll.KrollProxy$1" Problem may be due to lack of permissions but the test should be valid according to current documentation. Expected behavior is that the path returned via Ti.Filesystem.tempDirectory can be used to create and read a file with via the normal file stream mechanism.

Comments

  1. Opie Cyrus 2011-08-01

    issue resolved as part of #4215

JSON Source