Handler not defined error message

Hello - I'm having difficulty with a custom handler I've
created. Everything works well in authoring mode, but as soon as I
try to create a projector and run it, I get a "Handler not defined"
error message. The handler is used to query an sqlite database.
Here's the code which sits in a linked cast movie script
on startmovie
set gDBInstance = new(xtra"sqlite")
on mDBQuery gSqlstring
gDBInstance.sqlite_open(the moviepath&"halloffame.db")
gQuery_fetch_data = gDBInstance.sqlite_fetch(gSqlstring)
gDBInstance.sqlite_close()
end
end startmovie
The handler is called from a frame script as below:
on enterframe
gSqlstring = "SELECT file_location FROM mediaitem NATURAL
JOIN category WHERE category = 'Equipment' ORDER BY mediaitem.name
ASC"
mDBQuery(gSqlstring)
end enterframe
I'm using Director 11 on Windows XP. I do have all of the
sqlite xtras in an xtras folder next to the executable. Any
thoughts on what I'm doing wrong??
THX!
Mike M

I ran a couple test that were interesting, but first I need
to address some bad coding practices.
miken75,
I see no reason to open and close a database with each query.
Open it at the beginning of the program and close it at the end.
You should always check for errors with every interaction
with a database, including opening it.
In your function "mDBQuery " you pass in a variable called
"gSqlstring" and assign the returned data from the query to
"gQuery_fetch_data". Neither one of these variables should be a
Global. The whole point of the function is to pass in a temporary
string and the function Returns query results. Do not use Globals
in this situation.
This is a bit nit-picky, but your function names should be
verbs - some sort of action. "mDBQuery " is a noun. Something like
queryDatabase, doQuery, fetchData, etc. would be better.
A basic re-write of your startup code would be:
global gDB
on prepareMovie
gDB = new(xtra"sqlite")
Okay = gDB.sqlite_open(the moviepath&"halloffame.db")
if Not Okay then
alert("There was an error opening the Database")
end if
end prepareMovie
on queryDB SqlString
return gDB.sqlite_fetch(SqlString)
end queryDB
on stopMovie
gDB.sqlite_close()
end stopMovie
Finally, "EnterFrame" is a really poor choice for an event
that queries a database. "EnterFrame" is used when you need to do
something many times a second, such as an animation. For a singular
event like querying a database I suggest "prepareMovie",
"startMovie", "beginSprite", "mouseDown", and "mouseUp".
I'm just trying to improve your coding practices. Better
code, means less bugs and going home early.
To your problem:
I tried a couple things. I placed some startup code and a
function in an internal cast movie script and an "enterframe"
behavior that calls the function in an external cast. I saved and
published, and the executable comes up and gives the handler not
defined error. This error is a Director thing. It has nothing to do
with your code.
If, however, you shut Director down and run the executable,
then there is no error. This fact implies that when you try to run
Director and the executable at the same time, then Director all
ready has ownership of the external cast file and the executable
therefore can not open it. Although, generally under that kind of
circumstance you get an error message indicating that the file is
in use by a different program. So, I don't know exactly what is
happening here.
I then moved the "startup" code into the external cast with
the "enterframe" script and published. No error. Director and the
executable run side by side just fine. Weird.
Hope that helps.
Randal.

