No such method exception

Hi All!
I get subj error when deploy my servlet to Apache\Jserv. It's rised when I try to call standard log method. Any body have this problem?

public void init(ServletConfig config) throws ServletException {
super.init(config);
try {
throw new Exception("Apache not implement log!");
catch (Exception e) {
log("It's true", e);
Of course we must ask Apache people. But It's very intristing why Oracle choose old Apache, not Tomcat?
null

Similar Messages

  • XMLType no such method exception

    ANy suggestions on why this is happening? thanks in advance
    SCott
    I made a test class using the sample code from the Oracle Sample
    Illustrating XMLType Support in JDBC OCI drivers. I get the exception
    noted below when I try and create my XMLType (last line). I believe I
    have all of the jars in place, Classes12, xdb,xmlparserserv2 jars.
    Any suggestions would be appreciated. thanks
    Scott
    OracleDataSource ods = new OracleDataSource();
    ods.setDriverType (dbDriver);
    ods.setURL(dbUrl);
    ods.setUser(dbUser);
    ods.setPassword(dbPassword);
    conn = ods.getConnection();
    conn.setAutoCommit(false);
    System.out.println("*********** Connected to the
    database.");
    OraclePreparedStatement opstmt = null;
    OracleResultSet orset = null;
    opstmt =
    (OraclePreparedStatement)conn.prepareStatement("SELECT
    Candidate_Details "
    + " FROM Resume_Master rm WHERE Resume_Id = ?");
    opstmt.setString(1,"10000");
    orset = (OracleResultSet) opstmt.executeQuery();
    orset.next();
    OPAQUE xmlObj = orset.getOPAQUE(1);
    XMLType xt = XMLType.createXML(xmlObj); // exception
    thrown
    java.lang.NoSuchMethodError:
    oracle.jdbc.internal.OracleConnection.getProtocolType()Ljava/lang/String;
    at oracle.xdb.XMLType.initConn(XMLType.java:2072)
    at oracle.xdb.XMLType.<init>(XMLType.java:903)
    at oracle.xdb.XMLType.createXML(XMLType.java:493)
    at NSXMLTest.main(NSXMLTest.java:100)

    Hi,
    Check the discussion at this link..
    Re: XMLType problem
    There seems to be some problem in 9205.. Kindly use xdk 9204 which can be downloaded from
    http://otn.oracle.com/software/tech/xml/xdk_jbeans/content.html
    Regards,
    Anupama

  • No such method error when launching the Interactive form

    Hi Experts,
    I have developed a simeple Java Webdynpro application and added an Interactive form without any controls in it. Created the context with one value node and a binary value attribute.
    I have assigned  value node to datasource and binary attribute to pdfSource. When I launch the application I am getting the following no such method error.
    java.lang.NoSuchMethodError: com/sap/tc/webdynpro/clientserver/uielib/adobe/api/IWDInteractiveForm.setTemplateSource(Ljava/lang/String;)V
    The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
    If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package com.sap.tc.webdynpro.*) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.
    My NWDS is of Version 7.0.06
    and J2EE Engine is of Version 6.40.
    any guess why I am getting this error.
    Thanks
    Chinna.

    Issue solved. Compatablility issue NWDS 2.0 Version should use for NW 2004.

  • Error while invoking onHeartBeat() method, exception is "Cannot load header

    I have a problem that when I read out an IMAP mailbox I sometimes get the above problem, and sometimes I don't get the problem.
    Below I attached the main parts of my environment to get an insight within the code:
    bpel.xml of process that is reading out the IMAP mailbox
    <activationAgents>
    <activationAgent className="com.collaxa.cube.activation.mail.MailActivationAgent"
    heartBeatInterval="60">
    <property name="accountName">account</property>
    </activationAgent>
    account.xml
    <mailAccount xmlns="http://services.oracle.com/bpel/mail/account">
    <userInfo>
    <displayName>Eneco Process lAyer</displayName>
    <organization>iFactory</organization>
    <replyTo>[email protected]</replyTo>
    </userInfo>
    <outgoingServer>
    <protocol>smtp</protocol>
    <host>10.126.16.73</host>
    <port>25</port>
    <authenticationRequired>false</authenticationRequired>
    </outgoingServer>
    <incomingServer>
    <protocol>imap</protocol>
    <host>10.126.20.8</host>
    <port>143</port>
    <email>IFACAORTA</email>
    <password>CRYPT{IB3B7SrA3kMYHoBDzWwsEg==}</password>
    <folderName>InBox</folderName>
    </incomingServer>
    </mailAccount>
    The domain.log of the appserver
    <2006-12-04 15:08:25,546> <ERROR> <default.collaxa.cube.activation> <HeartBeatListenerJob::execute> Error while invoking onHeartBeat() method, exception is "Cannot load header".
    <2006-12-04 15:08:25,562> <ERROR> <default.collaxa.cube.activation> <HeartBeatListenerJob::execute> Error while invoking onHeartBeat() method, exception is "No content".

    This problem is occuring only on BPEL release 10.1.3.
    I retested this again on BPEL 10.1.2, but there the problem did not occur.

  • Error while invoking onHeartBeat() method, exception is "Username supplied

    hi ...
    I am trying to invoke bpel process when we get email..
    but i am getting the following error..
    Error while invoking onHeartBeat() method, exception is "Username supplied in error".
    <mailAccount xmlns="http://services.oracle.com/bpel/mail/account">
         <userInfo>
              <displayName>Oracle BPM</displayName>
              <organization>xxx</organization>
              <replyTo>bpel@localhost</replyTo>
         </userInfo>
         <outgoingServer>
              <protocol>smtp</protocol>
              <host>xxxxx</host>
              <authenticationRequired>false</authenticationRequired>
         </outgoingServer>     
         <incomingServer>
              <protocol>pop3</protocol>
              <host>xxxxx</host>
              <port>143</port> -- tried with 110 prot also
              <email>xxxx</email>
              <password></password>
              <folderName>Inbox</folderName>
              <authenticationRequired>false</authenticationRequired>
         </incomingServer>     
    </mailAccount>
    Can any one help me on this ?
    thanks,
    bharath

    This problem is occuring only on BPEL release 10.1.3.
    I retested this again on BPEL 10.1.2, but there the problem did not occur.

  • Unable to see method exception EXECUTE_ASYNCRONOUS in sproxy

    Hi,
    I am trying a file to proxy scenario for the inbound message interface(Aync-inbound) I made and configured
    the scenario for file 2 proxy but in R3 side "Sproxy" --> create proxy with prefix as cl_ and generate proxy.
    But in method exception under my class i donot see EXECUTE_ASYNCRONOUS, Instead i see my Inbound message interface name.
    Why i am not able to see the EXECUTE_ASYNCRONOUS in method exception.
    Regards,
    Anirban.

    Hi Anirban,
    Execute_Asynchronous or Execute_Synchronous method does not exists any more in XI 7.0 SP 14 or higher.
    Don't worry about this. There will be method with the same name as your Interface Name. Write your code inside that and you will be good to go. We have recently implemented the same and it works absolutely fine.
    Thanks
    Amit

  • Java Mail/EJB/WebLogic/weblogicSP6 "No Such Provider Exception"

    Hi,
    My application that is coded to send e-mail is not performing at all.
    Application architecture is as follows:
    1)JSP-EJB on Web Logic App server and
    2)SMTP Host is IIS server and its SMTP service.
    3)Using Java Mail API and installed Service Pack 6 of WebLogic that supports Java Mail API
    4)EJB Programs coded as per the Sun JavaMail API documentation.
    5)Send Mail occuring in the EJB.
    Runtime Error: "No such provider exception"
    Could u help me by instructing me about:
    1)weblogic service pack installation.
    2)sample ejb
    PS:Same code on a simple java class fired on command line is executing without any exception. Wheras in an EJB on Weblogic is throwing the exception.

    That error you are seeing typically comes from JavaMail being unable to
    contact the SMTP host. Are you sure that you are a valid user/permitted to
    access the mailer?
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "Omm" <[email protected]> wrote in message
    news:3a3cd390$[email protected]..
    >
    Hi,
    My application that is coded to send e-mail is not performing at all.
    Application architecture is as follows:
    1)JSP-EJB on Web Logic App server and
    2)SMTP Host is IIS server and its SMTP service.
    3)Using Java Mail API and installed Service Pack 6 of WebLogic thatsupports Java Mail API
    4)EJB Programs coded as per the Sun JavaMail API documentation.
    5)Send Mail occuring in the EJB.
    Runtime Error: "No such provider exception"
    Could u help me by instructing me about:
    1)weblogic service pack installation.
    2)sample ejb
    PS:Same code on a simple java class fired on command line is executingwithout any exception. Wheras in an EJB on Weblogic is throwing the
    exception.
    >
    >

  • No Such Provider Exception SunJSSE

    Hello,
    We are facing problem using SunJSSE with WebSphere4.0. We placed jsse jars in the jre/lib/ext directory and in our code we are trying to create SSLcontext as below
    context = SSLContext.getInstance("SSL","SunJSSE");
    tmFact=TrustManagerFactory.getInstance("SunX509","SunJSSE");
    kmfact = KeyManagerFactory.getInstance("SunX509","SunJSSE");
    And then intializing the context with trustmanager[], keymanager[] and secure random parameters.
    In our code we are dynamicaly setting the provider as
    java.security.Security.insertProviderAt(new com.sun.net.ssl.internal.ssl.Provider(),2);
    We also made the entry in the java.security file statically.
    However we are occasionally getting No such Provider Exception SunJSSE.
    Please note all this is running under websphere 4.0 and IBM has IbmjSSE jars in the jre/lib/ext as well.
    Any Ideas? thoughts? comments? help?
    Thanks

    Hi,
    I'm having a similar problem to this, what was wrong with this ? as it appears the provider should be available.
    Thanks

  • Regarding Overriden method Exception----very urgent

    if we override a method , Is this method can throw a super class exception of overridden method...
    i.e
    class Base
    public void show() throws Exception1
    class Derived extends Base
    public void show() throws Exception2
    Is Exception 2 should be the subclass of Exceptio 1 or not.........is there any contraint...............bcz some conditions are working some are not working....
    if question is not clear....let me know i will explain clearly

    Information collected from the site:
    The Overridden Method can throw either Same Exception or Subclass of that Exception defined the base class method.
    Even if the base class method is throwing an Exception, it is not mandatory that the overridden method should throw any Exception (We can override that method without throwing any Exception)
    Irrespecive of the Exception throws in the Base class method, Overridden method can throw any RuntimeException.
    Reference: http://javalive.com/modules/articles/article.php?id=19
    Case 1: this code giving compilation error ( as per the rule i.e overridden method exception should be subclass of base class method exception)
    class Base
    Public void test() throws NullPointerException
         System.out.println(�hello�);
    Class Derived extends Base
         Public void test() throws Exception
         System.out.println(�hello�);
    Case 2: this code is compiling properly, but it should give compile time error as per the rule�.Why.?
    class Base
    Public void test() throws NullPointerException
         System.out.println(�hello�);
    Class Derived extends Base
         Public void test() throws RuntimeException
         System.out.println(�hello�);
    }

  • Thread question - unknown method exception!?!

    I am using the following code:
    public void killAnimal(Animal a) //Animal extend Thread
    a.stop();
    a.destroy(); //unknown method exception at this line!
    Basically a thread sends another thread into this method (to kill the Animal/thread when it eats it), but i get an unknown method expection and both threads stop updating
    Any advice

    i have recompiled it. And .destroy() is a built
    method within Thread class is it not?
    And my class EXTENDS Thread so it automaticaly has
    s access to the methods present in the Thread class
    right?. And the fact it compiles and runs means the
    method is detected. Its only when it gets to that
    point that it outputs the exception.Yes but that really wasn't clear from your post. And the name of the class("Animal") is misleading as well.
    The Thread.destroy() method specifically throws the NoSuchMethodError.
    It probably does that because there is no other appropriate unchecked error, although UnsupportedOperationException might be more appropriate.
    >
    Do i need to use .destroy()? Would using .stop() be
    efficient enough? or would that thread still be
    suckin up memory and other system resources?Until the run() method exits the thread exists. How you stop it other than that does not have any impact.

  • ImportJobSchedulerSessionBean - no such method: postProcess

    Hi Experts,
    I have configured the WEC with email as a source. WEC is able to connect to mail account. It is pulling the image from the inbox. However it is not appearing in the export folder of commit profile.
    In the "capture_server1.out" file, it gives below messages
    <Apr 13, 2015 10:14:53 AM IST> <Warning> <oracle.odc.importprocessor.ImportJobSchedulerSessionBean> <BEA-000000> <no such method: preProcess>
    <Apr 13, 2015 10:14:53 AM IST> <Warning> <oracle.odc.importprocessor.ImportJobSchedulerSessionBean> <BEA-000000> <no such method: process>
    2166a9b7-77c3-487f-a3af-46d9b179aad8
    852eef5b-2d03-4eab-a634-6983b0cb47a4
    29d5d397-ae1c-4f9a-a52d-4d74462321e7
    13042015
    3c6de308-7724-4141-8a8c-7ccb79b78c64
    b2896b2a-ce13-48e5-a708-8f9e0bf4a6ea
    007c2674-f01c-4fad-ae07-49ebb7d2acca
    1c9acdc0-dd03-45fc-9164-72c4ec8f8feb
    eb9190c6-a4ba-43da-baed-f9cd8abe60de
    8e6978f6-a533-4da3-8c5b-e258a15b7f25
    2166a9b7-77c3-487f-a3af-46d9b179aad8
    852eef5b-2d03-4eab-a634-6983b0cb47a4
    29d5d397-ae1c-4f9a-a52d-4d74462321e7
    13042015
    3c6de308-7724-4141-8a8c-7ccb79b78c64
    b2896b2a-ce13-48e5-a708-8f9e0bf4a6ea
    007c2674-f01c-4fad-ae07-49ebb7d2acca
    1c9acdc0-dd03-45fc-9164-72c4ec8f8feb
    eb9190c6-a4ba-43da-baed-f9cd8abe60de
    8e6978f6-a533-4da3-8c5b-e258a15b7f25
    <Apr 13, 2015 10:15:02 AM IST> <Warning> <oracle.odc.importprocessor.ImportJobSchedulerSessionBean> <BEA-000000> <no such method: postProcess>
    It looks that i have missed some Scripting file. But where to add this?
    Regards,
    Vikrant Korde.

    Install Patch 19363640: CUMULATIVE CAPTURE PATCH 11.1.1.8.0 NUMBER 6 DATE 2014-08-29 or later.

  • How do I correct "No Such Method Error: main " ? ? ?

    Dear Java People,
    I have an error message in my program that says
    " No Such Method: main " . How do I correct this problem?
    Thank you in advance
    Stan

    Dear Java People,
    I have an error message in my program that says
    " No Such Method: main " . How do I correct this
    problem? It will be one of the following:
    -You don't have a main method at all
    -You don't have the correct signature for main. For instance it isn't static.
    -You are trying to run the wrong class. The main method is in a different class than the one you are specifying.

  • Unsupported method exception...why?

    hi all,
    i'm using microsoft sql server 2000, and keep getting this "unsupported method" exception when trying to use the beforeFirst method from the ResultSet object. the only method i can get to work is next. has anyopne ever come across this problem?

    I'm not really familiar with the SQL Server JDBC Drivers, but I would be surprised if they didn't support this feature. One thing you could do is verify that you are working with the correct cursor. In order to move back and forth within a ResultSet, you need to use a cursor that allows it. When creating a Statement or PreparedStatement, you can provide cursor information using defined CONSTANTS.prepareStatement ps = conn.prepareStatement(sql,ResultSet.TYPE_SCROLL_INSENSITIVE,
                                                    ResultSet.CONCUR_READ_ONLY);Hope this helps a little...Joel

  • No such method error

    Hi, I'm getting a message that reads: exception occured during event dispatching: java.lang.nosuchmethod error.
    Here's some of my code for a game of blackjack when I press the start game button everything works fine the textfield displays 2 cards and it gives me a total for the 2 cards.
    But when I press the hit button that's when I get the nosuchmethod error.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*; // added for event handling
    public class Blackjack_Frame
            final JFrame aFrame = new JFrame("MMSD 3610 Blackjack");
            Container contentPane = aFrame.getContentPane();
            aFrame.setSize(450, 200);
         // We don't need to set the layout manager for
         // a JFrame's content pane - it is automatically a
         // BorderLayout by default!
         // Technique for centering a frame on the screen.
         Dimension frameSize = aFrame.getSize();
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         aFrame.setLocation((screenSize.width - frameSize.width)/2,
                     (screenSize.height - frameSize.height)/2);
         aFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         // Let's create the leftmost panel.  Note that we use names
         // for our components that are somewhat self-documenting.
         JPanel leftPanel = new JPanel();
         // We'll assign the panel a GridLayout (it would otherwise
         // default to FlowLayout).
         leftPanel.setLayout(new GridLayout(3, 1));
         // We'll create two labels on the fly and hand them
         // to the panel; there's no need to bother maintaining
         // a named handle on any of these labels.
         leftPanel.add(new JLabel("BLACKJACK ! :"));
         leftPanel.add(new JLabel("Your hand:"));
         leftPanel.add(new JLabel("Dealers hand:"));
         // Now, we'll attach the panel to the frame.
         contentPane.add(leftPanel, BorderLayout.WEST);
         // Repeat the process with the center panel.
         JPanel centerPanel = new JPanel();
         centerPanel.setLayout(new GridLayout(3, 1));
         // Here we make the TextField un-editable to the users
         // but it is enabled so we can display the cards
            // to the user.
           final JTextField input1TextField = new JTextField(30);
         input1TextField.setEditable(false);
         input1TextField.setEnabled(true);
         JTextField input2TextField = new JTextField(30);
         input2TextField.setEditable(false);
         input2TextField.setEnabled(true);
         JTextField input3TextField = new JTextField(30);
         input3TextField.setEditable(false);
         input3TextField.setEnabled(true);
         centerPanel.add(input1TextField);
         centerPanel.add(input2TextField);
         centerPanel.add(input3TextField);
         contentPane.add(centerPanel, BorderLayout.CENTER);
         // This panel displays all the buttons.
         JPanel buttonPanel = new JPanel();
         buttonPanel.setLayout(new GridLayout(1, 4));
         JButton hitButton = new JButton("HIT");
         JButton stayButton = new JButton("STAY");
         JButton endGameButton = new JButton("END GAME");
         JButton startGameButton = new JButton("START GAME");
         buttonPanel.add(hitButton);
         buttonPanel.add(stayButton);
         buttonPanel.add(endGameButton);
         buttonPanel.add(startGameButton);
         contentPane.add(buttonPanel, BorderLayout.SOUTH);
         // I tried using named inner classes first but didn't have much
         // luck so I had better success with anonymous inner classes.
         // First, we create a listener object to respond to
         // the "START GAME" button.
               ActionListener listen = new ActionListener()
           public void actionPerformed(ActionEvent e)
             CardDeck deck = new CardDeck();
                  deck.shuffle();
                  Hand myHand = deck.dealHand(2);
                  Hand yourHand = deck.dealHand(2);
                 input1TextField.setText(" " + (myHand) +
                     ("  Dealer's hand has " + myHand.getBlackjackHandValue()));
         };  // After doing some research I found I had to use this weird };
                // syntax because I needed to terminate the single statement
                // " ActionListener listen = new ActionListener() "
             // ... and then we register this listener with the appropriate
             // component.
             startGameButton.addActionListener(listen);     
         // We do the same for the "HIT" button.
         listen = new ActionListener()
              public void actionPerformed(ActionEvent e)
               CardDeck deck = new CardDeck();
               deck.shuffle();
               Hand myHand1 = deck.dealHand(1);
                  Card newCard = myHand1.getCard();
    // I seem to be getting the error right here.
                  Hand myHand = newCard.addCardBackInHand();
                  input1TextField.setText(" " + (myHand) +
                     ("  Dealer's hand has " + myHand.getBlackjackHandValue()));
              hitButton.addActionListener(listen);
         // We do the same for the "END GAME" button.
         listen = new ActionListener()
              public void actionPerformed(ActionEvent e)
               aFrame.dispose();
               System.exit(0);
              endGameButton.addActionListener(listen);
           aFrame.setVisible(true);
    // Class defining a hand of cards and we use the ever so helpful Stack to store the hand.
    import java.util.*;
    // The compiler provides us with a default constructor and creates a hand object, which
    // contains a empty Stack or empty hand. We then add a card object by pushing it into
    // our Stack or hand.
    class Hand
      private Stack hand = new Stack();   // Stores the cards in the hand
      public void add(Card card)
        hand.push(card);
    // This method pulls a single card from the Hand.
      public Card getCard()
        return (Card)hand.pop();
    // This method returns the number of cards that are in the hand.
      public int getCardCount()
        return hand.size();
    // This method pushes the hit card back into the hand for display purposes.
       public Hand addCardBackInHand()
         return (Card)hand.push();
      // We need a way to display our hand so we use the toString() method again to display
      // a string representation of our hand object. Here I found another helpful little
      // item called the Iterator it allows me to deal one card at a time and store it in
      // my Stack hand. We also use a buffered stream because transferring data in a buffer
      // is a lot more efficient because it stores chunks of data in memory before
      // transferring the data to or from an external device.
      public String toString()
        Iterator cards = hand.iterator();
        StringBuffer str = new StringBuffer();
        while(cards.hasNext())
          str.append(" "+ (Card)cards.next());
        return str.toString();
      public int getBlackjackHandValue()
        int val;       // Value of the hand.
        boolean ace;   // This will be set to true if we have an ace in our hand.
        int cards;     // Number of cards in the hand.
    // Here we initalize our variables with a value.
        val = 0;
        ace = false;
        cards = getCardCount();
    // Here we use a for loop to loop thru the cards in the hand and then
    // determine a value for those cards.
        for (int i = 0; i < cards; i++)
          int cardVal;                // The value of the card.
          Card card;
          card = getCard();           // Get a card from the hand.
          cardVal = card.getValue();  // Get the value of the card which should
                                      // be between 1 to 13.
          if (cardVal > 10)
            cardVal = 10;  // This assigns a value of 10 to the face cards
          if (cardVal == 1)
            ace = true;   // We have an ace in our Blackjack hand.
            val = val + cardVal;
    // Since an ace can either be a 1 or 11 in blackjack we have to make
    // allowances for that so, if we have an ace and the value of the hand
    // is less than or equal to 21 we do that by adding an extra 10 points
    // to val.
          if (ace == true && val + 10 <= 21)
             val = val + 10;
          return val;  // the value of our blackjack hand.
    }Thanks...........gee mann

    Its hard to say without seeing the Classes CardDeck and Card... stilll let me guess
         listen = new ActionListener()
    public void actionPerformed(ActionEvent e)
         CardDeck deck = new CardDeck();
         deck.shuffle();
         Hand myHand1 = deck.dealHand(1);
    Card newCard = myHand1.getCard();
    // I seem to be getting the error right here.
    Hand myHand = newCard.addCardBackInHand();Are u sure the method addCardBackInHand() is in the class "Card"... I saw a method by that name in the class Hand.... Am i right?

  • No such element exception when applet window closed

    My applet can throw a NoSuchElementException as it closes during sudden death. The Java Console reports:
    Exception in thread "AWT-EventQueue-2" java.util.NoSuchElementException
         at java.util.LinkedList.getFirst(Unknown Source)
         at java.awt.SequencedEvent.getFirst(Unknown Source)
         at java.awt.SequencedEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)Sometimes that sequence displays once, sometimes twice. The error appears to be 90% or more repeatable.
    1) open link in new window http://r0k.us/graphics/SIHwheel.html
    2) view Color Log (menu item Help -=> Show Log)
    3) close the whole browser window
    It does not appear to happen without the dialog for the Color Log displayed. Nor does it appear to happen simply upon leaving that page. I'm guessing it is some sort of race condition as the applet is shut down and it doesn't have the surrounding window it started with. It only happens when running as an applet. When ran as a program, it always shuts down cleanly.
    It occurs less often if you:
    1) open the link in new window
    2) leave the page
    ) come back to it while the Java Console is still alive (before JVM goes away)
    3) view the Color Log
    4) close the browser window.
    I am running 64-bit Windows 7, and have observed this problem in Firefox, IE, and Chrome.
    With no hints as to where within my code this is occurring (if indeed it is within "my" code), I have no idea how to write an SSCCE. The exception seems to relate to enumerations, which I believe must be occuring during the shut down seqence. See:
    * http://download.oracle.com/javase/1.5.0/docs/api/java/util/NoSuchElementException.html
    What can I try doing to prevent the error from occurring? (Besides not closing the browser window while my applet is running and has a dialog open. ;) )
    *(added immediately before posting)* I just noticed that if any of the first three dialogs in the Help Menu are open, this behavior can occur. So it probably has nothing to do with the tables in the Color Log. The fourth, About, item is a simpler modal dialog, and you aren't even able to close the browser window while it is open.
    Now that I know the crash can happen with any of the non-modal dialogs, I will write an SSCCE, just to see if it occurs in a much simpler applet, if nothing else.

    As promised, an SSCCE with build instructions and an applet environment.
    CloseMyWindow.java import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.IOException;
    import java.net.URL;
    import javax.swing.*;
    public class CloseMyWindow  extends JApplet
        public JPanel makeContent() {
         JButton help = new JButton("Help");
         help.addActionListener( new ActionListener() {
             public void actionPerformed(ActionEvent e) {
              Dimension size = new Dimension(400, 250);
              HelpBox hb = new HelpBox("CloseMyWindow Help",
                  "cmwHelp.html", false, size);
         JPanel jp = new JPanel();
         jp.add(help);
         return jp;
        // method expected by applets
        public void init()
         try {
             javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
              public void run() {
                  JPanel frame = makeContent();
                  setContentPane(frame);
         } catch (Exception e) {
             System.err.println("makeContent() failed to complete: " + e);
             e.printStackTrace();
        public static void main(String[] args)
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    JFrame frame = new JFrame("Test");
                    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    frame.add(new CloseMyWindow().makeContent());
                    frame.pack();
                    frame.setVisible(true);
    class HelpBox extends JDialog
    {   // general window for display of HTML page
        HelpBox(String title, String pUrlS, boolean modal, Dimension pSize)
         super((Frame)null, title, modal);
         final String     urlS  = pUrlS;
         final Dimension     size  = pSize;
         SwingUtilities.invokeLater(new Runnable() {
             public void run() {
              setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
              JEditorPane ep = new JEditorPane();
              ep.setEditable(false);
              try {
                  URL url = getClass().getResource(urlS);
                  ep.setPage(url);
                  JScrollPane eps = new JScrollPane(ep);
                  eps.setPreferredSize(size);
                  getContentPane().add(eps, BorderLayout.CENTER);
              } catch (IOException ioE) {
                  System.err.println("Unable to display help pane");
                  ioE.printStackTrace();
              pack();
              setLocationRelativeTo(null);
              setVisible(true);
    }cmwManifest.txt (be sure to end line with a carriage return) Main-Class: CloseMyWindowcmwHelp.html <html>
    <head><title>Help for CloseMyWindow</title></head>
    <body>
    Good, you've opened this dialog.  Now close the browser window containing
    my applet.
    </applet>
    </body>
    </html>cmw.html <html>
    <head><title>Close My Window</title></head>
    <body>
    <applet code="CloseMyWindow.class"
            archive="CloseMyWindow.jar"
            width="450" height="300">
    Your browser is completely ignoring the <i>applet</i> tag!
    </applet>
    </body>
    </html>1) capture the 4 code segments above and save them as correspondingly-named files.
    2) compile:
    ] javac CloseMyWindow.java
    3) build the jar:
    ] jar cvfm CloseMyWindow.jar cmwManifest.txt *.class cmwHelp.html
    4) test the jar:
    ] java -jar CloseMyWindow.jar
    5) run the applet. Open page cmw.html in a new browser window
    6) enable Java Console (mine is set to autostart on any applet or JNLP)
    7) click the applet's Help button. A new dialog should open up.
    8) close the browser window
    9) observe if an error is reported in Java Console
    I am seeing the error in this small applet. Maybe the .java file will give you guys some clues.

Maybe you are looking for