FileReference upload failure

Hi, I got a FileRefrence instance for a simple upload and it did work for some time in the past, but now I just can't discover what made it stop woking. Can anyone help me find it out? To simplify, I took only the necessary code (not working as the full version). Here are some details:
1. I'm using Flash Player 9 (this can't change because it is a part of a bigger project). My current host machine is a Windows Vista one. The sandbox is set to network access.
2. The FileReference calls a simple php script hosted at an Apache server (Linux). The script permissions are set to 644 (it works for file uploads coming from plain html pages) and I set the folder permission to 777 just to avoid any other source of errors. Here is the simple code for the php script:
<?php
// receiving variables
$uid = trim($_POST['uid']); // just to check for a post variable that  I must send while uploading (won't work even if I revome it)
// a file to check if the script is really called
$myfile = fopen("upload.txt", "wb");
fputs($myfile, "file upload for uid $uid\n");
// receiving the file and saving it
if ($_FILES['Filedata']['name'] != "") {
    $newName = preg_replace('/[^a-z0-9_\-\.]/i', "_", $_FILES['Filedata']['name']);
    $newName = preg_replace('[ \f\r\t\n]', "_", $newName);
    @move_uploaded_file($_FILES['Filedata']['tmp_name'], $newName);
    fputs($myfile, ("new received filename: " . $newName . "\n"));
} else {
    fputs($myfile, ("no file received\n"));
fclose($myfile);
?>
This script writes a file named "upload.txt" so I know it was really called. If I run it directly from the browser, everything is ok.
3. My AS3 code just starts the browsing for a file (I'm using a 500k mp3 to test). By following the program trace I see that the upload actually happens, but when it finishes, I get an IO error (I'm using the very same url address for the script that I use at the browser). When I check the server, I see that no "upload.txt" file is written, so the script was really not found. Here is some of the AS3 code I'm using:
private var urlSend:URLRequest = new URLRequest("my address to the php script (http)");
private var urlData:URLVariables = new URLVariables();   
private var fileTansfer:FileReference = new FileReference();
private function uploadFile():void { // call by a button click
     this.urlData.uid = "1";
     this.urlSend.method = URLRequestMethod.POST;
     this.urlSend.data = this.urlData;
     this.configureListeners(this.fileTansfer); // all listeners are correctly set
     this.fileTansfer.browse(new Array(new FileFilter("Audio files", "*.mp3")));
// listeners set here
private function selectHandler(event:Event):void {
     var file:FileReference = FileReference(event.target);
     trace("selectHandler: name=" + file.name + " URL=" + this.urlSend.url); // prints correclty
     file.upload(this.urlSend);
As I said before, I get traces from progress handler and when it reaches the end, I get the IO error message:
ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038: Erro do arquivo de E/S. URL: (my correct url here)"]
Just for checking I add a Loader instance and used its "load" method with the same "urlSend" variable. It worked and the php script generated the output file...
Does anyone know what's happening? Could it be some permission problem? Why can't the FileReference find my script assuming its url is ok?
Thank you in advance!

How did you resolve the above error ? Thanks.

Similar Messages

  • Filereference.upload ... works on localserver but not on webserver

    hello;
    I'm uploading images via filereference.upload ... works fine when testing on local machine with apache. once I port everything to my web-based server ( shared server with a webhosting company ), the upload fails.
    - do not get any errors such as SECURITY_ERROR , HTTP_STATUS , IO_ERROR
    - do get 1 PROGRESS event - only 1 - but it already shows 100%
    - do get COMPLETE event after a couple of seconds
    - do not get UPLOAD_COMPLETE_DATA, but do get it on localhost
    - do not get the image on the remote server
    - my local php is 5.2 ... webserver php is 4.4 ...
    - I have tried setting 757 as file permissions for image directory
    - all php, swf, image directories are in the same domain, though in different directories.
    - I have tried uploading the image to the same directory as php directory itself
    any thoughts?
    thanks,
    dsdsdsdsd

    not exactly what was not working, but my webhost updated my php module to php 5.2, and my uploader works.

  • Flex 3 - CF9 filereference.upload test

    Hi
    i run a filereference.upload test flex application which uploads a file through a coldfusion server.
    i’m using flex 3 and coldfusion 9.
    i’m also passing parameters in the URLRequest that points to the upload cfm file.
    when i run my test using the built-in web server (Jrun) all seems to work just fine
    when i run the same test on a coldfusion instance that runs on Apache web server, it throws a I/O Error…
    i suspect i’m missing some kind of a configuration i need to perform when moving to a production setup rather then a development environment…
    can anyone guide me through this?
    does it have to do with security? on the client? on the server?
    i’m still running on localhost…
    summery...
    attached are the mxml file and the cfm file
    works great on built-in server
    throws a I/O error when runs through Apache
    cheers

    If you want to test against another implementation, I wrote a Flex Upload component and CFML script a while back. I've used it regularly on IIS and Apache server (and my localhost) without having to modify the configuration at all. Speaking of the config, Daverns could be totally right ... and this post is not to refute or argue the point about Mod_Security; rather, its only meant as another options to test, since you were having trouble with it on the production server.
    The attached Zip archive contains three files: FileUpload.mxml, SampleUsage.mxml, and fileUpload.cfm. The files are heavily commented but feel free to ping me if you have any issues with it.
    Good luck!

  • FileReference.upload() not working in Firefox

    Hi,
    i have a strange problem - my Flex application uses the FileReference.upload() to upload images to the server. ServerSideScript ist pure PHP.
    It is working in IE but not in FF
    Any help is really appreciated since i'm running out of ideas...
    <?php
    $target_path = "../xml/akten/dokumente/";
    $target_path = $target_path . basename( $_FILES['file']['name']);
    if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) {
        echo "The file ".  basename( $_FILES['file']['name']).
        " has been uploaded";
    } else{
        echo "There was an error uploading the file, please try again!";
    ?>
    Greetings from Germany
    Markus

    I am facing the same problem.
    Has anyone any solution on this.
    Thanks

  • Antivirus software breaks FileReference.upload() method...

    Hi there,
    I'm a Flash developer who's run into an interesting problem since upgrading to AVG 9 (free antivirus software).
    I use Flash to facilitate large uploads to websites (eg. video). I've built plently of upload widgets that use Flash's FileReference.upload() method to send a file from a users computer to a webserver.
    It seems that since upgrading to AVG 9, the bytesLoaded property of a ProgressEvent is being updated at warp speed - a 30mb file appears sent to a server in less than a second! Which is ridiculous. So in an instant, the bytesLoaded property equals the bytesTotal property. Seemingly an arbitrarily time later, the Event.COMPLETE event fires (I think this arbitrarial illusion is caused by the upload continuing in the background). If everything was running as it's supposed to, this should generally be followed by a DataEvent.UPLOAD_COMPLETE_DATA event firing. But now, because of all this weirdness, no DataEvent.UPLOAD_COMPLETE_DATA event is firing.
    After a bit of websurfing I found other developers having problems with this because of virus software - so I've uninstalled AVG and "voila!", Flash now works as it is supposed to when uploading a file again.
    I guess I could build a polling timer into my uploader to continually ping the server to check that my upload had complete and grab my upload complete data that way, but that'd be annoying as heck.
    Any ideas what's going on? This is kind of a massive problem, ProgressEvent returning bogus bytesLoaded data, isn't it?
    Kind regards,
    James.

    James Furey:
    I agree in disabling the LinkScanner. Open AVG User Interface, Dbl click on the LinkScanner and Untick the "Enable AVG Search-Shield" and the "Enable Active Surf-Shield" then SAVE the changes made.
    eidnolb
    Message was edited by: eidnolb

  • File upload failure

    Hi,
    My system is unable to upload the file to SRS server stating the below error:-
    SRS Proxy&#91;19653&#93;: &#91;ID 728115 daemon.error&#93; File upload failure: exceeded maximum retry count
    Pls. give me the solution for this

    I believe this is a cross post, please only post in one location. Do you
              observe any errors to std.out or std.err vs. the log file? Sometimes when
              there are memory errors there is no more resources to log messages and the
              error (by the VM) will go to std out/err. Also you might turn on -verbosegc
              to see what is going on with memory during the test. Are you trying to
              bring the entire upload into memory prior to writing it to disk, or are you
              writing as you go?
              Cheers
              mbg
              "Paul Botta" <[email protected]> wrote in message
              news:3ecacd0e$[email protected]..
              > I have a JSP/Servlet that provides users with a file upload mechanism. It
              works fine for small files, but when I post a large file (500 mg) the
              uploads is incomplete. I've confirmed that my servlet that handles the
              uploaded file isn't even being called, so it would seem that it fails
              during as the wl server is creating the temp file. There is no exception
              that I can see in the log files. Any suggestions?
              

  • FileReference.upload response is truncated on Mac

    I have flash as3 code that will upload a file to my server using FileReference.upload but when receiving the DataEvent.UPLOAD_COMPLETE_DATA event * on MAC only *, I find that event.data will get truncated after a certain number of bytes/characters (looks to be about 2400 Bytes). I know that my server is returning more data than this because I can see the raw response using an HTTP sniffer program. Is there a reason my response data is getting truncated on macs and is there anything I can do to avoid this truncation?
    My server side code is running on ASP.NET and IIS if that is relevant. The Content-Length HTTP Header value also appears to be set correctly. This looks to work on windows (firefox 3.6, chrome, and IE) but fails consistently on mac (firefox, chrome, safari).
    Any ideas?

    I have flash as3 code that will upload a file to my server using FileReference.upload but when receiving the DataEvent.UPLOAD_COMPLETE_DATA event * on MAC only *, I find that event.data will get truncated after a certain number of bytes/characters (looks to be about 2400 Bytes). I know that my server is returning more data than this because I can see the raw response using an HTTP sniffer program. Is there a reason my response data is getting truncated on macs and is there anything I can do to avoid this truncation?
    My server side code is running on ASP.NET and IIS if that is relevant. The Content-Length HTTP Header value also appears to be set correctly. This looks to work on windows (firefox 3.6, chrome, and IE) but fails consistently on mac (firefox, chrome, safari).
    Any ideas?

  • FileReference.upload in JSP problem

    Help !!!
    We've succesfully implemented file upload via flash in jsp
    tomcat (using FileReference.upload() in actionscript 2.0 ), but for
    some reason, parameters posted in the url to the file upload
    handling script (ej. "uploadScript.jsp?id=1") are lost, ie: the
    id=1 is lost.
    To double check flash correctly sending params , we've
    implemented the same flash object in php and parameters are posted
    fine.
    Any Ideas, I'm desperate.
    thanks.
    cC

    Therefore, can anyone tell me what have happened?The problem is in the scope. Request objects are local to jspService() method (Sorry, i forgot the name). So it's life is not long enough to be found in other pages. For your case, session is the perfect scope.
    session.setAttribute() is the smartest. u can use pageContext.setAttribute method also. I do not have any idea about other solutions.
    Hafizur Rahman
    SCJP

  • Getting the response from a FileReference upload

    This question is about the "upload" method of the
    FileReference class.
    Is there any way to read the HTTP response after a file
    upload is complete? For example, a user uploads an file to a
    server. The server saves the file and assigns it an ID. The server
    then writes the ID to the HTTP response. How does the client read
    that response?

    inlineblue wrote:
     This was kicked around a while back in the Flexcoders list.
    Everyone agrees this would be very useful, but not currently
    available. Sigh.
    Flexcoders said what?  (Am I missing something? Ahh - the date of the original post...)
    fileReference.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, uploadComplete);
    private function uploadComplete(event:DataEvent):void {
         trace(event.data);
    getWriter() or getOutputStream() on the servlet response to send "stuff" back...

  • How can I pass a path to the FileReference upload function?

    i don't understand how can i upload a file from the browse
    function after you've selected a file. since FileReference.name
    returns
    only the filename w/extension and not the path, how can i
    work around this?
    i understand the security implications with a swf and the
    such, but what to do? and using an AIR app is not an option for me.
    i have a .net web service in place and it works with a hard
    coded string, such as in the snippet below, but how are people
    doing this by using the browse method as oppossed to a static
    string?
    i get an IO error with just the browse() returned filename,
    which makes sense when you think about it. path, path, path...ARGH!
    thanks folks...
    -fd

    i don't understand how can i upload a file from the browse
    function after you've selected a file. since FileReference.name
    returns
    only the filename w/extension and not the path, how can i
    work around this?
    i understand the security implications with a swf and the
    such, but what to do? and using an AIR app is not an option for me.
    i have a .net web service in place and it works with a hard
    coded string, such as in the snippet below, but how are people
    doing this by using the browse method as oppossed to a static
    string?
    i get an IO error with just the browse() returned filename,
    which makes sense when you think about it. path, path, path...ARGH!
    thanks folks...
    -fd

  • Filereference Upload - A script in this movie is causing Adobe Flash...

    This appears to be a sore topic these days. I have searched and found a large number of postings with this flash player message (A script in this move is causing Adobe Flash Player -n- to run slowly. If it continues...) But I haven't found a posting where it is resolved. I am trying to provide my client with an upload script. What I have so far works on small files but results in the aforementioned error message on large files. I saw a message a few days ago that talked about writing an onEnterFrame routine in a dummy movie clip that increments a counter, but there were no details about what that code might look like.  I have tried several iterations of that logic to no avail.  I know I am not the only one with this problem, and I do need to find a solution. I don't think that the server php settings are the problem.  Does anyone have any ideas?
    Thanks in advance,
    GW
    Action script from Layer 1: Frame 1 -
    _global.states = Array("AL", "AK", "AS", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FM", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MH", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "MP", "OH", "OK", "OR", "PW", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY");
    _global.states.sort();
    _global.keepMemory = false;
    this.mc_uploadCtr.mc_stateError._visible = false;
    this.mc_uploadCtr._visible = false;
    this.mc_uploadCtr.enabled = false;
    // Get upload data
    var xmlData=new XML();
    xmlData.ignoreWhite=true;
    xmlData.onLoad = function(ok:Boolean) {
       if (ok) {
           processXmlData(this);       
       } else {
           dt_main.text = "XML did not load";
    function processXmlData(xml:XML) {
        _global.notifyToEmail    = xml.firstChild.childNodes[0].childNodes[0].nodeValue;
        _global.notifyFromEmail = xml.firstChild.childNodes[1].childNodes[0].nodeValue;
        _global.notifyFromName     = xml.firstChild.childNodes[2].childNodes[0].nodeValue;
    System.useCodepage = true;
    xmlData.load('uploadData.xml');
    _global.keepInMemory = function(keep:Boolean) {
        if ((keep == true) and (_global.keepMemory == false)) {
            _global.keepMemory = true;
            this.createEmptyMovieClip("dummy_mc", 999);
            this.dummy_mc.onEnterFrame = function () {
                while(_global.keepMemory == true) {
                    var count:Number = count + 1;
        } else {
            if (_global.keepMemory = true) {
                _global.keepMemory = false;
                this.dummy_mc.unloadMovie();
    stop();
    Action Script from upload movie clip:
    import flash.net.FileReference;
    var progressBar:MovieClip;
    var reference:FileReference = new FileReference();
    var referenceListener:Object = {};
    var scriptLocation:String = 'uploader.php';
    var progressBarHeight:Number = 10;
    var progressBarY:Number = 50;
    var progressBarColor:Number = 0x66ccff;
    reference.addListener(referenceListener);
    referenceListener.onSelect = activateUploadButton;
    referenceListener.onProgress = updateProgress;
    referenceListener.onComplete = checkIn;
    referenceListener.onHTTPError = handleError;
    referenceListener.onIOError = handleError;
    referenceListener.onSecurityError = handleError;
    btn_uploadFile._visible = false;
    btn_selectFile.onRelease = choose;
    btn_uploadFile.onRelease = uploadCurrent;
    function activateUploadButton():Void {
        display_txt.text = reference.name;
        btn_uploadFile._visible = true;
        btn_uploadFile.enabled = true;
    function choose():Void {
        reference.browse([{description:'Images (*.ai, *.drw, *.jpg, *.jpeg, *.gif, *.pdf, *.png, *.psd, *.psp, *.tif,)', extension:'*.ai; *.drw; *.jpg; *.jpeg; *.gif; *.pdf; *.png; *.psd; *.psp; *.tif'}]);
    function handleError(errorName:String, detail:Object):Void {
        restart();
        if (arguments.length === 2) {
            if (typeof detail === 'number') {
                display_txt.text = 'HTTP Error #'+detail;
            } else {
                display_txt.text = 'Security Error: '+detail;
        } else {
            display_txt.text = 'IO Error';
    function makeProgressBar(x:Number, y:Number):MovieClip {
        var bar:MovieClip = createEmptyMovieClip('progressBar_mc', 0);
        bar._visible = false;
        bar.beginFill(progressBarColor);
        bar.lineTo(display_txt._width, 0);
        bar.lineTo(display_txt._width, progressBarHeight);
        bar.lineTo(0, progressBarHeight);
        bar.lineTo(0, 0);
        bar.endFill();
        bar._width = 0;
        bar._visible = true;
        bar._x = x;
        bar._y = y;
        return bar;
    function restart():Void {
        removeMovieClip(progressBar);
        display_txt.text = '';
        btn_uploadFile._visible = false;
        btn_selectFile._visible = true;
    function updateProgress(fileReference:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
        display_txt.text = fileReference.name+' - '+Math.ceil((bytesLoaded/bytesTotal)*100)+'%';
        progressBar._width = Math.ceil(display_txt._width*(bytesLoaded/bytesTotal));
    function uploadCurrent():Void {
        btn_selectFile._visible = false;
        btn_uploadFile.enabled = false;
        progressBar = makeProgressBar(0, progressBarY);
        _global.keepInMemory(true);
        reference.upload(scriptLocation);
    function checkIn():Void {
        _global.keepInMemory(false);
        moveFile();
        notify()
        restart();
    function moveFile():Void {
          _global.uploadedFile = (_global.uploadFolder + '/' + reference.name);
    //    var lv_result:LoadVars = new LoadVars();
    //    var lv_move = new LoadVars();
    //    lv_move.fileName = reference.name;
    //    lv_move.rootFolder = (_global.rootFolder);
    //    lv_move.sourceFolder = (_global.uploadFolder);
    //    lv_move.targetFolder = (_global.uploadFolder);
    //    lv_move.sendAndLoad("mover.php", lv_result, "POST");
    function notify():Void {
        var st_companyName:String = ('<tr><td>Company name:</td><td>'+_global.companyName+'</td></tr>')
        var st_contactName:String = ('<tr><td>Contact name:</td><td>'+_global.contactName+'</td></tr>')
        var st_phoneNumber:String = ('<tr><td>Phone number:</td><td>'+_global.phoneNumber+'</td></tr>')
        var st_address:String = "";
        if (_global.address2 <> "") {
            st_address = ('<tr><td>Address:</td><td>'+_global.address1+'</td></tr><tr><td> </td><td>'+_global.address2+'</td></tr><tr><td> </td><td>'+_global.addressCity+', '+_global.addressState + ' ' + _global.addressZip + '</td></tr>');
        } else {
            st_address = ('<tr><td>Address:</td><td>'+_global.address1+'</td></tr><tr><td> </td><td>'+_global.addressCity+', '+_global.addressState+' '+ _global.addressZip + '</td></tr>');
        var st_email:String = ('<tr><td>E-Mail:</td><td>'+_global.email+'</td></tr>')
        var st_quantity:String = ('<tr><td>Quantity:</td><td>'+_global.quantity+'</td></tr>')
        var st_sides:String = ('<tr><td>Sides:</td><td>'+_global.sides+'</td></tr>')
        var st_paperWeight:String = ('<tr><td>Paper weight:</td><td>'+_global.sides+'</td></tr>')
        var st_jobDescription:String = ('<tr><td>Desc/Title of job:</td><td>'+_global.jobDescription+'</td></tr>')
        var st_uploadedFile:String = ('<tr><td>Uploaded file:</td><td>'+_global.uploadedFile+'</td></tr>')
        var result_lv:LoadVars = new LoadVars();
        result_lv.onLoad = function(success:Boolean) {
        if (success) {
        } else {
        var lv_notify = new LoadVars();
        lv_notify.sender_fromEmail = _global.notifyFromEmail;
        lv_notify.sender_toEmail = _global.notifyToEmail;
        lv_notify.sender_fromName = _global.notifyFromName;
        lv_notify.sender_subject = ('File received from ' + _global.companyName);
        lv_notify.sender_message = ('<table width="550" border="1" align="left">' + st_companyName + st_contactName + st_phoneNumber + st_address + st_email + st_quantity + st_sides + st_paperWeight + st_jobDescription + st_uploadedFile + '</table>');
        lv_notify.sendAndLoad("sendmail.php", result_lv, "POST");
        return;
    uploader.php -<?php
        if ($_FILES['Filedata']['name']) {
            upload_max_filesize = 100M;
            post_max_size = 100M;
            move_uploaded_file($_FILES['Filedata']['tmp_name'], 'uploads/' . basename($_FILES['Filedata']['name']));
    ?>

    Thank you, your answer was helpful. The problem was occuring before I entered the the code you referred to. But your response made me realize that the problem did, indeed, have to do with code that was running during the upload. I isolated the problem to the progress bar logic, which I suspect is not a coding error, but just too many cycles for the player to put up with during a long upload.  I am now searching for another method of displaying upload status without a tight piece of code that loops a lot.
    Thank you again kglad!

  • IO Error after FileReference.upload()

    I was working with FileReference to upload to an server and
    the upload was successfully completed, but for some reason I was
    getting an IOErrorEvent.IO_ERROR after the upload and the
    Event.COMPLETE / DataEvent.COMPLETE do not dispatch.
    I found the solution to create an .htaccess file with:
    SECFILTERENGINE OFF
    SECFILTERSCANPOST OFF
    ... but my host will not do this.
    Is there a way to fix it?
    _steffen

    Hi Steffen,
    I've not seen this problem. Could you please provide a little
    more information? What is the backend server platform you're using?
    PHP, ColdFusion, ASP, ... ?
    Also, have you listened to the HTTP_RESPONSE_STATUS event,
    and examined some the status property?
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/HTTPStatusEvent.htm l
    -Erica

  • YouTube upload failure

    I am trying to upload a video to youtube from premiere pro.  It keeps telling me the file format is not supported and wont upload.  I havent changed any settings that i know of from previous videos.  Please help 

    Welcome to the forum.
    Are you hoping to do an upload to YouTube directly from Premiere Pro? That will not work.
    Now, if you are already doing an Export of your Timeline with the H.264 YouTube preset, and then trying to manually upload to YouTube, and meeting with failure, it could be as simple as having a longer Duration, than your particular account allows.
    Can you help us help you, with a bit more information:
    Which version of Premiere Pro are you using?
    Are you using the H.264 YouTube preset?
    What is the total Duration of the Timeline, and the Exported file, and how does that compare with the limits on your account?
    Exactly what error message are you getting - full details please?
    Good luck,
    Hunt

  • Overriding FileReference Upload

    Hi Guys,
    I'm looking to extend the FileReference class and override the upload method, using my own implementation. Firstly I would like to know if it is possible to view the current implementation code in the upload class.  Secondly, how go about creating a custom HTTP request? I mean if I wanted to create a request from scratch how would I do this? Using sockets? Thirdly can I use the HTTPService class to initiate an upload?

    check for permissions on server .

  • Exception Handling for FileReference Upload

    Hi There,
    I try to find a solution for my exceptions I throw on validating the uploaded file. Every time there is a validation or io or whatever problem on the server side I do throw an AMF exception but unfortunatelly the FileRefernce class identifies this as I/O error 2038.
    Whatever I do I'm not able to retrieve the message I added to the AMF exception. Does anybody found a workaround for this?
    My only solution is to get pass the upload as successfull but store the error in session or db and make another request to check if there was an error and rethrow the AMD exception there.
    r. Sandor

    WHEN OTHERS
       THEN
          RAISE;Never do this.
    It hides where the "others" exception actually occurred.
    SQL> select line, text from user_source where name = 'P' order by line;
    LINE TEXT
        1 procedure p as
        2    l_num number;
        3 begin
        4    l_num := 42 / 0;
        5 end;
    SQL> exec p;
    BEGIN p; END;
    ERROR at line 1:
    ORA-01476: divisor is equal to zero
    ORA-06512: at "SCOTT.P", line 4
    ORA-06512: at line 1
    SQL> select line, text from user_source where name = 'P' order by line;
    LINE TEXT
        1 procedure p as
        2    l_num number;
        3 begin
        4    l_num := 42 / 0;
        5 exception
        6    when others
        7       then
        8          raise;
        9 end;
    SQL> exec p;
    BEGIN p; END;
    ERROR at line 1:
    ORA-01476: divisor is equal to zero
    ORA-06512: at "SCOTT.P", line 8   --<<< the reference to line 4 is gone.
    ORA-06512: at line 1(although it's easy to figure out in this case)

Maybe you are looking for

  • Error 16 and no data in c:

    i dont have an adobe folder so i cant use this even when i reinstal this game

  • Printing problem for inkjet Printer

    Dear All, my requirement is that the printing output to the inkjet printer. till now we are using smartforms/script and printing output to laser/dmp printer. can any body suggest how to code for inkjet printer and what all other factor to be consider

  • Boot Camp not working with Windows 7!

    I have a 2011 MBP which has Boot Camp installed w/ Windows 7. I recently had to reinstall Boot Camp after a bad experience with Windows 8, and I've started Windows 7 fresh. I used it 5 or 6 times, but now when I go to use Windows 7 all I get is a bla

  • How do I number columns in Pages '08?

    Hey all, I was hoping you guys can help me with a very simple question I have. I was wondering how would I go about numbering an entire column in Pages? For instance, let's say I have a document which contains 2 columns and 10 rows. In this document

  • Upgrading from Crystal Reports 8.5 to 11 - ADAPT00538716

    I recently upgraded to version 11 and found that most of my reports don't work due to the fact that I have different join types in a report.  Using the knowledge base, I found the problem had been encountered and assigned <a href="http://technicalsup