I sometimes get the following error. It is however not really clear how to reproduce this error, but it seems that it has something to do with an earlier failed file upload on the server side. When everything goes well at the server-side this problem does not arise.
Possible reproduction of the problem:
- try to record and subsequently upload a audio fragment
- let the fragment fail on the server-side
- now refresh the page (without killing the cache)
- now try to record and upload again, the following error arises:
OS: Windows Vista
VERSION:1.3.20.1
Mp3 Dll version
DEMO_VERSION
Maximal time of record is 0:0:20
current Java specification version: 1.6
local file hash: bc6865f5f6741c5ab07bd0c274ae8359a081d95a
remote file hash: bc6865f5f6741c5ab07bd0c274ae8359a081d95a
Loading library C:\Users\MyUsername\AppData\Local\Temp\\Vimas\\jaudioMp3Win.tar...
Library loaded...
Library version : 8
local file hash: bc6865f5f6741c5ab07bd0c274ae8359a081d95a
remote file hash: bc6865f5f6741c5ab07bd0c274ae8359a081d95a
Start Record
Stopped
uploadVoiceMsg: voiceBuffer size = 10800
PERCENT UPLOADING 0
sending ended block
Exception at uploading java.lang.NullPointerException
java.lang.NullPointerException
at bi.run(bi.java)
at java.security.AccessController.doPrivileged(Native Method)
at bq.d(bq.java)
at bq.b(bq.java)
at bq.a(bq.java)
at bq.run(bq.java)
at java.lang.Thread.run(Unknown Source)
Hope to hear about it soon. The error is becoming very annoying.
Error while uploading audio fragment
Started by Ron, Mar 24 2009 04:44 PM
3 replies to this topic
#1
Posted 24 March 2009 - 04:44 PM
#2
Posted 24 March 2009 - 05:00 PM
I can confirm my reproduction method of this problem. The best way is to let the 'ACCEPTED' status fail. Just returning some rubbish from the upload script is enough. I had some debug statement at the beginning of my upload script which reproduces this problem. So:
1. create a rubbish upload script (just an file with some random data lines)
2. record and upload a message -> fails normally
3. refresh the page (just F5 not CTRL+F5)
4. try to record and upload again: the nullpointer exception arises now
Browser: Firefox 3.0.7
Plugins: delicious 2.1.018, firebug 1.3.4b1, web developmer 1.1.6
Java version: Java Plug-in 1.6.0_11
1. create a rubbish upload script (just an file with some random data lines)
2. record and upload a message -> fails normally
3. refresh the page (just F5 not CTRL+F5)
4. try to record and upload again: the nullpointer exception arises now
Browser: Firefox 3.0.7
Plugins: delicious 2.1.018, firebug 1.3.4b1, web developmer 1.1.6
Java version: Java Plug-in 1.6.0_11
#3
Posted 25 March 2009 - 12:12 PM
QUOTE (Sergey)
Also, you wrote: The best way is to let the 'ACCEPTED' status fail. Just returning some rubbish from the upload script is enough.
Ron, I never see the customer which changed the code of application (server script) and then asks to help him because application does not work. May be I do not understand something?
My recomendation is: do not return some rubbish instead of ACCEPTED and applet will work fine!
Ron, I never see the customer which changed the code of application (server script) and then asks to help him because application does not work. May be I do not understand something?
My recomendation is: do not return some rubbish instead of ACCEPTED and applet will work fine!
You are completely right about that. My question is somewhat confusing. I'm however not asking for any support for my self-written server-side script. The error is occuring in the applet:
- uploading fails SERVERSIDE for whatever reason
- user applet is refreshed
- errors start occuring CLIENTSIDE
This is very odd because a refreshed applet clientside should not be affected by any previous actions.
The error however now also occurs even when uploads do succeed:
- record + upload audio fragment
- refresh page
- record audio fragment, uploads now fail
I've got a hunch about the source of the problem. The files uploaded via the applet will not be made available public. So the Directory where the mp3 file is uploaded to is not accessible from outside. Could this cause the problem? Could you maybe peak in the source code to see where the nullpointer exception is originating from?
#4
Posted 26 March 2009 - 10:54 AM
For people who are reading this and are experiencing the same problem. At this point a new version of the applet has been written which solves this issue.
It's also possible to build a work-around for this problem. Build a javascript that adds the applet tag to the html document after it's loaded. This also solves the problem, but isn't really neat. Better install the newsest version of the applet :-)
It's also possible to build a work-around for this problem. Build a javascript that adds the applet tag to the html document after it's loaded. This also solves the problem, but isn't really neat. Better install the newsest version of the applet :-)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












