Things that bug me about Java: MalformedURLException

Anyone else think it's funny that when I call
File f = ...
URL url = f.toURL()
I've got to catch a MalformedURLException? When could this exception EVER happen? Can anyone answer that?
Why is MalformedURLException not a RuntimeException? Of all the exceptions out in java land, this is one that has almost never come up for me, and in any case should be totally preventable by the programmer just as NullPointer or ArrayOutOfBounds exceptions are

I was under the impression that a File was not directly linked to a physical file. In effect you can create a File instance with almost any gibberish. That gibberish could possibly be invalid when converted to a URL or may not be parasble into a url. (relative file paths may be a source of this (Im not sure though). I belive you can also create an "empty" path
File f = new File("");There may be senible ways of handling conversion of this to a URL but I don't think it does.
Even if toURL does succed it does not necessarily produce a valid URL (It does not escape special characters)
matfud

Similar Messages

  • The one thing that bugs me about the iMac design is.....

    The one thing that bugs me about the imac is..... the sleep mode led.
    Was it beyond the ken of the designers to make it apple shaped?
    Now - call me recklessy stupid, but.....
    Having seen how easily the front cover can be detatched, how much of a dolt would i be to try and fit a foil blank apple, or apple shaped hole blank inside the casing to rectify this inconsequential but nagging annoyance?
    You see, recently making the leap from pc land, I am left with hours of empty time on my hands.
    Time that would usually be profitably taken up by debugging, reinstalling, restarting, recovering, rebooting and waiting for all of the above, and generally working around the 'beige box of nightmares'.
    Or should I just stop proctastinating and finish off the latest chapter of my upcoming video project, to be previewed 4 weeks tonight?

    Whip out your hacksaw and have at it, realizing you are voiding any warranty that you had.
    Good luck.

  • TS3694 I try to update my iPhone 5 but in the middle of the way error 1603 didnot allow me I did every thing that I read about it but in every computer and updated one it is the same and now I am in DUF mood and my phone can not start what I must to do

    I try to update my iPhone 5 but in the middle of the way error 1603 didnot allow me I did every thing that I read about it but in every computer and updated one it is the same and now I am in DUF mood and my phone can not start what I must to do

    The program is for replacement since Apple does not repair iDevices...you take your non-working or damaged iPhone to an Apple store genius bar, or send to Apple service, and they provide a refurbished unit as a replacement, for a fee, of course.  You will have to talk with Apple to see if you get all components or just the iPhone replaced.
    With AppleCare+ you can have two out-of-warranty replacements for a cost of $49 each.

  • One thing that confuses me about contribute is the license

    One thing that confuses me about contribute is the license. I
    have a client who I am doing a website for and I want to recommend
    contribute. However I don't want them to have to buy 2 copies of
    the program because they are a man and wife who will both be
    editing the website. Is it ok for both of them to use it if it is
    installed on a PC and a laptop?

    The EULA suggests that it's OK to have it installed on two
    computers (office, home/laptop) for one user. How your client
    solves this is their case of course, but I think they will be
    creative enough to make it work without buying two licences
    :)...

  • It's the little things that bug me...

    This is really a bit of a rant; though if someone can help to fix any of my problems that'd be great.
    1. The way that all available midi notes in the entire song seem to appear on the Midi editor window (forget what it's called in Logic) if you double click on it (this must just be me, right??)
    2. The way the scrolling works - if I have a loop of say four bars, Logic doesn't seem to be clever enough to realise it'd be nice if it didn't move the entire arrange page back and forward - that is; a loop which is small enough to fit on the screen doesn't automatically do that. And the follow song button seems to do nothing at times
    3. The limiters - they don't work! I suffer awful PDC with the adaptive limiter on individual tracks, and neither of the limiters do what they're supposed to - ie. limit the signal!
    4. When I solo one track, I always seem to get at least one other track through!
    5. The CST reset toggle... it doesn't happen much, but when you do accidentally catch it you know about it... "undo", please!
    So, I'm hoping these are easily fixed (well, probably not the limiter bit...) let me know your thoughts...
    And this rant/mild whistleblowing isn't in place of a "feedback form" - I hope we can fix at least one of the problems!
    Thanks,
    Mickey.

    1. The way that all available midi notes in the
    entire song seem to appear on the Midi editor window
    (forget what it's called in Logic) if you double
    click on it (this must just be me, right??)
    If you mean the Matrix Editor, you're describing what dbl-clilcking in a blank area of that editor is supposed to do. But probably like you, it's rare that I ever want to see that display. From time to time I'll accidentally call up this display when I think I'm dbl-clicking on a note (to see it in an Event Editor window) but I accidentally click on a blank space in the Matrix Editor instead.
    I think this function, so rarely needed, should be modified so that it's invoked by having to hold down a modifier key+dbl click instead. But if you see the all-notes display and you didn't mean to see it, it's pilot error.
    2. The way the scrolling works - if I have a loop of
    say four bars, Logic doesn't seem to be clever enough
    to realise it'd be nice if it didn't move the entire
    arrange page back and forward - that is; a loop which
    is small enough to fit on the screen doesn't
    automatically do that. And the follow song button
    seems to do nothing at times
    True 'nuf. I'd recommend having the Catch function on a key command (mine's "A") and be able to turn it on and off as you see fit. Turning Catch off will solve this problem, but I agree that the problem you described is annoying.
    3. The limiters - they don't work! I suffer awful PDC
    with the adaptive limiter on individual tracks, and
    neither of the limiters do what they're supposed to -
    ie. limit the signal!
    What's PDC?
    4. When I solo one track, I always seem to get at
    least one other track through!
    I run into this too. Logic is buggy when it comes to certain Soloing operations. My advice would be to set up a key command for "deselect all tracks" or "deselect all objects" (it's one of those two). Hit this before you solo anything.
    5. The CST reset toggle... it doesn't happen much,
    but when you do accidentally catch it you know about
    it... "undo", please!
    CST?
    And this rant/mild whistleblowing isn't in place of a
    "feedback form" - I hope we can fix at least one of
    the problems!
    Since Apple is so secretive and un-communicative as a software manufacturer, and doesn't bother to acknowledge known and unknown issues with Logic, IMO the best thing you could do is post your problems here (as well as the feedback thing). This way other users will either be able to help you out, or, from your experience they'll learn something more about their system.
    Anyway, that's my lil' rant on top of your rant.

  • Two things that bug me with my T400

    I got a T400 and I have it how i like it except for two things:
    1.) The harddrive light flicks about every second or shorter.  What is accessing my hard drive all the time?  (I installed a SSD but I think it did the same thing before I installed it)
    2.) The lenovo service take FOREVER to startup.  I try to bring up the internet (Fn+F5) or the ThinkVantage button and it thinks a for little and then NOTHING COMES UP.  I have to wait about 10 minutes after startup and then click I can click the button and the service will start
    I've updated both my Lenovo service and Windows.  What can I do to fix this?

    @Elmware
    Which headphone settings do you have on the Music app? 
    settings > audio settings > sound effects > headphone settings
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Things that should be in the next update... please don't wait for 2.0

    I've been using adobe products a long time and I have to say that I am a little disappointed there has not been more thought put into things that should just work in a v1 product.
    Here is the list:
    Ingest window should be able to be able to take up the full screen.  At a minimum, it should remember the last size. My paths get somewhat long and this is very frustrating to continually have to resize the window or panes every time I ingest.
    Ingest should put the files in the bin selected when I hit ingest.  It always puts them at the root.  To make matters worse, keyboard shortcuts that are used to select files in almost any program like SHIFT+HOME do not work.  I have to click, scroll to the bottom and shift click the last file to select a range.  Then drag all the clips to the target bin.  Borrow the code from Premiere
    Keyboard shortcuts for clip navigation.  Logging clips with keyboard shortcuts is a godsend and this is one thing that I love about Prelude.  Anyone who has to do a lot of logging will tell you these keyboard shortcuts are imperative to a smooth workflow.  This is especially true if you have to log hundreds of clips like I do.  Next clip, previous clip when editing from the navigation tree or in a roughcut would be extremely helpful.  If I am in a roughcut, I can easily get into a clip, but not back out to the roughcut where I was.  The only way I have found is to click on the roughcut name in the timeline window.
    Re-linking moved media - FAIL.  Since this product is supposed to let different people log media, it seems crazy that the program can not re-link it.  Very few people in this world store there files in the same absolute path.
    Lack of updates.  Makes me wonder if Adobe is committed to this product.  Having a really long time between iterations is hard on your users.  At this point I have no clue if any of these features will ever be added.
    I have spent a lot of time in this program and it is on the verge of being great.  I personally think that before you start adding new features, you should fix some of the things that make it hard to use.

    Thank you for your post and your passion for Prelude. Input from customers like you is how we can improve out product.
    I do have a few comments and questions for you about your experience. Also, many of the items you have listed are already part of Prelude.
    Replies to your list:
    1.  The Ingest Dialog can be sized to fill your entire screen. Simply drag-drop the edges to resize. This size is also remembered on subsequent launches. This has been in the product for quite some time – what version of Prelude are you running? Currently we have made the following releases: Prelude 1.0, 1.01, 1.02 and 1.03. Our v2.0 has been announced and revealed at NAB last week and is coming out soon with many more enhancements and improvements. Rest assured that Adobe is committed to this product – as you will see with this new release.
    2.  Ingesting into the selected BIN is part of our upcoming release that was revealed at NAB. I'm currently on a Mac so cannot test the SHIFT+HOME shortcut, but Prelude does support CTRL/SHIFT selection options to make selection easier. I'll look into the HOME and END options as well. If they are missing we certainly want them added.
    3.  Glad you find the keyboard driven workflow beneficial. We had a lot of customer feedback early in our 1.0 days that this was a must. Adding support for clip selection in the Project Panel to open and log clips is something in our backlog we would also like to deliver because as you say it is very useful and saves time. We are also reviewing our Clip/Roughcut UI and workflow. Don't have anything to report yet other than this is an area we are focusing on.
    4.  Relinking is possible in Prelude 1.03. We've added additional relinking support in our 2.0 that provides relinking in rough cuts as well. If you are not yet on 1.03 please use the free update and let us know how it works for you.
    5.  As mentioned above, we have 3 updates posted last year for our 1.0. And 2.0 is coming out soon.
    Please continue to share with us your thoughts and ideas for improving Prelude. We have an aggressive feature TODO list but are always looking for more direct input to help us properly prioritize what's part of our next delivery.
    Thanks!
    Michael

  • NOKIA N8 - Things that we hate (Symbian ANNA)

    Hello, I open this thread just to write down Things that we hate about Nokia N8, improvements to be added, etc....
    * Continuous autofocus not working. Never did. at least for my N8 (Brand new, 2 days)
    * Auto-Screen lock is not possible to disable. on settings->phone->display->Screen/keylock time-out:  1 to 30 mins but no ) mins or "none" option exist
    *There is no incoming Sms preview on home screen. you have to unlock the phone, and do a few click to be abale to read the new sms
    *camera button is not activating the camera when the screen is locked
    *Photos are out-of-focus, sometimes, for no reason.
    *Screen tapping is a bit luggy
    Please add your comments/opinion.....

    Perhaps som useful applications for you:
    Sleeping screen
    Camera N8 betalabs
    SMS Preview
    Nokia 808 again (delight Belle), Nokia E7 and X7 ( again, all on Delight Belle...after some time on Nokia Lumia 925 (retired), 1020 (not that great)and Lumia 820 (Replaced my router at home, great for internet sharing).., N9 The best device ever (use it as much as Lumia 1020), Nokia 700 (Sport Phone/My Love :-) ) Nokia 701, Nokia E6 (Should have a follow-up from Nokia among with larger screen, NFC, Autofocus), Lumia 800 (Retired After 6 weeks), -Sports Tracker-Nokia Internet Radio-Handy Safe-Skype-Bambuser-Screenshot app pro-fMobi-ComingNext-Manual TaskSwitcher-jagiTimer-Easy StopWatch-Boldbeast-Equalizer-Financial Calculator-WiMP Music-YTasks-Davi-Thumbnail Folders-BizCalendar-Tiny7-Situations-nn reeder-Sport Timer-CameraLover-CameraPro-GrabRadio-LiveScore-Poddi-Gravity-SkyFilesPro

  • Things that are wrong with GNU Java

    I thought I'd start this topic for reference. Contributions and corrections welcome.
    Things I've encountered or seen here over the years:
    1. Incompatible under Serialization.
    2. Incompatible under RMI.
    3. Swing support is either missing or incomplete.
    4. jni.h doesn't agree with the JNI specification (found this yesterday: dozens of 'const's missing on parameters, and jboolean and jbyte both map to the same underlying native type, unlike the real jni.h).
    I suppose it might ultimately have been more efficient to start a topic 'Things that are right with GNU Java' ...

    I can't agree with that. If anyone implements Java, for any reason, good or bad, they are supposed to get it right. IBM's Java exists and doesn't have these problems. And there are other vendors. There's only one 'vendor' with a majjor problem and that's what the thread is about.
    GNU has got it so wrong with their 'Java' that I can't see how it can possibly pass the compatibility tests, so how they can get away with calling it Java at all is another mystery ... When you look at their offerings, GCC is really their only major success. Their original goal, a GNU kernel, was never finished ...
    For the record, and the purpose of this thread, GNI Java ['supports most of the 1.4 libraries plus some 1.5 additions'|http://gcc.gnu.org/java/]. In other words they haven't finished 1.4 yet, which came out on Feb 13, 2002, and is now in end-of-life, which ['will complete October 30th, 2008'|http://java.sun.com/j2se/1.4.2/]. Let alone 1.5 which came out on Sept 29, 2004. Their target? ['GNU Classpath 1.0 will be fully compatible with the 1.1 and 1.2 API specifications, in addition to having significant (>95%) compatability with the 1.3, 1.4, 1.5 and 1.6 APIs'|http://www.gnu.org/software/classpath/]. In other words 1.0 isn't out yet.

  • How do I reset my security questions? Normally people are saying something about a rescue email or a thing that will show where your password and security are for me it just shows my two questions  and that is it.- Help

    How do I reset my security questions? Normally people are saying something about a rescue email or a thing that will show where your password and security are for me it just shows my two questions  and that is it.… Help

    Go to Appleid.apple.com and choose Manage ID you can change them from there.
    You can add a rescue email if you don't have one there too.

  • List of things that are bugging me... If anyone knows a way round these???

    A few things that a grating me about the new Logic...
    1. On all previous versions I could fix the transport in the top left of the screen. I use 2 monitors with screensets tailored for 2 screens. Now my transport is across the bottom permanently, it is more difficult to read due to the break in the 2 displays.
    2. When creating a track in Pro 7, I could create busses, outputs, aux etc. Now I am just limited to Instrument or Audio. This makes the process of automating a bus long winded as I now have to set up a track, switch to my environment screen, patch the track I want to automate back to the main screen and then automated it. Surely this was easier before?
    3. I have already mentioned the key command changes in a seperate thread... But it warrants mentioning again. Certain changes to the layout mean that key commands I have been using since version 5.5 are now not usable. Now I can understand that maybe for new users this may be easier, but for somebody like myself who uses these keys without even THINKING this is VERY annoying.
    4. Having real problems with the smart snapping. On Pro 7 I just selected a quantize amount and then nudged with the keys. Simple. On 8 I find myself moving things around by very small increments without even realizing it. Grrrr...
    Please don't get me wrong by all of this. The changes made to the plugs are awesome, and I am sure that when I get used to the new main screen I will find that very useful, but I cant help but think that all this new stuff like, no dongle, cheap price tag, bearing more than a little resemblance to Live is all geared towards the new user. Spare a thought for people who have ALWAYS used logic. We LIKE the way it works. We LIKE all those things that maybe other people found a little difficult... WE WANT TO LIKE THIS NEW VERSION...

    1. That must be either something that they overlooked, something that is difficult to change, or complete nonsense on the part of Apple. A transport that can't be hidden or resized. LOL. That and that massive button bar across the top which also can not be resized or hidden. These things need to be optional/adjustable. Many of the new improvements to the interface are serving to cut into your screen space when people are trying hard to have as much screen space as possible. Two monitors, larger monitors, etc. Meanwhile, Apple does something that goes completely against the grain of this direction.
    2. This one is interesting because according to the manual, Aux channels now completely take the place of bus channels, and the bus channel is only included for backward compatibility. But bus channels can only be created in the environment. But if you can just use an aux channel, then there's not much difficulty in doing it. Of course, it'll be different than what you've done in the past, but at least, not difficult. Once you assign an aux to some other track, you can control/click the aux track in the inspector, and choose create/select arrange track to make it visible in the arrange window with other tracks. Strangely though, Logic calls these tracks "Bus" in the inspector and routing dialog/list, but calls them Aux in the mixer. Very strange and of course very confusing for newbies, the opposite of what they were apparently trying to achieve.
    3. Apparently, some key commands simply won't work anymore the way they used to. No way around that one except to carefully choose a new one that makes sense to you for the same task.
    4. Does "division" rather than "smart" not work for you? I like division actually because you can set for example a 16 division, then snap at smaller division with control key, or Control/Shift to toggle snap off and move freely temporarily.
    Overall, the new things in Logic Studio are more better than worse. The new interface, look and design are what I most dislike. I liked the dark look of Logic, everywhere, not just inside the various windows, and I liked that it was set up to allow for maximum screen space, right down to being able to hide the very scroll bars. Apple definitely has something different in mind now.

  • I am so confused. I am thinking about buying an iPhone 4S but I want to use those card things that you can put the code in for the phone is this possible? I'm not talking about the 50$ unlimited card just the regular 20$ cards that hold mins and texts...

    I am so confused. I am thinking about buying an iPhone 4S but I want to use those card things that you can put the code in for the phone is this possible? I'm not talking about the 50$ unlimited card just the regular 20$ cards that hold mins and texts... As long as it has the support for the service it's hooked up to?

    As far as I know there is no US cell carrier that allows pay as you go with an iPhone. You can purchase an unlocked iPhone 4S at an Apple Store and try it with a non-supported carrier.

  • Rant over the one thing I dont like about SAP

    ...there is no "RUN NOW" button for jobs...
    annoys me since I started working with SAP in 3.0F
    finally erupted
    </Rant over>
    Have a nice day.
    Andi

    Hi,
    >Rant over the one thing I dont like about SAP  
    If you have only one single thing  you don't like about SAP products then you are very lucky.
    There are plenty of things that I hate in SAP products, specially with the weird "ergonomy" of a lot of transactions or bugs I know since R/3 release 2.2 and still there in ECC 6.0...
    Number one on my "hate list"is presently J2EE logs analysis...
    Fortunately, there are also a lot of things that I love in SAP products.
    Otherwise, I would not be still working in this area since 11 years.
    I am always amazed that the architecture of the abap stack is so old (1992 !) and still up to date and so reliable (especially compared to Java...)
    Regards,
    Olivier

  • I keep getting an error window about java since I updated to firefox 8, my tabs will flash, tabs will close and open in a new window, everything stops working, firefox is non responsive, please help

    Since I upgraded to firefox 8, I get this error window that pops up says something about java. My tabs flicker or flash, the tabs will close and open in a new window then everything stops. Then firefox does not respond. When I get this error message, I have to close all tabs wait a few seconds then open it back up it will work for a little while and then do the same thing. I have disabled plug-ins that I do not use, I have cleared my cache and cookies, I am not happy at all with this new version. I waited a while before updating. The first time I was going to update, firefox would not let me keep my anti-virus plug-in. PLEASE HELP

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • I can't run java installer. This may involve firefox. My firewall is turned off so that I can install java, but something is still blocking the installation procedure, and java's support page doesn't seem to offer an answer.

    University tech support says their online course system prefers explorer to firefox, and something they and the java download site both say about allowing pop-ups and disabling the firewall make me thing that part of the problem is with firefox's compatibility. But honestly, I don't know. I just know that I'm following all the directions I can find and it doesn't seem to be working.

    #Download and SAVE the Java installer to your hard drive,
    #*SAVE the installer to your Desktop so that you can easily find it
    #exit Firefox (Firefox button > Exit '''''OR''''' File > Exit if using the Menu Bar),
    #click or double-click the Java installer that you downloaded to start it
    #Using Java with Firefox and Download link: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]
    #Test your Java after installation: https://www.java.com/en/download/testjava.jsp
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

Maybe you are looking for