Issues with image view in CommCare

Hello,

While compiling the application, some images are not shown, with the error
"Java.Io.Exception: Input Stream is Already Open". I am still able to hear
the audio with the # button.

This error is coming for only some of the images. I am copying the xml code
below, in which except for 1c3.jpg everything else is working fine.

Please suggest the possible reason.

··· ---------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8" ?>

<h:html xmlns:h=“http://www.w3.org/1999/xhtml” xmlns:orx=“
http://openrosa.org/jr/xforms” xmlns="http://www.w3.org/2002/xforms"
xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:jr=“
http://openrosa.org/javarosa”>
<h:head>
<h:title>New Form1</h:title>



<one_c_2 />
<one_c_1 />















चार जांचें
jr://file/msakhi/audio/1c1.mp3
jr://file/msakhi/image/1c1.jpg


चार जांचें क्यों ?
jr://file/msakhi/image/1c2.jpg
jr://file/msakhi/audio/1c2.mp3


जांच कब करवाएं ?
jr://file/msakhi/image/1c3.jpg
jr://file/msakhi/audio/1c3.mp3


स्थान व् समय
jr://file/msakhi/audio/1c4.mp3
jr://file/msakhi/image/1c4.jpg


पौष्टिक आहार लें
jr://file/msakhi/image/1c5.jpg
jr://file/msakhi/audio/1c5.mp3


गर्भ निरोधन सलाह
jr://file/msakhi/audio/1c6.mp3
jr://file/msakhi/image/1c6.jpg




</h:head>
<h:body>

Question1


Question2


Question 3










</h:body>
</h:html>


warm regards,

Girdhari
94-101-22-8-22

Girdarhi,

I don’t see anything which seems obviously off in the form you’ve posted.
Which version of CommCare are you currently running? Could you possibly
include a link to the media you’re using so we can attempt to replicate the
issue?

-Clayton

··· On Fri, Feb 24, 2012 at 12:28 PM, Girdhari Bora wrote:

Hello,

While compiling the application, some images are not shown, with the error
"Java.Io.Exception: Input Stream is Already Open". I am still able to hear
the audio with the # button.

This error is coming for only some of the images. I am copying the xml
code below, in which except for 1c3.jpg everything else is working fine.

Please suggest the possible reason.


<?xml version="1.0" encoding="UTF-8" ?>

<h:html xmlns:h=“http://www.w3.org/1999/xhtml” xmlns:orx=“
http://openrosa.org/jr/xforms” xmlns="http://www.w3.org/2002/xforms"
xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:jr=“
http://openrosa.org/javarosa”>
<h:head>
<h:title>New Form1</h:title>



<one_c_2 />
<one_c_1 />















चार जांचें
jr://file/msakhi/audio/1c1.mp3
jr://file/msakhi/image/1c1.jpg


चार जांचें क्यों ?
jr://file/msakhi/image/1c2.jpg
jr://file/msakhi/audio/1c2.mp3


जांच कब करवाएं ?
jr://file/msakhi/image/1c3.jpg
jr://file/msakhi/audio/1c3.mp3


स्थान व् समय
jr://file/msakhi/audio/1c4.mp3
jr://file/msakhi/image/1c4.jpg


पौष्टिक आहार लें
jr://file/msakhi/image/1c5.jpg
jr://file/msakhi/audio/1c5.mp3


गर्भ निरोधन सलाह
jr://file/msakhi/audio/1c6.mp3
jr://file/msakhi/image/1c6.jpg




</h:head>
<h:body>

Question1


Question2


Question 3










</h:body>
</h:html>


warm regards,

Girdhari
94-101-22-8-22

Hi Clayton,

I am using the version 1.2.

I am sending you the media files (attached). I am having this problem
randomly at other places in the application too and am unable to figure out
why. Also find attached the error message which I can figure out from the
simulator.

warm regards,
girdhari

msakhi.zip (1.82 MB)

··· On Sat, Feb 25, 2012 at 1:33 AM, Clayton Sims wrote:

Girdarhi,

