jetty-project / i-jetty

Jetty for Android (moved from code.google.com)
277 stars 99 forks source link

Built In "Console" Audio section Error #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect to WiFi
2. Start Jetty
3. Open Jetty in Latest Firefox 3.6.13 http://ip:8080/console/media
4. let content load

What is the expected output? What do you see instead?
All content is shown without error

What version of the product are you using? On what operating system?
2.2
Android 2.2.1 (Droid[Motorola voles])

Please provide any additional information below.

Error I get is below 
------ Start of error ----
Failed to get audio!
Error:

GET media list for audio failed, status: 200 reason: parsererror exception: 
undefined
------ End of error ----

Original issue reported on code.google.com by gcst...@gmail.com on 7 Feb 2011 at 1:14

GoogleCodeExporter commented 9 years ago
I am having the same problem but have done some research that might help. My 
config:
Android 2.2.1 on T-Mobile mytouch 3G
Using Chrome 11.0 on Windows

It seems that i-jetty is indeed returning the json object to the browser (I 
checked using Chrome Developer tools) but the parser written to convert the 
json object to visual fails. One thing to note is that in my case Images and 
Audio lists failed to display whereas Videos list came up perfectly.

One possible reason could be that my videos list was small whereas my Images 
and Audios list is long.

Original comment by jkpat...@gmail.com on 3 May 2011 at 9:19

GoogleCodeExporter commented 9 years ago
I have changed substantially the way the media is obtained and rendered. Its 
obtained with json now, and rendered paginated, which should fix any 
'overloading' errors. I've also ensured that thumbnails get recycled, so there 
should be no OOM errors on i-jetty side.

Also, I think these "parseerror" exceptions were all caused by the login 
session timing out and returning the login.html page instead of a json page as 
the xhr request is expecting. I've modified the login session so that it only 
timesout at the end of the browser session (or unless you restart i-jetty).

I'm attaching a recent console apk if you'd like to install and test. Stop 
i-jetty, start the installer and reinstall the console, then restart i-jetty.

NOTE: if you have an /sdcard/jetty/work directory its probably best to remove 
it, as I've noticed that for some reason android barfs when jars from the old 
unpacked war in the work/ directory get replaced. No harm in removing the work/ 
dir.

Original comment by jan.bar...@gmail.com on 7 Sep 2011 at 6:36

Attachments:

GoogleCodeExporter commented 9 years ago
i-jetty-console-installer-3.1-SNAPSHOT.apk simply works! :) thanks!

Original comment by human1...@gmail.com on 28 Dec 2011 at 5:10