ui:ContextMenuItem in MXML causes Error 1136: Incorrect number of arguments

Hello,
I'm trying to define a context menu declaratively like so:
quote:
<ui:ContextMenu id="editChartDataContextMenu">
<ui:customItems>
<mx:Array>
<ui:ContextMenuItem caption="Clear"/>
</mx:Array>
</ui:customItems>
</ui:ContextMenu>
However, the Flex compiler gives an error for the line that
reads "<ui:ContextMenuItem ....". (the line in boldface).
The error is: 1136: Incorrect number of arguments. Expected
1.
Needless to say, I have experimented with varying number of
attributes, but no luck.
I have googled in vain to find examples where context menus
are built up using markup; all examples seem to be imperative
(ActionScript) code, instead of declarative.
Any ideas?
Joubert

I know context menus can be used in limited situations with
limited functionality in Flex. Don't know if your usage is within
the ways context menus are used in Flex.

Similar Messages

  • 1136: Incorrect number of arguments.  Expected 1

    i got the error in the following code please help me how this happens
    package zoo{
        import flash.utils.setInterval;
        import flash.utils.clearInterval;
        internal class VirtualPet{
            internal var PetName;
            private static var maxNameLength = 20;
            private static var maxCalories = 2000;
            private static var caloriesPerSecond = 100;
            private var digestIntercalID;
            private var CurrentCalories=VirtualPet.maxCalories/2;
            public function VirtualPet(name){
                //object.variableName = "some value";
                this.PetName = name;
                digestIntercalID= setInterval(digest,1000);
            public function eat(foodItems){
                if(CurrentCalories==0){
                    trace (getName() + "is dead you cannot feed it");
                    return;                   
                if (foodItems is Apple){
                    if(foodItems.hasWorm()){
                        trace ("the" + foodItems.getName()+ "had a worm"+ getName() + "cannot eat it");
                        return;
                //object.variableName = value;
                //this.CurrentCalories +=numberOfCalories;
                //setCalories(CurrentCalories + numberOfCalories);
                trace (getName() +"ate " + foodItems.getName());
            setCalories(CurrentCalories + foodItems.getCalories());
            private function digest(){
                trace (getName()+"digested some food");
                setCalories(getCalories() - VirtualPet.caloriesPerSecond);
            public function setCalories(newCurrentCalories){
                if(newCurrentCalories >VirtualPet.maxCalories){
                    CurrentCalories = VirtualPet.maxCalories;       
                }else if (newCurrentCalories <0){
                    CurrentCalories = 0;
            }else {
                CurrentCalories = newCurrentCalories;
            //calculate the amount of calories left   
            var caloriePercentage = Math.floor(getHunger()*100);
            trace (getName()+ "has "+ CurrentCalories + "Calories"+ caloriePercentage +"% of food remeaning" );
            if (caloriePercentage == 0){
                clearInterval(digestIntercalID);
                trace (getName()+"has died you can't feed it");
                return;
            public function getCalories(currentCalories){
                return CurrentCalories;
            public function getHunger(){
                return CurrentCalories / VirtualPet.maxCalories;
            public function setName (newName){
                if(newName.length>VirtualPet.maxNameLength){
                    newName = newName.substr(0,VirtualPet.maxNameLength);
                }else if (newName.length==" "){
                    return;
                PetName = newName;           
            public function getName(){
                return  PetName;

    What Murphy is trying to say is that you're supposed to use an argument within the getCalories function.
    Like this:
    setCalories(getCalories(theMissingArgumentHere) - VirtualPet.caloriesPerSecond);
    This is because when you created your getCalories function you "asked" for an argument:
    public function getCalories() //function expecting 0 arguments
    public function getCalories(currentCalories) //function expecting 1 argument (currentCalories)
    public function anyOtherFunction (num1:int, num2:int, num3:int) //function expecting 3 arguments...and so on.

  • Error 1137: Incorrection number of arguments. Expected no more than 1

    Hello from a beginner!
    I want my navigation bar to open other pages in the same window.  Currently, it's opening as if it's _blank (must be the defaut when nothing is coded).
    I thought I was coding correctly, but the error above popped up - so now I don't know what to do next.  Any help would be appreciated.  Thanks in advance.
    The code as it is with the error is as follows - the line with the error is highlighted in italics.
    function goHome(event:MouseEvent):void {
    var targetURL:URLRequest = new
    URLRequest("http://www.fairwoodcommunitynews.com/Alphatest/Home.html", "_parent");
    navigateToURL (targetURL);
    homeBtn.addEventListener(MouseEvent.CLICK, goHome);

    Thanks - I have been googling and playing with the code and inserted "_self" (below) and it worked.  What is the difference between "_parent" and "_self" ?
    Thanks for taking the time to help!
    function goHome(event:MouseEvent):void {
    var targetURL:URLRequest = new
    URLRequest("http://www.fairwoodcommunitynews.com/Alphatest/Home.html");
    navigateToURL (targetURL, "_self");
    homeBtn.addEventListener(MouseEvent.CLICK, goHome);

  • 1136 incorrect number of arguments. expected 0

    package  {
              import flash.display.MovieClip;
              import flash.utils.Timer;
              import flash.events.Event;
              import flash.net.URLLoader;
              import flash.net.URLRequest;
              import flash.events.*;
              import flash.events.TimerEvent;
              public class JuteBox extends MovieClip {
                        private var tracks:Array;
                        private var i:int=0;          //points to current track
                        private var pollTimer:Timer = new Timer(100);          //updates UI periodically
                        public function JuteBox(url:String="content/playList.xml") {
                                  trace( "JuteBox" );
                                  //load the playList
                                  var loader = new URLLoader();
                                  loader.load( new URLRequest(url));
                                  loader.addEventListener( Event.COMPLETE, onListLoaded );
                                  //set up the timer
                                  pollTimer.addEventListener(TimerEvent.TIMER, updateUI );
                                  pollTimer.start();
                                  //initizlize the interface
                                  //buttons
                                  play_btn.addEventListener( MouseEvent.CLICK,
                                            function (e) { tracks[i].play() }
                                  //sliders
                                  //text box
                                  // constructor code
                        }//con
                        private function onListLoaded(e:Event):void {
                                  trace( "onListLoaded");
                                  var loader = e.target;
                                  //populate the array tracks
                                  var playList = new XML( loader.data );
                                  trace( playList.Song );
                                  tracks = [];
                                  for each (var song in playList.Song) {
                                            tracks.push( new Track ( song.@src ));
                        }//onbListLoaded
                        //updates the interface perdically
                        private function updateUI(e:Event=null):void {
                        }//updateui
                        //advances to next track
                        private function next(e:Event=null):void {
                        }//next
                        //goes to previous track
                        private function prev(e:Event=null):void {
                        }//prev
              }//class
    }//pack
    I'm sure it is something obvious but I can't find it. 

    For the line you highlighted in red you appear to be creating a new Track object... 
                        tracks.push( new Track ( song.@src ));
    which means you should have imported that class if it being used.
    Why did you highlight that line?.

  • Incorrect number of arguments expected 1

    Hi,
    I'm new to this flex. Actually i want to set busycursor in loadValue Function. But i'm getting error as Here i'm getting an error as incorrect number of arguments expected 1.
    the error that i'm getting in 3rd line. and i have not pasted full code here. But i pasted only where i'm getting error when i tried to inser busyCursor.
    So please help me what i hv to change. waiting for your replay.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
              creationComplete="loadValues()" horizontalAlign="center"      --------------->  Here i'm getting an error as incorrect number of arguments expected 1.
              verticalAlign="middle"  color="#080808" borderColor="#FFF8E0" backgroundColor="#FFF8E0"
              xmlns:local="*"
              xmlns:tInput="assets.actionScript.*"
              xmlns:controls="com.iwobanas.controls.*"
              initialize="initTimer()"
              xmlns:dataGridClasses="com.iwobanas.controls.dataGridClasses.*"
              applicationComplete="init(event)" height="100%" width="100%">
    <mx:Style source="defaults.css" />
    <mx:Script>  
              <![CDATA[
                        import assets.actionScript.Trim;
                        import com.scottlogic.charts.DataGridExporter;
                        import mx.controls.ComboBase;
                        import assets.script.pods.view.Data;
                        import org.alivepdf.layout.Unit;
                        import mx.collections.ICollectionView;
                        import assets.actionScript.EscalationDTO;
                        import alarmSlide.TowerSelection;
                        import flash.net.navigateToURL;
                        import mx.binding.utils.BindingUtils;
                        import mx.controls.dataGridClasses.DataGridItemRenderer;
                        import mx.events.ListEvent;
                        import mx.charts.chartClasses.DualStyleObject;
                        import assets.actionScript.TowerInchargeRoleMappingDTO;
                        import flash.utils.clearInterval;
                        import flash.utils.setInterval;
                        import alarmSlide.SendMessageForEscalation;
                        import mx.skins.halo.BusyCursor;
                        import alarmSlide.REForAlarmReport;
                        import mx.managers.ToolTipManager;
                        import mx.controls.ToolTip;
                        import mx.collections.SortField;
                        import mx.collections.Sort;
                        import mx.messaging.messages.RemotingMessage;
                        import mx.events.AdvancedDataGridEvent;
                        import assets.actionScript.TowerStatus; 
                        import mx.rpc.events.FaultEvent;
                        import mx.rpc.events.ResultEvent;
                        import assets.actionScript.ValueObject;
                        import mx.messaging.channels.AMFChannel;
                        import alarmSlide.LEDChar;
                        import mx.utils.URLUtil;
                        import com.adobe.serialization.json.JSON;
                        import com.adobe.serialization.json.JSONDecoder; 
                        import mx.collections.ArrayCollection;
                        import mx.collections.IViewCursor;
                        import mx.collections.IHierarchicalCollectionView;
                        import mx.controls.Alert;
                        import mx.managers.PopUpManager; 
            import flash.net.FileReference;
                   import mx.messaging.messages.IMessage;
                  import mx.messaging.Channel;
                  import mx.messaging.ChannelSet;
                  import mx.messaging.channels.StreamingAMFChannel;
                        import flash.display.StageDisplayState;      
                        import mx.collections.ArrayCollection;
                        import mx.managers.CursorManager;
                        private var sendMessageScreen:SendMessageForEscalation;
                        private var escalationAlarmHistoryPopup:EscalationAlarmHistoryPopup;
                        public var manualOrScheduleTicketing:ManualOrScheduleTicketing;
                        public var editEscalationLevelPopup:EditEscalationLevelPopup;
                        private var escalationLevelPopup:EscalationLevelPopup;
                        private var escalationSiteDetailsPopup:EscalationSiteDetailsPopup;
                        [Bindable] private var towerName:String = "NoData";  
                        [Bindable] private var contactNumber:String = "NoData";
                        // Data Storgae variables
                        [Bindable] private var energyConsumption:ArrayCollection = new ArrayCollection();
                        [Bindable] public var dataColl:ArrayCollection = new ArrayCollection();
                        [Bindable] public var closedTicketArrayColl:ArrayCollection = new ArrayCollection();
                        [Bindable] private var towerDetails:ArrayCollection = new ArrayCollection();
                        [Bindable] private var escalationData:ArrayCollection = new ArrayCollection();
                        [Bindable] public var escalationLevelDetails:ArrayCollection = new ArrayCollection();
                        [Bindable] public var towerEscalationLevelDetails:ArrayCollection = new ArrayCollection();
                        [Bindable] private var escalationMasterList:ArrayCollection = new ArrayCollection();
                        [Bindable] public var alarmDetailsList:ArrayCollection = new ArrayCollection();
                        [Bindable] public var siteInformationList:ArrayCollection;
                        [Bindable] public var communicationInfoList:ArrayCollection;
                        [Bindable] public var operatorDetailsList:ArrayCollection;
                        [Bindable] public var siteLiveDataList:ArrayCollection;
                        [Bindable] public var siteLiveAlarmDetailsList:ArrayCollection;
                        [Bindable] public var ticketEscalationStateList:ArrayCollection = new ArrayCollection();
                        [Bindable]
                        public var siteAndDistrictDisplayName:String="";
                        public var categoriesArrColl:ArrayCollection = null;
                        public var tempArrColl:ArrayCollection = null;
                        public var userID:int = 0;
                        public var customertId:int = 3;
                        private var popupWin:PopupForTicketing;
                        // to store tower configuration
                        public static var data:ArrayCollection = new ArrayCollection();
                        private var intervalUnit:uint;
                        [Bindable]  
                        public var folderList:XMLList;
                        // BlazeDS variables
                 [Bindable] public var channelUrl:String;  
                  [Bindable] public var liveId:int=0;
                           [Bindable]
                           public var emailOrSmsMessageFormat:String = "";
                        [Bindable]
                        private var escalationEditOption:Boolean = false;
                        [Bindable]
                        private var swapCount:int = 0;
    //  ---------------------------- To Control Session ------------------------- //
            public var myTimer:Timer;
                        private function initTimer():void
                                   myTimer = new Timer(1800000);
                             myTimer.addEventListener("timer",logout);
                             this.addEventListener(MouseEvent.MOUSE_MOVE, resetTimer);
                             myTimer.start();
                        private function logout(event:Event):void
                                  this.addEventListener(MouseEvent.CLICK,forward);
                        private function forward(event:Event):void
                                  navigateToURL( new URLRequest("jsp/checkin/index.jsp"),"_self");
                        private function resetTimer(event:Event):void
                                  myTimer.reset();
                            initTimer();
    //  ---------------------------- To Control Session ------------------------- //
                            * This method will be called as soon as SWF loads in the browser , creating a AMF channel which communicates to Java
                            private function loadValues(mouse:MouseEvent):void{   ----------------------------------------------------------------->> When i enter Event to the loadvalues function i'm getting that error
                                            ticketViewStack.selectedChild = liveTicketVBox;
                                      userID = Application.application.parameters.userId;
                                      customertId = Application.application.parameters.customerId;
                                             if("true" == Application.application.parameters.escalationEditOption.toString()){
                                                escalationEditOption = true;
                                            channelUrl = "./messagebroker/amf";
                                             userID = 92;
                                      customertId = 3;
                                               escalationEditOption = true;
                                              channelUrl = "http://172.16.1.144:5009/messagebroker/amf";
                                var cs:ChannelSet = new ChannelSet();
                                            var customChannel:AMFChannel = new AMFChannel("my-amf",channelUrl);
                                            cs.addChannel(customChannel);
                                            remoteObject.channelSet = cs;
                                            remoteObject.getEscalationMaster();
                                            cursorManager.setBusyCursor();
                                            remoteObject.getAllLiveEscalationDetails(userID,customertId,displayTo wer.selectedItem.data,ticketType.selectedItem.data);
                                            cursorManager.removeBusyCursor();
                                            displayTower.selectedIndex = 0;
                                            refereshTime.selectedIndex = 0;

    Hi, Actually i did changes like show below.
    i made creationComplete="loadValues()"
    And i made
    private function loadValues():void
    I want to  set a busy cursor, But its not working.
    Actaully the loadValues() function will load the data when we open that perticular page.but it;ll take some time to load so that i want to put busy cursor. In above Code i used busy cursor but its not working.

  • Oracle driver error [-87] incorrect number format

    Hi my friends
    In my web application with ora10g r2 this message error occur after a read statement in cds001c table
    I/O function: F, mode: 0, on file/table: CDS001C index: 1 =
    ORACLE Driver Error [-87]: Incorrect number format.
    ORACLE Driver Error [-59]: Preprocessing input data failed.
    ORACLE Driver Error [-35]: Fetch driver function failed.
    what the cause of this error?

    Your web application is what application (including version) running on what operating system using what application server?
    The message you have posted has nothing to do with the Oracle database.

  • ORA-02315: incorrect number of arguments for default constructor

    I was able to register the XML schema successfully by letting Oracle creating the XML Types. Then when I try to execute the create view command the ORA-02315: incorrect number of arguments for default constructor is always raised.
    I tried using the XMLTYPE.createXML but it gives me the same error.
    Command:
    CREATE OR REPLACE VIEW samples_xml OF XMLTYPE
    XMLSCHEMA "http://localhost/samplepeak4.xsd" ELEMENT "SAMPLE"
    WITH OBJECT ID (ExtractValue(sys_nc_rowinfo$, '/SAMPLES/SAMPLE/SAMPLE_ID')) AS
    SELECT sample_t(s.sample_id, s.patient_info, s.process_info, s.lims_sample_id,
    cast (multiset(
    SELECT peak_t(p.peak_id, p.mass_charge, p.intensity, p.retention_time,
    p.cleavage_type, p.search_id, p.match_id, p.mass_observed,
    p.mass_expected, p.delta, p.miss, p.rank, p.mass_calculated,
    p.fraction)
    FROM peak p
    WHERE s.sample_id = p.sample_id) AS PEAK107_COLL))
    FROM sample s;
    Can someone help me.
    Thanks
    Carl

    This example runs without any problems on 9.2.0.4.0. Which version are you running? And which statement causes the error message?

  • UserManager's Create, CreateAsync and FindAsync methods giving "Incorrect number of arguments for call to method Boolean Equals(...)"

    I've made custom User and UserStore classes.
    Now I'm trying to register or login with a user, but I get the error
    'Incorrect number of arguments supplied for call to method Boolean Equals(System.String, System.String, System.StringComparison)'
    The error is on line 411:
    Line 409: }
    Line 410: var user = new User() { UserName = model.Email, Email = model.Email };
    --> Line 411: IdentityResult result = await UserManager.CreateAsync(user);
    Line 412: if (result.Succeeded)
    Line 413: {
    The problem is that I can't really debug UserManager's methods, because it is in a closed DLL.
    I get this same error on
    UserManager.FindAsync(user), UserManager.CreateAsync(user,password), UserManager.Create(User user)
    Now the error doesn't occur when I log in with an External Login, like Google, which also uses methods from UserManager. Entering the email works
    as well, but when the user has to be created from an External Login with the inserted email, it gives the CreateAsync error
    too.
    How can I fix this? Do I need to create my own UserManager? Or do I need another solution entirely?
    Packages (relevant):
    package id="Microsoft.AspNet.Mvc" version="5.1.2"
    id="Microsoft.Owin" version="2.1.0"
    id="Microsoft.AspNet.Identity.Core" version="2.0.1"
    UserStore.cs
    public class UserStore :
    IUserStore<User, int>,
    IUserPasswordStore<User, int>,
    IUserSecurityStampStore<User, int>,
    IUserEmailStore<User, int>,
    IUserLoginStore<User, int>
    private readonly NFCMSDbContext _db;
    public UserStore(NFCMSDbContext db)
    _db = db;
    public UserStore()
    _db = new NFCMSDbContext();
    #region IUserStore
    public Task CreateAsync(User user)
    if (user == null)
    throw new ArgumentNullException("user");
    _db.Users.Add(user);
    _db.Configuration.ValidateOnSaveEnabled = false;
    return _db.SaveChangesAsync();
    public Task DeleteAsync(User user)
    if (user == null)
    throw new ArgumentNullException("user");
    _db.Users.Remove(user);
    _db.Configuration.ValidateOnSaveEnabled = false;
    return _db.SaveChangesAsync();
    public Task<User> FindByIdAsync(int userId = 0)
    int userid;
    if (userId == 0)
    throw new ArgumentNullException("userId");
    return _db.Users.Where(u => u.UserId == userId).FirstOrDefaultAsync();
    User.cs
    public class User : IUser<int>
    public User()
    UserLogins = new List<UserLogin>();
    public int UserId { get; set; }
    public string UserName { get; set; }
    public string PasswordHash { get; set; }
    public string SecurityStamp { get; set; }
    public string Email {get; set; }
    public bool IsEmailConfirmed { get; set; }
    int IUser<int>.Id
    get { return UserId; }
    public ICollection<UserLogin> UserLogins { get; private set; }
    public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<User, int> manager)
    // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
    var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);
    // Add custom user claims here
    return userIdentity;
    Startup.Auth.cs
    public partial class Startup
    // For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301864
    public void ConfigureAuth(IAppBuilder app)
    // Configure the db context and user manager to use a single instance per request
    app.CreatePerOwinContext(NFCMSDbContext.Create);
    app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create);
    // Enable the application to use a cookie to store information for the signed in user
    // and to use a cookie to temporarily store information about a user logging in with a third party login provider
    // Configure the sign in cookie
    app.UseCookieAuthentication(new CookieAuthenticationOptions
    AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
    LoginPath = new PathString("/Account/Login"),
    Provider = new CookieAuthenticationProvider
    OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, User, int>(
    validateInterval: TimeSpan.FromMinutes(20),
    regenerateIdentityCallback: (manager, user) => user.GenerateUserIdentityAsync(manager),
    getUserIdCallback: (id) => (Int32.Parse(id.GetUserId())))
    // Use a cookie to temporarily store information about a user logging in with a third party login provider
    app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie); (...)
    Any help or ideas are greatly appreciated!
    Kind regards,
    Nils

    Hi,
    According to your description, I am afraid your problem is out of support in C# forum. For ASP.NET question, please go to
    ASP.NET Forum to post your thread.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and
    makes it easier for other visitors to find the resolution later.

  • ADO Error: an insufficient number of arguments....

    Im currently using Access 2000 which is connected to a SQL database. I have a query (Or View) that runs every month. The problem i had was i had to manually make some changes every month to get to the data i needed so i changed this View into a Function with a parameter so i can input the detail(s) i need and it will run correctly - this works so far but the original View was also used within other queries that were created. Now the problem i have now is some of the other views that are now connected with the newly created Function comes up with the error:
    ADO error: an insufficient number of arguments were supplied for the procedure or function Name_Of_Function.
    I called the newly created function the exact name as the original view to ensure i had no problems. Any idea of whats happening here and how to resolve?
    Thanks

    Heres the function i have:
    Code BlockSELECT     TOP 100 PERCENT dbo.[Totals].User, dbo.[Totals].[Account Name], dbo.[Totals].Company, dbo.[Totals].Name,
                          dbo.[User].Amount AS [Month Amount], dbo.[User].Profit AS [Month Profit], SUM(dbo.[Totals].[Y Amount]) AS [Y Amount],
                          SUM(dbo.[Totals].[Y Profit]) AS [Y Profit], dbo.[User].Month
    FROM         dbo.[User] RIGHT OUTER JOIN
                          dbo.[Totals] ON dbo.[User].[Account Name] = dbo.[Totals].[Account Name] AND
                          dbo.[User].User = dbo.[Totals].User
    GROUP BY dbo.[Totals].User, dbo.[Totals].[Account Name], dbo.[Totals].Company, dbo.[Totals].Name,
                          dbo.[User].Amount, dbo.[User].Profit, dbo.[User].Month
    HAVING      (NOT (dbo.[Totals].User = N'Temp')) AND (dbo.[User].Month = @Month)
    ORDER BY dbo.[Totals].User, dbo.[Totals].Company
    Where it states Month = @Month is where the problem is i think. This Function runs fine as i want it to. But when im in another view that uses this function it get the above error. The only way i dont get the error is when i type in the month then all runs fine - but i would prefer it to ask me what month i need the data for????
    Thanks

  • Error message "incorrect number of file hard links" after Lion installation. Please could you advised to solve this problem; my iMac (mid 2010) is working well

    After installation of OSX Lion I have ran the disk utility program and the following error message appears: "incorrect number of file hard links". The program advises to fix the disk by reinstalling the Mac OSX install dvd (Snow Leopard). Please could you advise? Additonal information: the iMac was up-to-date before installing Lion. Thx!

    Martha Mcsherry1 wrote:
    I feel like I'm on a scavenger hunt and it's getting very dark!  You are absolutely correct.  My computer doesn't show my HD in the finder window.  That's been the case for a long time.  At one point, I found a solution and fixed it but then it reverted.
    From a Finder menubar, select Finder > Preferences, then either General (controls what appears on your desktop) or Sidebar (your Finder windows's sidebar) and check the box with your Computer's name, hard drive, etc. 
    I read to hold 'option' and press 'go'.
    On Lion, that allows you to see the Library folder inside your home folder (it's only hidden in Lion).
    I have found the right file and deleted it.  It keeps reintroducing itself so I guess I'll need to delete it from the trash as well?
    No, you've deleted the one that may have been damaged.   As with most preferences files, OSX will create a new one, with default values, when needed, which is what we want.  (Sooner or later, you should empty the trash, but it's not a problem.)
    As mentioned in #A4, you'll have to re-select your Time Machine drive, re-select any of the things that were checked on the Options panel, and re-enter any exclusions.

  • Error: An insufficient number of arguments were supplied for function

    Hi ,
    I changed the data source for a data set on my report . The data source  is still pointing to same server and database but I am getting this error 
    "An error occurred during local report processing
    Query execution failed for data set 'Data Set Name'
    An insufficient number of arguments were supplied for function "
    I checked the function number of arguments again and it was correct and even executed the function in the dataset query designer and it works fine.
    any ideas for the reason for this error ?

    Without seeing the query you use or function its hard to suggest.
    See if parameter passed from SSRS has expected values. Is there some multivalued parameters involved?
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Error: parse error before '.' & number of arguments doesn't match

    Compiling my simple source code reports error error: parse error before '.' . But in fact there is not any "." token on this line.
    At my guess it has something to do with JNI C macros but I really have no idea how to find that bug
    // ##net_java_dev_jssm_MulticastSSM.h: line 55
    JNIEXPORT void JNICALL Java_net_java_dev_jssm_MulticastSSM_join2
      (JNIEnv *, jobject, jstring, jstring);
    // ##net_java_dev_jssm_MulticastSSM.c: line 306
    JNIEXPORT void JNICALL Java_net_java_dev_jssm_MulticastSSM_join2
      (JNIEnv *env, jobject obj, jstring s_addr, jstring g_addr) {
    // no code yet
    mingw32-gcc.exe -DWIN32 -Wall -c -IC:\java\JNI_headerFiles\jdk1.6.0/include -IC:\java\JNI_headerFiles\jdk1.6.0/include/win32 -shared src_c/net_java_dev_jssm_MulticastSSM.c -DNODEBUG
    src_c/net_java_dev_jssm_MulticastSSM.c:307: error: parse error before '.' token
    src_c/net_java_dev_jssm_MulticastSSM.c: In function `Java_net_java_dev_jssm_MulticastSSM_join2':
    src_c/net_java_dev_jssm_MulticastSSM.c:307: error: number of arguments doesn't match prototype
    src_c/net_java_dev_jssm_MulticastSSM.h:56: error: prototype declaration
    make: *** [all] Error 1
    C compiler: mingw32-gcc.exe
    JNI: jdk1.6.0
    Any help would be really appreciated.

    Hi radone,
    I just read your posting and suddently got an idea why your compiler was complaining about the period. In most C environment, there is a definition
    #define s_addr S_un.S_addr
    in some socket-related header file! Now you know where the dot is coming from.

  • Incorrect number of arguments error

    Seems like a simple task, and i've used the same method for other files but for some reason it doesn't recognize the arguments. Here's just the code relating to my error. I made bold the line with the error.
    var loader:Loader;
    var i:Number = 1;
    var container:Sprite;
    function imgLoad(e:MouseEvent):void {
         i++;
         if (i == 3) {
              i = 0;
         loader = new Loader();
         loader.load(new URLRequest("resized Images/Bracelet" + String(i) + ".jpg"));
         preload_mc.visible = true;
         loader.contentLoaderInfo.addEventListener(Event.INIT,imgComplete,false,0,true);
         loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,imgProgress,false,0,true );
    function imgProgress(e:ProgressEvent):void {
         var loaded:Number = e.bytesLoaded;
         var total:Number = e.bytesTotal;
         var pct:Number = loaded/total;
         preload_mc.loader_mc.scaleX = pct;
    function imgComplete(e:Event):void {
         container = new Sprite();
         addChild(container);
         var myLoader:Loader = new Loader(e.target.loader);
         container.addChild(myLoader);
         smallImg_mc.visible = false;
         fullMode_txt.visible = false;

    Loader constructor doesn't accept any arguments:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html#Loader

  • 1136: Wrong Number of Arguments

    Hi,
    I'm a flash beginner and I wanted to do a "Space Invaders" like game. Now I get an error, wehn I try to call a function in an other function.is that not allowed? I want that the Bullet shoots directly when I click. but when I hold the left mouse button pressed, the mode should be auto shoot and bullets should shoot out with a timer of 100. I got sucsess by writing both in the start shoot timer, like this:
    public function startShootTimer (e:MouseEvent):void {
                ShootTimer.start();
                var bullet:Bullet = new Bullet();
                bullet.x = bazooka.x + 70;
                bullet.y = bazooka.y - 3;
                addChild(bullet);
                Bullets.push(bullet);
    But it would be better (for future projects) to have 2 functions, or not ? Is that possible ? Very thank you for your help ! Here's my full not working program:
    package  {
        import flash.display.*;
        import flash.events.Event;
        import flash.utils.Timer;
        import flash.events.MouseEvent;
        import flash.events.TimerEvent;
        public class Main extends MovieClip {
            var bazooka:Bazooka = new Bazooka();
            var Bullets:Array = new Array();
            var ShootTimer:Timer = new Timer(500);
            public function Main() {
                startGame();
            public function startGame() {
                addPlayer();
                stage.addEventListener(Event.ENTER_FRAME, mainLoop);
                ShootTimer.addEventListener(TimerEvent.TIMER, autoShootBullet);
                stage.addEventListener(MouseEvent.MOUSE_DOWN, startShootTimer);
                stage.addEventListener(MouseEvent.MOUSE_DOWN, shootBullet);
                stage.addEventListener(MouseEvent.MOUSE_UP, stopShootTimer);
            public function addPlayer():void {
                bazooka.x = 0;
                bazooka.y = stage.stageHeight * .5;
                addChild(bazooka);
            public function shootBullet(e:MouseEvent):void {
                var bullet:Bullet = new Bullet();
                bullet.x = bazooka.x + 70;
                bullet.y = bazooka.y - 3;
                addChild(bullet);
                Bullets.push(bullet);
            public function startShootTimer (e:MouseEvent):void {
                ShootTimer.start();
            public function stopShootTimer (e:MouseEvent):void {
                ShootTimer.stop();
            public function autoShootBullet (e:TimerEvent):void {
                shootBullet();      // Heres my error
            public function mainLoop (e:Event):void {
                for (var b:int = 0; b < Bullets.length; b++) {
                    Bullets[b].x += 20;

    that's allowed.
    but your shootBullet function expects a mouse event to be passed as a parameter.  there are two quick and easy ways to resolve:
    1.  use shootBullet(null)
    2.  change your shootBullet function to:
      public function shootBullet(e:MouseEvent=null):void {
                var bullet:Bullet = new Bullet();
                bullet.x = bazooka.x + 70;
                bullet.y = bazooka.y - 3;
                addChild(bullet);
                Bullets.push(bullet);

  • Error for wrong number of arguments

    Hi
    I am getting the below error for plsql
    IF (l_src_cd ='P' or l_src_cd = 'E') THEN
    ERROR at line 243:
    ORA-06550: line 243, column 22:
    PLS-00306: wrong number or types of arguments in call to '='
    ORA-06550: line 243, column 9:
    PL/SQL: Statement ignored
    while writing
    IF (l_src ='P' or l_src= 'E') THEN
    l_activity := 'ERS';
    elsif (length(l_adj_cd) > 0) THEN
    l_activity := 'KAM';
    elsif (length(l_offer_cd) > 0 ) THEN
    l_activity := 'RAM';
    elsif (length(l_visit_nbr) > 0 ) THEN
    l_activity := 'SAM';
    ELSE l_activity :='UNK';
    END IF;
    wrong number or type of argument
    Appreciate your help on the above?
    Thanks & Regards

    What is the data type of l_src?
    SQL> declare
      2     type t_tp is table of varchar2(10) index by binary_integer;
      3     l_v t_tp;
      4  begin
      5     l_v(1) := 'A';
      6     l_v(2) := 'B';
      7     if l_v = 'A' or l_v = 'B' then
      8        dbms_output.put_line('True');
      9     else
    10        dbms_output.put_line('False');
    11     end if;
    12* end;
    SQL> /
       if l_v = 'A' or l_v = 'B' then
    ERROR at line 7:
    ORA-06550: line 7, column 11:
    PLS-00306: wrong number or types of arguments in call to '='
    ORA-06550: line 7, column 4:
    PL/SQL: Statement ignoredJohn

Maybe you are looking for

  • I can not see "Keyword" detail

    Hello I have got a problem with Windows Explorer and it is because of Adobe Flash product. I added keywords to some files with right click in every file, then properties, Summary and in the field Keyword I wrote some data. Then in Windows Explorer in

  • Waiting for SP1 to come through Windows Vista Update?

    Hi: I have been waiting for SP1 to make an appearance through Windows Update and am still waiting. I checked out the knowledge base and checked all the problem drivers to see if I had any of the components. I don't have any of them, nor do I have any

  • Problem with a calc involving @MDSHIFT and Dynamic Calc

    Hi all, I have a problem with the calculation of a member in a calc script. The formula of this member is : "R70100" IF(@ISMBR("M01")) ("T_008"->"Cumul"->"HT"+"T_003"->"Cumul"->"HT")*"AVCT_PR" - @MDSHIFT("R70100" -> "Cumul" -> "HT" -> "M12", -1, "Yea

  • Why does my Numbers app in iPad mini doesn't have any INPUT FORM tab every time I press the " " sign?

    This is my first time using the Numbers App which I thought could organize my research data collection and at the same time speed up the summary and analysis of the data as well. However, I can't start on with it because I'm stuck with how to find th

  • Phone book is not showing no.

    dera sir , i have the nokia hand set 3110c since 11 months but from some days this set is not working properly . it is unable to show the contacts which are saved in phone and not moving these contacts to sim . tell me how i can get my contacts back