CapturePhoto Exception

16 views
Skip to first unread message

Carlos Verdier

unread,
Jun 9, 2014, 1:19:18 PM6/9/14
to codenameone...@googlegroups.com
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans 7.3
Desktop OS: OS X 10.9.3
Simulator 1.0

Hi

I´m getting an exception when capturing a photo (just a simple Capture.capturePhoto(int x, int y)). Not serious because only happens in the simulator and it´s working fine on the device, but just wanted to let you know. It´s like it´s missing a slash before var/folders...

Cheers

[invokeAndBlock1] 0:0:0,0 - Exception: java.io.FileNotFoundException - var/folders/wn/9r4g9k2x2nb48nwtcyzd0crr0000gn/T/temp4628809957537957525s.png (No such file or directory)
java.io.FileNotFoundException: var/folders/wn/9r4g9k2x2nb48nwtcyzd0crr0000gn/T/temp4628809957537957525s.png (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
file://var/folders/wn/9r4g9k2x2nb48nwtcyzd0crr0000gn/T/temp4628809957537957525.png
    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
    at com.codename1.impl.javase.JavaSEPort.openFileOutputStream(JavaSEPort.java:4922)
    at com.codename1.io.FileSystemStorage.openOutputStream(FileSystemStorage.java:263)
    at com.codename1.capture.Capture$CallBack.run(Capture.java:181)
    at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:103)
    at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:140)
    at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)

Shai Almog

unread,
Jun 10, 2014, 1:41:05 AM6/10/14
to codenameone...@googlegroups.com
I think we fixed this in the upcoming simulator update already. We should probably have an update this week.
Reply all
Reply to author
Forward
0 new messages