Similar Messages

  • Sales organization 0000 is not defined (Error Message: VF 009)

    Dear All,
    While creating the intercompany invoice, I am getting the following error.
    Sales organization 0000 is not defined (Error Message: VF 009).
    I was able to create till commercial invoice. I am not able to create "Intercompany Invoice".
    Am I missed out any configuration?
    So far I have completed Plant assignment and Internal customer assignement required for Intercompany billing.
    Kindly suggest.
    Regards,
    Mullairaja

    Hellow Mullairaja,
    We are encountering the same problem, and my assumption is that the customer not being extended to the appropriate sales area prior to delivery creation is causing the problem.  Is there an OSS note or process to resolve this issue.  We have extended the customer now and the only thing I can think of to resolve is to reverse the PGI and delivery.  Is there a better way to correct this?  What was your solution?
    Thanks,
    Jordan
    Edited by: Jordan Simons on Nov 23, 2010 3:17 PM

  • Item Category not Defined Error message when deleting a batch item in Deliv

    Hi,
    I am trying with a Intercompany transfer . So after creating Interco. Transfer we have followed with a delivery document.
    Now,we would like to delete the delivery document. For your info. Del. doc is still open. We haven't gone for Goods issue or anything else.
    So,we tried removing the batch line item in batchsplit tab of the delivery and then deleting the delivery document.
    But we get the error message "Item catgeory Not defined". but we could see entries for Item category Determination with the particular Delivery typeItem Category Group from Material MasterItem Usage+Item Category.
    Why does system throw "Item catgeory Not defined".  when there are entries for particular determination available .
    And this seems to be Syste
    Thanks,
    Dhilipan

    Hello Sandy,
    Thanks for ur update. But its ticked already.. We checked it.
    But we still face this issue. And we are not able to replicate the same issue in QA..What cud be the reason.
    But Config..seems exactly similar to Pro. and QA
    Thanks,
    Dhilipan

  • "Form1 not defined" error message

    Getting Java Script Debugger message: "_form1 is not defined..."
    I've used the script: if 
    (_form1.AdultProgramSubform.count > 0){
    form1.AdultProgramSubform.occur.max
    += 1;_form1.AdultProgramSubform.addInstance(
    true);}
    to repeat a subform when a checkbox is clicked. This has worked before to make subforms visible.
    Any ideas why I'm getting this message?

    Varma, I've found that the code you sent me is only working if the adult program subform is visible. However, it needs to be hidden in my form. I've read another discussion where someone else had this problem. Do you mind working further with me on this form?
    Randee

  • .error Print indicator 029 not defined. Message no. L3118.

    error Print indicator 029 not defined. Message no. L3118
    Hello everyone.
    I need some help.
    when i run program RLVSD40 (Initiate printing of transfer order).
    i got error.
    Print indicator 029 not defined
    Message no. L3118
    what should i do to solve this error ?
    please help.

    Hello,
    I am getting the same issue.
    Please let me know the solution.

  • How do you use user defined error messages in Value Help?

    Hi,
    I'm currently working on a Modifiable Value Help Selector in Web Dynpro Java, and I want to use a user defined error message when I validate the values entered by a user. Currently, it's returning its default error message ("Character <string> does not match...").
    Since the project requires a different error message, is there a way to override the default error message and use my defined error message instead?
    Thanks!

    Hi Angelo,
    I am not sure why message area is showing both Custom and inbuilt messages but you can try the following:
    i guess you must be using reportContextAttribute exception for showing Error messages on the input fields as well.in that case you can disable the message area so messages will appear only on the Context level ie; on input fields.
    For other messages apart from validation messages you can enable the message area before reporting the exception.
    make sure the boolean context variable which will be used for enabling and disabling the message area should have Readonly property set as true.
    I am not sure whether this is the only solution for this but you can try and see if it works.
    Siddharth

  • "Not Found" Error Message Problem

    Hi All!
    I have a really weird issue happening that I have not found a post for in the boards, although there are some similar ones. I have a video project that I had been working on about a month ago and finished except for credits (I had no problems while working on it then). I finally just got the list of names to use for the credits, so I went to open the project to add the credits and I got a "Not Found" and "Out Of Memory" Message. I have 134.6 Gigs open on the Raid I save everything to, so I know I'm not actually out of memory. So I changed the settings to 80% Application and 50% Stills b/c I have around 10 jpegs I was using for titles in it. That seemed to help at least get the sequence opened. I then had media offline messages for those titles, eventhough they are in the browser and defined as online, so I just reconnected each one individually anyway. That helped with that problem. However, I FCP won't render the transitions around the titles. I deleted the transitions and titles and tried to re-render the video clips that were involved in the transitions with the titles. It won't render those. When I try to view the clips in the viewer, I get the "Not Found" message again. I reconnected a couple of the video clips individually, but I still get the message when I try to view them in the Viewer. The clips in the sequence are there and play in the canvas but not in the viewer and I get the "Not Found" message. I have it set to view the image without wireframes, so that's not the problem. The source videos are read as online in the browser and are in the same place as they were when I originally started the project, so that's not the problem. I've tried different variations on the memory usage. I've tried copying and pasting to a new sequence but get the same problem. Does anyone know why all of a sudden I can't view any of my source video and the clips I used in my sequence in the viewer and why it would give me the "Not Found" error message?
    Some Specs that might be helpful:
    FCP HD 4.5
    Dual 2 GHz PowerPC G5
    2.5 Gigs DDR SDRAM
    Raid 1 with 134.6 Gigs Available Space
    SD NTSC DV Footage - MPG files I transfered originally from the client's portable hard drive
    A Few JPGs of Photoshop Titles
    I'm sorry this is insanely long, but I wanted to provide as much detail as I could.
    Emily

    They were originally on a PC. That quite possibly could be it.
    I just checked all the titles again and they are all RGB.
    Our Raid ocassionally has problems, so I'm thinking it might have something to do with that.
    I'm going to try on Monday to just re-import the videos I need into the project and see how that goes. If anyone has any suggestions, I'll take a look on Monday and see what happens.
    I was just hoping that someone might have had this problem and knew what to do.
    Thanks for your help!

  • The storage location/batch function * is not defined here - Message no. M7116

    Hi Experts,
    we have a scenario - Project Subcontracting Purchase Order, Item Category - L and Account Assignment - Q.
    Delivery created, one of the component is Batch managed and  with Batch Spli Exists.
    When performing Good Receipt in MB01 t-code for movement type 543 R (Special Stock), batch determination fails for batch split scenarios; we get the following error message:
    The storage location/batch function * is not defined here:
    Message no. M7116
    The batch determination works fine, if the PO is with Item Category - L and Account assignment - Blank, then the movement type will be 543 O
    Steps for Reconstruction
    MB01, Mvt 101, enter SUBCON PO (Item Cat L and Account assignment
    Q), SL
    Delivery should have batch split
    for 101 Mvt, system determine the batch
    543 R Mvt should allow for wildcard search in batch field, the
    wildcard search works for other Mvt like 543 O.
    Note:
    we foresee we have to maintain an entry in OMCG for Movement type 543 and Special Stock R.
    543 o already exists there. But we are unable to Add/Delete any entry there.
    Please advise.
    Thanks and Regards,
    Nagaraja Achar.

    Hello Dennis,
    try the new transaction (MIGO): Use the 'Distribute qty' pushbutton. For all goods receipts (with or without special stock) it is possible to create several batches.
    Regards
    Michael

  • Object variable or With block variable not set error message

    When processing the Rate application I get a "Object variable or With block variable not set error message" What is causing this error and how do I fix it?

    Hi Brian,
    I'm afraid that in some ways this reply won't be very helpful though it may help you save some time. 
    The error message you describe is a very generic one thrown by Microsoft .NET (the programming platform that SAP is written with, see the link at the bottom of this message) and not being 'handled' by SAP. 
    This means from a SAP perspective that any one of many unrelated things may be causing the error and that it gives you virtually no help in tracking the problem down in SAP.
    We've plagued by this message quite a bit, my advice is to look for clues at to what may be happening elsewhere, e.g. try:
    1. The windows event viewer, if you are in a multi-server environment then check the event log on all machines.
    2. The SQL Server event log (this can be found in Management Studio - Management - SQL Server Logs assuming you're using SQL Server 2005)
    3. IIS logs, usually these are text files in the following location -
    HTTP.SYS Error Log - %windir%\System32\LogFiles\HTTPERR
    IIS Website Log - %windir%\System32\LogFiles\W3SVC#
    It is dull work trawling through all these places looking for error events with a timestamp similar to the time your error was encountered, but by doing this we've been able to troubleshoot some issues that otherwise would have taken us ages to rectify via trial and error.
    Sorry that there is no definitive answer, but if itu2019s of any help there's many more of us out there who this error message causes trouble for.
    Regards,
    Iain
    Microsoft "Object variable or With block variable not set" error message link:
    http://support.microsoft.com/kb/316478

  • Page process: user defined error-message

    hi to everyone!
    i want to display a user-defined error-message, if for example a select in an anonymous PL/SQL block returns more than one row. i tried it with an user defined exception, but i get allways the success message... how can i do that?
    thanks for your help.
    bye,
    christian

    Hi,
    In the exception handler of your PL/SQL process use this :-
    apex_application.g_print_success_message := '<span style="color:red">Error message</span>';Regards
    Paul

  • Mapping Problem-Mapping  not  sufficient  Error  Message

    Hello  SDNers,
    I  m  facing  one  problem,  details  are as below
    Source Structure
    MT_Source
       Invoice                               1..unbound
               Type                                          1..1
               Invoice Header                      1..1
                  PartyID
                            ID                           1..1
                  DocuID
                            ID                           1..1
               InvoiceLine                            1..unbound
              Item                            1.1
                     InvoiceSubline                        1.unbound
                            costCentre                          1..1
                            GL Code                          1..1
    Target Structure
    MT_Target
             Target                                                                     1.unbound
                  Bgr00                    
                        Stype                                                            1..1
                        Xkeep                                                           1..1
                  Bkpf                                    1..1
                 Stype                                1..1
                        Tcode                                 1..1
                        Bldat                                                                1..1
                        bukrs                                  1..1
                  Bseg                                    1..1
                 Stype                                1..1
                        Tbnam                                 1..1
                        newbs                                                               1..1
                        wrbtr                                  1..1
                         zunor                                                                1..1
                  Bseg1                                    1..unbound
                 Stype                                1..1
                        Tbnam                                 1..1
                        newbs                                                               1..1
                        wrbtr                                  1..1
                         zunor                                                                1..1
    Mapping  need  to  be  done  in  such  a  way  like
    Invoice  Header  must  go  in the  corresponding  fields  of BKPF  ,BSEG
    Invoice  Line  fields  must go in the corresponding  fields of BSEG1
    I  tried  split  by  Value  with  a  user  defined  function copyPerValue
    public void copyPerValue(String[] a,String[] b,ResultList result,Container container){
    for(int i=0;i<=a.length;i++)
              result.addValue(b[0]);
    InvoiceLine----
                                            CopyPerValue ->SplitBYValue[EachValue]->bldat
    DocumentDateTime----
    but  I  m  getting  Mapping  not  sufficient  Error  Message.
    Pls  help  me  in  getting  resolve  this  problem.
    Thx  in  advance

    Hi;
    Just check that all the mandatory fields (1.1 occurances) are mapped.
    No node in the target message should be left red.
    Mudit

  • Is it possible to change the sytem defined Error Message

    Hi All,
    Is it possible to change the sytem defined Error Message: "Reason codes with automatic charge-off are not permitted here" to Warning Message. If so, how can I search in which application area  this message defined in OBA5 screen?
    Other details for this issue:
    Message: Reason codes with automatic charge-off are not permitted here
    Message Class: F5,
    Message No: 605.
    Thanks
    Chandra

    Hi,
    Without investigating deeper for this specific error message, I can say that the messages that cannot be maintained through OBA5 will in some cases remain in the system even if maintained in OBMSG. If message is not allowed for change in OBA5 and there is no OSS note regarding this message, it means that SAP designed it this way. Changing the nature in OBMSG (which is not standard or recommended SAP operation) will not always save the problem; the message could be simply hard-coded in the program with 'E' attribute.
    Regards,
    Eli

  • NewObject("XML") getting "Handler not defined #newObject" on runtime

    I'm using Director 11.5.  This code works fine in the debugging/development mode, but as soon as I put it into a projector, I get an error.  The code reads:
          gXML = newObject("XML")
          gXML.load("update_200xml")
    Using the _player.debugPlaybackEnabled = TRUE, I can see that the first line is where the script gives the error.  I have the XMLParser.x32 included in my projector.  The projector is running on Windows 7. 
    So everything runs fine and all code executes when running in development mode.  As soon as I create a projector and run it, I receive the error:
    "Handler not defined
      #newObject
    Script Error: Continue?"
    Any advice on how to get this corrected?
    Thanks in advance!

    newObject is actually a Flash method, so you will also need to include the Flash Asset Xtra in / alongside your projector.
    (Because you are creating a scripted global object rather than using a Flash sprite, the xtra is not added automatically to your movie xtras.)

  • Hp 5535 will not scan, error message printer not found

    I have a HP Envy 5535. I have only been able to scan one time with it. I scanned 22 documents, after running HP Scan Doc 4.4. Each time the HP Scan Doc states that everything is OK, yet as soon as I try to do even a test scan, I get the error message "Printer not found." I have also tried to run this scan with my McAfee virus firewall off, and it still doesn't work. I have also identified it on McAfee as part of my network.
    This question was solved.
    View Solution.

    Hi @prazdancr,
    Welcome to the HP Forums!
    I am sorry that you cannot scan with your HP Envy 5535, but I am happy to help!
    For further assistance I will need to know:
    If you are using a Windows or Mac Operating System, and the version number. To find the exact version, visit this link. Whatsmyos.
    If the printer is connected, Wireless, or USB.
    If the printer is able to make copies by itself.
    If the power cable is plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well.
    In the meantime, please try going through this scanning guide. A 'The computer is not responding' Error Message Displays During Scanning.
    Hope to hear from you soon, and have a nice day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Firefox is very slow to respond when opening and nearly always stops responding altogether even refusing to react to Task Manager "End Program@ command. The "not responding@ error message also comes up during navigation on line.

    Firefox is very slow to respond when opening and nearly always stops responding altogether, even refusing to react to the Task Manager "End Program" command. The "not responding" error message also comes up during navigation on line. Several attempt have to be made to get on line. A loss of stability seems to be endemic at the moment.

    Try following the instructions here: [[Firefox hangs]]

Maybe you are looking for

  • How to Outline Group of 2D points

    Hi all, just wondering if anyone knows of a function already written (or easily edited ) to handle this problem.   I need to outline a group of 2d points (300,000+ points in most cases).  I need something similar to the convex hull algorithim, but in

  • Process.getInputStream() block after some time

    Hello! First sorry for my bad english. I have a problem. I hope anybody can help me! I have this source snipplet this.Main.ffmpeg = runtime.exec(cmd); this.is = this.Main.ffmpeg.getInputStream(); while(true) {      d = this.is.read();      if(d == -1

  • Selecting Correct Radio Button

    I'm testing a web page that has a set of five radio buttons representing a 'multiple choice challenge question' meaning that a user has to click on the correct value in order to continue with their process. The challenge question asks the user to sel

  • '06: Pages app.: How to switch columns within Classic Brochure?

    Working on a brochure as a personal project. Realized this is what "Pages" (part of iWork '06) is for as giving it a try. Decided on the template provided under Marketing -> and have chosen the "Classic Brochure". It's very cool and easy to use! Howe

  • Offstage elements in fullscreen

    Hi folks, I am sure this is a really simple one but i hope someone can help I am attempting to embed an swf in a page and have set the export to 100%w and show all so as not to experience any distortion or cropping of the swf However i am getting off