Error at JSObject when called 2nd time in same browser session

IE 5.0/5.5
JRE 1.3
I have a window launched using window.open(...).
In the child window is an applet that needs to call a Javascript function in the child window's document.
The following is a a reproducible effect:
In a given browser session, the first call to JSObject in the child window applet works and via the window handle, Javascript methods in the document can be accessed. Lets say this child window is closed, either via self.close() or simply closing the child browser window's X button. Now, if the link to popup the child window is clicked again, the child window pops up, but the applet in it simply freezes up at the JSObject statement.
Restarting the browser seems to reset something, since the first call works again and the second fails...
Any clues?
Thanks in advance.
- Aamir

You have to reload the applet every time you need to use it. I used to get the same problems, so I used the JSObject to call javascript on my JSP page. all you need is a function to reload your page after each window opens a child window. That way you reload the applet and will be able to do it again.

Similar Messages

  • Error:Type conflict when calling a function module RFC_ERROR_SYSTEM_Failure

    Hi Experts,
    When I run my Application in Portal, i am getting the following error.
    Type conflict when calling a function module., error key: RFC_ERROR_SYSTEM_FAILURE
    When I execute the BAPI, it is getting executed.
    My Bapi Strucute:
    Import Parameters
    IM_MAT_Search --> ZPTIP_MAT --> Import Parameters
    Tables
    IT_INFO_REC --> ZMM_GET_ITEM --> Output Parameters
    When I import the model, i am getting the structure like this
    BAPI_Name > ZMM_BAPI_Input> IM_MAT_Search(respective Parameters) , Output (respective Tables and their parameters)
                        > ZMM_Input1> Parameters
    This is the way, how i am executing in webdynpro java
    Zmm_Bapi_Ptip_Search_Input eleInput = new Zmm_Bapi_Ptip_Search_Input();
    wdContext.nodeZmm_Bapi_Ptip_Search_Input().bind(eleInput);
    Zptip_Asset eleInputAsset = new Zptip_Asset();
    eleInputAsset.setSearch("ACRS");
    wdContext.nodeZptip_Asset().bind(eleInputAsset);
    eleInput.setIm_Ast_Search(eleInputAsset);
    wdContext.nodeZmm_Bapi_Ptip_Search_Input().bind(eleInput);
    wdContext.nodeZmm_Bapi_Ptip_Search_Input().currentZmm_Bapi_Ptip_Search_InputElement().modelObject().execute();
    wdContext.nodeOutput().invalidate();
    Please let me know, how to do the same.
    Thanks in advance.
    Regards,
    Palani

    Hi David,
    I checked for the Parameter of setIm_Ast_Search, it is of Zptip_Asset.
    Hi Saleem,
    When I changed the same, i am getting the Type conflict error,
    Type conflict when calling a function module., error key: RFC_ERROR_SYSTEM_FAILURE
    Please let me know,what can be done in this regard to solve the problem.
    My BAPI Structure when imported as model
    SearchBAPI
    --> ZMM_BAPI_SEARCH_INPUT
    > IM_AST_SEARCH(zPTIP_ASSET)
    >Zptip_Asset
    >Search (Parameter)
    > OutPut(ZMM_BAPI_Search_Output)
    >IT_Asser_Rec(ZMM_Asset)
    >ZMM_Asset
    >TXT100 (output Parameter)
    --> ZMM_BAPI_SEARACH_OUTPUT
    --> ZPTIP_ASSET
    >Search (Parameter)
    Thanks & Regards,
    Palani
    Edited by: Palani Appan on Nov 11, 2009 5:31 PM

  • MSS - Business Event Details - Error Unexpected Exception when Calling RFC

    Dear Experts,
    Manager is getting the Error "Unexpected Exception when Calling RFC from Profile Application 'Business Event' when he tries to get the Training history of ONE employee in MSS. However, he is getting the details for the other employees of his department.
    Any inputs on this?
    Thank you.

    I believe it is our custom iView that is incorrect.

  • DTP error: Type conflict when calling FM - after transport to Prd

    Hi ,
    i have asset_attr datasource.it was working in my BW dev.
    however after transport to BW prod. when i try to upload data using DTP it gives me an Abrupt error
    "0ASSET_ATTR IPDCLNT030 : Type conflict when calling a function module (fiel
    Message no. RSDS666"
    no more information is given, & the request ends in red.
    This is first time i'm using this Infoobject upload.
    however all my other transaction data & other master data all are getting uploaded fine.
    even Asset_text datasource is working fine.
    Did anyone face similiar probs ?
    can anyone guide me on this error ?
    thanks
    ramesh

    Hi
    Take a look at note 1130907.
    Regards,
    Chandu.

  • ERROR: -Type conflict when calling a function module

    hi to all,
    when iam executing the program in browser   Type conflict when calling a function module  error is showing, i have bind all the attribute correctly still iam getting error, WHEN I  CLICK ON THE SEARCH BUTTON DATA IS NOT COMING  TO MY TABLE ITAB1 plz help me....
      DATA:
          NODE_IP_SELECTION                   TYPE REF TO IF_WD_CONTEXT_NODE,
          ELEM_IP_SELECTION                   TYPE REF TO IF_WD_CONTEXT_ELEMENT,
          STRU_IP_SELECTION                   TYPE IF_PLANNING_HISTORY=>ELEMENT_IP_SELECTION ,
          ITAB TYPE TABLE OF ZSL_PL_UPDATE1,
          WA TYPE ZSL_PL_UPDATE1.
      navigate from <CONTEXT> to <IP_SELECTION> via lead selection
        NODE_IP_SELECTION = WD_CONTEXT->GET_CHILD_NODE( NAME = `IP_SELECTION` ).
      get element via lead selection
        ELEM_IP_SELECTION = NODE_IP_SELECTION->GET_ELEMENT(  ).
      get all declared attributes
        ELEM_IP_SELECTION->GET_STATIC_ATTRIBUTES(
          IMPORTING
            STATIC_ATTRIBUTES = STRU_IP_SELECTION ).
    CALL FUNCTION 'ZBAPI_PL_UPDATE'
            EXPORTING
              GV_LIFNR           =  STRU_IP_SELECTION-LIFNR
              GV_MATNR           = STRU_IP_SELECTION-LIFNR
              GV_GJAHR           = ' '
            GV_WEEK_LOW        =   STRU_IP_SELECTION-FROM_WEEK
             GV_WEEK_HIGH       =  STRU_IP_SELECTION-TO_WEEK
          IMPORTING
            RETURN             =
            TABLES
              GT_PL_UPDATE       = ITAB
             DATA:
               NODE_PLANN_NODE                     TYPE REF TO IF_WD_CONTEXT_NODE,
               ELEM_PLANN_NODE                     TYPE REF TO IF_WD_CONTEXT_ELEMENT,
               STRU_PLANN_NODE                     TYPE IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE,
               WA1 TYPE IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE,
               ITAB1 TYPE TABLE OF IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE.
              LOOP AT ITAB INTO WA.
               MOVE-CORRESPONDING WA TO WA1.
               APPEND WA1 TO ITAB1.
              ENDLOOP.
           navigate from <CONTEXT> to <PLANN_NODE> via lead selection
             NODE_PLANN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = `PLANN_NODE` ).
             CALL METHOD NODE_PLANN_NODE->BIND_TABLE
               EXPORTING
                 NEW_ITEMS            = ITAB1
                SET_INITIAL_ELEMENTS = ABAP_TRUE
                INDEX                =
    ENDMETHOD.

    CALL FUNCTION 'ZBAPI_PL_UPDATE'
    EXPORTING
    GV_LIFNR = STRU_IP_SELECTION-LIFNR
    GV_MATNR = STRU_IP_SELECTION-LIFNR
    GV_GJAHR = ' '
    GV_WEEK_LOW = STRU_IP_SELECTION-FROM_WEEK
    GV_WEEK_HIGH = STRU_IP_SELECTION-TO_WEEK
    IMPORTING
    RETURN =
    TABLES
    GT_PL_UPDATE = ITAB
    Problem is here
    check out the type GV_GJAHR whether it accepts string type.
    thanks
    sarbjeet singh

  • APEX 4.0.2 Error in jquery When Calling $a_report

    Hello,
    I have run across an interesting issue when trying to relaod a report on a page. The call to $a_report is getting a JavaScript error, apparently in the jquery-1.4.2.min.js module. The error specifics are as follows:
    User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8)
    Timestamp: Wed, 2 Nov 2011 15:47:46 UTC
    Message: Unable to get value of the property '_defaults': object is null or undefined
    Line: 29
    Char: 285
    Code: 0
    URI: https://sunapp01.y12.doe.gov/i4/libraries/jquery/1.4.2/jquery-1.4.2.min.js
    The call to $a_report is made as follows:
    var reportid = document.getElementById("P78_EQUIPMENT_REPORT_ID").value;
    $a_report(reportid,'1','48','48');
    I am at a loss as to why it is getting this error since there are several pages in the app that reload reports without error. All of the pages use the same template. This worked fine before the app was converted to APEX 4.0.2. If it is something in the page processing itself I can't see what it would be.
    Any thoughts or suggestions would be greatly appreciated.
    Rick Fanning

    I too had this same problem and determined that the problem was due to a missing underscore character between the literal "report" and the report Id in the report template.
    I guess some themes include this underscore and some don't.
    I had to debug the apex_4.0.js to determine this - not easy as it's not nicely formatted.
    It only seems to stop Pagination working in an Updatable Tabular Form Report.
    Edit the Report Template. Go to the "Before Rows" region and edit the Before Rows text box. Locate where it defines the report id and insert an underscore between report#REGION_ID#
    Previous
    &lt;div id="report#REGION_ID#"&gt;
    Fixed
    &lt;div id="report_#REGION_ID#"&gt;

  • Time Machine hangs/stalls when restoring-2nd time trying, what to do?

    My MB Pro had the dreaded blinking ?. I ended up having to erase and reinstall Snow Leopard-no problems with that. I've backed up my MBP on Time Machine. I am attempting for the 2nd time to restore. First time, it stalled at the beginning of Applications. I restarted the computer, but it was working VERY slowly, and then the desktop pic was half blue screen and half galaxy. It wouldn't let me open anything. I erased and reinstalled SL again, and then my 2nd time through (this is about 12 hrs at a time trying to restore), it got to almost the very end of the restore (restoring apps), and stalled again-went from 52 minutes to 11 hours! Dreaded pinwheel of death. Ideas? I'm thinking about just restoring one thing at a time (i.e. users; files & folders), and NOT restoring apps. Think this is a good idea?
    I am assuming this is a software issue, since the SL erase and install goes smoothly, and gets past the apple logo screen when restarting.
    HELP!
    TIA

    Where are your backups? If they're on a Time Capsule, connect to it via Ethernet, not WIFI. If they're on a USB disk connected to a Time Capsule, Airport Extreme, or a different Mac, connect it directly to your Mac.
    Then Repair the backups, per #A5 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    Then do a full system restore, per #14 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).

  • Finalize() method being called multiple times for same object?

    I got a dilly of a pickle here.
    Looks like according to the Tomcat output log file that the finalize method of class User is being called MANY more times than is being constructed.
    Here is the User class:
    package com.db.multi;
    import java.io.*;
    import com.db.ui.*;
    import java.util.*;
    * @author DBriscoe
    public class User implements Serializable {
        private String userName = null;
        private int score = 0;
        private SocketImage img = null;
        private boolean gflag = false;
        private Calendar timeStamp = Calendar.getInstance();
        private static int counter = 0;
        /** Creates a new instance of User */
        public User() { counter++;     
        public User(String userName) {
            this.userName = userName;
            counter++;
        public void setGflag(boolean gflag) {
            this.gflag = gflag;
        public boolean getGflag() {
            return gflag;
        public void setScore(int score) {
            this.score = score;
        public int getScore() {
            return score;
        public void setUserName(String userName) {
            this.userName = userName;
        public String getUserName() {
            return userName;
        public void setImage(SocketImage img) {
            this.img = img;
        public SocketImage getImage() {
            return img;
        public void setTimeStamp(Calendar c) {
            this.timeStamp = c;
        public Calendar getTimeStamp() {
            return this.timeStamp;
        public boolean equals(Object obj) {
            try {
                if (obj instanceof User) {
                    User comp = (User)obj;
                    return comp.getUserName().equals(userName);
                } else {
                    return false;
            } catch (NullPointerException npe) {
                return false;
        public void finalize() {
            if (userName != null && !userName.startsWith("OUTOFDATE"))
                System.out.println("User " + userName + " destroyed. " + counter);
        }As you can see...
    Every time a User object is created, a static counter variable is incremented and then when an object is destroyed it appends the current value of that static member to the Tomcat log file (via System.out.println being executed on server side).
    Below is the log file from an example run in my webapp.
    Dustin
    User Queue Empty, Adding User: com.db.multi.User@1a5af9f
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    User Dustin destroyed. 0
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    User Dustin destroyed. 1
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    User Dustin destroyed. 2
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    User Dustin destroyed. 3
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    User Dustin destroyed. 4
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    User Dustin destroyed. 5
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    User Dustin destroyed. 6
    Joe
    USER QUEUE: false
    INSIDE METHOD: false
    AFTER METHOD: false
    User Dustin pulled from Queue, Game created: Joe
    User Already Placed: Dustin with Joe
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    User Dustin destroyed. 7
    INSIDE METHOD: false
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    User Dustin destroyed. 9
    User Joe destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    User Dustin destroyed. 9
    INSIDE METHOD: true
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    INSIDE METHOD: true
    INSIDE METHOD: false
    USER QUEUE: true
    INSIDE METHOD: false
    INSIDE METHOD: false
    It really does seem to me like finalize is being called multiple times for the same object.
    That number should incremement for every instantiated User, and finalize can only be called once for each User object.
    I thought this was impossible?
    Any help is appreciated!

    Thanks...
    I am already thinking of ideas to limit the number of threads.
    Unfortunately there are two threads of execution in the servlet handler, one handles requests and the other parses the collection of User objects to check for out of date timestamps, and then eliminates them if they are out of date.
    The collection parsing thread is currently a javax.swing.Timer thread (Bad design I know...) so I believe that I can routinely check for timestamps in another way and fix that problem.
    Just found out too that Tomcat was throwing me a ConcurrentModificationException as well, which may help explain the slew of mysterious behavior from my servlet!
    The Timer thread has to go. I got to think of a better way to routinely weed out User objects from the collection.
    Or perhaps, maybe I can attempt to make it thread safe???
    Eg. make my User collection volatile?
    Any opinions on the best approach are well appreciated.

  • Call new URL in same Browser

    Hi @ all,
    I try to call another WD4A-Application with:
    lr_window = lr_window_manager->create_external_window( url = lv_url ).
    The system create a new browser window, but I want to start it in the same browser window (or close the parent window).
    Have somebody an idea to solve this?
    thanks
    Jürgen

    >can you clarifiy please how it comes to the general statement
    I don't have any details I can share. If development makes such a statement, they must have encountered some incompatibilites that cause they not to support this technology within the Portal.
    Here is some additional detail from the 7.02 online help:
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/6b972329d23d33e10000000a11466f/frameset.htm
    For every interface view, you can flag exactly one inbound plug as a resume plug. When navigating in the portal, the existence of a resume plug results in the following behavior: If the Portal Navigation recognizes such a plug in the running application, the latter is not exited when navigating away but is instead transferred to a suspend mode. The session ID and contents of the context are retained and a new application is started. If a user then goes back to the original application via the navigation menu of the portal, it can be processed in exactly the same state in which it was left. Note the following:
    If an application features a resume plug, the corresponding session is retained when navigating away in the portal. However, in many cases it may be sensible or even absolutely necessary to close the application completely. In such cases, you must not implement a resume plug for the interface view.
    While your applications are running within a portal, the portal navigation takes care of the suspend step without you having to implement it at design time. The mere existence of a resume plug ensures that an application is only interrupted and not exited in the case of a portal navigation. However, this does not take place if the application is not running in the portal and can thus not make use of the portal navigation mechanism.
    If an outbound plug is flagged as a suspend flag in a Web Dynpro ABAP application, this can lead to errors when the application is executed in the portal. If you are not completely sure that your application is executed solely outside a portal, you should avoid the use of suspend plugs.

  • Unable to open forms when Launching another application on same browser.

    Hi,
    I have a server with configuration Oracle EBS 12.1.1 on RHEL 5.5, Database 11.1.0.7. On client machine we use Internet explorer, Firefox and Chrome to access the EBS and forms.
    We are able to open the forms from all browsers, but problem arise when we access another application on same browser, resulting in not opening of oracle forms.
    This is a java application using the same database on the server. This application works fine but Our Oracle Forms has to face the problems.
    When we try to launch the forms, it results in FRM-92101 error. I read the MOS documents for
    R12: "FRM-92101:There was a failure in the Forms Server during startup" Error When Attempting to Launch Forms [ID 454427.1]
    Then I checked the application log file, it says that:
    13/08/12 18:47:41.891 formsweb: Forms session <207> failed during startup: no response from runtime process
    13/08/12 18:50:43.704 formsweb: Forms session <209> aborted: runtime process failed during startup with errors
    Unable to switch to Working Directory: /oracle/TEST/apps/tech_st/10.1.3/forms
    When I further investigate I found there is no such "forms" directory under "/oracle/TEST/apps/tech_st/10.1.3".
    Then I read Oracle Notes:
    FRM-92101 : Unable To Switch To Working Directory. (Doc ID 1434888.1)
    FRM-92101 Error in Application.log: Unable to Switch to Working Directory (Doc ID 432708.1)
    But no luck with all these. Please suggest something. Can't open both application simultaneously on same browser.
    Regards,
    Prashant Namdeo

    Hi,
    Please state whether the application was working fine before.
    Please provide log file  of:
    --$LOG_HOMEora/10.1.3/j2ee/forms/forms_default_group_1/application.log
    --DB alert logfile --check whether you can find any valuable information.
    Please have a look at the following MOS notes:
    FRM-92050 java.lang.UnsatisfiedLinkError: no frmjsl in java.library.path [ID 438522.1]
    Troubleshooting FRM-92XXX Errors in Oracle Applications [ID 365529.1]
    And have a look at:
    http://oracleared.blogspot.com/2012/11/frm-92191-there-was-failure-in-form.html
    Best Regards,

  • PI 7.0 - Error HTTP 401 when calling XISOAPAdapter/MessageServlet

    Hi experts,
    I am trying to call a web service, published from our XI system. (SAP PI 7.0 SP 15).
    I generated the Web Service & saved the WSDL successfully from Integration Directory.
    The whole scenario is well designed and configured, because it had been working well for some time.
    I am using XMLSpy to send a request (something that have been working well) but now, we are unable to log on to the system.
    It doesnt matter with which user we try to log on. Its simply not possible. It raises a HTTP 401 ERROR.
    The configuration channel SOAP SENDER is configured like this.
    - SOAP - SENDER
    - Transport Protocol HTTP
    - HTTP Security Level : HTTP
    - QOF - BEST EFFORT.
    Another symptom
    when i call the service http://<host>:<50nn00>/XISOAPAdapter/MessageServlet (on DEV system) it doesnt work.
    "401   Unauthorized
      Cannot authenticate the user.
      Details:   No details available"
    when i call the same service (but on QA system) it works well.
    (the calls from XMLSpy work fine, and the interface executes well)
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/NW04S_14_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#1 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0
    ModuleProcessorRemote not instantiated
    I will appreciate if you could give me some advice, which configuration i need to check, or any usefull information.
    Thanks!
    Cristian.

    Hi Supriya, thanks for your reply.
    I ve tryed with my user, which is not locked, and also with other users, none of them locke. With SAP_ALL and SAP_NEW profiles. And it didnt work.
    The url is something like that.
    for DEV:
    http://myhost:50000/XISOAPAdapter/MessageServlet
    for QA:
    http://myhost:50200/XISOAPAdapter/MessageServlet
    Since DEV and QA instances are on the same server.
    Thanks.
    Cristian.

  • Queue returning error while exiting when calling subvi within main vi

    Hello
    I am having issues with using queues in a project where a subvi is called from main vi. After calling subvi first time, when I press any button labview returns following error.
    "LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @ ".     
    Please find attached the vi and project explorer file. I will appreciate feedback.  I am using Labview development suite 2010. 
    Kind Regards 
    Austin                                              
    Solved!
    Go to Solution.
    Attachments:
    building autocycles project.lvproj ‏2 KB
    building autocycles screen.vi ‏19 KB
    modifying vi.vi ‏30 KB

    Hello Austin,
    It looks like you are releasing your queue in the sub vi when it exits (Force destroy is set to TRUE therefore it destroys the queue, not just the reference to the queue)
    I tested this by putting a diagram diable structure around the the release queue vi in the sub vi and it now works without throwing an error.
    Set Force destroy to false so that it only destroys a single reference to the queue.
    Chris
    Don't forget to give Kudo's for a good answer !
    LabVIEW Champion
    Certified LabVIEW Architect
    Certified TestStand Architect

  • Getting error code 1 when calling SSIS package from a stored procedure (SQL Server 2008 R2)

    Hello,
    I am trying to execute a SSIS package from SQL Server 2008 R2 stored procedure but getting error code 1 (as per my knowledge, error code description is as below:
    0 The package executed successfully.
    1 The package failed.
    3 The package was canceled by the user.
    4 The utility was unable to locate the requested package. The package could not be found.
    5 The utility was unable to load the requested package. The package could not be loaded.
    6 The utility encountered an internal error of syntactic or semantic errors in the command line.
    Details:
    I have a stored procedure named "Execute_SSIS_Package" (see below sp) which executes 'Import_EMS_Response' SSIS package (when I execute this package directly from SQL Server BID it works fine it means package itself is correct) and calling
    it from SQL as:- EXEC Execute_SSIS_Package 'Import_EMS_Response'.
    Here I receives error code 1.
    Can anyone help me to resolve this issue please?
    Thanks in advance!
    CREATE PROCEDURE [dbo].[Execute_SSIS_Package]
     @strPackage nvarchar(100)
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
     DECLARE @cmd VARCHAR(8000)
     DECLARE @Result int
     DECLARE @Environment VARCHAR(100)
        SELECT @Environment = Waarde
     FROM  Sys_Settings
     WHERE Optie = 'Omgeving'
     --print @Environment
     SET @strPackage = '"\W2250_NGSQLSERVER\BVT\' + @Environment + '\' + @strPackage + '"'
     SET @cmd = 'dtexec /SQL ' + @strPackage +  ' /SERVER "w2250\NGSQLSERVER"  /Decrypt "BVT_SSIS" /CHECKPOINTING OFF /REPORTING E'
     --print @cmd
     EXECUTE @Result = master..xp_cmdshell @cmd, NO_OUTPUT
     --print @Result
    END

    It has something to do with the security.
    E.g. cmdshell is not enabled or the caller has not rights over the package.
    There could be a syntax error, too.
    I suggest you make the package runnable off a SQL Agent job then trigger the job from the stored proc with
    sp_start_job <job name>
    Arthur
    MyBlog
    Twitter

  • Trapping error in webdynpro when calling a function

    Hi all,
    I am using Adobe interactive forms and within the onsubmitevent I have webdynpro code which calls a standard function 'FMFR_CREATE_FROM_DATA' to do commitments. See code snippet below. The problem is when there is an error from the function the function simply hangs and does not come out of it.. I have tested this function as standalone via SE37 and works perfectly and also from a normal ABAP program the error can be trapped. Is it possible to trap this within webdynpro?
              CALL FUNCTION 'FMFR_CREATE_FROM_DATA'
                EXPORTING
                  I_FLG_CHECKONLY           = ' '
                  I_FLG_COMMIT              = 'X'
                    TABLES
                      T_POSDATA                 = wa_fid_tab
                    CHANGING
                      C_F_HEADDATA              = wa_fih
                EXCEPTIONS
                  DOCTYPE_NOT_ALLOWED       = 1
                  ERROR_OCCURED             = 2
                  OTHERS                    = 3
                    IF SY-SUBRC <> 0.
                       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                       RAISE EXCEPTION TYPE ZCX_NO_CC_BUDGET.
                    ELSE.
                        " Update RFP table with consolidated amount
                        " per CC/PC and commitment no. 
                        UPDATE ZAD_RFP_T
                        SET CURRENCY_AMOUNT = RFP_TOTAL1
                                     AMOUNT = RFP_TOTAL1
                            COMMITMENT_NO = wa_fih-belnr
                        WHERE DOCUMENT_ID = RFP_ID
                        AND LINE_ID = line_one .
                    ENDIF.

    Thanks guys but i already tried this ie. uncommenting the exception but it never returns to the next line ie to theIF SY-SUBRC line in the code snippet below. The program simply hangs!!!
              CALL FUNCTION 'FMFR_CREATE_FROM_DATA'
                EXPORTING
                  I_FLG_CHECKONLY           = ' '
                  I_FLG_COMMIT              = 'X'
                    TABLES
                      T_POSDATA                 = wa_fid_tab
                    CHANGING
                      C_F_HEADDATA              = wa_fih
                 EXCEPTIONS
                   DOCTYPE_NOT_ALLOWED       = 1
                   ERROR_OCCURED             = 2
                   OTHERS                    = 3.
                    IF SY-SUBRC <> 0.
                       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                       RAISE EXCEPTION TYPE ZCX_NO_CC_BUDGET.
                    ELSE.
                        " Update RFP table with consolidated amount
                        " per CC/PC and commitment no.  -
                        UPDATE ZAD_RFP_T
                        SET CURRENCY_AMOUNT = RFP_TOTAL1
                                     AMOUNT = RFP_TOTAL1
                            COMMITMENT_NO = wa_fih-belnr
                        WHERE DOCUMENT_ID = RFP_ID
                        AND LINE_ID = line_one .
                    ENDIF.

  • Error PLS-00231 When Calling a Local Function In a Procedure

    I hope someone can help me find a workaround to this problem:
    I have a function defined within a PL/SQL block. When I call the function from a SQL statement, I get the PLS-00231 error, which says "Function <fn name> may not be used in SQL.". I don't really understand why I can't do this, since the function works perfectly if I create it in the database. Unfortunately, storing the function in the database is not a desirable option.
    Below is a very simple example program to illustrate the point. Any feedback would be greatly appreciated. Thanks. Brian
    DECLARE
    var INTEGER;
    FUNCTION return_it (i IN INTEGER) RETURN INTEGER IS
    BEGIN
    RETURN i;
    END;
    BEGIN
    SELECT return_it (4)
    INTO var
    FROM dual;
    END;
    --

    Your function return_it is not part of database so you cant use in query.
    Here is what you can do
    08:18:20 SQL> ed
    Wrote file afiedt.buf
    1 DECLARE
    2 var INTEGER;
    3 FUNCTION return_it (i IN INTEGER) RETURN INTEGER IS
    4 BEGIN
    5 RETURN i;
    6 END;
    7 BEGIN
    8 var := return_it (4);
    9 DBMS_OUTPUT.PUT_LINE('var = '||var);
    10* END;
    08:18:26 SQL> /
    var = 4
    PL/SQL procedure successfully completed.

Maybe you are looking for