Android Question Error processing HTTP request

Discussion in 'Android Questions' started by Derek Jee, Jun 24, 2015.

  1. Derek Jee

    Derek Jee Active Member Licensed User

    Hi there

    I am getting this error processing a HTTP request. It seems to be complaining about my internal temp folder used in the HTTPJob class at this line of code:

    tr.Initialize2(File.OpenInput(HTTPUtils2Service.TempFolder, taskId), Encoding)

    It was fine yesterday, but obviously didn't like me turning off my computer to go to bed :)))

    Error occurred on line: 123 (HttpJob)
    java.io.FileNotFoundException: /data/data/b4a.example/cache/1: open failed: ENOENT (No such file or directory)
    at libcore.io.IoBridge.open(IoBridge.java:456)
    at java.io.FileInputStream.<init>(FileInputStream.java:76)
    at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:209)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:302)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA$3.run(BA.java:334)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:6117)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
    Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
    at libcore.io.Posix.open(Native Method)
    at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
    at libcore.io.IoBridge.open(IoBridge.java:442)
    ... 19 more


    Thanks in advance..
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Are you checking Job.Success value?
     
    Peter Simpson and Derek Jee like this.
  3. Derek Jee

    Derek Jee Active Member Licensed User

    That's it.. I was getting the GetString value and didn't change it back testing locally.. It was a late night.. Thanks for spotting that..
     
Loading...