Thread.destroy() no such method error

im trying to destroy threads on my multi-threaded server as the connection to the client that that thread was for is terminated.
when i call destroy on the thread that contains the connection to the client that is disconnection it throws a runtime error:
Exception in thread "Thread-3" java.lang.NoSuchMethodError
at java.lang.Thread.destroy(Thread.java:870)
at ClientWorker.run(Server.java:55)
at java.lang.Thread.run(Thread.java:595)
when closing, the window listener for the client will send out one last message: "disconnect" and in response the ClientWorker class will get its thread and destroy it. but it wont let me destroy it... why?

public void run(){
Connect();
while(!socket.isClosed())
try{
          line = in.readLine();
          if (line == null || line.equals("/disconnect"))
try{
     client.close();
     server.removeUser(this);
          break;
     } catch(IOException ioe)
          System.out.println("Could not close " + this);
          break;
     else
server.echoMessage(line);
     } catch (IOException e) {
     e.printStackTrace();
                  break;
    finally
        try { socket.close(); } catch (IOException exc) {}
}

Similar Messages

  • 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.

  • 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.

  • 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?

  • Getting no such method error   when calling  getEnvelope()

    I getting this error
    java.lang.NoSuchMethodError: org.apache.xerces.dom.ElementNSImpl.<init>(Lorg/apache/xerces/dom/CoreDocumentImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
         at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.<init>(ElementImpl.java:45)
         at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(EnvelopeImpl.java:40)
         at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(EnvelopeImpl.java:49)
         at com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl.<init>(Envelope1_1Impl.java:34)
         at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEmptyEnvelope(SOAPPart1_1Impl.java:39)
         at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:78)
              SOAPPart sp = message.getSOAPPart();
              SOAPEnvelope envelope = sp.getEnvelope();
    when I call the getEnvelope() method I get this message.
    If this is problem because of wrong jar files please guide mew what jar files I must use I am using jdk 1.4
    these are the jar fiels I am using
         <classpathentry kind="lib" path="lib/log4j.jar"/>
         <classpathentry kind="lib" path="lib/xerces.jar"/>
         <classpathentry kind="lib" path="lib/xercesImpl.jar"/>
         <classpathentry kind="lib" path="lib/jdom.jar"/>
         <classpathentry kind="lib" path="lib/activation.jar"/>
         <classpathentry kind="lib" path="lib/classes12.jar"/>
         <classpathentry kind="lib" path="lib/commons-logging-api.jar"/>
         <classpathentry kind="lib" path="lib/j2ee_small_version.jar"/>
         <classpathentry kind="lib" path="lib/jakarta-regexp-1.2.jar"/>
         <classpathentry kind="lib" path="lib/jaxp.jar"/>
         <classpathentry kind="lib" path="lib/jaxp-api.jar"/>
         <classpathentry kind="lib" path="lib/saaj-api.jar"/>
         <classpathentry kind="lib" path="lib/saaj-impl.jar"/>
         <classpathentry kind="lib" path="lib/xalan.jar"/>

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

  • No such method error when migrating to 10.3.2

    Howdy!
    I am migrating a Portal application from 10.0.2 to 10.3.2 and getting the following exception when trying to access any page of the app. The app is using a home grown URI re-write mechanism that worked successfully in 10.0.2 environment.
    Thank you for your time.
    Caused By: java.lang.NoSuchMethodError: org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils.updateScopedResponse(Ljavax/servlet/http/HttpServletResponse;Lorg/apache/beehive/netui/pageflow/scoping/ScopedRequest;)Lorg/apache/beehive/netui/pageflow/scoping/ScopedResponse;
         at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.getScopedResponse(ScopedContentCommonSupport.java:340)
         at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.renderInternal(ScopedContentCommonSupport.java:182)
         at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.render(PageFlowStubImpl.java:137)
         at com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:292)
         at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:727)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:146)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162)
         at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:465)
         at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:291)
         at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:231)
         at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:216)
         at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:275)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:719)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils.updateScopedResponse(Ljavax/servlet/http/HttpServletResponse;Lorg/apache/beehive/netui/pageflow/scoping/ScopedRequest;)Lorg/apache/beehive/netui/pageflow/scoping/ScopedResponse;
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:333)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
         at alibris.jump.servlet.JumpRequest.rewrite(JumpRequest.java:495)
         at alibris.jump.servlet.UrlRules$RewriteRule.handleApplyRule(UrlRules.java:534)
         at alibris.jump.servlet.UrlRules$PatternUrlRule.applyRule(UrlRules.java:486)
    alibris.common.exception.AlibrisRuntimeException: Error applying RewriteRule to URI '': pattern = '(?i)^/?$', newUrl = '/portals/alibrisPortal.portal?_nfpb=true&_pageLabel=alibrisPage_mediaNeutralHome'
         at alibris.jump.servlet.UrlRules$PatternUrlRule.applyRule(UrlRules.java:489)
         at alibris.jump.servlet.UrlRules.applyRules(UrlRules.java:242)
         at alibris.jump.servlet.filter.JumpServletFilter.doJumpFilter(JumpServletFilter.java:151)
         at alibris.jump.servlet.filter.JumpRequestFilter.doFilter(JumpRequestFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at alibris.jump.servlet.filter.NonWwwFilter.doJumpFilter(NonWwwFilter.java:48)
         at alibris.jump.servlet.filter.JumpRequestFilter.doFilter(JumpRequestFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at alibris.jump.servlet.filter.OldLibraryFilter.doJumpFilter(OldLibraryFilter.java:50)
         at alibris.jump.servlet.filter.JumpRequestFilter.doFilter(JumpRequestFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at alibris.jump.servlet.filter.SellerStorefrontFilter.doJumpFilter(SellerStorefrontFilter.java:72)
         at alibris.jump.servlet.filter.JumpRequestFilter.doFilter(JumpRequestFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at alibris.jump.servlet.filter.PiratesFilter.doJumpFilter(PiratesFilter.java:49)
         at alibris.jump.servlet.filter.JumpRequestFilter.doFilter(JumpRequestFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at alibris.jump.servlet.filter.ServicesFilter.doJumpFilter(ServicesFilter.java:34)
         at alibris.jump.servlet.filter.JumpRequestFilter.doFilter(JumpRequestFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at alibris.jump.servlet.filter.DirectIpFilter.doJumpFilter(DirectIpFilter.java:40)
         at alibris.jump.servlet.filter.JumpRequestFilter.doFilter(JumpRequestFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at alibris.jump.servlet.filter.MasterServletFilter.doJumpFilter(MasterServletFilter.java:93)
         at alibris.jump.servlet.filter.JumpRequestFilter.doFilter(JumpRequestFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
         at alibris.jump.servlet.UrlRules$PatternUrlRule.applyRule(UrlRules.java:489)
         at alibris.jump.servlet.UrlRules.applyRules(UrlRules.java:242)
         at alibris.jump.servlet.filter.JumpServletFilter.doJumpFilter(JumpServletFilter.java:151)
         at alibris.jump.servlet.filter.JumpRequestFilter.doFilter(JumpRequestFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         Truncated. see log file for complete stacktrace
    Caused By: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils.updateScopedResponse(Ljavax/servlet/http/HttpServletResponse;Lorg/apache/beehive/netui/pageflow/scoping/ScopedRequest;)Lorg/apache/beehive/netui/pageflow/scoping/ScopedResponse;
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:333)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NoSuchMethodError: org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils.updateScopedResponse(Ljavax/servlet/http/HttpServletResponse;Lorg/apache/beehive/netui/pageflow/scoping/ScopedRequest;)Lorg/apache/beehive/netui/pageflow/scoping/ScopedResponse;
         at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.getScopedResponse(ScopedContentCommonSupport.java:340)
         at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.renderInternal(ScopedContentCommonSupport.java:182)
         at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.render(PageFlowStubImpl.java:137)
         at com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:292)
         at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428)
         Truncated. see log file for complete stacktrace

    You have a classloading issue. Have you by any chance provided a org.apache.beehive distribution in your classpath.
    To my knowledge the current distrbutions of Apache Beehive do not contain the method updateScopedResponse
    see also https://issues.apache.org/jira/browse/BEEHIVE-1181
    If you look at this JavaDoc (http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.html)
    the updateScopedResponse should be available in the fusion middleware distribution 10.3.2 (Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2))
    The beehive class containing updateScopedResponse is available in sourceforge for download
    (https://svn.apache.org/repos/asf/beehive/trunk/netui/src/scoping/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java)

  • No such method error when starting OC4J 1.3 Developer's Preview

    Hi,
    Having run 1.0.2.2.1 successfully I've now installed OC4J 1.3 Developer's Preview version. When I start up the server (java -jar oc4j.jar) I get the following error:
    java.lang.NoSuchMethodError
    at org.apache.crimson.tree.XmlDocumentBuilder.startDTD(XmlDocumentBuilder.java:615)
    at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1131)
    I'm executing the commmand from the same directory as oc4j.jar and have the CLASSPATH set as follows:
    E:\Oracle\iSuites\j2ee\home\ejb.jar;
    E:\Oracle\iSuites\j2ee\home\jndi.jar;
    E:\Oracle\iSuites\j2ee\home\oc4j.jar;
    e:\oracle\isuites\j2ee\home\crimson.jar
    Any ideas ?
    Cheers,
    Geoff

    Hi Geoff,
    As far as I know, there is no "OC4J 1.3 Developer's Preview" version;
    there is a "9.0.3 Developer's Preview Version". However, I would suggest
    using the "9.0.2 Production Version" (also available for download from the Technet web site: http://technet.oracle.com)
    Also, you need to be using JDK 1.3.1 with that version of OC4J.
    You can find information on how to run OC4J in "debug" mode from the
    Atlassian web site:
    http://www.atlassian.com
    and on the OrionSupport web site:
    http://www.orionsupport.com
    You can also try using the "verbosity" flag, as in:
    java -jar oc4j.jar -verbosity 10
    (10 is the highest value for "verbosity")
    Good Luck,
    Avi.

  • No such File Error

    Hi I am getting a no such file error though I am calling functions correctly. I am able to compile successfully but getting these runtime errors.
    Can anybody point out what mistake I am doing:-
    Here are the error lines:-
    java.io.FileNotFoundException:  (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:137)
            at java.io.FileInputStream.<init>(FileInputStream.java:96)
            at java.io.FileReader.<init>(FileReader.java:58)
            at Clamando$Roger3.readFile(Clamando.java:96)
            at Clamando$Roger3.<init>(Clamando.java:85)
            at Clamando.main(Clamando.java:260)
    java.io.FileNotFoundException:  (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:137)
        at java.io.FileInputStream.<init>(FileInputStream.java:96)
        at java.io.FileReader.<init>(FileReader.java:58)
        at Clamando$Roger3.readFile(Clamando.java:96)
        at Clamando$Roger3.<init>(Clamando.java:85)
        at Clamando.<init>(Clamando.java:50)
        at Clamando$1.run(Clamando.java:265)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)readFile(filename); line 85
    BufferedReader fh = new BufferedReader(new FileReader(filename)); line 96
    getContentPane().add(paintPanel, BorderLayout.CENTER);
    new Clamando(0, 0, 0, 0, null, null).setVisible(true);
          public class Clamando extends JFrame {
                  public Color color;
                  public int top;
                  public int fixvalue1;
                  public int fixvalue2;
                  public int width;
                  public String text;
                  public int end;
                  public int value1;
                  public int value2;
                  public int mywidth;
                  private JPanel Roger3;
          public Clamando(int top, int fixvalue1, int width, int fixvalue2, Color c,String text) {
            this.color = c;
            this.top = top;
            this.fixvalue1 = fixvalue1;
            this.width = width;
            this.fixvalue2 = fixvalue2;
            this.text = text;
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setMinimumSize(new Dimension(1000, 200));
          Roger3 = new Roger3();
          getContentPane().add(Roger3, BorderLayout.CENTER);
          pack();
          static class Roger3 extends JPanel implements MouseMotionListener, MouseListener {
          public List<Glyph> glyphs;
              public int top;
              public int bottom;
              public int width;
              public String f[];
              public int value1;
              public int value2;
              BufferedImage image;
          Graphics2D g2d;
              Point startPoint = null;
              Point endPoint = null;
              public int start;
              public int x;
              public int y;
              int scaledvalue;
              public int end;
              public String filename = new String();
            public Roger3(){
                super();
                addMouseMotionListener(this);
                addMouseListener(this);
                boolean mouseClicked = false;
                readFile(filename);
                System.out.println(filename);
            public void readFile(String filename){
               this.filename = filename;
               glyphs = new ArrayList<Glyph>();
               String n = null; 
            try{
                BufferedReader fh = new BufferedReader(new FileReader(filename));   
                while((n = fh.readLine()) != null && (n = n.trim()).length() > 0){
                    f = n.split("\t");
                    value1 = Integer.parseInt(f[5].trim());
                    value2 = Integer.parseInt(f[6].trim());
                    top = value1 / 1;
                    bottom = value2 / 1;
                    width = bottom - top; 
                    String text = f[5];
                    Color color = new Color(Integer.parseInt(f[7]));
                    int fixvalue1 = 60;
                    int fixvalue2 = 27;
                    glyphs.add(new Glyph(top, fixvalue1, width, fixvalue2, color, text));
                fh.close();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e2) {
                e2.printStackTrace();
          public void paintComponent(Graphics g) {
          public void mousePressed(MouseEvent e) {       
          public void mouseDragged(MouseEvent e) {
          public void mouseReleased(MouseEvent e) {
          public void mouseMoved(MouseEvent e) {
          public void mouseClicked(MouseEvent e) {}
          public void mouseEntered(MouseEvent e) {}
          public void mouseExited(MouseEvent e) {}
          static class Glyph {
          private Rectangle bounds;
          private Color color;
          private Paint paint;
          private String label;
          private boolean showLabel = false;
          public Glyph(int x, int y, int width, int height, Color color, String label) {
          bounds = new Rectangle(x, y, width, height);
          this.color = color;
          this.paint = new GradientPaint(x, y, color, x, y+height, Color.WHITE);
          this.label = label;
          public void draw(Graphics g){
          Graphics2D g2 = (Graphics2D)g;
          g2.setPaint(paint);
          g2.fill(bounds);
          if (showLabel){
          g2.setColor(Color.BLACK);
          int labelWidth = g2.getFontMetrics().stringWidth(label);
          int fontHeight = g2.getFontMetrics().getHeight();
          g2.drawString( label,
          (int)(bounds.getX()),
          (int)(bounds.getY()));
          public boolean contains(int x, int y){
          return bounds.contains(x,y);
          public void showLabel(boolean show){
          showLabel = show;
          public static void main(String args[]) {
           Roger3 hhh = new Roger3();
           hhh.readFile(args[0]);
          java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
          new Clamando(0, 0, 0, 0, null, null).setVisible(true);
        public Color getColor(){
            return color;
        public String toString() {
            return String.format("Color=%s,top=%d,bottom=%d,width=%d", color.toString(), top, fixvalue1, width, fixvalue2, text);
          }Thanks

    I tried the same thing like this and it works perfectly but why its not working in the above code ?
    Here is the code that works:-
    import java.io.FileNotFoundException;
    import java.io.BufferedReader;
    import java.io.*;
    public class Testwow {
        public String filename = new String();
        public int one;
        public int two;
        public String f[];
        public Testwow(){
            readFile(filename);
            System.out.println(filename);
        public void readFile(String filename){
               this.filename = filename;
               System.out.println(filename);
               String n = null; 
               BufferedReader fh;
            try{
                fh = new BufferedReader(new FileReader(filename));   
                while((n = fh.readLine()) != null && (n = n.trim()).length() > 0){
                    f = n.split("\t");
                    one = Integer.parseInt(f[5].trim());
                    two = Integer.parseInt(f[6].trim());
                    System.out.println(one);
                    System.out.print(       two);
                fh.close();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e2) {
                e2.printStackTrace();
        public static void main(String args[]){
            Testwow wow = new Testwow();
            wow.readFile(args[0]);
    }

  • I am from iran. i can not download from app store. iTune gives me such an error like this : you must download version 11.1 iTune and when i want to do that i can not.

    i am from iran. i can not download from app store. iTune gives me such an error like this : you must download version 11.1 iTune and when i want to do that i can not.

    Try Here  >  https://discussions.apple.com/thread/4074945?tstart=0

  • Multiple threads access the same method.

    Hello,
    I have been trying for a long time to find out multiple threads access the shared data.
    I have written a sample code, there I my intention is that method has to be accessed
    onlny one thread at a time., mean one thread finished the job, then next thread can
    access the shared source. But for this code I am not getting the desired out put what I want. But if I am using synchronized block I am getting the output. Please correct where I got mistake. Please see my code.
    public class TestThread implements Runnable {
         Shared r;
         public TestThread() {
              r = new Shared();
         public static void main(String args[]) {
              Thread t1 = new Thread(new TestThread());
              Thread t2 = new Thread(new TestThread());
              t1.setName("A");
              t2.setName("B");
              t1.start();
              t2.start();
          * (non-Javadoc)
          * @see java.lang.Runnable#run()
         @Override
         public void run() {
              // TODO Auto-generated method stub
              r.count();
    class Shared {
         public synchronized void count() {
              String name = Thread.currentThread().getName();
              System.out.println(name + ":accessed...");
              try {
                   for (int i = 0; i < 5; i++) {
                        System.out.println(name + ": " + i);
              } catch (Exception e) {
                   // TODO: handle exception
    }Thanks
    Bhanu lakshmi.

    It depends on what you synchronize. Non-static methods synchronize on the object, so if you're using several objects, you'll be able to call each from their own thread.
    Make your method synchronized or use only a single object and see the difference.

  • No such partitiono error

    In the below procedure partition name in update statement not getting substituted!
    [no such partitiono error]
    create or replace procedure pname (partition_name varchar2) --- partition_name is an arguement (to be tested for different partitions)
    as
    cur is ref cursor;
    Hash_01 varchar2(10);
    cur1 cur;
    type t1 is table of table1.col1%type;
    type t2 is table of table2.col1%type;
    type t3 is table of table2.col2%type;
    type t4 is table of rowid;
    tt1 t1;
    tt2 t2;
    tt3 t3;
    tt4 t4;
    begin
    open c1 for 'select col1,col2 from table1,table2 partition('||Hash_01||')';
    loop
    fetch c1 bulk collect into tt1,tt2,tt3;
    forall i in 1..tt4
    update /*+ parallel(d_Svo_prof,4) */ table1 partition(Hash_01)
    set
    col4=tt3.col2;
    where tt1.col1=t2.col1;
    comiit;
    end;
    Edited by: user13006393 on Apr 25, 2010 5:19 AM
    Edited by: user13006393 on Apr 25, 2010 5:20 AM

    This is not how partitioning should be used (never mind incorrect code and not for example also using dynamic SQL in the forall statement).
    Oracle's CBO has the intelligence to perform partitioning pruning - to decide (correctly so) which partitions to use and not use for a specific SQL statement.
    There's absolutely no reason to specify the partition name in an application SQL statement. In most cases, it will also be the wrong to thing to do.
    Partitioning is a physical feature of the database table. It is not part of the logical database implementation. Application SQL must deal with the logical database layer - not physical. And it should be obvious why...

  • No Such Domain error

    Hi
    Why do I get a "No Such Domain" error page when trying to login ?
    Michael

    what are you putting in the URL when you try to login?
    michaels wrote:
    Hi
    Why do I get a "No Such Domain" error page when trying to login ?
    Michael

  • Abstract Method Error and XML Parsing

    I am using wl6sp1. I am parsing an XML file from within the
    servlet using jaxp1.1 and crimson.
    Following is code:
    1- SAXParserFactory spf = SAXParserFactory.newInstance();
    2- sp = spf.newSAXParser();
    3- xr = sp.getXMLReader();
    4- xr.setContentHandler(new ParseXML());
    5- xr.parse( new InputSource("Example3.xml"));
    This program works fine when execute from command line but in servlet on line
    3 it says:
    "Abstract Method Error"
    I have created XML Registry to use Crimson as XML parser rather than default.
    I think somehow wl is still using jaxp1.0 which is built in
    support in wlsp1.
    Whats wrong with the code...or what configuration i am missing???

    I'm assuming you have already put crimson.jar first in the classpath for the java
    command you use to start WebLogic. If so, have you tried putting the servlet in
    a .war file with the crimson.jar in its' WEB-INF/lib directory?
    Regards,
    Mike Wooten
    "anyz" <[email protected]> wrote:
    >
    I am using wl6sp1. I am parsing an XML file from within the
    servlet using jaxp1.1 and crimson.
    Following is code:
    1- SAXParserFactory spf = SAXParserFactory.newInstance();
    2- sp = spf.newSAXParser();
    3- xr = sp.getXMLReader();
    4- xr.setContentHandler(new ParseXML());
    5- xr.parse( new InputSource("Example3.xml"));
    This program works fine when execute from command line but in servlet
    on line
    3 it says:
    "Abstract Method Error"
    I have created XML Registry to use Crimson as XML parser rather than
    default.
    I think somehow wl is still using jaxp1.0 which is built in
    support in wlsp1.
    Whats wrong with the code...or what configuration i am missing???

  • Abstract Method Error in retrieving Blob

    Hi!
    while (rs.next())
    Blob blob=rs.getBlob(1);
    throws Abstract Method Error
    why?
    Thanxs in advance

    You'll probably find that the JDBC driver that you are using doesn't support blobs. Check the documentation that comes with your driver, it should tell you what parts of the JDBC specification it supports.
    Col

  • Server error: Class: UCF Acroform Method error Message: Could not send mess

    Hi Gurus,
    I'm having a problem with displaying PDF file in the portal. I tried reinstalling Adobe 9. Tick and untick the option Display PDF in browser. But still encountering the error. Is it something to do with IE version? Please Help. Thanks in advance.
    Server error: Class: UCF Acroform Method error Message: Could not send message

    Hi,
        Please speify the system information so that I can help you
    Regards
    Sharanya.R

Maybe you are looking for

  • Color Management on a Photosmart 510a

    I have the Color Munki color management system.  It asks me to "disconnect" the color management in my Photosmart 510a. Have NO clue as to where to do that.  Is it by just changing the option to have the "software manage the colors?" Thanks for info.

  • I've lost the program to open jpgs

    I went to upgrade to 4.5 and lost the ability to open simple jpgs. Can anyone help?

  • Question about firewalls

    Hi all, I'm writing a high efficent server with which my application will be communicate. The server will work using TCP/IP on port 80. I have a question about firewalls : if some user behind the firewall can use web browsers to navigate web pages th

  • [KDE] Force ntfs drives to be case insensitive. How?

    Hi to all, I use KDE and I mount usb ntfs drives with the applet (no fstab configs). I would like to configure KDE and ntfs-3g to mount ntfs drives using the mount option "windows_names" to force linux to consider that filesystem as case insensitive

  • Troubles with G4 Loaner and new HP monitor

    Hi! I am having difficulties ramping up with a loaned Power G4 and a new HP 2009m monitor. I've had these for about a month... I was never really sure how this older mac should be running, but it is sluggish - the keyboard is very slow, working onlin