Vendor agnostic way to determine you have a proxy.

In the Java Persistence API is there a vendor agnostic way to determine that an object is an unitialized proxy? The only thing that seems to be consistent is that trying to access a property on the proxy will throw an exception. Can I determine ahead of time that an exception would be thrown?
Thanks much.

You might catch the Exception and have a look at it what it says. Maybe the proxy server is not the reason for the problem. Perhaps Yahoo does not like to be accessed in the way your application does.
import java.net.*;
import java.io.*;
public class URLReader {
    public static void main(String[] args) {
        URL yahoo = new URL("http://www.yahoo.com/");
        BufferedReader in = null;
        try {
            in = new BufferedReader(new InputStreamReader
                                   (yahoo.openStream()) );
            String inputLine;
            while ((inputLine = in.readLine()) != null) {
                System.out.println(inputLine);
        } catch (Exception e) {
            System.out.println(e.getMessage());
        } finally {
            in.close();

Similar Messages

  • Acrobat Pro XI will not install.  Error says: Setup has determined you have a more functional product.

    I have Standard XI installed and Pro will not install.  Says Setup has determined you have more functional product.  Setup will now terminate.

    It may be that it is seeing the version number and not the product itself. All I can suggest is for you to deactivate and uninstall Std, then install Pro.

  • Is there a way track who you have distributed the form to and who has responded? If yes, is there a way to message all that have not responded?

    Is there a way track who you have distributed the form to and who has responded? If yes, is there a way to message all that have not responded? This would be a great way to manage supplier questionnaires to ensure everyone is providing information back to you.

    FormsCentral, itself, does not have a method of distributing forms, so it would not know about your distribution list. It's either an open online form, which can be gotten to by anyone with the URL, or it's a pdf, which could be distributed via e-mail or a web page download.
    You can always track the completion of the form by looking in the form's collected data set. Then, you could work backward to contact those recipients who have not yet responded. But that means you need to keep track of where the form was sent, or at least know which people/companies were supposed to get the form.
    I hope that helps,
    Brian

  • HT1430 SIM NOT VALID!! i wanted to update my iPhone to the latest version. i made it all the way up until you have to set up your phone. it says "Only compatible SIM cards from a supported carrier may be used to activate iPhone." thats all it would let me

    what do i do when it will not take my SIM card anymore and i can not downgrade my phone? i already got a new SIM card but it still says its not compatible! what can i do?

    This means that your phone was hacked to be unlocked. Updating it restored the phone to Apple specs and re-locked to the original carrier.
    You will need to find out who the original carrier is and see if you qualify for unlocking.

  • Is ther a way to speed up a Mac? Mine has gotten slower and slower over time.  When memory comes close to full would that have an effect on performance? Is there a way to determine unused programs/software to remove and free space?

    Is there a way to speed up a Mac (similar to de-fragging on a PC)? Mine has gotten slower and slower over time. 
    When memory/disc comes close to full would that have an effect on performance? How should I determine what programs/software to remove and free space?

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:     OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    Repair the Hard Drive - Lion/Mountain Lion/Mavericks
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilites Menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD disk icon and click on the arrow button below.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    Note: Alsoft ships DW on a bootable DVD that will startup Macs running Snow Leopard or earlier. It cannot start Macs that came with Lion or later pre-installed, however, DW will work on those models.
    Suggestions for OS X Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or later and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express 1.1.6 or Dr.Web Light both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)
    Troubleshooting Applications
    I recommend downloading a utility such as TinkerTool System, OnyX, Mavericks Cache Cleaner, or Cocktail that you can use for removing old log files and archives, clearing caches, etc. Corrupted cache, log, or temporary files can cause application or OS X crashes as well as kernel panics.
    If you have Snow Leopard or Leopard, then for similar repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. Applejack does not work with Lion and later.
    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components:
    1. A Time Machine preferences panel as part of System Preferences;
    2. A Time Machine application located in the Applications folder. It is
        used to manage backups and to restore backups. Time Machine
        requires a backup drive that is at least twice the capacity of the
        drive being backed up.
    Alternatively, get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files. For help with using Time Machine visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Referenced software can be found at MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • How can I get my G5 OSX 10.5.8 to quit trying to handle my mail? I have yahoo and when im on a site the computer wont ley me contact them unless i sign up for mail plus which you have to pay for. Is there a way to make it stop?

    when I'm on a web site and I need to contact them the Mac wont let me do it.  I have Yahoo mail but It wants me to sign up for yahoo's mail plus account which cost money so it can communicate with them. I dont want  mail plus and I dont want to have to use different mail then my yahoo account. Is there a way to bypass this internal mail handler, Let me know soon please becuz I have important business that I cant do because of this. Thanxz a Million,,,,Bruce.

    Hi Bruce,
    The only way with what you desire & have is to Right click or Control+click on the eMail link on the site, choose Copy Email Address, open Yahoo Mail in your Browser, New Message, then Paste in the To: bar.
    WebMail is a real pain, Yahoo is a pain... are you sure you wouldn't like to modernize & streamline things with a new free POP or IMAP accont like HotMail/Live.com, or GMail?

  • I am trying to change my apple id Country. but it says " you have a store credit balance, you must spend your balance before you can change it." i don't wanna use it to change my country. by the way i can't update any of iPhone apps. need help

    I am trying to change my apple id Country. but it says " you have a store credit balance, you must spend your balance before you can change it." i don't wanna spend it to change my country. by the way i can't update any of iPhone apps. need help

    It's strange because I can change my AppleID country without this message.
    So what to do? Just try to do this again, but on another device. You may also erase cookies and history of your browser.
    I hope it will be helpful, good luck!

  • I wanted the music on my Ipod Touch 3g to be on my new ipod Touch 4g and Ive been trying to do it, by trying to copy and paste but thats not working so if you have another way can you please tell me. Thanks.

    I was wondering how do you get the music on your old ipod to the new ipod?
    Because i have the Ipod Touch 3G and im getting the Ipod4G, and i was trying to get the music to go to the libary but it wouldnt transfer.Because i didnt purchase all my music i download some from other places so not all my music transferred. So i need a different way to get my music to my new Ipod. i was wondering if you just plug it in to the computer and if it would ask you to download the songs from the previous ipod im not sure so please help me out. Thanks!

    All you have to do is connect your new iPod to the computer that has the library for your old iPod.
    When iTunes comes up, click on your new iPod under Devices.
    At the top of the Summary Page click Music.
    Click Synch Music.
    Do the same thing for Photos, Apps, Movies and so on...
    Now just synch the iPod.

  • On Pages, let's say you have two similar documents, but you need to compare the two to see the differences.  Is there a way to do that?

    On Pages, let's say you have two similar documents. Two versions of the same document, but not merged in Cloud and saved as two separate files. B ut you need to compare the two to see the differences, some things on one, but not in the other.  In Word, they would merge the two and differences would be highlighted in red.  Is there a way to do something like that?

    Not actually in Pages, but there is third party software that purports to do this, google around.
    Peter

  • When I have two clips, one above the other, I would like to hear the audio from one at a time. How do I suppress temporarily one of that, in a easier way? Thank you.

    When I have two clips, one above the other, I would like to hear the audio from one at a time. How do I suppress temporarily one of that, in a easier way? Thank you.

    I would think you would drop down the audio level lines in the "Stereo" tab (FCP 6.0.6 view to me) in the clip's video window.
    But then again, in my old version, I can't play two clips at once.  But I figure if the newer FCP allow you to do that, then that's what I would do.

  • If you have an itunes acct that was not set up to share and the lap top it was on is no longer working, is there a way to open up the old itunes acct to get music and photos?  This was before icloud was available, can you reset your password?

    If you have an itunes acct that was not set up to share and the lap top it was on is no longer working, is there a way to open up the old itunes acct to get music and photos off of it?  This was before Icloud was available.  Can you reset your itunes password somehow?

    iTunes and the iTunes Store won't have anything to do with your photos. Those would be stored only on your laptop unless you made a backup of some sort. If you didn't, and the hard drive in your laptop has failed, then your photos are gone unless you wish to pay a disk recovery service a lot of money to try and get them back.
    As to your music, if you purchased it from the iTunes Store you can probably re-download it. Go to the iTunes Store, log into your account, and click the Purchases link under the Quick Links. From there you should be able to re-download some or all of your purchased content. Note that not all content has been licensed for re-downloading in all countries at this time. You can see what content you can download here:
    http://support.apple.com/kb/HT5085
    You can also re-download content using an iOS device.
    For full instructions, see:
    http://support.apple.com/kb/ht2519
    Regards.

  • Is there any way to forward/archive/access regular text messages if you have to erase your phone and re-set it as a new phone?

    I have some major errors in my operating system and was told that I have to erase my phone and then set it up as a new phone.  I have a lot of messages I'd like to be able to keep and have access to after the reset.  Is there any way to copy/sore/archive them?

    if you have a mac and have it set that way, they are archived on the mac.

  • I would like to take a iTunes play list and put it on a USB drive for my car radio to stay in my car. Is there a way to do this through iTunes so you have all the song info and there's no number in front of the name of the song? Is there a program?

    I would like to take a iTunes play list and put it on a USB drive for my car radio to stay in my car. Is there a way to do this through iTunes so you have all the song info and there's no number in front of the name of the song? Is there a program?

    iTunes only syncs to Apple devices.
    Assuming the media is not DRM protected, any of the media can be dragged and dropped from iTunes onto other drives (external, flash, etc) as the user chooses.

  • I have purchased Lightroom 5 and had it installed but I had to replace my matchbook pro and now I can't find the activation key - is there a way I can get it emailed to me or how do I find it? Most other plugin's email out the activation key so you have a

    I have purchased Lightroom 5 and had it installed but I had to replace my matchbook pro and now I can't find the activation key - is there a way I can get it emailed to me or how do I find it? Most other plugin's email out the activation key so you have a copy but I have seen no way to get it.

    If you registered your Lightroom with Adobe after you installed it, you can log into your Adobe account and get your serial number from your account.

  • Is it better for your battery if you let it run down all the way and then charge it? Or to charge it whenever you have the opportunity?  Which is better for the life of the battery?

    I was wondering it the life of the battery would last longer if you let the battery run down all the way and then charge it? Or to charge it whenever you have the opportunity even if it doesn't have a low battery?  Which is better for the life of the battery and prolong the life of the battery?

    I've had a iPhone 4s since March 2012, and it's battery is pretty useless now.  I was using the app Battery Doctor (Battery Saver, Battery Life) by Beijing Kingsoft Internet Security software, which encourages the user to charge more often, whenever battery life drops below 100% full and greater than 20% full, and gives ratings according to the number of full, partial & overcharges done, but I'm concerned that charging like that actually results in worse battery life??
    I now have an new iPhone 5 and don't want the battery to only last as short as the last one did
    Any advice/comments please

Maybe you are looking for

  • B&W G3, no image on monitor

    I've looked around quite a bit, and I can't seem to find any other posts (here or on other sites) that deal with exactly this problem. I have a B&W G3 that's been upgraded quite a bit by the previous owner. It has a 500 mhz Sonnet G3 processor, 512 M

  • Quicktime doesn´t work in web pages

    I have quick time pro. It was working fine but since a couple of days ago every time I open a web page, instead of seeing images I see the quick time logo with a question mark on top of it. Any advice? THANK YOU Candela Message was edited by: Host

  • Does GM play nice with Apple?  Cadillac & Iphone6

    My iphone6 connects to the bluetooth in my Cadillac CTS but won't play music?  Anyone know why and how I can fix it?

  • BAPI_SALESORDER_CREATEFROMDAT2 - Trying to update customer enhancements

    I am trying to create a sales order including customer enhamcement fields by calling the BAPI BAPI_SALESORDER_CREATEFROMDAT2.  I am getting the following dump:  The statement                                      "MOVE src TO dst"                     

  • Can't access to iCloud files after latest update

    Hi, After I update latest version of numers (version 2.1 1129) on both 5S and ipad air, I cant access to my icloud files on these devices. However I sitll can find them from the icloud.com. Does anyone know whats going on?