Is there an easy way to suppress errors/warnings?
Hey all,
I've run into an annoying problem. I am using a few swc files in my app. In those swc files, I have a public method that will run some code. So, i import the swc's into my FB app, then access those public methods from flashbuilder. 90% of the time, the method runs fine, but 10% of the time, it throws those annoying warnings, explaining that "Cannot access a property or method of a null object reference." when if fact, that method DOES exist??
I know you will only get those errors if you are running a debug version of flashplayer, but I don't want the chance of that coming up for any of my users. There has got to be a way to stop those warning from coming up. I have gone through my code multiple times, and everything is in order, like mentioned, it works 90% of the time. Please help, thanks in advance! BTW, it throws error 1009 if that makes a difference
I have problems in the past like these where my ui freezes of there i get
an error because an item is not on the stage. you should try adding a timer to your code to pause for a few second
s then go on to run some more code. ... just a suggestion..i have done that in past and its wor
ked well but you should post your code up so we can take a close look.
Miguel
Similar Messages
-
Is there an easy way to suppress debug messages from plugin.jar?
When using the plugin.jar library (included in JRE 1.4.2 and 1.5)
my Java Console is riddled with tons of debug messages like:
<<< ProxyClassLoader: defined LiveConnectProxy class. >>>
<<< Here're the permissions you've got: >>>
<<< java.security.Permissions@b614d0 (
(java.net.SocketPermission 127.0.0.1 connect,accept,resolve)
)I'm using the plugin.jar (replacing use of the old netscape.jar)
to bridge communication between Java Applets and JavaScript.
Each time the Applet calls back to the JavaScript side,
the callback JavaScript function makes a call to parseInt() to
convert one of the parameters passed from a string to an integer.
Each time parseInt() is called, the message above appears
in the Java Console.
I traced down the source code for this message to a debug()
statement inside the plugin.jar's class loader, but I'm not sure
how to suppress it easily.
Does anyone have any ideas I could try?
Here's the code from the Java-side:
synchronized( this )
try
final JSObject window = JSObject.getWindow( applet );
if( window != null )
final String[] stringArgs = new String[3];
stringArgs[0] = labelName;
stringArgs[1] = labelDisplayName;
stringArgs[2] = labelValue;
log.debug(stringArgs[0]);
log.debug(stringArgs[1]);
log.debug(stringArgs[2]);
window.call("MyJavascriptCallback", stringArgs);
else
log.error("Javascript window unavailable.");
catch( final JSException e )
// Note: Occasionally, getWindow() will throw an exception
// without any meaningful reason.
// ( http://www.raditha.com/blog/archives/000938.html )
// Possible cause: This can send updates at a fraction of a
// second. This may be causing issues within the Plugin.jar
// used to handle the JavaScript callback.
log.debug("JSException", e);
}Here's what I've found out...
The messages are coming from the MRJPlugin.jar provided by Firefox.
Within the netscape.oji.ProxyClassLoaderFactory class,
the following line...
System.out.println("<<< " + message + " >>>");
...appears to be the cause and cannot be turned off by a configuration setting.
The home URL for the MRJPlugin.jar is:
http://www.mozilla.org/oji/MRJPlugin.html
The last time this library had an update released was in 10/31/2000.
However, this is the Mozilla source; not Firefox.
Although changing the MRJPlugin.jar source to remove this line will appear
to fix the problem, I'm not sure of the best way to distribute the updated
MRJPlugin.jar without conflicting with Firefox's update process.
Any thoughts? -
Is there an easy way to reimport all songs in my itunes folder?
This may sound like a weird question but here goes... When I bring up my iTunes I have 8731 files (mostly music) that come to about 41.33G's but when I right click on my iTunes Music folder and select properties there are 8809 files and a total of 48.5G's. I am trying to free up some disk space and can't figure out why there is such a difference. I had issues with Norton 360 and removed it but I had to restore my music files from an external drive and when I did so I lost the links for music that I added after my last back-up. I noticed that TV shows I bought from Apple were not in my iTunes but I was able to locate them in the folder, and import them back into iTunes. I have a feeling there are music files in my folders that are not linked to iTunes but can't figure out how to import them without going through all 8800+ files. Is there an easy way to import all the files without losing the current playcounts or a way to figure out which files may be duplicated in my iTunes Music folder. Seems like I am wasting 7G somewhere that I would like to recover. I already went through the duplicate songs and that didn't help. Any suggestions would be great...
hp pc m260n Windows XP media centerI have a feeling there are music files in my folders that are not linked to iTunes but can't figure out how to import them without going through all 8800+ files. Is there an easy way to import all the files without losing the current playcounts
AFIK there isn't an easy way of linking up to a lot of dead tracks and retaining play counts etc, except by finding the dead tracks and repairing each link individually. The only exception to this is if there is a simple error in the path that can be fixed by a search and replace on the xml library file, then rebuilding the library. However it doesn't sound as though that would be a solution for you.
This MacMuse tip has a way of finding dead tracks if that helps.
http://discussions.apple.com/thread.jspa?threadID=121967
It is much simpler to sacrifice the playcount information and just reimport your iTunes Music folder. Then you can eliminate the dead tracks with a script. One of the forum members has written one that you can find here:
http://home.comcast.net/~teridon73/itunesscripts/ -
I just bought a new external 3TB hard drive for this task and want to keep my items seperate from hers for both our sanity.
I figured that I would do a time machine back up and use that to do the move part of things.
But as to setting up the new user on her computer I am just not sure if I can "tell" the computer to only use the new drive for my stuff and only acces the new drive for all things related to that new profile.
More then anything else I want to be able to say that all things that are hers have not been touched/acccesed/deleted by any of my actions. And that I am "confined" to the new drive.
I hope this makes sence.
Mr GeefI have a feeling there are music files in my folders that are not linked to iTunes but can't figure out how to import them without going through all 8800+ files. Is there an easy way to import all the files without losing the current playcounts
AFIK there isn't an easy way of linking up to a lot of dead tracks and retaining play counts etc, except by finding the dead tracks and repairing each link individually. The only exception to this is if there is a simple error in the path that can be fixed by a search and replace on the xml library file, then rebuilding the library. However it doesn't sound as though that would be a solution for you.
This MacMuse tip has a way of finding dead tracks if that helps.
http://discussions.apple.com/thread.jspa?threadID=121967
It is much simpler to sacrifice the playcount information and just reimport your iTunes Music folder. Then you can eliminate the dead tracks with a script. One of the forum members has written one that you can find here:
http://home.comcast.net/~teridon73/itunesscripts/ -
is there an EASY way to submit podcasts to the itunes store? i've tried creating podcasts in garageband, then somewhere after wordpress itunes doesn't recognize the feed.
my process has been (i am open to suggestions for other free and EASY services/methods):
garageband : create & edit audio. add 1400x1400 image.
share to itunes.
drag file to desktop.
upload .m4a file to google drive.
create a link post in wordpress using "podcast" tag & create "podcast" category.
click on "entries rss" in wordpress, which takes me to the rss subscribe page (which is basically just my wordpress address with "/feed" at the end.
i copy this url.
go to itunes store > then "submit a podcast"
itunes gives me the error message "we had difficulty downloading episodes from your feed."
when i try to subscribe to my podcast in itunes, it does, but gives me no episodes available.
i went back into wordpress and changed settings/ reading settings to : "full text" from "summary"
still the same error message.
i added a feedburner step after wordpress but got the same errors. i don't think i should have to add feedburner.
wordpress seems to be encapsulating the rss, what am i doing wrong?
this so much easier when you could go directly from garage band to iweb to mobileme; i miss those apple days (also idisk).if anyone has a super EASY process, i would LOVE to know what it is. EASY, meaning no html and also free. there are many free online storage systems available, many of which i currently use. the above process was just me trying to figure it out, if you have an easier method, please share. thank you so much!
-
When I import a CD to itunes, it splits the album in to multiple entries. I have changed the info on some but others just will not merge. Is there an easy way to do this and can I stop them from splitting in future? Thanks
Okay this is what fixed my problem. Some kind of error/glitch occured half-way through importing that third cd that prevented further imports from any other cd. Once I completely removed the half-imported cd album from my library I could further import cd's without any problems.
-
I made several movies using symbols and motion twens and now wish to save these as an flv to play in a web browser.
Could someone please respond with an easy solution as I am just learning about this.
Thankyou.Cheers for the head up, it worked, now I feel like a simpleton. I only saw the choice for doc.fla and thought it must be complicated.
Kind Regards
Andrew Whitehead
[email protected]
CONFIDENTIALITY - This email and any files transmitted with it, are confidential, are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system.
SECURITY -All email is scanned with Kaspersky Internet Security 2010. Please be aware that communication by email, by its very nature, is not 100% secure
VIRUSES - Although this email message has been scanned for the presence of computer viruses, the sender accepts no liability for any damage sustained as a result of a computer virus and it is the recipient’s responsibility to ensure that email is virus free.
AUTHORITY - Any views or opinions expressed in this email are solely those of the sender.
Date: Thu, 25 Feb 2010 11:48:11 -0700
From: [email protected]
To: [email protected]
Subject: I am trying to convert a .fla file to an .flv file, is there an easy way to achieve this.
No worries, that is very simple to do.
Just click on File--> Save As and select your "File Type" and select as "Flv."
Let me know how it goes and if you have any questions regarding Flash, please feel free to ask me here or sending me an email.
Hope this helps,
Vicente Tulliano
> -
Is there an easy way to make JSpinner wrap around at max/min values?
I have several pages with a couple dozen JSpinners to set various values - mostly numeric, but some are not.
I would like to make them wrap around when either the max or min values are reached.
Is there an easy way to do this?
I was hoping for something like an "enableWraparound" property, but I haven't found such an animal.
I suspect I could add value change listeners to all the components and do it by brute force,
but there are too many spinners scattered around to make that an option I would like to take.
Any suggestions?
Thanks.Ok, it looks like custom spinner models are the way to go.
Hopefully, I can create a couple that are generic enough to meet my requirements without too much pain.
It looks like the ones I have already created will be easy enough to modify.
Thanks for the feedback. -
Is there an easy way to clear the contents of Download Folder?
Is there an easier way to clear out files (send to trash) from the downloads folder, other than dragging one by one? The downloads folder closes immediately upon dragging one file out.
You do not need to invoke Finder to do this. Create a new empty Automator workflow and use the "Run Shell Script" option. Paste in the following....
mv ~/Downloads/* ~/.Trash
You can then save the workflow as an application, attach it as a Finder action or add it to the scripts menu, whichever you like better.
If you would like to bypass the Trash and just completely delete the Downloads folder contents immediately, then paste in this command:
rm -rf ~/Downloads/* -
I recently upgraded to the iphone 5 and managed to sort the transition out with little trouble but noticed when I tried to put my music on that Itunes has messed with album info and either it or me has generated several copies of the same albums over the years and it makes it quite dificult to sort it all out before reloading on the phone. To stop the chaos I had hoped to clear the library and start again but cant find a way to do it. I was hoping to sort all my music out in original files and consolidate them into a proper folder. HOw do I do this. I notice there is an add fole and folder button but no take away??? is there an easy way?
Use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. If you have multiple references to the same files then don't send to the recycle bin. Use my DeDuper script if you don't want to do it by hand. See this thread for background and please take note of the warning to backup your library before deduping.
(If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
tt2 -
Is there an easy way to filter a 2-d array based on the values of two of the fields?
Is there an easy way to filter a 2-d array based on the values of one of the fields. In my attached VI the output array has the following format:
TimeStamp Ident Frame Type Bytes Data
10:57:07.621 3AD00016 CAN Data Frame 8 0000000000000000
10:57:07.622 3AD00017 CAN Data Frame 8 000005E000000000
10:57:07.624 3AD00018 CAN Data Frame 8 0000000003300000
10:57:07.625 2DC00000 CAN Data Frame 8 0000000000000000
10:57:07.626 3AD00019 CAN Data Frame 4 0000030000000000
I would like to delete any rows that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the above data the fourth row would be deleted. The only way I can see to do it is to form a 1-d array. Is there a better approach?
Thank you.
Solved!
Go to Solution.
Attachments:
CMM_SN_MULTI.vi 20 KBHi chuck72352,
after you have sorted your data, you can use the InRange Function. Combined with a "search 1D Array" you'll get the range you really want.
Mike
Attachments:
ArraySubset.PNG 25 KB -
Is there an easy way to generate a site map of an APEX application ?
Hi.
Is there an easy way to generate a site map of an APEX application ?
Thanks.Depends on your definition of "easy"...
Patrick Wolf provided one way to do this a few years ago. -
PSE10: Is there an easy way to add a vignette?
Besides using Filter > Correct Camera Distortion, is there an easy way to put a vignette on a picture? The method I just named doesn't give me the smooth, uniform fade that I need for creating collages, etc. Thanks!
Sure, just use any selection tool to make your selection. Here, I simply used an elliptical selection:
Then, use Select...Feather to feather the selection. I used 10px. Hit the Ctrl+J keys to copy that feathered selection to a new layer with a transparent background:
Ken -
Is there an easy way to add a location map to Pages?
Hi,
Using the latest version of Pages, is there an easy way to add a location map?
Many Thanks
Simon.Are you trying to copy an image from the Maps application?
If you are, the easiest way I have found to do this is by going to Edit>Copy in Maps and then pasting the image in the Pages document. -
Is there an easy way to find out if a user has a message in their voicemail.
Is there an easy way to find out if a user has a message in their voicemail from the
UNITY subscriber page? Or anywhere I can look to see if they do. I don't have access to the exchange servers. We are currently running UNITY 5.0(1). thanksThe only way you'll be able to do that is to login to Outlook Web Access, or possibly setup an IMAP client to that user's mailbox or have TAC run the DohPropTest in attach mode to return the contents of the user's inbox. If the first two don't work, I'd go with the latter and let TAC help you verify if there are any messages in the inbox that are unread.
Hope that helps,
Brad
Maybe you are looking for
-
Time Machine Won't Recognize Previous BackUps transfered to new iMac
I just bought a new iMac and used the assistant wizard to transfer all the files from my previous Mac (a dual 2GHz G5). No problem. I have several external drives and one main (1TB) drive that I use as the TM backup drive. When I went to make my firs
-
Ok, i have been sitting here and trying to find livedocs or manual for air but without any luck. I followed up a tutorial and made everything exactly as show and told but i still get errors. Where can i find Code list for air, i mean codes that work
-
Examples of chart in the report column like monitor activity page
Hello, Can anybody help me how to create a report having chart as one of the column in the report like Administration->Monitory Activity pages. I have a report having columns like date, salesman, collection%. The collection% must be displayed as bar
-
Migrating Data from MySQL to SQL Server 2012
Hi all, I'm Migrating a database from MySQL to SQL Server 2012, using SSMA for MySQL v5.2.1258. I've got the schema migrated over and have resolved any migration issues (stored procedures / views), but when it comes to migrating over the data I'm ju
-
Transfering file from one system to another
Hi, Is there any mean by which we can transfer file from one system to another without programing??? Thanks and best Regards. Kusum.