Why do I need to catch this exception?

Hello all
This is a question about exception handling. I have to build a diary application that lets you save reminders on particular dates using xml. Just to make it a little tougher, I was not allowed to use the Calendar class. This is the code I wrote:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
import java.text.*; 
import javax.xml.parsers.*;
import org.xml.sax.*;
import java.io.*;     
import org.w3c.dom.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.*;                                                                                                                                                                                                                         
import static java.lang.Math.*;
public class CalendarAssignment extends JFrame implements ActionListener
     int MonthLength [] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
     public JButton [] days = new JButton[43];
     private JLabel lbl, reminderlbl;
     private JPanel top, grid, remindercenter, reminderbottom;
     private JFrame reminderframe;
     private JTextField year1, reminderinput, dayno;
     private JComboBox months;
     private Container container;
     private JButton fetch, save, cancel;
     private Document doc;
     private File file;
     private Node node;
     private String year, month, day;
          public static void main( String[] args ) {
               CalendarAssignment c = new CalendarAssignment( );
               c.setSize( 400, 300 );
               c.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
               c.show( );
          public CalendarAssignment( ) {
               int CurrentYear, CurrentMonth;
               String YearString, MonthString, Now;
               Date today;
               container = getContentPane( );
               container.setLayout( new BorderLayout( ) );
               SimpleDateFormat DateFormatter;
               DateFormatter = new SimpleDateFormat( "MM.yyyy" );
               today = new Date( );
               Now = DateFormatter.format( today );
               MonthString = Now.substring( 0,2 );
               YearString = Now.substring( 3,7 );
               CurrentMonth = Integer.valueOf( MonthString );
               CurrentYear = Integer.valueOf( YearString );
               top = new JPanel( );
                    String [] items = { "January", "February", "March", "April", "May", "June",
                                  "July", "August", "September", "October", "November",
                                  "December" };
                    months = new JComboBox( items );
                    months.setEditable( false );
                    months.setSelectedIndex( CurrentMonth - 1 );          
                    year1 = new JTextField( );
                    year1.setText( YearString );
                    year1.setEditable( true );
                    year1.setHorizontalAlignment( year1.CENTER );
                    fetch = new JButton( "Fetch Month" );
                    fetch.addActionListener( this );
                    top.setLayout( new GridLayout( 1, 3, 20, 0 ) );
                    top.add( months );
                    top.add( year1 );
                    top.add( fetch );
               grid = new JPanel( );
                    grid.setLayout( new GridLayout( 7, 7, 0, 0 ) );
                    String [] week = { "Mon", "Tue", "Wed", "Thur", "Fri", "Sat", "Sun" };
                    for ( int a = 0; a < 7; a ++ ) {
                              JLabel lbl = new JLabel( week[a], JLabel.CENTER );
                              grid.add( lbl );
                    for ( int i = 0; i < 42; i ++ ) {
                              days[i] = new JButton( );
                              grid.add( days[i] );
                              days.addActionListener( this );
                    DrawCalendar( CurrentMonth, CurrentYear );
                    container.add( top, BorderLayout.NORTH );
                    container.add( grid, BorderLayout.CENTER );
          private void DrawCalendar( int SelectMonth, int SelectYear ) {
                    int DisplayMonthLength, Buttons;
                    String ButtonID = "";
                    int OffSet = MonthStart( SelectMonth, SelectYear );
                    DisplayMonthLength = MonthLength [SelectMonth - 1];
                    if ( SelectMonth == 2 )
                         DisplayMonthLength += LeapYear( SelectYear );
                    for ( Buttons = 1; Buttons < 43; Buttons ++ ) {
                         if ( ( Buttons <= OffSet ) || ( Buttons > ( DisplayMonthLength + OffSet ) ) ) {
                              ButtonID = "";
                              days[Buttons-1].setEnabled( false );
                         else {
                              ButtonID = Integer.toString( Buttons - OffSet );
                              days[Buttons-1].setEnabled( true );
                    days[Buttons-1].setLabel( ButtonID );
                    grid.add( days[Buttons-1] );
          private int LeapYear( int year ) {
                    int FourHundred, OneHundred, Fourth;
                    FourHundred = year % 400;
                    OneHundred = year % 100;
                    Fourth = year % 4;
                    if( ( ( FourHundred == 0 ) ) || ( ( OneHundred != 0 ) && ( Fourth == 0 ) ) )
                         return ( 1 );
                    else
                         return ( 0 );
          private int MonthStart( int Month, int Year ) {
                    int OffSet, LastMonths, BeforeOrAfter, Years;
                    int AllDays = 0;
                    int YearDays = 365;
                    int YearMonths = 12;
                    BeforeOrAfter = Year - 2006;
                    Years = abs( BeforeOrAfter );
                    if( BeforeOrAfter != 0 )
                         BeforeOrAfter = BeforeOrAfter / Years;
                    switch( BeforeOrAfter ) {
                         case 1:
                              for( int a = 2006; a < Year; a ++ ) {
                                   AllDays += YearDays + LeapYear( a );
                              AllDays += LastMonthsCalc( Month, Year );
                         break;
                         case -1:
                              for( int a = 2005; a > Year; a -- ) {
                                   AllDays += YearDays + LeapYear( a );
                              for( LastMonths = YearMonths; LastMonths >= Month; LastMonths -- ) {
                                   AllDays += MonthLength[LastMonths - 1];
                                   if( LastMonths == 2 )
                                        AllDays += LeapYear( Year );
                         break;
                         default:
                              if( Month > 1 )
                                   AllDays += ( LastMonthsCalc( Month, Year ) );
                    OffSet = AllDays % 7;
                    if( BeforeOrAfter ==( -1 ) )
                         return( 6 - OffSet );
                    else if( OffSet > 0 )
                         return( OffSet - 1 );
                    else
                         return( 6 );
          private int LastMonthsCalc( int Month, int Year ) {
                    int Counter;
                    int days = 0;
                    for( Counter = 1; Counter < Month; Counter ++ ) {
                         days += MonthLength[Counter - 1];
                         if( Counter == 2 )
                              days += LeapYear( Year );
                    return( days );
          public void CreateReminder( String buttonID, String yearID, String monthID ) {
                    reminderframe = new JFrame( );
                    reminderlbl = new JLabel( );
                    reminderframe.setLayout( new GridLayout( 2, 1, 0, 0 ) );
                    remindercenter = new JPanel( );
                         reminderlbl = new JLabel( "Please type in reminder to be saved for " + buttonID + " " + monthID + " " + yearID + ":", JLabel.CENTER );
                         reminderinput = new JTextField( 30 );
                         reminderinput.setHorizontalAlignment( reminderinput.CENTER );
                         reminderinput.setEditable( true );
                         remindercenter.setLayout( new GridLayout( 2, 1, 0, 0 ) );
                         remindercenter.add( reminderlbl );
                         remindercenter.add( reminderinput );
                    reminderbottom = new JPanel( );
                         save = new JButton( "Save" );
                         save.addActionListener( this );
                         cancel = new JButton( "Cancel" );
                         cancel.addActionListener( this );
                         dayno = new JTextField( buttonID );
                         dayno.setEditable( false );
                         dayno.setEnabled( false );
                         dayno.show( false );
                         reminderbottom.setLayout( new FlowLayout( ) );
                         reminderbottom.add( save );
                         reminderbottom.add( cancel );
                         reminderbottom.add( dayno );
                    reminderframe.setSize( 500, 75 );
                    reminderframe.add( remindercenter );
                    reminderframe.add( reminderbottom );
                    reminderframe.pack( );
                    reminderframe.show( );
          public void SaveReminder( String dayID, String yearID, String monthID ) throws Exception {
                    file = new File( "Diary.xml" );
                    doc = DocumentBuilderFactory.newInstance( ).newDocumentBuilder( ).parse( file.toURL( ).toString( ) );
                    String year = yearID;
                    String month = monthID;
                    String day = dayID;
                    //System.out.println( year );
                    //System.out.println( month );
                    //System.out.println( day );
                    CreateEntry( doc.getDocumentElement( ) );
                    writeXmlFile( );
          public boolean CreateEntry( Node node ) {
                    Node searchNode;
                    searchNode = getYear( node );
                    if( searchNode == null ) {
                         Element newNode = doc.createElement( "Year" );
                         searchNode = node.appendChild( newNode );
                         newNode.setAttribute( "Id", year );
                    node = searchNode;
                    searchNode = getMonth( node );
                    if( searchNode == null ) {
                         Element newNode = doc.createElement( "Month" );
                         searchNode = node.appendChild( newNode );
                         newNode.setAttribute( "Id", month );
                    node = searchNode;
                    searchNode = getDay( node );
                    if( searchNode == null ) {
                         Element newNode = doc.createElement( "Day" );
                         searchNode = node.appendChild( newNode );
                         newNode.setAttribute( "Id", day );
                    node = searchNode;
                    String entry = reminderinput.getText( );
                    Node textNode = doc.createTextNode( entry );
                    node.appendChild( textNode );
                    return true;
          private Node getYear( Node node ) {
                    node = node.getFirstChild( );
                    while( node != null ) {
                         if(node.getNodeName( ).equals( "Year" ) && String.valueOf( node.getAttributes( ).item( 0 ).getNodeValue( ) ) == year )
                              return node;
                              node = node.getNextSibling( );                    
                    return null;
          private Node getMonth( Node node ) {
                    node = node.getFirstChild( );
                    while( node != null ) {
                         if( node.getNodeName( ).equals( "Month" ) && String.valueOf( node.getAttributes( ).item( 0 ).getNodeValue( ) ) == month )
                              return node;
                              node = node.getNextSibling( );                    
                    return null;
          private Node getDay( Node node ) {
                    node = node.getFirstChild( );
                    while( node != null ) {
                         if( node.getNodeName( ).equals( "Day" ) && String.valueOf( node.getAttributes( ).item( 0 ).getNodeValue( ) ) == day )
                              return node;
                              node = node.getNextSibling( );                    
                    return null;
          private void writeXmlFile( ) throws Exception {
               Source source = new DOMSource( doc );
                    Result result = new StreamResult( file );
               Transformer xformer = TransformerFactory.newInstance( ).newTransformer( );
               xformer.setOutputProperty( OutputKeys.INDENT,"yes" );
               xformer.setOutputProperty( OutputKeys.DOCTYPE_SYSTEM,"Diary.dtd" );
               xformer.transform( source, result );
          public void actionPerformed( ActionEvent e ) {
                    String IDButton = e.getActionCommand( );
                    String IDYear = year1.getText( );
                    Object IDMonthObj = months.getSelectedItem( );
                    if( e.getSource( ) == fetch ) {
                         String YearText = year1.getText( );
                         int YearNumber = Integer.valueOf( YearText );
                         int MonthsIndex = months.getSelectedIndex( ) + 1;
                         DrawCalendar( MonthsIndex, YearNumber );
                    else if( e.getSource( ) == cancel ) {
                         reminderframe.hide( );
                    else if( e.getSource( ) == save ) {
                         String IDDay = dayno.getText( );
                         String IDMonth = String.valueOf( IDMonthObj );
                         SaveReminder( IDDay, IDYear, IDMonth );
                    else {
                         String IDMonth = String.valueOf( IDMonthObj );
                         Toolkit.getDefaultToolkit( ).beep( );
                         int n = JOptionPane.showConfirmDialog( null, "Set reminder on this date?", "Question", JOptionPane.YES_NO_OPTION );
                         if( n == JOptionPane.YES_OPTION ) {
                              CreateReminder( IDButton, IDYear, IDMonth );
If you compile it, you will realise that I get an error about exception handling. My lecturer gave me an example code of how to do the same thing without using a GUI:
import javax.xml.parsers.*;
import org.xml.sax.*;
import java.io.*;
import java.util.*;
import org.w3c.dom.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.*;
public class CallDOM
     Document doc;
     File file;
     Scanner input;
     int year, month, day;
     String currentYear, currentMonth;
     public static void main(String args[]) throws Exception
          CallDOM cd=new CallDOM();          
     CallDOM() throws Exception
          file=new File("Diary.xml");
          //create DOM from file
          doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(file.toURL().toString());
          input=new Scanner(System.in);
          System.out.println("1) Create entry");
          System.out.println("2) Read entry");
          System.out.println("3) Show Diary");
          System.out.println("4) Quit");
          int choice=input.nextInt();
          while(choice!=4)
               switch(choice)
                    case 1: GetDate();CreateEntry(doc.getDocumentElement());break;
                    case 2: GetDate();ReadEntry(doc.getDocumentElement());break;
                    case 3: ShowDiary(doc.getDocumentElement());
               System.out.println("1) Create entry");
               System.out.println("2) Read entry");
               System.out.println("3) Show Diary");
               System.out.println("4) Quit");
               choice=input.nextInt();
          writeXmlFile();
     public void GetDate()
          System.out.println("Enter date (dd mm yyyy)");
          day=input.nextInt();
          month=input.nextInt();
          year=input.nextInt();
     public boolean ReadEntry(Node node)
          node = getYear(node);
          if(node==null) return false;
          node = getMonth(node);
          if(node==null) return false;
          node = getDay(node);
          if(node==null) return false;
          node = node.getFirstChild();
          while(node!=null)
               System.out.println(node.getNodeValue().trim());     
               node=node.getNextSibling();
          return true;               
     public boolean CreateEntry(Node node)
          Node searchNode;
          searchNode = getYear(node);
          if(searchNode==null)
               Element newNode = doc.createElement("Year");
               searchNode = node.appendChild(newNode);
               newNode.setAttribute("Id",Integer.toString(year));
          node = searchNode;
          searchNode = getMonth(node);
          if(searchNode==null)
               Element newNode = doc.createElement("Month");
               searchNode = node.appendChild(newNode);
               newNode.setAttribute("Id",Integer.toString(month));
          node = searchNode;
          searchNode = getDay(node);
          if(searchNode==null)
               Element newNode = doc.createElement("Day");
               searchNode = node.appendChild(newNode);
               newNode.setAttribute("Id",Integer.toString(day));
          node = searchNode;
          System.out.println("Enter Text");
          String entry=input.next();
          entry+=input.nextLine();
          Node textNode = doc.createTextNode(entry);
          node.appendChild(textNode);
          return true;               
     public void ShowDiary(Node node)
          Stack<Node> stack=new Stack<Node>();
          Node child;
          stack.push(node);
          while(!stack.empty())
               node = stack.pop();
               if(ProcessNode(node))
                    child = node.getLastChild();
                    while(child!=null)
                         stack.push(child);
                         child = child.getPreviousSibling();
     private boolean ProcessNode(Node node)
          if(node.getNodeName().equals("Year"))
               currentYear=node.getAttributes().item(0).getNodeValue();
          if(node.getNodeName().equals("Month"))
               currentMonth=node.getAttributes().item(0).getNodeValue();
          if(node.getNodeName().equals("Day"))
               System.out.print(node.getAttributes().item(0).getNodeValue()+"/"+
                                        currentMonth+"/"+currentYear+": ");
               node=node.getFirstChild();
               while(node!=null)
                    System.out.println(node.getNodeValue().trim());
                    node=node.getNextSibling();
               return false;
          return true;               
     private Node getYear(Node node)
          node=node.getFirstChild();
          while(node!=null)
               if(node.getNodeName().equals("Year")
                    && Integer.valueOf(node.getAttributes().item(0).getNodeValue())==year)
                         return node;
               node = node.getNextSibling();                    
          return null;
     private Node getMonth(Node node)
          node=node.getFirstChild();
          while(node!=null)
               if(node.getNodeName().equals("Month")
                    && Integer.valueOf(node.getAttributes().item(0).getNodeValue())==month)
                    return node;
               node = node.getNextSibling();                    
          return null;
     private Node getDay(Node node)
          node=node.getFirstChild();
          while(node!=null)
               if(node.getNodeName().equals("Day")
                    && Integer.valueOf(node.getAttributes().item(0).getNodeValue())==day)
                    return node;
               node = node.getNextSibling();                    
          return null;
     private void writeXmlFile() throws Exception
        Source source = new DOMSource(doc);
        Result result = new StreamResult(file);
        Transformer xformer = TransformerFactory.newInstance().newTransformer();
        xformer.setOutputProperty(OutputKeys.INDENT,"yes");
        xformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,"Diary.dtd");
        xformer.transform(source, result);
}My question is, why does the exceptions in the example code not need to be caught? And why do I have to catch the exceptions in my code? Several exceptions are thrown in the example code, but there is no catch statement.
Thanks for any advice!!

Since your question didn't come with any relevant details, and since you have huge steaming piles of irrelevant code, all I can give is a general answer to "Why do I need to catch this exception?"
[url http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html]Exception tutorial at http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html
Here's a quick overview of exceptions:
The base class for all exceptions is Throwable. Java provides Exception and Error that extend Throwable. RuntimeException (and many others) extend Exception.
RuntimeException and its descendants, and Error and its descendants, are called unchecked exceptions. Everything else is a checked exception.
If your method, or any method it calls, can throw a checked exception, then your method must either catch that exception, or declare that your method throws that exception. This way, when I call your method, I know at compile time what can possibly go wrong and I can decide whether to handle it or just bubble it up to my caller. Catching a given exception also catches all that exception's descendants. Declaring that you throw a given exception means that you might throw that exception or any of its descendants.
Unchecked exceptions (RuntimeException, Error, and their descendants) are not subject to those restrictions. Any method can throw any unchecked exception at any time without declaring it. This is because unchecked exceptions are either the sign of a coding error (RuntimeException), which is totally preventable and should be fixed rather than handled by the code that encounters it, or a problem in the VM, which in general can not be predicted or handled.

Similar Messages

  • Catching this exception

    Hi
    I have created a simple client server program . In the Client i give the server ip/name and port number in command line... but when i try to run the client on a port on which the server is not running .. the following message is generated....
    C:\Program Files\Java\jdk1.5.0_02\bin>java echocli darkside 1000
    Exception in thread "main" java.net.ConnectException: Connection refused: connect
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
            at java.net.Socket.connect(Socket.java:507)
            at java.net.Socket.connect(Socket.java:457)
            at java.net.Socket.<init>(Socket.java:365)
            at java.net.Socket.<init>(Socket.java:207)
            at echocli.main(echocli.java:51)
    C:\Program Files\Java\jdk1.5.0_02\bin>I have written this to catch the exception but ...the error statement is not printed.....
    catch(ConnectException e1)
           System.out.println("\n No server running on that port " );
    }whats wrong...why is it not catching this exception........

    I find it odd that your program compiled clean since Socket.connect throws IOException. Did you catch the IOException first and ignore it? If so that's why your ConnectException never got caught. You must catch exceptions in the order of most specific to least specific. So for a Socket.connect that means
    ConnectException
    SocketException
    IOException.

  • I have windows 7 and I can't sign into ITunes.  Message says to turn off compatibility mode to use.  How and why do I need to do this?

    I have Windows 7.  I was previously using Windows 98 when I set up ITunes and developed a library of music and movies.  When I try to log in I keep getting a message stating that am using an older version of Windows and that I need to turn off "compatability mode to use ITunes.  Where and why do I need to do this?

    Hi there skinguru,
    You may find the information in the article below helpful.
    iTunes for Windows: How to turn off Compatibility Mode
    http://support.apple.com/kb/ts1489
    -Griff W. 

  • How can I prevent deleted mail from ending up in "All Mail"     and "Archives"?  To my horror, I've emptied these boxes and lost all my mail from all my boxes  (and why do I need to enter this question three times?"

    How can I prevent deleted mail from ending up in "All Mail" and "Archives"? 
    To my horror, I emptied these boxes and lost all my mail from all my boxes .
    All mail also disappeared from my iPad, I suppose because they are "synched"
    (Also, no offense, but why do I need to enter this question multiple times?)
    Thanks for any thoughts.

    I'm having a similar but slightly different problem. My company just migrated to Gmail, and it's saving mail drafts every 30 seconds into my Trash folder.
    I unchecked the "Show in IMAP" preference in the Gmail settings, but my Drafts folder completely disappeared. I went back and checked it and the folder reappeared (with my drafts still in there).
    I like the idea if starting an email on my laptop and having the option of finishing it on my iPhone or iPad, so only saving Drafts locally would not be ideal.

  • BTXTAXT - Why do we need to maintain this table

    Experts,
    Could anyone explain why do we need to maintain this Tabe (BTXTAXT) when a new Tax type is added.
    I haven't maintained that still taxes are calculated properly for the new tax type87.

    Hi,<br>
    It is for "Tax Category in BSI". This is not to be maintained by us ANY TIME and NEVER should be.
    The tax type already maintained in BSI and in SAP in the T5UTT table.
    This is for SAP to communicate to BSI internally.
    Good luck<br><br>
    Thanks,
    Amosha
    <br><br>"Known is a drop & unknown is an OCEAN!"

  • HT1918 if apple charges $1 for the authorization hold on my credit card? why do i need to pay this in my bank? ;

    if apple charges $1 for the authorization hold on my credit card? why do i need to pay this in my bank?

    http://support.apple.com/kb/HT3702.

  • I get the "s" instead of "a" when texting. Why doesn't auto correct catch this

    I get the "s" instead of "a" when texting. Why doesn't auto correct catch this?

    Because there's no error in a single letter. Learn how to type.

  • HT201250 What is Airport Utility and why do I need to access this in order to backup my iMac using Time Machine...PLEASE??

    What is Airport Utility and why do I need to access Airport witeless devices in order to backup my iMac using Time Machine...HELP!!! PLEASE??

    AirPort Utility is required to configure an Apple AirPort Base Station or Time Capsule.
    Time Machine can use a Time Capsule or a locally connected volume. You only need to use AirPort Utility if you are using a Time Capsule.

  • Why do I need to "pushstart" this Sawtooth?

    I just bought a Sawtooth from a thrith shop for $25. It was dead, had no RAM, and no Drives, but that was ok since I planned to swap the gear from my Blue & White. The RAM from the Blue & White didn't work, but the power supply, and a new 512 meg stick of RAM got it to start, but only after I pressed the "button" on the inside at least once. It seems to work fine; it boots into both OSX and 9.2.2. The only cards in it now are the original ATI, and the first SATA card from Firmtek. Why won't it start from the front button unless the button on the inside is pressed one or more times?
    B/W   Mac OS X (10.3.9)   Mostly OS 9, 1Gig of RAM, Radeon 7000, PCI problems

    The internal memory battery is probably dischartged & needs replacement. Check this site for battery part numbers and sources. Mac PRAM, NVRAM, CUDA/PMU & Battery Tutorial
     Cheers, Tom

  • Clearing my cache,why do I need to do this & consequences

    Hi, I am new to iPad, I have an ipad4. I am not great on techy stuff.
    The Admin of a site (one of my Spanish expat forums) suggests I clear my cache as his site does not show as it should on my iPad, it shows fine on his. I don't have this problem with other sites so I'm loathe to do what he says. Won't clearing my cache lose me everything on iPad? I need advice please?

    On iPad you can delete history, cookies and data.   Tap Settings > Safari. Tap to clear cookies, history, and data.   < same as clearing the cache.
    No, clearing the cache does not delete everything on your iPad.
    Keep in mind, not all websites render the same on an iOS device such as your iPad as they will on a Mac. Two different operating systems. Mac OS X vs iOS.

  • HT201413 I get error 20 when I try to download updates to installed Apple software  I have two users on the IMac. I resolve the problem by clearing all cookies on both users Safari. Why do I need to do this? What is going on?

    I get Error 20 when I try to download updates for installed Apple apps on my IMac.  I have two users on the IMac, and I resolve the problem by clearing all cookies on both users Safari, opening and closing the App Store for each user, shutting down and restarting the IMac for each user, until finally the download works. There must be an easier way.  I also have an Air, where I have no problems whatsoever. Both machines have Doorstop and MacKeeper with the same settings, so I have ruled those programs out as the cause. I believe iot is because I have two users - any ideas?

    Please read this whole message and be sure you understand all of it before doing anything. Back up all data before making changes to your settings.
    Write down the server addresses.
    Click Cancel to close the Advanced sheet. Unlock the preference pane, if necessary, by clicking the lock icon in the lower left corner and entering your password. Open the DNS tab again and change the server addresses to the following:
    8.8.8.8
    8.8.4.4
    That's Google DNS. Click OK, then Apply.
    In Safari, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. If you’re using another browser, empty the cache. Test. Any difference?
    Notes:
    1. If you lose Internet access after making the above change to your network settings, delete the Google servers in the Network preference pane, then select the TCP/IP tab and click Renew DHCP Lease. That should restore the original DNS settings; otherwise restore them yourself.
    2. I’m not advocating Google or anything else as a DNS provider; the server addresses are offerred merely for testing purposes. There may be privacy and technical issues involved in using that service, which you should investigate personally before you decide whether to keep the settings. Other public DNS services exist.

  • I can't seem to install free apps because it keeps asking me for my billing info, but it says it's declined so I can't download them, why would I need to provide this if they're free apps?

    It's really annoying because it's only happened recently. I bought something on a game for 69p and now it won't work at all for any free apps, help?!?!

    No one here can help you. You'll have to contact iTunes support to see what's wrong with your account & how to fix it:
    http://www.apple.com/support/itunes/

  • Catching an exception within a JSP

    Hi all,
    I need to catch an exception in a JSP before the errorPage handles it. Have tried with try-catch but it seems like the exception is thrown to the errorPage anyway. Do you know of any technique to handle this.
    In other words: I would like to specify program logic for one exception within the JSP itself. Let us say Customer.Authenticate() throws an Exception when the given e-mail is not included in customer-DB. I would like to append logic instead of being redirected to errorPage.
    Anyone done this, can it even be done?
    ,Chr

    I would try keeping the error page as it is and still adding the logic in the catch block. If that does not help, then remove the error page and use <jsp:forward> (after your logic) in the catch block to explicitly go to the error page.
    or if you want to process that logic anyways in case of an exception, try adding your logic in the finally block.

  • Not able to catch the exception

    Hi,
    I'm trying to run an ADF page (Test.jspx) . The only page content I have is an embedded BI report.
    I have used a report executable in my page definition.
    A sample code snippet is:
    <executables>
    <biContent id="biExecBinding1" connectionId="TMBIPresentationServerConn" path="/shared/TMSharedFolders/MOT_SalesAccount" type="biReportContent" xmlns="http://xmlns.oracle.com/bi/report/bindings">
    </executables>
    Here TMBIPresentationServerConn is the name of the connection of the BI Server.
    If BI Server is down, on running my page , an exception is being thrown by the framework.
    I want to catch this exception and perform my own logic, but since i am using a binding context for report , i am not able to catch this exception.
    Could you please let me know how can i catch the exception if BI is down?
    Thanks
    Nutan

    (as I suspected from your first post)
    You are using a version of JDeveloper that isn't available to the general public, and are asking about it on a public forum. You should use the internal Oracle forum - I don't know the URL, because I am one of the unwashed general public ;)
    John

  • Why do I need Quick time 7 and Quicktime 10 ?

    I have just migrated from iMac5 (2.16 GHz) Mac OS 10.4.11 Quicktime 7.6.4 to a new imac 3.06 Mac OS 10.6.2 Quicktime 10.0.
    Some of my quicktime files play ok but others prompt me to download quicktime version 7. Why do I need to do this ? (There seem to be a lot of problems with this looking at the forums). All the files play on the old mac. Why isn't Quicktime forward compatible or why is there no import facility so that you can make your old files compatible ?
    Or am I missing something ?

    Some of my quicktime files play ok but others prompt me to download quicktime version 7. Why do I need to do this ?
    Because your system thinks you are missing specific codecs required for the playback of certain compression formats. In some cases this may be an installation problem in which the codec was "lost" or "orphaned" during the update process. In others it may be a need to update the component to work properly under the dual QT X/7 framework installed under the Snow Leopard OS. You need to check the Inspector/Finder Info or similar window to determine what specific codec is causing the problem and then re-install or update that specific codec/component/package.
    (There seem to be a lot of problems with this looking at the forums).
    Most of the problems are "self-inflicted" by individuals who, rather than studying the problem symptoms, analyzing them to determine their cause, and then fixing the problems, elect to immediately delete and re-install software -- often attempting to mix components from different operating systems and/or update versions of the software in their haste.
    All the files play on the old mac. Why isn't Quicktime forward compatible or why is there no import facility so that you can make your old files compatible?
    I am running both Leopard and Snow Leopard variations of QT v7.6.6 and all of my "old" files have remained compatible -- to include MPEG-2 video and a limited number of third-party supported compression formats. Since my configurations continue to work properly, my first guess is that you have an unresolved configuration problem or inability for your QT X 64-bit routines to communicate/switch properly with the 32-bit routines as required for your content.
    Why do I need Quick time 7 and Quicktime 10?
    Technically, you probably don't. However, as an old QT 7 Pro user who likes many of the QT 7 Player controls/options/features better than QT X's new but more basic features, I maintain both in active service and tend to use QT 7 as the default player of most of my work flows. Still, this is up to the individual. I am in no hurry to rush the changeover from an older but still more reliable QT technology to a more modern, but as yet, less mature and well tested "new" QT technology. In short, I feel it best to make the most of both dispensations during the development of this "new" version of QT.

Maybe you are looking for

  • RPCWCCK0 - Personnel Number Skipped by the Database Driver

    Hi Experts, I've encountered the error below when executed the report. 03/18/2011       Workers' Compensation Assessable Earnings Report              1 Personnel numbers skipped by the database driver Reason 1: insufficient authorization, no. skipped

  • Need Help with hierarchies in BI

    Hi BI Gurus, i got a question for u all there.. i am novice in BI and i am using a time dependent hierarchy in my query.. 1) i want to display only one node of the hierarchy in the report.    say for ex.. i am using 0orgunit which has three nodes and

  • Dragging Table Columns to SQL Worksheet

    When Dragging table columns to the sql worksheet it puts the column name at the end of the page instead of where you place your mouse cursor. Version Release 4 Build 1184

  • ITunes has encountered a problem....... :s!?!

    hey iv just installed the latest itunes 6 aand everytime i try n looad it up, the same message keeps re-appearing... 'iTunes has encountered a problem and needs to close. we are sorry for any inconvenience...' then i hav the option of sending a error

  • Nokia 2610 Connection Problem

    Hello and thank you in advance, Earlier today I got a Nokia 2610 along with a new AT&T cell phone plan. I just went to the AT&T MediaMall to get my old ring tone 'Must Have Done Something Right' by Relient K back. I input my number, etc and it sent m