I don’t see anything which seems obviously off in the form you’ve posted.
Which version of CommCare are you currently running? Could you possibly
include a link to the media you’re using so we can attempt to replicate the
issue?

-Clayton

On Fri, Feb 24, 2012 at 12:28 PM, Girdhari Bora girdhari.bora@gmail.comwrote:

Hello,

While compiling the application, some images are not shown, with the
error “Java.Io.Exception: Input Stream is Already Open”. I am still able to
hear the audio with the # button.

This error is coming for only some of the images. I am copying the xml
code below, in which except for 1c3.jpg everything else is working fine.

Please suggest the possible reason.


<?xml version="1.0" encoding="UTF-8" ?>

<h:html xmlns:h=“http://www.w3.org/1999/xhtml” xmlns:orx="
http://openrosa.org/jr/xforms" xmlns=“http://www.w3.org/2002/xforms
xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:jr="
http://openrosa.org/javarosa">
<h:head>
<h:title>New Form1</h:title>



<one_c_2 />
<one_c_1 />















चार जांचें
jr://file/msakhi/audio/1c1.mp3
jr://file/msakhi/image/1c1.jpg


चार जांचें क्यों ?
jr://file/msakhi/image/1c2.jpg
jr://file/msakhi/audio/1c2.mp3


जांच कब करवाएं ?
jr://file/msakhi/image/1c3.jpg
jr://file/msakhi/audio/1c3.mp3


स्थान व् समय
jr://file/msakhi/audio/1c4.mp3
jr://file/msakhi/image/1c4.jpg


पौष्टिक आहार लें
jr://file/msakhi/image/1c5.jpg
jr://file/msakhi/audio/1c5.mp3


गर्भ निरोधन सलाह
jr://file/msakhi/audio/1c6.mp3
jr://file/msakhi/image/1c6.jpg




</h:head>
<h:body>

Question1


Question2


Question 3










</h:body>
</h:html>


warm regards,

Girdhari
94-101-22-8-22


warm regards,

Girdhari
94-101-22-8-22

Hi Clayton!

I could resolve the issues. Now its working fine. The problems were with
the media files (a. The names of the files were stored as “2c1.jpg.jpg” b.
The media files (images and sound files) were of bigger size).

Thanks.

··· On Sat, Feb 25, 2012 at 2:16 AM, Girdhari Bora wrote:

Hi Clayton,

I am using the version 1.2.

I am sending you the media files (attached). I am having this problem
randomly at other places in the application too and am unable to figure out
why. Also find attached the error message which I can figure out from the
simulator.

warm regards,
girdhari

On Sat, Feb 25, 2012 at 1:33 AM, Clayton Sims csims@dimagi.com wrote:

Girdarhi,

I don’t see anything which seems obviously off in the form you’ve posted.
Which version of CommCare are you currently running? Could you possibly
include a link to the media you’re using so we can attempt to replicate the
issue?

-Clayton

On Fri, Feb 24, 2012 at 12:28 PM, Girdhari Bora girdhari.bora@gmail.comwrote:

Hello,

While compiling the application, some images are not shown, with the
error “Java.Io.Exception: Input Stream is Already Open”. I am still able to
hear the audio with the # button.

This error is coming for only some of the images. I am copying the xml
code below, in which except for 1c3.jpg everything else is working fine.

Please suggest the possible reason.


<?xml version="1.0" encoding="UTF-8" ?>

<h:html xmlns:h=“http://www.w3.org/1999/xhtml” xmlns:orx=“
http://openrosa.org/jr/xforms” xmlns="http://www.w3.org/2002/xforms"
xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:jr=“
http://openrosa.org/javarosa”>
<h:head>
<h:title>New Form1</h:title>



<one_c_2 />
<one_c_1 />















चार जांचें
jr://file/msakhi/audio/1c1.mp3
jr://file/msakhi/image/1c1.jpg


चार जांचें क्यों ?
jr://file/msakhi/image/1c2.jpg
jr://file/msakhi/audio/1c2.mp3


जांच कब करवाएं ?
jr://file/msakhi/image/1c3.jpg
jr://file/msakhi/audio/1c3.mp3


