How to invoke method from swing

Aloha,
Thanks in advance for help...
I have created GUI, and want to use buttons to choose which Physics problem to solve. I have already coded the Physics in .java and have different methods for each one. I would like for the button to create an action that places the different problems on the panel, each with a section for information, given input and outputting the answers to solve for.
public void actionPerformed(ActionEvent e)
     { // [20]
           String actionCommand = e.getActionCommand();
           if (e.getActionCommand().equals("Quiz 1"))
             Quiz1();
           }Quiz1 is a private void method that calls on a helper method to perform calculations.
When I use the above command, it invokes the method, but not on the GUI panel, it comes up on the DOS screen. What command should I use to place the calculations and information for this method on the GUI? I know I need to separate and create areas of the panel for input, etc. But I want the method to take place on the GUI.
Thank you for your time and energy.

Hi - I have a question now regarding using a single button, to collect data from multiple fields, make calculations and then return figures to multiple fields.
I thought I could read them into two different variables (valueIn, valueIn2, etc) and then apply them to the JTextField variables. I was experimenting with just passing the initial figures without making calculations...
But just trying with two different fields, the compiler gives me an error for an "unreachable statement". How do I collect from multiple sources and return separate answers to different fields?
I tried to look up definitions for compiler messages, but couldn't find anything regarding "unreachable statements". Therefore, I would also appreciate any suggestions about a dependable source to reference errors.
Thank you in advance for your assistance, I am attaching copy of code below...
public class ChoiceFrame extends JFrame implements ActionListener
{ // [1]
     SolveIt converter = new SolveIt();
     public static final int WIDTH = 650;
  public static final int HEIGHT = 500;
  private JTextArea infoText;
  private double valueIn = 0;
  private double valueIn2 = 0; 
  private JTextField cliffHt;
  private JTextField deceleration;
  private JTextField timeFlight;
  private JTextField height;
  public static void main(String[] args)
  { // [2]
          ChoiceFrame myWindow = new ChoiceFrame();
          myWindow.setVisible(true);
     } // [2]
     public ChoiceFrame()
     { // [3]
          super( );
          setSize(WIDTH, HEIGHT);
          setTitle("ChoiceFrame");       
          Container contentPane = getContentPane();
          contentPane.setBackground(Color.BLUE);
          contentPane.setLayout(new BorderLayout());
          addWindowListener(new WindowDestroyer());                     
          JMenu memoMenu = new JMenu("File");
    JMenuItem file;
    file = new JMenuItem("Clear");
    file.addActionListener(this);
    memoMenu.add(file);
    file = new JMenuItem("Exit");
    file.addActionListener(this);
    memoMenu.add(file);
    JMenuBar mBar = new JMenuBar( );
    mBar.add(memoMenu);
    setJMenuBar(mBar);     
          JPanel northPanel = new JPanel();   
          northPanel.setLayout(new BorderLayout());          
          JPanel textPanel = new JPanel();          
    northPanel.add(textPanel, BorderLayout.WEST);       
          infoText = new JTextArea (8, 43);
          infoText.setBackground(Color.WHITE);
          infoText.setLineWrap(true);
          textPanel.add(infoText);
    infoText.setText("The Coyote, in his relentless attempt to catch the elusive Road Runner,\nloses his footing and falls from a sheer cliff ___ meters above the ground.\nAfter falling for __ seconds (without friction), the Coyote remembers that\nhe is wearing his Acme rocket-powered backpack, which he immediately turns on.\nThe Coyote makes a gentle landing (zero velocity) on the ground below,\nbut is unable to turn off the rocket, and is immediately propelled back up into the air.\n___ seconds after leaving the ground, the rocket runs out of fuel.\nAfter continuing upwards for a ways, the poor Coyote plunges back to the ground.");
          JPanel inputPanel = new JPanel();          
    northPanel.add(inputPanel, BorderLayout.EAST);      
          inputPanel.setLayout(new GridLayout(3,2));     
          cliffHt = new JTextField(5);
          inputPanel.add(cliffHt);
          JLabel mtrsLabel = new JLabel("meters");
          inputPanel.add(mtrsLabel);
          JTextField secondsf = new JTextField(5);
          inputPanel.add(secondsf);
          JLabel sfLabel = new JLabel("seconds falling");
          inputPanel.add(sfLabel);
          timeFlight = new JTextField(5);
          inputPanel.add(timeFlight);
          JLabel sFlightLabel = new JLabel("seconds in flight");
          inputPanel.add(sFlightLabel);          
          JPanel southPanel = new JPanel();          
          southPanel.setLayout(new BorderLayout());          
          JPanel buttonPanel = new JPanel();
          buttonPanel.setLayout(new FlowLayout());
          JButton calcButton = new JButton("Calculate");
          calcButton.addActionListener(this);
          buttonPanel.add(calcButton);
          southPanel.add(buttonPanel, BorderLayout.NORTH);
          JPanel outputPanel = new JPanel();
       outputPanel.setLayout(new GridLayout(3,2));          
          JLabel decelLabel = new JLabel("With the rocket backpack turned on, the deceleration is: ");
          outputPanel.add(decelLabel);
          deceleration = new JTextField(10);
          outputPanel.add(deceleration);
          JLabel htLabel = new JLabel("the max height is: ");
          outputPanel.add(htLabel);
          height = new JTextField(10);
          outputPanel.add(height);
          JLabel vLabel = new JLabel("the velocity is: ");
          outputPanel.add(vLabel);
          JTextField velocity = new JTextField(10);
          outputPanel.add(velocity);          
       southPanel.add(outputPanel, BorderLayout.CENTER);
          contentPane.add(northPanel, BorderLayout.NORTH);                         
          contentPane.add(southPanel, BorderLayout.CENTER);     
     } // [3]
     public void actionPerformed(ActionEvent e)
     { // [20]
          String actionCommand = e.getActionCommand();
          if (e.getActionCommand().equals("Calculate"))
                    deceleration.setText(Quiz1());
                    height.setText(Quiz1());
          else if (e.getActionCommand().equals("Close"))
               System.exit(0);
          else if (actionCommand.equals("Exit"))
      System.exit(0);
     } //[20]
     private String Quiz1()
     { // [40]
          SolveIt calculate = new SolveIt();
          double gravity = 9.81;
          double initialSpeed = 0;
          double freeFall = 5; //this is time for freefall in seconds
          valueIn = stringToDouble(cliffHt.getText());
          return Double.toString(valueIn);     
          valueIn2 = stringToDouble(timeFlight.getText());          
          return Double.toString(valueIn2);
     } // [40]     
     private static double stringToDouble(String stringObject)
     { // [30]
          return Double.parseDouble(stringObject.trim());
     } // [30]

Similar Messages

