Integral function-why it can not run

Hi all,
I am trying to write a code to draw a graph and calculate an area under the graph of sin function. When I run the code, it is working, but when I try to displace the GUI, there are two errors.
- the graph did not appear in the GUI. It should appeare as I already add GPanel into bottomPanel and then add bottomPanel into contentPane. Why?
-when I click button areaButton to execute the calculation. Nothing appear at all. And in the DOS comand, it indicates that java.lang.NumberFormatExecption : empty String. Why?
Can anyone help me to correct the code please. Below is my code.
import java.awt.*;
import javax.swing.*;
import java.text.*;
import java.awt.event.*;
import java.lang.*;
public class IntegralF extends JFrame {  
               // This class is to form a frame
//     double x1, double x2, double a,double  k,double  h,double  fx,double s1,double s2;
     JTextField xText;
     JTextField aText;
     JTextField kText;
     JLabel outputLabel;
     MyPanel GPanel;
        JPanel contentPane;
     //This method is called from within the constructor to initialize the form.
     public IntegralF()     {
          initComponents();
    private void initComponents() {
        MyPanel GPanel= new MyPanel();
        JPanel topPanel = new JPanel();
        JPanel bottomPanel = new JPanel();
        JPanel titlePanel = new JPanel();
        JPanel explainPanel = new JPanel();
        JPanel kPanel = new JPanel();
        JPanel aPanel = new JPanel();
        JPanel xPanel = new JPanel();
        JPanel controlPanel = new JPanel();
        JPanel outputPanel = new JPanel();
        JLabel titleLabel = new JLabel();
        JLabel explainLabel = new JLabel();
        JLabel kLabel = new JLabel();
        JLabel aLabel = new JLabel();
        JLabel xLabel = new JLabel();
        outputLabel = new JLabel();
        kText = new JTextField();
        aText = new JTextField();
        xText = new JTextField();
        JButton areaButton = new JButton();
        JButton exitButton = new JButton();
        contentPane = (JPanel) this.getContentPane();
        setTitle("Simpson's Rule for Definite Integral of Function");
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent evt) {
                exitForm(evt);
     // Set bottom Panel
        bottomPanel.setLayout(new GridLayout(10, 0));
     GPanel.setSize(200,200);
        bottomPanel.add(GPanel,BorderLayout.SOUTH);
        getContentPane().add(bottomPanel, BorderLayout.SOUTH);
        //Set Top Panel
        topPanel.setLayout(new GridLayout(8, 0));
        titleLabel.setText("This program is used to calculate an integral of function f(x) = kxsin(x-a)" );
//        Label1.setLayout(new GridLayout(3,0));
        titlePanel.add(titleLabel, BorderLayout.NORTH);
        topPanel.add(titlePanel, null);
        explainLabel.setText("Enter values of k, a, and x (x is in radian)" );
        explainPanel.setLayout(new GridLayout(3,0));
        explainPanel.add(explainLabel, null);
        topPanel.add(explainPanel, null);
        kLabel.setText("k");
        kText.setColumns(3);
        kPanel.add(kLabel, BorderLayout.EAST);
        kPanel.add(kText, BorderLayout.CENTER);
        topPanel.add(kPanel, null);
        aLabel.setText("a");
        aText.setColumns(3);
        aPanel.add(aLabel, BorderLayout.EAST);
        aPanel.add(aText, BorderLayout.CENTER);
        topPanel.add(aPanel, null);
        xLabel.setText("x");
        xText.setColumns(3);
        xPanel.add(xLabel, BorderLayout.WEST);
        xPanel.add(xText, BorderLayout.CENTER);
        topPanel.add(xPanel, null);
        outputPanel.setBorder(new javax.swing.border.EtchedBorder(null, Color.blue));
        outputPanel.setBackground(Color.white);
        outputPanel.add(outputLabel, null);
        topPanel.add(outputPanel, null);
        areaButton.setText("Area");
     areaButton.addActionListener(new MyActionListener());
        controlPanel.add(areaButton, null);
        exitButton.setText("Exit");
        exitButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                exitButtonActionPerformed(evt);
        controlPanel.add(exitButton, null);
        topPanel.add(controlPanel, null);
     getContentPane().add(topPanel, BorderLayout.NORTH);
        pack();
        private void exitButtonActionPerformed(ActionEvent evt) {
        System.exit(0);
          private void exitForm(WindowEvent evt) {
        System.exit(0);
        public static void main(String args[]) {
        new IntegralF().setVisible(true);
   /**Overriding so that it exits when the window is closed.*/
    protected void processWindowEvent(WindowEvent e) {
         super.processWindowEvent(e);
         if (e.getID() == WindowEvent.WINDOW_CLOSING) {
               System.exit(0);
     class MyActionListener implements ActionListener     {
          public void actionPerformed(ActionEvent e) {
            double  x2 = Double.parseDouble(xText.getText());
            double  k = Double.parseDouble(kText.getText());
            double  a = Double.parseDouble(aText.getText());
            GPanel.drawGraph(a,k,x2);
            GPanel.repaint();
                  double fx = Function(a, k, x2);
            outputLabel.setText(Double.toString(fx));
     double Function(double a,double k,double x2){
     // VARIABLE DECLARATION
     double s=0;
     double s1=0;
     double s2=0;
     double xEven=0;
     double xOdd=0;
     double h=0;
     double sumOdd=0;
     double sumEven=0;
      h= (double) x2/1000;
      System.out.println("h =" + h);
       // ODD NUMBERS OPERATION
      if ((k!=0)&&(x2!=0)){
         for(int i=1; i < 1000/2 +1 ; i++){
             xOdd =  ((2 * i) -1) * h;
             s1 = 4 * k * xOdd * Math.cos(xOdd-a);
             sumOdd = sumOdd + s1;
          // EVEN NUMBERS OPERATION
        for (int j=1; j < (1000/2)  ; j++){
          xEven= 2 * j * h;
          s2 = 2 * k * xEven * Math.cos(xEven - a);
          sumEven = sumEven + s2;
          // ADDITION TO OBTAIN FINAL SIMPSON'S
        s=(sumEven + sumOdd + (x2 * k * Math.cos(x2-a))) * (h/3);
      else if (k==0){
        s=0;     
      else if (x2==0){
        s=0;
      return s;
class MyPanel extends JPanel {
   double a, k, x2;
   public static final int STEPS = 200;
   void GPanel(double aC, double kC, double x2C) {
     a = aC;
     k = kC;
     x2 = x2C;
     this.setBackground(Color.yellow);
     this.setLayout(null);
    public void paint(Graphics g) {
      super.paint(g);
      g.setColor(Color.blue);
      for (int i = 0; i <= STEPS; i++) {
           //THE STARTING POINT
         double oldX = i * x2 /((double) STEPS);
         double oldY = k * oldX * Math.cos(oldX - a);
         double[] oldXY = {oldX, oldY};
         //THE ENDING POINT
         double newX = (i+1) * x2 /((double) STEPS);
         double newY = k * newX * Math.cos(newX - a);
         double[] newXY = {newX, newY};
         g.drawLine(pxlXY(oldXY)[0], pxlXY(oldXY)[1], pxlXY(newXY)[0],pxlXY(newXY)[1]);
      //DRAW A Y AXIS, TEXT TABLES ETC..
      g.drawLine(5, 130, 465, 130);
      g.drawString(Integer.toString((int)(k*x2)), 5, 10);
      g.drawString(Integer.toString((int)(k*x2*(-1))), 5, 255);
      g.drawString(Integer.toString(0), 5, 130);
      g.drawString(Integer.toString((int)x2), 450, 130);
   private int[] pxlXY(double[] xy) {
       int pxlX = (int) (xy[0] * 460 / x2) + 5;
       int pxlY = (int) (xy[1] * 125 / (k * x2) ) + 125 + 5;
       int[] points = {pxlX, pxlY};
       return points;
   public void drawGraph(double aC, double kC, double x2C) {
     a = aC;
     k = kC;
     x2 = x2C;
     this.repaint();
}And this is a code to display GUI
public class Application {
  /*  Constructor */
  public Application() {
    IntegralF frame = new IntegralF();
    frame.setVisible(true);
  /* Main method */
  public static void main(String[] args) {
    new Application();

first bug: in initComponents() you say
MyPanel GPanel = new MyPanel();Since GPanel is a member of the IntegralF class you probably mean:
GPanel = new MyPanel();Just a hint, use a lower case letter for variables:
JPanel p1 = null;
GPanel p2 = null; // looks like another class name !
MyPanel gPanel = null; // gPanel looks more like a variable than a classYou get and store contentPane, but then further on you say
getContentPane().add(...). Do it one way or the other.
Don't "mix n match"
You set a grid layout on bottomPanel, then try to add GPanel to the
SOUTH of bottomPanel - that doesn't make sense !

Similar Messages

  • Why i can not run my sqlplus?

    when i input "sqlplus" at my oracle-installed path,it do not run:
    [oracle@hw_linux OraHome1]$ cd bin
    [oracle@hw_linux bin]$ ./sqlplus
    Message file sp1<lang>.msb not found
    Error 6 initializing SQL*Plus
    [oracle@hw_linux bin]$

    Alison :
    Thank you very much.Can you tell me how to set up the Net8
    configuration file? (I am a jackaroo.) I'm not sure if there are any utilities to do this on Linux, but
    you can read about doing this manually in the Net8
    documentation. The general format for adding a new entry is:
    net_service_name=
    (DESCRIPTION=
    (ADDRESS=(protocol_address_information))
    (CONNECT_DATA=
    (SERVICE_NAME=service_name)))
    Try reading:
    http://download-
    west.oracle.com/otndoc/oracle9i/901_doc/network.901/a90154/connec
    t.htm#430735
    http://download-
    west.oracle.com/otndoc/oracle9i/901_doc/network.901/a90155/tnsnam
    es.htm#490778
    You're a Jackaroo? As in working on a farm in Australia? Or does
    that mean something I don't understand? I'm in Australia too!
    Alison
    iSQL*Plus Team

  • Why i can not run forms in form builder?

    when i want to test my forms, the system just tells me that my HTTP listener does not run port at 8888. how can i fix that problem?

    hi, i just start the oc4j instance,however,it made another error that is "starting http server:address in used:JVM_Bind". how can i fix this problem now? thanks

  • Why I can not run the mac software purchased from Ancestry for Family Tree Maker 2 or 4

    The software would not sync with ancestry family tree macker with out crashing when trying to sync.. This was both the FTM for Mac 2 and FTM for Mac 4.

    According to RoaringApps, FTM is not known to be compatible with Mavericks.  I would contact the developer.
    http://roaringapps.com/apps?index=f
    http://www.familytreemaker.com

  • Can not run two domains on same machine (JVM).

    Hi every body in news group,
    I have a problem with weblogic 6.x, I am trying to run multiple domains e.g examples,
    mydomain, mydomain1 on the same machine (JVM) at the same time, but I can not
    run all three at same time, I changed ports already on all domains, and every
    one has different ports, e.g 7001, 7002, 7003, but still when one domain is running,
    and I try to run other startup file by command prompt, it says, can not initialize
    JVM, can some one help me to understand, why I can not run different domains at
    one time, according to my knowledge, we can run multiple domains on one JVM, by
    giving them differnt ports. I will appreciate your help, looking forward to your
    response, thanks in advance.
    Cheers!
    Ghayyur

    This should work. Could you post the exact error message?
    Ghayyur Hassan wrote:
    Hi every body in news group,
    I have a problem with weblogic 6.x, I am trying to run multiple domains e.g examples,
    mydomain, mydomain1 on the same machine (JVM) at the same time, but I can not
    run all three at same time, I changed ports already on all domains, and every
    one has different ports, e.g 7001, 7002, 7003, but still when one domain is running,
    and I try to run other startup file by command prompt, it says, can not initialize
    JVM, can some one help me to understand, why I can not run different domains at
    one time, according to my knowledge, we can run multiple domains on one JVM, by
    giving them differnt ports. I will appreciate your help, looking forward to your
    response, thanks in advance.
    Cheers!
    Ghayyur

  • HT1349 I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • Why can I not use my Norton Toolbar... It is a very important item... If I can not run norton toolbar, then I do not want the new version of firefox.... How do I go back to my old version..

    Question
    Why can I not use my Norton Toolbar... It is a very important item... If I can not run norton toolbar, then I do not want the new version of firefox.... How do I go back to my old version..

    Norton has had over 5 months to work in their Firefox extensions, since the API's were locked for 4.0. Ask Norton why they pull this crap every time Mozilla releases a new version of Firefox. When Firefox 3.6 was released mid-January 2010, it took Norton until almost April to come up with a working version of their Firefox extensions.

  • Why the Oracle Coherence can not run successsfully?

    Why the Oracle Coherence can not run successsfully?
    When I run the costomized cache-server.cmd file, the following error message shows up:
    C:\coherence\examples\java> *contacts-cache-server.cmd*
    2009-10-22 10:57:10.609/0.563 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational configur
    ion from resource "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2009-10-22 10:57:10.624/0.578 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational override
    from resource "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2009-10-22 10:57:10.624/0.578 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration overri
    "/tangosol-coherence-override.xml" is not specified
    2009-10-22 10:57:10.624/0.578 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration overri
    "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.5.2/463
    Grid Edition: Development mode
    Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
    2009-10-22 10:57:11.062/1.016 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=n/a): Loaded cache configurati
    from "file:/C:/home/oracle/coherence/Contacts/contacts-cache-config.xml"
    2009-10-22 10:57:12.078/2.032 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Service Cluster joined
    e cluster with senior service member n/a
    2009-10-22 10:57:15.328/5.282 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Created a new cluster
    cluster:0xD3FB" with Member(Id=1, Timestamp=2009-10-22 10:57:11.734, Address=192.168.16.83:8088, MachineId=30803, Loca
    on=site:metsys.metex.com,machine:NECu10,process:3820, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, Cp
    ount=4, SocketCount=4) UID=0xC0A81053000001247CC05C3678531F98
    2009-10-22 10:57:15.375/5.329 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=1): Service Man
    ement joined the cluster with senior service member 1
    2009-10-22 10:57:15.875/5.829 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:PartitionedPofCache, member=
    : Service PartitionedPofCache joined the cluster with senior service member 1
    2009-10-22 10:57:15.890/5.844 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:PartitionedPofCache, membe
    1): Loading POF configuration from resource "file:/C:/home/oracle/coherence/Contacts/classes/contacts-pof-config.xml"
    2009-10-22 10:57:15.906/5.860 Oracle Coherence GE 3.5.2/463 <Error> (thread=DistributedCache:PartitionedPofCache, memb
    =1): Terminating DistributedCache due to unhandled exception: com.tangosol.util.WrapperException
    2009-10-22 10:57:15.906/5.860 Oracle Coherence GE 3.5.2/463 <Error> (thread=DistributedCache:PartitionedPofCache, memb
    =1):
    (Wrapped) (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to parse PO
    configuration (Config=contacts-pof-config.xml)) java.io.IOException: Exception occurred during parsing: looking for id
    , found id=3((0,0,65) Character Data Literal {\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fmodern\fcharset0
    urier;}{\f1\fmodern\fcharset0 Courier-Bold;}{\f2\fswiss\fcharset0 Arial;}}
    {\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs18 )
            at com.tangosol.coherence.Component._newChild(Component.CDB:47)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onServiceStarted(
    stributedCache.CDB:99)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onServiceState(Grid.CDB:23)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.setServiceState(Service.CDB:8)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.setServiceState(Grid.CDB:21)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$NotifyStartup.onReceived(Grid.CDB:
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(Distribu
    dCache.CDB:3)
            at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
            at java.lang.Thread.run(Unknown Source)
    Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to parse P
    configuration (Config=contacts-pof-config.xml)) java.io.IOException: Exception occurred during parsing: looking for i
    9, found id=3((0,0,65) Character Data Literal {\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fmodern\fcharset0
    ourier;}{\f1\fmodern\fcharset0 Courier-Bold;}{\f2\fswiss\fcharset0 Arial;}}
    {\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs18 )
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:49)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.instantiateFromBi
    ryConverter(DistributedCache.CDB:3)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext
    etClassLoader(DistributedCache.CDB:6)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext
    nInit(DistributedCache.CDB:2)
            at com.tangosol.coherence.Component._newChild(Component.CDB:41)
            ... 10 more
    Caused by: (Wrapped: Failed to parse POF configuration (Config=contacts-pof-config.xml)) java.io.IOException: Exceptio
    occurred during parsing: looking for id=9, found id=3((0,0,65) Character Data Literal {\rtf1\ansi\ansicpg1252\deff0\de
    ang4105{\fonttbl{\f0\fmodern\fcharset0 Courier;}{\f1\fmodern\fcharset0 Courier-Bold;}{\f2\fswiss\fcharset0 Arial;}}
    {\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs18 )
            at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
            at com.tangosol.io.pof.ConfigurablePofContext.report(ConfigurablePofContext.java:1311)
            at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:812)
            at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:762)
            at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:325)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:45)
            ... 14 more
    Caused by: java.io.IOException: Exception occurred during parsing: looking for id=9, found id=3((0,0,65) Character Dat
    Literal {\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fmodern\fcharset0 Courier;}{\f1\fmodern\fcharset0 Couri
    -Bold;}{\f2\fswiss\fcharset0 Arial;}}....
    {code}
    The content of the contacts-cache-server.cmd file is shown here under:
    (its location is C:\coherence\examples\java
    {code}@echo off
    setlocal
    if (%COHERENCE_HOME%)==() (
    set COHERENCE_HOME=c:\coherence
    set CONFIG=C:\home\oracle\coherence\Contacts
    set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\coherence\Contacts\classes
    set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
    :exit{code}
    The contents of the contacts-cache-config.xml file is shown here under:
    (its location is C:\home\oracle\coherence\Contacts
    {code}<?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
      <caching-scheme-mapping>
        <cache-mapping>
            <cache-name>*</cache-name>
            <scheme-name>ExamplesPartitionedPofScheme</scheme-name>
          </cache-mapping>
        </caching-scheme-mapping>
      <caching-schemes>
        <distributed-scheme>
          <scheme-name>ExamplesPartitionedPofScheme</scheme-name>
          <service-name>PartitionedPofCache</service-name>
          <serializer>
            <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
              <init-params>
                <init-param>
                  <param-type>String</param-type>
                  <param-value>contacts-pof-config.xml</param-value>
                </init-param>
              </init-params>
           </serializer>
         <backing-map-scheme>
           <local-scheme>
             <!-- each node will be limited to 250MB -->
                 <high-units>250M</high-units>
                 <unit-calculator>binary</unit-calculator>
              </local-scheme>
           </backing-map-scheme>
           <autostart>true</autostart>
        </distributed-scheme>
      </caching-schemes>
    </cache-config>{code}
    The contents of the contacts-pof-config.xml file is shown here under:
    {code}
    <?xml version="1.0"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>
      <user-type-list>
        <!-- coherence POF user types -->
        <include>coherence-pof-config.xml</include>
        <!-- com.tangosol.examples package -->
        <user-type>
          <type-id>1002</type-id>
          <class-name>com.tangosol.examples.model.Contact</class-name>
        </user-type>
        <user-type>
          <type-id>1003</type-id>
          <class-name>com.tangosol.examples.model.Address</class-name>
        </user-type>
        <user-type>
            <type-id>1004</type-id>
          <class-name>com.tangosol.examples.model.Phone</class-name>
        </user-type>
      </user-type-list>
      <allow-interfaces>true</allow-interfaces>
      <allow-subclasses>true</allow-subclasses>
    </pof-config>  {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I have saved it as a XML documetent. it this OK?
    What the following error message shows us?
    Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") java.lang.UnsupportedClassVer
    sionError: Bad version number in .class file
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:49)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.instantiateFromBina
    ryConverter(DistributedCache.CDB:3)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext.s
    etClassLoader(DistributedCache.CDB:6)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext.o
    nInit(DistributedCache.CDB:2)
            at com.tangosol.coherence.Component._newChild(Component.CDB:41)
            ... 10 more
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper.java:2969)
            at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1215)
            at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:973)
            at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:762)
            at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:325)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:45)
            ... 14 more
    2009-10-22 17:24:14.995/2.922 Oracle Coherence GE 3.5.2/463 <D4> (thread=ShutdownHook, member=2): ShutdownHook: stopping
    cluster nodeEdited by: junez on 22-Oct-2009 14:30

  • Some procedure can not run,Please help

    --Please Help me where is wrong
    --The Procedure can be compiler,but can not run
    --Maybe there has some wrong with Ref Cursor or dynamic SQL
    --Please,Thanks ver much
    --Follow is my full code
    Create or Replace package ref_types
    AS
    TYPE ref_cursor is REF CURSOR;
    End;
    Create or Replace package userinfo as
    procedure Get_usermenu (baduser out boolean,
    menu out ref_types.ref_cursor
    End;
    Create or Replace package body userinfo as
    procedure Get_usermenu (baduser out boolean,
    menu out ref_types.ref_cursor
    ) is
    v_sqltext varchar2(100);
    v_sql varchar2(300);
    begin
    baduser:=FALSE;
    v_sqltext:='''A001'',''A002'',''A003''';
    v_sql:='select MENUID,P_NAME from MENU_LIST
    where MENUID in (';
    v_sql:=v_sql||v_sqltext||) order by MENUID asc';
    --explain:Get v_sqktext values overpass some process
    open menu FOR v_sql;
    end;
    end;
    /

    thanks,
    error number is : Ora-01001
    I use it In Form:
    declare
    v_baduser boolean;
    v_menu ref_types.ref_cursor;
    v_menuid number;
    v_menuname varchar2(50);
    v_menucount number;
    begin
    v_menucount:=1;
    userinfo.Get_usermenu(v_baduser,v_menu);
    loop
    fetch v_menu into v_menuid,v_menuname;
    exit when v_menu%NOTFOUND;
    show_alert_info(v_menuid||';'||v_menucount||'、'||v_menuname);
    --show_alert_info,like Developer's Function "message",
    --It can show some text
    v_menucount:=v_menucount+1;
    end loop;
    Close v_menu;
    end;

  • In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks

    In Siri, I can call by my voice, but why I can not use Siri voice call in my country (Laos), just can call only us phone number; my country we use like 3 number for option call, 8 numbers for call friend but Siri cannot use this please help us, thanks
    And please help me can type Laos font in it like andrio phone.

    Hi Cozumel,
    Thanks for posting. I'm sorry you're having problems with your bills. I can take a look at this for you. Drop me an email with your account details and a link to this thread for reference. You'll find the address in my profile.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Why isqlplus can not login today?

    Why isqlplus can not login today? I connected the database from isqplus yesterday using the same ip address and credential.
    What does isqlplus depend on?
    Thank you

    sqlplus, listener and EM Console all work well. I guess the problem is IP address. Please see the following output:
    [oracle@localhost admin]$ ifconfig
    eth0 Link encap:Ethernet HWaddr 00:13:21:C7:21:F1
    inet addr:192.168.0.107 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::213:21ff:fec7:21f1/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:21189 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7103 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:2245977 (2.1 MiB) TX bytes:744888 (727.4 KiB)
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:222343 errors:0 dropped:0 overruns:0 frame:0
    TX packets:222343 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:51901694 (49.4 MiB) TX bytes:51901694 (49.4 MiB)
    peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
    UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
    RX packets:21187 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7200 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:2330605 (2.2 MiB) TX bytes:878175 (857.5 KiB)
    Interrupt:17
    vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
    UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
    RX packets:7103 errors:0 dropped:0 overruns:0 frame:0
    TX packets:21189 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:744888 (727.4 KiB) TX bytes:2245977 (2.1 MiB)
    xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
    UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
    RX packets:19623 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1143152 (1.0 MiB) TX bytes:0 (0.0 b)
    But the Network Configration tool shows that the IP address is 192.168.0.10 and the corresponding Host name is localhost.localdomain. The output is not same with the previous one.

  • I would like to know why I can not download apps for other apple products.  There is a very limited selection for Mac Book Pro.

    I would like to know why I can not download apps for other apple products.  Mac Book Pro's selection is quite limited. 

    The games available for the iPad from the App Store will not be compatible with any computer other than an iDevice. To check for available games/Apps for the MacBook Pro you would need to check the Mac App Store, assuming of course that you are running at least OS 10.6.6.

  • Why I can not find field:Level in Project Hierarchy in BAPI_BUS2054_NEW?

    Dear experts,
        Why I can not find the field of "Level in Project Hierarchy" in structure BAPI_BUS2054_NEW?
    I only define the data to upload wbs:
    PROJECT DEFINITION
    PROJECT DESCRIPTION
    PROJECT PROFILE
    WBS Element
    WBS description
    Can you tell me which fields must to upload?
    Looking forward to your reply.
    Many thanks.
    Merryzhang

    Anyone can help me ?I need the field "Level" in BAPI_BUS2054_NEW,But I can not find it.

  • Why i can not see the columns of "Tax Category" in transaction code FS00

    Dear Experts,
          Why i can not see the columns of "Tax Category" and "Posting without tax allowed" in tab of "Control Data"  transaction code FS00?
           How can i add the columns of "Tax Category" and "Posting without tax allowed"?
    Looking forward to your reply.
    Best Regards,
    Merry

    Hi,
    Go to transaction OBD4, and check whether the field "Tax category" is suppressed in group "Account control" for your GL account group.
    If not, then go to OB26 and check the field status for the same field for create, change activity.
    Regards,
    Gaurav

  • Hi, I got the problem with Firefox 27.0.1. I can not run Selenium on Firefox after login a website for automation testing. The browser is not responding.

    Hi, I got the problem with Firefox 27.0.1. I can not run Selenium on Firefox after login a website for automation testing. The browser is not responding. However when I close Nunit, the page is back to be normal. The title is returned to the name of website without "not responding". I sure this problem did not happen on Firefox version 26. I just got this problem when firefox upgrading automatically to version 27. Please help me fix this problem because it is very important for my work. If you need more information pls send your concerns via my email address.
    Thanks so much

    Hi, the work around suggested above should put you in working mode in the meantime. However to help investigate the issue it is possible to analyze what is not loading or taking a long time by analyzing the network traffic or http headers of the Nunit web page.
    *[https://addons.mozilla.org/en-us/firefox/addon/live-http-headers/]
    *Web developer Tools > Web console
    If you post the results with out the user data, we are happy to help.

Maybe you are looking for

  • Lost everything on 10.2.1.1 update, need help.

    Okay, I was syncing my iPod Touch 3g to my pc when the power to the house went out. Power came back on, booted my pc, opened iTunes and iTunes message box popped up saying I need to restore my iPod. wouldnt let me do anything so I hit ok. It restored

  • Eclipse: what to include in the classpath in order not to export the source

    Hi, When exporting a war file from Eclipse and unchecking the Export Source file checkbox, I am getting the source code in my war file. I think this is related to the classpath. Does anyone know what should I do?? Thanks.

  • IOS 4.2 for iPhone 4 the iOS 4.2.1 for iPhone 3GS

    Ok so i updated my 3GS first and it says 4.2.1...which didnt realy bother me since this is the new version with the fix that caused the 4.2 delay... But then i updated the 4 after wards and its saying 4.2... Wierd...So the 3GS has the fix but never r

  • USB in VirtualBox

    I know this has been covered many times and I found a few threads on it but they all pretty old and no longer apply since things have changed since the switch to Systemd. The solution in the wiki (adding VBOX_USB=usbfs to .bashrc) doesn't seem to wor

  • CSCud17778 - memory leak in middle buffers due to snmp traps

    The bug details list these as the conditions required to cause the symptom.  They don't specify whether these three conditions are an AND or an OR, but I'm assuming that all three must be satisfied: Conditions: 1) more than one snmp-server hosts are