Initialization section vs call from another code block in package.

hi,
why is it intialization section in package body is more than call from another code block the package .

The initialization section is only called once upon the initial loading of the package into memory, which is just once per session. So, accessing any function or procedure etc in the package causing it to load into memory will automatically run the initialization section first. It doesn't have to be called specifically.

Similar Messages

  • Object synchronization method was called from an unsynchronized block of co

    I have installed DotNETWebControlConsumer_3.0_sp1
    in my machine I am very much new to Plumtree
    I am building the application in vs 2005 or .Net 2.0 environment and plumtree 6.0
    here is my web.config file code
    <httpModules>
    <add type="Com.Plumtree.Remote.Loader.TransformerProxy, Plumtree.WCLoader, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d0e882dd51ca12c5" name="PTWCFilterHttpModule"/>
    </httpModules>
    and I get the error Object synchronization method was called from an unsynchronized block of code
    I just removed the html format for posting purpose i mean all the less than and greater than sign
    please I need it so badly

    Regarding your first issue (because it looks as if you removed the <httpModules> node from your web.config to move on from that issue), I changed 'Aqualogic.WCLoader' to 'Plumtree.WCLoader' in <httpModules ../>, added a reference to Plumtree.WCLoader in my project , then added another <add assembly="Plumtree.WCLoaderyadayada...> accordingly to the <assemblies> node in the web.config and then it worked. Well, almost, now I'm seeing a new error:
    [NullReferenceException: Object reference not set to an instance of an object.]
    Com.Plumtree.Remote.Transformer.PTTransformer.HandleRequest(HttpContext ctx) in e:\buildroot\Release\wcfilter\3.0.x\filter\src\Com\Plumtree\Remote\Transformer\PTTransformer.cs:60
    Com.Plumtree.Remote.Transformer.PTTransformer.BeginRequestHandler(Object sender, EventArgs e) in e:\buildroot\Release\wcfilter\3.0.x\filter\src\Com\Plumtree\Remote\Transformer\PTTransformer.cs:54
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    Mine is a .net 2.0 portlet that will work if I don't try to use the WCC 3.0SP1 (by pulling the <httpModules> node. But then I'm guaranteed no inline refresh. I have no fix yet, but when I do, I'll post it. I've contacted Plumtree Support in the meantime because others must be having the same problem.
    p.s. Also using edk 5.3 signed, though I'm going to upgrade to 5.4 and see if that does anything.

  • My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    Clean iPhone charging port with clean dry toothbrush. See if better. If still problem clean charging port again with toothbrush and small amount of Isopropyl Alcohol.

  • Populating selection screen of one prog by calling from another prog

    This is regarding variant population.
    I need to populate values in selection screen fields of one program (program 2)by calling from another executable ABAP program(.Program 1)
    I can identify the variant that i need ot populate.But there is a pushbutton in the selection screen of Program 2 which on clicking leads to some more fields in a pop up screen.How can I populate values in those fields there ?Please help.
    Thanks & Regards,
    Savitha

    I got a problem like that, then I tried to do a BDC, but it doesn't accept BDC's so I made a vbs program. This could help:
    FORM exec_vbs .
      DATA:BEGIN OF it_file OCCURS 0,
               line TYPE string,
           END OF it_file.
      DATA:filename     TYPE     string.
      CLEAR it_file[].
      it_file-line = 'msgbox "Variant will be updated, please don''t move or minimize the screen"'.
      append it_file.
      it_file-line = 'Dim objShell:Set objShell = CreateObject("WScript.Shell")'.
      append it_file.
      it_file-line = 'do while(ObjShell.AppActivate("R/A Settlements")=FALSE)'.
      append it_file.
      it_file-line = '  wscript.sleep 2000'.
      append it_file.
      it_file-line = 'loop'.
      append it_file.
      it_file-line = 'wscript.sleep 500:ObjShell.SendKeys "%ye":wscript.sleep 1999'.
      append it_file.
      it_file-line = 'do while(ObjShell.AppActivate("SAP Easy Access")=FALSE)'.
      append it_file.
      it_file-line = '  wscript.sleep 1000'.
      append it_file.
      it_file-line = 'loop'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "cj8g":wscript.sleep 940:ObjShell.SendKeys ""'.
      append it_file.
      it_file-line = 'wscript.sleep 1500'.
      append it_file.
      it_file-line = 'do while(ObjShell.AppActivate("Actual Settlement")=FALSE)'.
      append it_file.
      it_file-line = '  wscript.sleep 1000'.
      append it_file.
      it_file-line = 'loop'.
      append it_file.
      it_file-line = 'wscript.sleep 1950'.
      append it_file.
      it_file-line = '''controlshiftF7'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "^+":wscript.sleep 3100'.
      append it_file.
      it_file-line = '''shift+F2'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":wscript.sleep 2199'.
      append it_file.
      it_file-line = '''shift+F10'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":wscript.sleep 500:''SCROL DOWN'.
      append it_file.
      it_file-line = 'for x = 1 to 2: ObjShell.SendKeys "":wscript.sleep 500:next'.
      append it_file.
      it_file-line = '  wscript.sleep 500:ObjShell.SendKeys "":Wscript.Sleep 950'.
      append it_file.
      it_file-line = '''shift+F4'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1999:ObjShell.SendKeys "+ it_file-line = 'Wscript.Sleep 1000:ObjShell.SendKeys "C:\TEMP\Worksheet.txt"'.
      append it_file.
      clear it_file-line.
      concatenate 'Wscript.Sleep 500:ObjShell.SendKeys "' TEMP_FOLDER '\Worksheet.txt' '"' into it_file-line.
      append it_file.
      it_file-line = 'Wscript.Sleep 400:ObjShell.SendKeys "":Wscript.Sleep 2500:ObjShell.SendKeys "":Wscript.Sleep 1900'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "^s":Wscript.Sleep 2900'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1200'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1200'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "%"'.
      append it_file.
      it_file-line = 'Wscript.Sleep 1700'.
      append it_file.
      concatenate TEMP_FOLDER '\settle.vbs' into filename.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename = filename
        TABLES
          data_tab = it_file.
      CALL FUNCTION 'WS_EXECUTE'
        EXPORTING
          PROGRAM = filename.
      IF SY-SUBRC <> 0.
      ENDIF.

  • My Gf has my iphone. How can I see recent messages and calls from another device?

    My Gf has my iphone. How can I see recent messages and calls from another device?

    Depending on your carrier, you may be able to see recent calls by logging into your account on the carrier's web site, if they offer such a feature, though incoming calls being shown is not usual. There will, as diesel said, be no way to see messages already received, either SMS/MMS or iMessages, without having the phone.
    Regards.

  • File upload hanging when called from another form

    Hi
    I have created a file upload form from the documentation I found on metalink and the form works fine on its own. I have then implemented the form into a multi form application and when the file upload form is called from another form it hangs trying to get to the client drive so that it can pick up a file. I have tried using the 'call_form', 'open_form' and 'new_form' built-ins but the results were all the same. Can anybody help me?
    Maria

    Hello,
    This is not the support, so there are no post more urgent than other.
    Francois

  • Action link URL calling from another screen from the same web server not work

    Hi there,
    I have an action link URL calling from another screen from the same web server, used the following syntax:
    /analytics/saw.dll?Go&path=.....
    But it is not working, when open the page, it shows error message
              Oops! Google Chrome could not find analytics
    Any help? Thanks!
    Ling

    That's a +1 from me... same issue and yes, isn't inelegant or a shortcoming for some might be the cause of boldness as they rip their hair off their head so thanks in advance for keeping the refinement of the magic potions making the EA secret magic sauce... which may help stop hairloss
    Cheers!
    tfbkny

  • How to edit a program dynamically called from another program

    Hi all,
    Can anyone help me in coding for a program which call's another
    report dynamically from selection screen(for instance z_dynam_called)
    and retreive the whole content of the dynamically called program(z_dynam_called)
    into an internal table and replace the contents of the internal table  with some new code and put it back in z_dynam_called and save it.
    Thanks in advance.
    Needful will be rewarded with points

    Hi,
    Follow this:
    1) U can pass data from one program to another in a single login using SAP memory......
    2) u can create a DBtable update dat table using ur first pgm and fetch from second program.....
    3) U can pass the report output using EXPORT TO MEMORY addition and get it back using IMPORT FROM MEMORY..........
    Eg:
    Export the selected rows to the next program
    EXPORT final TO MEMORY ID 'ABC'.
    CALL TRANSACTION 'XXX'.
    XXX is the tcode for the other program where u want to import the values.
    In the second program
    INITIALIZATION.
    IMPORT the internal table from the first program
    IMPORT final FROM MEMORY ID 'ABC'.
    Thanks and Regards,
    Reward If Helpful

  • Applet with JFilechooser called from a Javascript blocks paint messages

    Hi,
    I am trying to create an applet that can:
    1) be called from a Javascript
    2) displays a file selection dialog for multi-selecting files
    3) returns the selected filenames in a string to the JavaScript
    I am able to use doPrivileged to apply the necessary security context to launch a JFilechooser and return the filenames selected. However, When the JFilechooser dialog is visible and the user moves the dialog window around the HTML pages dose not receive any repaint messages. They seem to be blocked by the thread that launched the JFilechooser dialog and is probably blocking update events as the dialog is still visible.
    I know I need some type of a message pump so the child thread can inform the parent thread and the browser to repaint. However, I don't know how to do this.
    Please help.
    ------Applet Code Begin:-----
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.AWTEvent;
    import java.awt.event.AWTEventListener.*;
    import java.awt.event.MouseMotionListener;
    import java.awt.event.MouseEvent;
    import java.io.File;
    import java.util.Locale;
    import java.util.MissingResourceException;
    import java.util.Properties;
    import java.util.ResourceBundle;
    import java.util.Vector;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class SampleApplet extends JApplet
       boolean allowDirs=false;
       boolean allowFiles=true;
       boolean hidden=false;
       File lastUserDir=null;
       public void init()
        public void start()
        public void stop()
        public String selectFiles()
           String choosenFiles = null;
           choosenFiles = new String((String)java.security.AccessController.doPrivileged(
           new java.security.PrivilegedAction()
         public Object run()
            String choosenFiles=new String();
                 JFilechooser fc = new JFilechooser();
         fc.setFileSelectionMode(allowDirs ? (allowFiles ? JFileChooser.FILES_AND_DIRECTORIES
            : JFileChooser.DIRECTORIES_ONLY)
            : JFileChooser.FILES_ONLY);
         fc.setMultiSelectionEnabled(true);
                 int returnVal = fc.showOpenDialog(null);
                 if (returnVal == JFileChooser.APPROVE_OPTION)
                    choosenFiles = "The selected filesnames will be stuffed here";
              return choosenFiles; //return whatever you want
           return choosenFiles;   
    ------Applet Code End:-----
    ------Html Code Begin:-----
    <html>
    <applet id="SampleApplet" archive="SampleApplet.jar"; code="SampleApplet.class"; width="2" height="2" codebase=".">
    </applet>
    <head>
        <title>Untitled Page</title>
    <script language="javascript" type="text/javascript">
    function SelectFiles_onclick()
      var s = (document.applets[0].selectFiles());
      alert(s);
    </script>
    </head>
    <body>
        Click Test button to select files
        <input id="SelectFiles" type="button" value="Select Files" onclick="return SelectFiles_onclick()" />
    </body>
    </html>
    ------Html Code End:-----

    try this:
    first don't open the file dialog in the SelectFiles call. Start a new thread that does that. Then return from the SelectFiles call immediately. Now after the user selectes the files call back into the javascript by doing something like this:
    pass the list of files into this function, each on being a String in the params array
        public synchronized void sendDataToUI(Object[] params) {
            if (FuserState.hasQuit()) {
                return;
            String function = "getUpdates";
            if (logger.isLoggable(Level.FINE)) {
                logger.log(Level.FINE, "Calling Javascript function " + function);
            if (getJavaScriptWindow() == null) {
                logger.log(Level.SEVERE, "Member javascriptWindow is NULL, no call was made!");
                return;
            try {
                getJavaScriptWindow().call(function, params);
            catch (netscape.javascript.JSException x) {
                if (params == null) {
                    logger.log(Level.SEVERE, "p=NULL PARAM");
                } else {
                    logger.log(Level.SEVERE, "p=" + params[0]);
        protected JSObject getJavaScriptWindow() {
            javascriptWindow = JSObject.getWindow(this);
        }

  • Help: repeated calls from area code 266

    I am getting repeated calls at all hours from area code 266 and different numbers. When i answer i get mostly silence or some voice i can not understand. When I call back I am told the number does not exist. When I use google to trace the number (e.g.266 950 6008 or 266-949-1883 I am told there is not such number.
    What can I do to stop this?
    Verizon has told me that I may have to get a new number. Is there anything else I can try before this?
    Michjel

    You can block up to 5 numbers for free for 90 days via your on-line MyVerizon account.  You can block more if you pay $4.99 per month for the Usage Controls.  There's other threads on this forum that also talk about apps and other avenues (like You Mail) that you can use.
    I had several of those calls and blocked them.  After a week or two the caller would change their number (at least that's what I'm thinking they were doing), so I'd go in and block them again.  After doing this a few times, the calls stopped.  I think they were robo calls; even though you can be on all the do-not-call lists, you can still get those calls.
    I always ignore calls if I don't know who it is and let them go to voice mail.  If your phone allows you to send contacts to voice mail, you could put the numbers in your phone and send them straight to voice mail.
    I've had my number too long; I'll be danged if some marketer or prankster is gonna force me to change my number; I'd view that as a last resort, but that's just my opinion.

  • Causing an event in one VI when called from another

    Hi All
    I wonder if anyone could give me some advice on this. I have a VI, which displays the value of a text control, as a ‘value change’ event using an indicator. If I run this, having checked the ‘update will typing’ parameter for the control, the VI runs as expected and the indicator displays what I type. If I call the VI by reference from another and pass a string to the text control using the Set Control Value [Variant] method, the indicator remains blank, even though I can see the text control is being updated. I’m guessing this is because the event structure is expecting a user generated event which is no longer occurring. Is there any way to re-configure the code so that a value passed in this way, would be seen as an event? I've tried to get some idea from the Labview examples but not being too familiar with the way events work, I'm struggling to make sense of it. (I’m using Labview 7.1)
    Thanks
    Bruce

    knight2 wrote:
    Thanks tbob & Christian.
    Can I just check this? I need to create a new control or indicator in the main VI and create a reference to it. This would then be passed to the subvi and I’m assuming, wired to the Value (signaling) property? If not, where should it go? I'm not too clear on this bit.
    That said, I currently call the subvi from main, by reference. This was because I needed the subvi front panel to be visible before sending text to it. As I’m not passing any values via the connector pane, can the control/indicator reference still be passed?
    Thanks
    Bruce
    Yes, your first paragraph is correct.  Pass the ref to the subvi and use Value(Sgnl) property node in the subvi.  This causes an event for the control, and since it is a reference, the event gets carried to the source of the reference, which is in Main.
    To pass control references (or any object) to a subvi that is called by reference, you can use the Call by Reference method as shown in the attached Main vi.  This allows you to pass items into and out of the subvi called by reference.  If you use the standard way and use GetControlValue and SetControlValue, I don't think you can cause an event in Main by changing a value in the subvi.  If you use the method in my vi, you can use the Value(Sgnl) property in the subvi to cause an event in the Main vi.  This is the only way I know how to send events from a subvi to the main.
    Download the subvi first and put it in some directory.  Then download the main and put it in the same directory as the subvi.  Then when you open Main, it should find the subvi.
    - tbob
    Inventor of the WORM Global
    Attachments:
    MainVI_Ref.vi ‏14 KB
    SubVI_Ref.vi ‏11 KB

  • Calling a method of one class from another withing the same package

    hi,
    i've some problem in calling a method of one class from another class within the same package.
    for eg. if in Package mypack. i'm having 2 files, f1 and f2. i would like to call a method of f2 from f1(f1 is a servlet) . i donno exactly how to instantiate the object for f2. can anybody please help me in this regard.
    Thank u in advance.
    Regards,
    Fazli

    This is what my exact problem.
    i've created a bean (DataBean) to access the database. i'm having a servlet program (ShopBook). now to check some details over there in the database from the servlet i'm in need to use a method in the DataBean.
    both ShopBook.java and DataBean.java lies in the package shoppack.
    in ShopBook i tried to instantiate the object to DataBean as
    DataBean db = new DataBean();
    it shows the compiler error, unable to resolve symbol DataBean.
    note:
    first i compiled DataBean.java, it got compiled perfectly and the class file resides inside the shoppack.
    when i'm trying to compile the ShopBook its telling this error.
    hope i'm clear in explaining my problem. can u please help me?
    thank u in advance.
    regards,
    Fazli

  • Unbounded task flow call from another ADF application

    Hi,
    I have two different ADF applications having unbounded taskFlow , and requirement is to call that task flow from another one with some parameters .
    how to do that , please .
    Regards,
    Parvez

    Thanks Ashish, I study these documents and  acknowledge.
    Parvez

  • Java script callback not called from plugin code

    Hi,
    I am having a plugin which works on FF 3.6. I am trying to make it work on FireFox 4/5. My java script callback for resize is getting called only for first time from plugin code and second time onwards its not getting called. We are using Gecko 2.0 plug-in library.
    I found two bugs in Firefox which may cause call to invalid callback.
    https://bugzilla.mozilla.org/show_bug.cgi?id=664682
    https://bugzilla.mozilla.org/show_bug.cgi?id=653083
    I think because of these two bugs my callback is not getting called. Is there any update for FireFox 4/Firefox5 with the fix for above two issues?
    Thanks,
    Rohit

    The first Bug is listed as a duplicate of the 2nd Bug you posted.
    I don't see any information in the Bug report about which version is going to specifically get the patch. Firefox 4 isn't supported any longer, and I can only assume that with an '''''Importance:''''' of '''normal''', that it won't be "pushed" to Firefox 5. AFAIK, with the new Fast Release schedule only security bugs are going create a situation where a '''''dot#''''' release is going to be made, and other Bugs that have been patched might then be included. With the current release schedule it's going to be 6 weeks between versions, vs the previous 12 to 14 months, or so.
    You may want to try a 6.0 beta to see if it is fixed there.

  • How do I return Labview errors from a LV executable when calling from another applicatio​n?

    I want to call my LV executable from another programming language, Spectrum. How can I return any LV errors to this application.

    > I want to call my LV executable from another programming language,
    > Spectrum. How can I return any LV errors to this application.
    >
    I don't have a PC in front of me, but what I'd try is to write to stderr
    or stdout. If that is not possible, the other possibilities depending
    on what Spectrum supports is to try named pipes or TCP/IP.
    Greg McKaskle

Maybe you are looking for

  • Why is it taking so long to import cds

    why is it taking so long to import cds to itunes? 10 minutes for 10 songs

  • Logistic Invoice Verification

    Hello, Would You help me with input fields during Logistic Invoice Verification? We have GR-based invoice verification and purchase order is created with order unit, which differs from order price unit. For example, PO quantity is 10 packing units (1

  • IPhoto 9.5 Issues

    Apple needs to fix the issues with sorting photos in iPhoto 9.5 I am ready to find any alternative software to iPhoto since this upgrade. I am spending so much more time trying to get photos to show in a certain order in a slideshow. In many cases ca

  • HashTable(size) is dynamic or static?

    Can the size of the Hash Table change dynamically? For eg: I put 3 entries into the hash table...........the size of the hash table is for the 3 entries when I add in another 2 entries, the size is for the 5 entries. when i delete 1 entry, the size i

  • Where can I get more hard drive sleds?

    Hi, I currently swap four internal hard drives on a regular basis for backups. I have one of the supplied sleds that comes with the MacPro screwed to each which leaves me with non spare. I'd like to get a couple more hard drives so I have in six in t