स्थान व् समय
jr://file/msakhi/audio/1c4.mp3
jr://file/msakhi/image/1c4.jpg


पौष्टिक आहार लें
jr://file/msakhi/image/1c5.jpg
jr://file/msakhi/audio/1c5.mp3


गर्भ निरोधन सलाह
jr://file/msakhi/audio/1c6.mp3
jr://file/msakhi/image/1c6.jpg




</h:head>
<h:body>

Question1


Question2


Question 3










</h:body>
</h:html>


warm regards,

Girdhari
94-101-22-8-22


warm regards,

Girdhari
94-101-22-8-22


warm regards,

Girdhari
94-101-22-8-22

Girdhari,

Great to hear things were able to be resolved! This is a tricky issue to
catch, good call on the file names.

We’re currently working on integrating multimedia support into HQ in a way
that should no longer require folks to manually set up all of their files,
which should help avoid these kinds of issues in the future. Until then,
this is a good thing for folks to look for when developing their own
multimedia.

Additionally, if you move over to building your project with CommCare 1.3,
the app should do a quick spot-check on startup which will let you know if
there are any multimedia resources missing on the local phone, which you
may find helpful.

-Clayton

··· On Mon, Feb 27, 2012 at 4:40 AM, Girdhari Bora wrote:

Hi Clayton!

I could resolve the issues. Now its working fine. The problems were with
the media files (a. The names of the files were stored as “2c1.jpg.jpg” b.
The media files (images and sound files) were of bigger size).

Thanks.

On Sat, Feb 25, 2012 at 2:16 AM, Girdhari Bora girdhari.bora@gmail.comwrote:

Hi Clayton,

I am using the version 1.2.

I am sending you the media files (attached). I am having this problem
randomly at other places in the application too and am unable to figure out
why. Also find attached the error message which I can figure out from the
simulator.

warm regards,
girdhari

On Sat, Feb 25, 2012 at 1:33 AM, Clayton Sims csims@dimagi.com wrote:

Girdarhi,

I don’t see anything which seems obviously off in the form you’ve
posted. Which version of CommCare are you currently running? Could you
possibly include a link to the media you’re using so we can attempt to
replicate the issue?

-Clayton

On Fri, Feb 24, 2012 at 12:28 PM, Girdhari Bora <girdhari.bora@gmail.com wrote:

Hello,

While compiling the application, some images are not shown, with the
error “Java.Io.Exception: Input Stream is Already Open”. I am still able to
hear the audio with the # button.

This error is coming for only some of the images. I am copying the xml
code below, in which except for 1c3.jpg everything else is working fine.

Please suggest the possible reason.


<?xml version="1.0" encoding="UTF-8" ?>

<h:html xmlns:h=“http://www.w3.org/1999/xhtml” xmlns:orx=“
http://openrosa.org/jr/xforms” xmlns="http://www.w3.org/2002/xforms"
xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:jr=“
http://openrosa.org/javarosa”>
<h:head>
<h:title>New Form1</h:title>



<one_c_2 />
<one_c_1 />















चार जांचें
jr://file/msakhi/audio/1c1.mp3
jr://file/msakhi/image/1c1.jpg


चार जांचें क्यों ?
jr://file/msakhi/image/1c2.jpg
jr://file/msakhi/audio/1c2.mp3


जांच कब करवाएं ?
jr://file/msakhi/image/1c3.jpg
jr://file/msakhi/audio/1c3.mp3


स्थान व् समय
jr://file/msakhi/audio/1c4.mp3
jr://file/msakhi/image/1c4.jpg


पौष्टिक आहार लें
jr://file/msakhi/image/1c5.jpg
jr://file/msakhi/audio/1c5.mp3


गर्भ निरोधन सलाह
jr://file/msakhi/audio/1c6.mp3
jr://file/msakhi/image/1c6.jpg




</h:head>
<h:body>

Question1


Question2


Question 3










</h:body>
</h:html>


warm regards,

Girdhari
94-101-22-8-22


warm regards,

Girdhari
94-101-22-8-22


warm regards,

Girdhari
94-101-22-8-22