Bug - Says files dont exist but do

wheretheidivides

Active Member
Licensed User
Longtime User
I have talked about this is the other forem areas but now am starting a new topic.

I load the layout designer. It seems to think files don't exist when they do OR are needed when they are not. The following log error says files are missing like:chip-white.png (No such file or directory). Look at the included pictures to see the file does exist (imported into the layout designer, imported to files and is in the files folder)

'=================================
condensed



java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.objects.drawable.StateListDrawable.build(StateListDrawable.java:73)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.objects.ButtonWrapper.build(ButtonWrapper.java:87)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.designer.DesignerViewsManager$MyMessageHandler$SetProperties.myRun(DesignerViewsManager.java:348)
at anywheresoftware.b4a.designer.DesignerViewsManager$SafeRunnable.run(DesignerViewsManager.java:590)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: /data/data/anywheresoftware.b4a.designer/files/chip-green.png (No such file or directory)
at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
at java.io.FileInputStream.<init>(FileInputStream.java:80)
at android.app.ContextImpl.openFileInput(ContextImpl.java:491)
at android.content.ContextWrapper.openFileInput(ContextWrapper.java:152)
at anywheresoftware.b4a.objects.drawable.BitmapDrawable.build(BitmapDrawable.java:67)
... 22 more

java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.objects.drawable.StateListDrawable.build(StateListDrawable.java:75)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.objects.ButtonWrapper.build(ButtonWrapper.java:87)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.designer.DesignerViewsManager$MyMessageHandler$SetProperties.myRun(DesignerViewsManager.java:348)
at anywheresoftware.b4a.designer.DesignerViewsManager$SafeRunnable.run(DesignerViewsManager.java:590)


at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: /data/data/anywheresoftware.b4a.designer/files/chip-white.png (No such file or directory)
at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
at java.io.FileInputStream.<init>(FileInputStream.java:80)
at android.app.ContextImpl.openFileInput(ContextImpl.java:491)
at android.content.ContextWrapper.openFileInput(ContextWrapper.java:152)
at anywheresoftware.b4a.objects.drawable.BitmapDrawable.build(BitmapDrawable.java:67)
... 22 more



java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.objects.drawable.StateListDrawable.build(StateListDrawable.java:75)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.objects.ButtonWrapper.build(ButtonWrapper.java:87)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.designer.DesignerViewsManager$MyMessageHandler$SetProperties.myRun(DesignerViewsManager.java:348)
at anywheresoftware.b4a.designer.DesignerViewsManager$SafeRunnable.run(DesignerViewsManager.java:590)
at android.os.Handler.handleCallback(Handler.java:587)


at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: /data/data/anywheresoftware.b4a.designer/files/chip-white.png (No such file or directory)
at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
at java.io.FileInputStream.<init>(FileInputStream.java:80)
at android.app.ContextImpl.openFileInput(ContextImpl.java:491)
at android.content.ContextWrapper.openFileInput(ContextWrapper.java:152)
at anywheresoftware.b4a.objects.drawable.BitmapDrawable.build(BitmapDrawable.java:67)
... 22 more

java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.objects.drawable.StateListDrawable.build(StateListDrawable.java:75)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.objects.ButtonWrapper.build(ButtonWrapper.java:87)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.DynamicBuilder.build(DynamicBuilder.java:19)
at anywheresoftware.b4a.designer.DesignerViewsManager$MyMessageHandler$SetProperties.myRun(DesignerViewsManager.java:348)
at anywheresoftware.b4a.designer.DesignerViewsManager$SafeRunnable.run(DesignerViewsManager.java:590)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: /data/data/anywheresoftware.b4a.designer/files/chip-white.png (No such file or directory)
at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
at java.io.FileInputStream.<init>(FileInputStream.java:80)
at android.app.ContextImpl.openFileInput(ContextImpl.java:491)
at android.content.ContextWrapper.openFileInput(ContextWrapper.java:152)
at anywheresoftware.b4a.objects.drawable.BitmapDrawable.build(BitmapDrawable.java:67)
... 22 more
 

Attachments

  • 1.JPG
    1.JPG
    19.2 KB · Views: 226
  • 2.JPG
    2.JPG
    14.7 KB · Views: 234
  • 3.JPG
    3.JPG
    19.7 KB · Views: 208
  • 4.JPG
    4.JPG
    68.2 KB · Views: 249

barx

Well-Known Member
Licensed User
Longtime User
Don't know if it makes a difference but your text sensitivity is off, i.e one has capital letters, another doesn't.
 

wheretheidivides

Active Member
Licensed User
Longtime User
Don't know if it makes a difference but your text sensitivity is off, i.e one has capital letters, another doesn't.

Maybe. I created them with upper and lower case but not sure why they are now lower case.
 
Last edited:

wheretheidivides

Active Member
Licensed User
Longtime User
UPDATE:

I looked in the layout designer and had 3 layouts of different sizes. I deleted 2 of them and re-created them. That MAY have fixed it. Not sure. I am thinking that I changed layout variant #1, but not 2 or 3. Therefore, the layout designer still had links to those files. If I notice this again, I'll do another update.
 
Top