JavaSonics Applet Error
| Project: | Audio recording field |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | pburk |
| Status: | active |
Jump to:
I am wondering if anyone has encountered the following error, or would know why I might be getting it.
ListenUp version V1.89 (build 385, Wed Sep 03 00:00:00 EDT 2008)
Caught: java.io.IOException: error
----------- System Details ---------------------
ListenUp version V1.89 (build 385, Wed Sep 03 00:00:00 EDT 2008)
java.version = 1.6.0_11
java.vendor = Sun Microsystems Inc.
java.home = C:\Program Files\Java\jre6
user.home = C:\Documents and Settings\matt
java.library.path = C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Mozilla Firefox;C:\Prog
----------- Location of Error ------------------
java.io.IOException: error
at com.softsynth.dc.a(dc.java:471)
at com.softsynth.javasonics.recplay.id.a(id.java:520)
at com.softsynth.javasonics.fc.e(fc.java:152)
at com.softsynth.javasonics.fc.run(fc.java:105)
at java.lang.Thread.run(Unknown Source)
If you think this is a bug, then please copy and paste this message
in a report to the technical support folks for this website.
Use Control-A to select entire text of error.
Please include in your letter what you were doing at the time,
what you expected to happen, and what actually occured.This happens after I hit send. Everything appears to work fine except I get this error. The file is actually uploaded properly, but instead of the success message ""SUCCESS - File havs been uploaded," I get "error" and the above JavaSonics Alert pops up. If I remove the the line from the function AudioRecordingField_file_receive I do not get the error, but I also don't get the file back for replaying.
var_export($_FILES);This issue seems to be fairly quirky... I've tried it on a "fresh" computer and had things work properly, and then the issue started happening again. Any ideas what might be going on?
Thanks,
Matt

#1
So I believe I tracked down the issue....
I've talked with someone from JavaSonics and found out that the correct behaviour is for the applet to clear audio file from the applet.
I had thought that the var_export($_FILES) might somehow be sending back information that would be used to load the file back into the applet. In believe however that the var_export($_FILES) actually creates a bug that has the side effect of leaving the audio file in the applet, but still allows the uploading to work.
So basically I was expecting the wrong behaviour and the var_export stuff probably shouldn't be there. You only need to send back the SUCCESS or ERROR lines and you can add JavaScript at the end if you want.
#2
The var_export is actually just a small debugging information that suppose to help users track down problems with the upload process. I didn't encounter the error you reported, but I'll check this issue. Thanks.
#3
The problem was caused by var_export() not sending an EOL. So the SUCCESS was not at the beginning of a line and was, therefore not seen by ListenUp. The fix is to put an EOL before SUCCESS, like this:
// Start SUCCESS on a new line so it is clear of earlier debug dumps.
print("\nSUCCESS - File has been uploaded.\n");