  • How to invoke methods from an other class?

    Hello,
    I've got the following problem I can't solve:
    I have a class that extends JApplet (viewtiff) and another that displays the images (DisplayJAI). Now I have implemented the MouseListener in DisplayJAI and on a right-click it should execute a method located in viewtiff.
    If viewtiff would be created by myself with the new operator, this wouldn't be a problem. I just had to write instance_name.method() to invoke it, but in this case I don't know the instance name of my viewtiff class because it gets created by the JApplet I think.
    Defining viewtiff static would help, but this isn't possible for the 'main' class in an applet. What can I do now?
    Many thanks,
    Sebastian Tyler

    in the constructor// in ViewApplet:
    ViewTIFF vt = new ViewTIFF (this);
    // in ViewTIFF:
    class ViewTIFF {
    private ViewApplet va;
    public ViewTIFF (ViewApplet va) {
    this.va = va;
    void someMethod () {
    va.someMethod ();
    }>> a setter method// in ViewApplet:ViewTIFF vt = new ViewTIFF ();
    vt.setViewApplet (this);
    // in ViewTIFF:
    class ViewTIFF {
    private ViewApplet va;
    public void setViewApplet (ViewApplet va) {
    this.va = va;
    void someMethod () {
    va.someMethod ();

  • Invoke methods from remote cache

    Hi, Guys
         I want to invoke methods from remote cache node WITHOUT joining the cluster.
         Do you provide some mechanism to implement this?
         Currently, I set up an empty cache which joined the same cluster to invoke methods.
         Thanks for your support.

    I want to invoke methods from remote cache node     > WITHOUT joining the cluster.
         > Do you provide some mechanism to implement this?
         Absolutely. It is the "client/server" extension to Coherence, which is called Coherence*Extend.
         See:
         http://wiki.tangosol.com/display/COH32UG/Configuring+and+Using+Coherence*Extend
         Peace,
         Cameron Purdy
         Tangosol Coherence: The Java Data Grid

  • How to call methods from within run()

    Seems like this must be a common question, but I cannot for the life of me, find the appropriate topic. So apologies ahead of time if this is a repeat.
    I have code like the following:
    public class MainClass implements Runnable {
    public static void main(String args[]) {
    Thread t = new Thread(new MainClass());
    t.start();
    public void run() {
    if (condition)
    doSomethingIntensive();
    else
    doSomethingElseIntensive();
    System.out.println("I want this to print ONLY AFTER the method call finishes, but I'm printed before either 'Intensive' method call completes.");
    private void doSomethingIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    private void doSomethingElseIntensive() {
    System.out.println("I'm never printed because run() ends before execution gets here.");
    return;
    }Question: how do you call methods from within run() and still have it be sequential execution? It seems that a method call within run() creates a new thread just for the method. BUT, this isn't true, because the Thread.currentThread().getName() names are the same instead run() and the "intensive" methods. So, it's not like I can pause one until the method completes because they're the same thread! (I've tried this.)
    So, moral of the story, is there no breaking down a thread's execution into methods? Does all your thread code have to be within the run() method, even if it's 1000 lines? Seems like this wouldn't be the case, but can't get it to work otherwise.
    Thanks all!!!

    I (think I) understand the basics.. what I'm confused
    about is whether the methods are synced on the class
    type or a class instance?The short answer is; the instance for non-static methods, and the class for static methods, although it would be more accurate to say against the instance of the Class for static methods.
    The locking associated with the "sychronized" keyword is all based around an entity called a "monitor". Whenever a thread wants to enter a synchronized method or block, if it doesn't already "own" the monitor, it will try to take it. If the monitor is owned by another thread, then the current thread will block until the other thread releases the monitor. Once the synchronized block is complete, the monitor is released by the thread that owns it.
    So your question boils down to; where does this monitor come from? Every instance of every Object has a monitor associated with it, and any synchronized method or synchonized block is going to take the monitor associated with the instance. The following:
      synchronized void myMethod() {...is equivalent to:
      void myMethod() {
        synchronized(this) {
      ...Keep in mind, though, that every Class has an instance too. You can call "this.getClass()" to get that instance, or you can get the instance for a specific class, say String, with "String.class". Whenever you declare a static method as synchronized, or put a synchronized block inside a static method, the monitor taken will be the one associated with the instance of the class in which the method was declared. In other words this:
      public class Foo {
        synchronized static void myMethod() {...is equivalent to:
      public class Foo{
        static void myMethod() {
          synchronized(Foo.class) {...The problem here is that the instance of the Foo class is being locked. If we declare a subclass of Foo, and then declare a synchronized static method in the subclass, it will lock on the subclass and not on Foo. This is OK, but you have to be aware of it. If you try to declare a static resource of some sort inside Foo, it's best to make it private instead of protected, because subclasses can't really lock on the parent class (well, at least, not without doing something ugly like "synchronized(Foo.class)", which isn't terribly maintainable).
    Doing something like "synchronized(this.getClass())" is a really bad idea. Each subclass is going to take a different monitor, so you can have as many threads in your synchronized block as you have subclasses, and I can't think of a time I'd want that.
    There's also another, equivalent aproach you can take, if this makes more sense to you:
      static final Object lock = new Object();
      void myMethod() {
        synchronized(lock) {
          // Stuff in here is synchronized against the lock's monitor
      }This will take the monitor of the instance referenced by "lock". Since lock is a static variable, only one thread at a time will be able to get into myMethod(), even if the threads are calling into different instances.

  • How to override methods from dynamic instaniated class to call externally?

    Hi,
    Does anyone knows how to get processWindowEvent() from JFrame to call externally without having to override it in a subclass.
    public class UserFrame extends JFrame {
    public class Application {
    public void main(String[] args) {
    UserFrame frame = (UserFrame ) UserFrame .class.newInstance();
    processWindowEvent(WindowEvent evt) {
    the point is to get the instantiated UserFrame to call Application's processWindowEvent() whenever the window event is generated without having to override it in UserFrame.
    Any expert on this?

    The point is there will be several subclasses of JFrame and I would not want to mannually override each subclasses, but by getting any JFrams's method to be delegated to call another method. VB.net, Delphi and etc. have a feature called class method delegation.
    Java has a feature called method Proxy by using InvocationHandler class but is there any example how it could perform what I require?

  • How to invoke Matlab from Java

    Hi, I want to pass some data generated from Java class to Matlab, then invoke Matlab from Java to run the computation program (file written in Matlab, myfile.m). I know Matlab can use classes generated from Java, how to drive Matlab from Java?
    I appreciate your help!
    yaya

    According to their documentation, you can't. Having said that, again according to their documentation, there are plans to support this in future releases.
    m

  • How to use methods from a JAR file inside my springcontext (Oracle fusion 12c) class file?

    Dear Friends,
    I have a jar file, which has executed classes and methods in it. I want to make use of these methods inside my springcontext piece of code.
    Can someone please share an example  of how to write spingcontext code which is accessing classes/methods from  JAR files along with the any setup?
    Thanks,

    I have found the answer... as described in:
    http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html
    the problem was that the properties are loaded with the getResource & getResourceAsStream methods and I didn't know that one. I thought that is was loaded through findClass because I saw the property files trying to be loaded through findClass.
    The truth is that it tries to load with the getRessources methods and if it fails tries with the findClass/loadClass.
    To Fix the problem, I have simply overriden the getRessourceAsStream to do my magic and that was it.
    Thanks

  • How to invoke MIDlet from a Web Browser in Nokia 6230 ?

    Hi!
    I Would like to invoke MIDlet from a web browse in mobile phone. How to do it ? is it possible ?
    Generally I need to send sms automatically depending on the data from a browser. I wish to click a link that will lead to the midlet which would send sms.
    Thanks in advance for your help
    ralph

    As far as I know, BAdI's are user-exits in ABAP and are not exposed, so you cannot call these from the outside.
    Perhaps you meant BAPI, which can be called via RFC. There are lots of examples on this topic on SDN. Just do a search and you'll find your answer.

  • How to call methods from string names?

    On my java project i have a front controller. All the requests will first go to controller and i will make parameter validation on the controller level. If validation is completely ok, page will be dispatched to real servlet with validated parameters.
    If the request pattern is "photos" for example i will call static function and send referance of request object Validation.Photos(request); or if the pattern is "albums" function will be Validation.Albums(request).
    everything is ready on my codes except how to call a Validation function with a string name. Need a clear and a fast way because on every request i will do this.
    Thank you

    ahh life is problem;) another one i couldnt understand.
    import javax.servlet.http.HttpServletRequest;
    interface Validasyon {
            boolean invoke(HttpServletRequest request,String param);
         class IntIsNumeric implements Validasyon {
           public boolean invoke(HttpServletRequest request,String param) {
                param=request.getParameter(param);
                System.out.println("param="+param);
                try
                     Integer.parseInt(param);
                catch(NumberFormatException e)
                     return false;
                catch(NullPointerException e)
                     return false;
                int gelen1=Integer.parseInt(param);
                if(gelen1<1 || gelen1>Integer.MAX_VALUE)
                     return false;
                return true;
         }i am sending parameter to IntIsNumeric classes's invoke method like below
    Validasyon c=new IntIsNumeric();
    boolean a=c.invoke(request,"photo_id");but IntIsNumeric method does not recognize my input parameters "request" and "param" always return null. Why?

  • How to call Method from wdDoModifyView()

    Hi,
       I have a private method and i wanna call this method from wdDoModifyView() hook method.
    but when i call mthod it gives me error the method dim() from the type ..view is not static.
    can any one tell me how can i access this method?
    best regards
    Yasir Noman

    Hi Yasir,
    i'm not sure what you mean with the "dim()" method. I guess this is the non-static method you want to call from wdDoModifyView()? You should already get a compile-time error, not only a runtime error.
    The reason is simple: There is <b>no</b> possibility to call non-static methods from a static context. Static methods "belong to" a class while non-static methods "belong to" instances of a class.
    A simple alternative is to declare dim() as public using the "Methods" tab of the corresponding view controller and use the "wdThis" reference you are getting as a parameter of the wdDoModifyView() method such as you can call wdThis.dim().
    It's <b>not</b> sufficient just to change the method to public inside the //@others section, since wdThis will not know the method then since it's not part of the controller metadata.
    Hope that helps.
    Regards
    Stefan

  • Can we call Swing Utitlies.Invoke Later from Swing worker

    Hi
    I know The worker thread is to run as a seperate thread for time consuming process.i.e non GUI stuff.
    But my question is Can we call invokeLater from SwingWorker
    Thanks
    Rahul

    codingMonkey wrote:
    rahulm_32003 wrote:
    Hi
    yes it is correct.But my question to know whether can we call InvokeLater from Swing worker.What happens if we do like that.Does it make any problem IN GUI
    ThanksTry it.Of course you can try to do that. But why do you want to? Why do you insist on doing something silly?
    Post an example SwingWorker where this makes sense to do.

  • How to invoke bpel from jsp

    Hi,
    I created a bpel application helloword.bpel which has one assign activity it takes input as a name i want to invoke this from jsp i write a code in jsp as follows:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="com.oracle.bpel.client.Locator" %>
    <%@ page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@ page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
    <%@ page import="com.oracle.bpel.client.util.Parameters" %>
    <html>
    <head>
    <title>helloworld</title>
    </head>
    <%
    String name=request.getParameter("name");
    if(name==null)
    name="BPEL";
    String xml ="<name xmlns=\"http://xmlns.oracle.com/helloworld\">" + name + "</name>";
    Locator locator = new Locator("default","helloworld");
    com.oracle.bpel.client.dispatch.IDeliveryService deliveryService = (com.oracle.bpel.client.dispatch.IDeliveryService) locator.lookupService(com.oracle.bpel.client.dispatch.IDeliveryService.SERVICE_NAME);
    com.oracle.bpel.client.NormalizedMessage nm = new com.oracle.bpel.client.NormalizedMessage();
    nm.addPart("payload",xml);
    deliveryService.post("helloworld","intiate",nm);
    out.println("BPELprocess helloWorld intiated");
    %>
    </html>
    i compiled this it is error free but when i try to run this i got a 500 internal server error whats the problem i dont if any one knows pls help me out.
    im new to bpel.
    the error is
    500 Internal Server Error
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:255)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationContext.lookup(ApplicationContext.java:195)     at javax.naming.InitialContext.lookup(InitialContext.java:351)     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)     at _helloworld._jspService(_helloworld.java:63)     [helloworld.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)".     at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:82)     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)     at helloworld.jspService(_helloworld.java:63)     [helloworld.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)Caused by: java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:255)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ApplicationContext.lookup(ApplicationContext.java:195)     at javax.naming.InitialContext.lookup(InitialContext.java:351)     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)     at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)     at _helloworld._jspService(_helloworld.java:63)     [helloworld.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)".     at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)     at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)     ... 21 more

    Looks like you are hitting some bug on 10.1.3.1.0, have you tried on a higher version and also referred SOA_ORACLE_HOME\bpel\samples\tutorials\102.InvokingProcesses\jsp sample ?

  • How to invoke method dynamically?

    hai forum,
    Plz let me know how do we invoke a dynamically choosen method method[ i ] of a class file by passing parameter array, para[ ].The structure of my code is shown below.. How will i write a code to invoke the selected method method?Plz help.
    public void init()
    public void SelectClass_actionPerformed(ActionEvent e)
    //SELECT A METHOD method[ i ] DYNAMICALLY HERE
    private void executeButton1_mouseClicked(MouseEvent e) {
    //GET PARAMETERS para[ ] HERE.
    //METHOD SHOULD BE INVOKED HERE
    }//end of main class

    Often,a nicer way would be to create an interface like "Callable" with one single "doMagic()" method, and different classes implementing this interface, instead of one class with different methods. Then simply load the class by name, call newInstance(), cast to Callable and invoke doMagic(). Keeps you away from most of the reflection stuff.

  • How to invoke JCD from eInsight BS

    I need to know how can I invoke a JCD from an eInsight business process.
    I have created a JCD (exposed as web service).
    I drag & drop the method implemented by the JCD into the eInsight business process, everything build & is deployed with no error.
    But at run time, I get this error
    [#|2006-08-18T11:03:38.913-0700|SEVERE|IS5.1|com.stc.bpms.bpelImpl.runtime.Interpreter|_ThreadID=43; ThreadName=Worker: 9;stacktrace-id=23;|Error in intepreting the Callframe : 148.92.115.31:-2538a7b6:10d1854e2c3:-7ac0
    55213 com.stc.bpms.bpel.BPELException: BPELException: faultCode=OTHER_ERROR: (null)object is created for MessageType: {urn:stc:egate:jce:OrdersProcessing_InventoryCollaboration}Input
    55214      at com.stc.bpms.bpelConnector.impl.WSMessageFactoryImpl.transformToWSMessage(WSMessageFactoryImpl.java:170)
    55215      at com.stc.bpms.bpelConnector.impl.WSMessageFactoryImpl.createMessage(WSMessageFactoryImpl.java:108)
    55216      at com.stc.bpms.bpelImpl.runtime.CallFrame.createContainerData(CallFrame.java:1798)
    55217      at com.stc.bpms.bpelImpl.runtime.ExtendedAssignerImpl.initContainers(ExtendedAssignerImpl.java:133)
    55218      at com.stc.bpms.bpelImpl.runtime.ExtendedAssignerImpl.initContainers(ExtendedAssignerImpl.java:152)
    55219      at com.stc.bpms.bpelImpl.runtime.ExtendedAssignerImpl.assignFunction(ExtendedAssignerImpl.java:117)
    55220      at com.stc.bpms.bpelImpl.runtime.Interpreter.interpret0(Interpreter.java:398)
    55221      at com.stc.bpms.bpelImpl.runtime.Interpreter.interpret(Interpreter.java:177)
    55222      at com.stc.bpms.bpelImpl.runtime.BPELInterpreter$1.run(BPELInterpreter.java:319)
    55223      at com.stc.bpms.bpelConnector.impl.ExecutorImpl$WorkImpl.run(ExecutorImpl.java:270)
    55224      at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:45)
    55225      at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)

    You might need to check the Business Process Attributes (BA) in the Business Process, and make sure there are no unnecessary BAs in such a name format Comp.Input1. Also, make sure when you do assign values, they are assigned to the appropriate BAs. I have seen this type of problems happen, and sometimes, it is caused by eDesigner adding uncessary BAs and the assignment goes to the wrong one.

  • Urgent: How to invoke webservice from a remote client?

    How could I invoke webservice deployed on the weblogic server on different System from client residing on my System?
    I would like to know the different ways to do this and the advantages and dis-advantages of each one of them.
    Thanks in advance.
    Nitin

    nitind,
    Did you figure out how to connect to Weblogic web-service remotely?
    I tried doing so, but I get the following error on the client-side.
    A exception was thrown from the client handler sending a JAXM message.
    A stack trace for a previously logged message.
    Exception in handler handleRequest() method.
    Exception in thread "main" java.rmi.RemoteException: null; nested exception is:
    java.lang.NoSuchMethodError
    java.lang.NoSuchMethodError
    at weblogic.webservice.util.FaultUtil.fillDetail(FaultUtil.java:84)
    at weblogic.webservice.util.FaultUtil.fillFault(FaultUtil.java:141)
    at weblogic.webservice.util.FaultUtil.exception2Fault(FaultUtil.java:184
    at weblogic.webservice.core.HandlerChainImpl.handleRequest(HandlerChainI
    mpl.java:183)
    at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:
    218)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.j
    ava:143)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:444)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:430)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:270)
    at myapp.myservice.client.NoCallbackWebServiceSoap_Stub.addition(NoCallb
    ackWebServiceSoap_Stub.java:62)
    at myapp.myservice.client.NoCallbackWebServiceSoap_Stub.addition(NoCallb
    ackWebServiceSoap_Stub.java:84)
    at testclient.example(testclient.java:48)
    at testclient.main(testclient.java:27)

Maybe you are looking for

  • Nota Fiscal de Transferencia de Crédito / Débito de ICMS

    Boa tarde pessoal, No cliente que estou trabalhando, temos um cenário de transferência de crédito / débito de ICMS. Nesse cenário, configuramos uma nova categoria de nota fiscal e o processo é feito via NF writer. A Nota Fiscal é gerada sem problemas

  • Connect to MS SQL Server 2000 data warehouse

    Hi, I use a MS SQL Server 2000 database for my web application where I use JSP. I suppose to create data warehouse using MS SQL Server's Data Transformation Service. But I don't know it's possible to connect to a MS SQL Server's data warehouse using

  • How to close a topic and reply who give us the right answer ?

    Hi How can i close a solved topic ? Just marking the Answer with the checkboxes (with calification 10)   (But does expert who give the answer receives a message ?) or  doing a reply to expert's answer that give the solution ? Thanks

  • Javascript problems in MX7

    I have noticed a lot of problems with mixing javascripts in a CFFORM in MX7. I use the cfinput tag alot and use the required="yes" feature which creates all this javascript in the source code. I previously posted a thread about my popup windows not c

  • Reg validations and assignments

    Hi All Im new to MDM and need to clarify some basic doubts.... What is the deifference between validations and assignments and what is their significance , and SAP MDM is the third party tool and who is the atual vendor for this. Points rewarded for