Java slow to exit

I'm running Eclipse on a Win XP desktop w/ 384mb memory. The Win and Java cache are probably 1 gig each. The app runs slow as you can imagine. Even worse, the exit time is very long. Does java need to write to the disk on exit?

OK. I guess what I'm trying to do is use an IDE (Eclipse) which runs on Java, to compile apps for java. I've written some small apps using a text editor and compiling the source from the dos cmd line. Seems resonable. But as soon as I get into one of these IDEs the system requirements goes into the gigabytes. Is there an option for a lightweight dev environment?

Similar Messages

  • Why is java slower than C and C++

    Hi Guys:
    I would like to know why Java is slower than C and C++ in terms of compilation speed...
    Does it have to do with the fact that Java compiles to byte code first and then the JVM translates byte code to machine code which your processor can understand. whereas C and C++ compiles directly to machine code...
    Any ideas on that,...let me know..

    It's not necessarily. I would suggest that it always is; whencomparing
    specific tasks.I would suggest that is never is (significantly)
    when non-trivial and non-specialized applicationsare
    involved. Requirements and design always have a
    much greater impact.There's no doubt that the design is the most
    important
    aspect when writing a program, but assuming those
    things
    are equal, the fact is that a c program will be
    faster.Yes, but given the fact that there is almost zero chance that the requirements, design and implementation will be optimal, it means that the real differences between the languages are insignificant compared to the real difference caused by the other factors.
    In the theorectical world C/C++ is faster. In the real world, most of the time, it is not significant.

  • Why is Java slow or causing Lion to be slow?

    I did a fresh install of Lion and installed all the needed updates including the APPLE java update plus the malware remover that came with it. Since then a lot of Java games are SLOW. I'm not sure if it's actually java or a Lion update that's causing this issue. Someone suggested I remove my printer software but I dont remember that causing issues before the fresh install. It seems it happened after Apple updates.
    Any help is appreciated.
    Thanks

    It is slower because it is an interpreted language. There have been many improvements to the language from compilation and through newer JVM's that further optimize the code. It is someting you must work w/ when you use the language.

  • Why is java slow?

    Why is java so slow? I think sun needs to make a big improvement on the speed of loading a java program/applet.!!

    It is slower because it is an interpreted language. There have been many improvements to the language from compilation and through newer JVM's that further optimize the code. It is someting you must work w/ when you use the language.

  • Database Studio - java crash with Exit code=1

    Hello,
    I try to get db-studio to work. The problem is that the studio crashes now with the following message:
    JVM terminated. Exit code=1
    /home/js/jre1.5.0_22/bin/java
    -Xms40m
    -Xmx1024m
    -jar /opt/sdb/programs/DatabaseStudio/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
    -os linux
    -ws gtk
    -arch x86
    -showsplash
    -launcher /opt/sdb/programs/DatabaseStudio/dbstudio
    -name Dbstudio
    --launcher.library /opt/sdb/programs/DatabaseStudio/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
    -startup /opt/sdb/programs/DatabaseStudio/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
    -exitdata 62800d
    -vm /home/js/jre1.5.0_22/bin/java
    -vmargs
    -Xms40m
    -Xmx1024m
    -jar /opt/sdb/programs/DatabaseStudio/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
    I used the tutorial for the installation of studio on 64bit Linux. The weird thing is that the studio ran perfectly yesterday but
    today I get this Exit-Code = 1error.
    Is there anybody who has an idea how to fix this ?
    I start the studio with
    /opt/sdb/programs/DatabaseStudio/dbstudio -vm /home/***/jre1.5.0_22/bin/java
    Thanks for help.
    Edited by: Schneidi on Aug 24, 2010 10:07 AM

    Hi,
    /opt/sdb/programs/DatabaseStudio/dbstudio -vm /home/***/jre1.5.0_22/bin/java
    Try changing to the directory first:
    cd /opt/sdb/programs/DatabaseStudio
    ./dbstudio -vm /home/***/jre1.5.0_22/bin/java
    Also make sure /opt/sdb/programs/DatabaseStudio is in your PATH:
    export PATH=/opt/sdb/programs/DatabaseStudio:$PATH
    Nelis

  • My keynote is very slow when exiting from a slideshow, why

    Anyone else suffering from keynote acting very slowly when exiting a slideshow?

    Yes it's slow in Mavericks, not in other OS versions.
    The software is only weeks old so there are many issues with both products.

  • Java Slowness (McAfee)

    A shot in the dark here, but has anyone found a work-around for the McAfee + JFileChooser slowness?
    I'm having no issues with Java itself, but I know I'll have more sanity here than on a McAfee forum.
    When a JFileChooser dialog opens and there's a bunch of zip or jar files in the view, McAfee (Mcshield.exe) jumps to *100%* CPU in TaskManager for a minute or so, and the computer becomes unusable.
    OS: Windows XP SP2
    JVM: 1.6.0_05
    I remember a work-around that involved changing a windows setting, but I'd rather deliver a permanent solution to our anti-virus guy that just fixes this moving forward.
    Thanks for any insight.
    -Tres

    Yes, turn off the on access scanning feature.

  • RMAN slow on exit

    I have my backup destination as an NFS mount. My environment currnetly is linux to linux, red hat. I hvae 10.2.0.3.
    The performance seems real bad, backup seems to take a really long time. The worst is, even when I just do
    RMAN> list recoverable backup;
    It takes a really long time.
    The worst is, even if I exit rman, it takes a really long time to get to the command prompt.
    Is there something in the way I'm doing a nfs mount?
    mount -t nfs -o rw,bg,intr,hard,timeo=600,wsize=32768,rsize=32768,nfsvers=3,tcp back.testy.com:/data/back_test /home/oracle/backup_mount
    Edited the subject since it turned out to be a bug in RMAN and this problem had nothing to do with NFS

    I guess there are a couple of bugs on this issue.
    Bug 5047758 - RMAN SLOW PERFORMANCE ON EXIT (UPDATING STATUS STATISTICS)
      Version affected : 10.1
      Version fixed    : 10.2 due to base Bug 3325292 OPTIMIZER NOT ABLE TO USE INDEXES IN QUERY USING V$SQL_PLAN
      Diagnosis        : Expensive statement =
                         select round(sum(MBYTES_PROCESSED)) ,round(sum(INPUT_BYTES)),
                                round(sum(OUTPUT_BYTES)) 
                         from V$RMAN_STATUS 
                         start with (RECID=:b1 and STAMP=:b2) 
                         connect by prior RECID=parent_recid
       Workaround      : RMAN>sql "alter session set optimizer_mode=RULE";
       Remark          : It might be that Bug 5247609 is a followup / new occurence of this bug
    Bug 5247609 RMAN SLOW PERFORMANCE DURING REGISTER DATABASE/OPEN RESETLOGS
      Version affected : 10.2
      Version fixed    : 10.4
      Diagnosis        : Expensive statement =
                         select round(sum(MBYTES_PROCESSED)) ,round(sum(INPUT_BYTES)),
                                round(sum(OUTPUT_BYTES)) 
                         from V$RMAN_STATUS 
                         start with (RECID=:b1 and STAMP=:b2) 
                         connect by prior RECID=parent_recid
      Workaround      : RMAN>sql "alter session set optimizer_mode=RULE";So I did the same
    run
    sql "alter session set optimizer_mode=RULE";
    BACKUP ARCHIVELOG ALL TAG = '${TAG_TO_USE}' FORMAT = '${FILE_LOCATION}/${FILE_NAME}' DELETE INPUT;
    }Got the prompt back in a few minutes as soon as the backup was done.

  • Java slows down firefox 5 & 6. Was OK in 3.6

    Running a page with java cause the browser to become unresponsive. This started happening in ver 4 and still does it in ver 6.
    It worked fine will allthe ver. 3's
    I am running XP pro sp3 on an I5 machine. How do I fix this?

    I've noticed that working with tab groups instead of my preferred mode of multiple windows mitigates this problem dramatically. What used to take hours now takes a couple days before the memory has blow out of a 4 gig 64 bit Win 7 machine.
    This is an observation not a solution. Memory problems need to be fixed. Teaching another browser to work my way is tedious. But I'm about ready to abandon FireFox. (For what it is worth T'bird does not seem to have this problem. Perhaps that would help point to the memory leak.)
    {^_^}

  • My Java application cannot exit properly when Windows Vista log off

    When I run my Java swing application and show to user (only in active window state), log off / shutdown process of Windows OS will be interrupted by dialog box, mentioned that the process is blocking by my Java application. The dialog box has 2 buttons, 1st button, log off / shutdown now, 2nd button, cancel log off / shutdown. If I click cancel button, terrible thing happen!!! My Java application hang there with CPU usage 90 something....
    I using 1.5 and having above mentioned problem. But when I using 1.6, no dialog box is pop up, my machine can go log off / shutdown as my expectation.
    Any expert know how to solve this?
    ps: due to my library constraints, i have to using 1.5.
    Thanks in advance

    The GeForce 8800 GS in an iMac is equivalent to a GeForce 8800M GTS in a PC.
    Forceware driver 178.15 offers support for GeForce 8800M GTS:
    http://laptopvideo2go.com/forum/index.php?showtopic=20927
    Run that exe in Vista 64x, and then select the INF file from the Device Manager manual driver update instructions instead of picking from the list (which doesn't contain GeForce 8800 GS).
    GF 8800 GS does NOT equal GF 8800 GT. Very different cards.
    http://en.wikipedia.org/wiki/GeForce8_series#8800GS
    See http://discussions.apple.com/thread.jspa?messageID=8281574#8281574 for more info.
    I didn't figure out how to get this to work on 32-bit Vista.

  • RDP and JAVA (SLOW ON TYPING AND SCREEN BUILD)-CTRL-ALT-END-ESC speeds up

    Any news what's the problem in a 2003 environment?
    Only after using the CTRL-ALT-END-ESC combination things are speeding up.
    We've got following installed on the server:
    JNLP Runtime Setiings
    1.3.1_19
    1.5.0_06
    Both enabled and 1.5.0_06 is enabled as system.
    Tried different combination and this seems to be the fastest, but still not good enough,if you launch it locally on theserver, it goes very fast,so it has someting to do with RDP,
    Any help?
    Greetings,
    Dre

    What's the problem with what? 'It' being what? and RDP having what to do with it?
    Just curious ... call me old-fashioned.

  • Java Applet crashes Netscape upon Exit?

    Hello, I created an Applet that I am opening in NEtscape. When I make an attempt to exit (i.e. destroy) the APplet, it crashes the whole netscape. It even happens within Netscape 7. Is there a way around this since it makes a big problem for me to use the applet if it is going to crash my Netscape browser. I`ll appreciate any suggestions or comments, thanks Ivan

    The main class that everything is in is called GUI.java and it is a frame. In order to open this as an Applet in netscape, I created a GUI_RMIApplet.java file. And The GUI_RMIApplet.html file opens the GUI_RMIApplet.java file which in return opens GUI.java. The exit call is in GUI.java file.
    The html file code is as follows:
    <EMBED type="application/x-java-applet;version=1.3" CODE = "musr.client.gui.GUI
    _RMIApplet.class" CODEBASE = "." ARCHIVE = "jar/musr.jar" NAME = "MUSR GUI APPLE
    T" WIDTH = 400 HEIGHT = 300 ALIGN = middle VSPACE = 0 HSPACE = 0 UBBoption = "de
    velop" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/pl
    ugin-install.html">
    <NOEMBED>
    The GUI_RMIApplet.java code is:
    package musr.client.gui;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import musr.server.*;
    public class GUI_RMIApplet extends Applet {
    boolean isStandalone = false;
    String message = "The application will launch in a separate window";
    GUI_RMIServer obj = null;
    /**Get a parameter value*/
    public String getParameter(String key, String def) {
    return isStandalone ? System.getProperty(key, def) :
    (getParameter(key) != null ? getParameter(key) : def);
    /**Construct the applet*/
    public GUI_RMIApplet() {
    /**Initialize the applet*/
    public void init() {
    try {
    jbInit();
    } catch (Exception e) {
    System.out.println("GUI_RMI exception: " + e.getMessage());
    e.printStackTrace();
    /**Component initialization*/
    private void jbInit() {
    // Main bulk for this applet
    GUI gui = new GUI();
    gui.setVisible(true);
    public void paint(Graphics g) {
    g.drawString(message, 25, 50);
    /**Get Applet information*/
    public String getAppletInfo() {
    return "Applet Information";
    /**Get parameter info*/
    public String[][] getParameterInfo() {
    return null;
    //static initializer for setting look & feel
    static {
    try {
    //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    //UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
    catch(Exception e) {
    And, the GUI.java class calls these funcitons when exit menu button is selected:
    GUI.this.dispose(); // disposes the frame
              System.exit(-1); // disposes the applet (?or not?)
    I think the System.exit button is messing things up but I don't know what other function I can use to close teh applet.
    Hope this is enough information.

  • Java plugin exits memory.

    Our application employs an applet to move large amounts of data over TCP and UDP sockets. When we run multiple instances (different tabs in the browse but share the same VM) the applets will run for a while then Java.exe will exit memory (i.e. disappear from the active process list). Note that we predominantly run on windows.
    I attached a debugger to Java.exe and noticed that just before it exits, it reports a large number of Access Violation exceptions:
    First-chance exception at 0x01f96c92 in java.exe: 0xC0000005: Access violation reading location 0x00150100.
    Followed by several lines like:
    The thread 'Win32 Thread' (0x86c) has exited with code 0 (0x0).
    Finally:
    The program '[4060] java.exe: Native' has exited with code 0 (0x0).
    As far as the applets are concerned, the first sign of trouble is that the socket returns a disconnect (e.g. a read returns -1). The applet goes through its shut down sequence but encounters many exceptions as it tries to make callbacks into our JavaScript code that is responsible for displaying status messages. For example:
    java.io.IOException: namedPipe shutdown
    at sun.plugin2.message.transport.NamedPipeTransport$SerializerImpl.flush(Unknown Source)
    at sun.plugin2.message.transport.NamedPipeTransport.signalDataWritten(Unknown Source)
    at sun.plugin2.message.transport.SerializingTransport.write(Unknown Source)
    at sun.plugin2.message.Pipe.send(Unknown Source)
    at sun.plugin2.main.client.PluginMain.sendAppletAck(Unknown Source)
    at sun.plugin2.main.client.PluginMain.access$1700(Unknown Source)
    at sun.plugin2.main.client.PluginMain$StartAppletListener.appletReady(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.fireAppletReady(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.stopWaitingForAppletStart(Unknown Source)
    at sun.plugin2.main.client.MessagePassingExecutionContext.getJSObject(Unknown Source)
    at sun.plugin2.applet2.Plugin2Host.getJSObject(Unknown Source)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter$AppletContextImpl.getJSObject(Unknown Source)
    at netscape.javascript.JSObject.getWindow(Unknown Source)
    or
    java.lang.NullPointerException
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    (when the applet attempts to execute the following line:
    AccessController.doPrivileged(new PrivilegedAction().....
    This happens on 1.7.0_13-b20 and 1.6.xx, also, the amount of data transferred by the applet does not matter. i.e. I could transfer huge amounts through one applet without problem but could not transfer lesser amounts over parallel applets.
    Finally, I gave the VM more memory (-Xmx parameter) without change in behaviour.
    I would appreciate any pointer on how to proceed to troubleshoot this behaviour and see what are we doing to make the JVM behave this way.

    You might want to read an article about memory leaks in Java:
    http://www-106.ibm.com/developerworks/library/j-leaks/

  • Invoking a BPEL Process from Java Class

    Hi All,
    I am new to BPEL. I am trying to invoke a BPEL Process using Java.
    This following is the Oracle AS Home : D:\product\10.1.3.1\OracleAS_1
    Credentials to access the default BPEL domain :
    username - oc4jadmin
    password - oc4jadmin
    RMI Port in Oracle AS - 12401
    (code)
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.dispatch.IDeliveryService;
    import com.oracle.bpel.client.NormalizedMessage;
    import java.util.Hashtable;
    import java.util.Map;
    import javax.naming.Context;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    public class Class1 {
         public static void main(String[] args) {
              try {
              Hashtable jndi = new Hashtable();
              jndi.put(Context.PROVIDER_URL, "ormi://localhost:12401/orabpel");
              jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
              jndi.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
              jndi.put(Context.SECURITY_CREDENTIALS, "oc4jadmin");
              jndi.put("dedicated.connection", "true");
              Locator locator = new Locator("default", "oc4jadmin", jndi);
              System.out.println( "check 1" );
              IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
              System.out.println( "check 2" );
              String xml = "&ltssn xmlns=\"http://services.otn.com\" &gt111222333</ssn>";
              NormalizedMessage nm = new NormalizedMessage( );
              nm.addPart("payload", xml );
              System.out.println( "check 3" );
              NormalizedMessage res = deliveryService.request("CreditRatingService","process",nm);
              System.out.println( "check 4" );
              System.out.println( "BPELProcess CreditRatingService executed!" );
              Map payload = res.getPayload();
              Element part = (Element)payload.get("payload");
              Node outputElement = part.getFirstChild();
              System.out.println("Rating: " + outputElement.getNodeValue());
              catch (Exception ex) {
              ex.printStackTrace();
    (code)
    When I run this, I get the following exception :
    D:\JDeveloper\jdk\bin\javaw.exe -client -classpath D:\JDeveloper\jdev\mywork\mywork\test_bpel_java\ViewController\classes;D:\JDeveloper\jakarta-struts\lib\struts.jar;D:\JDeveloper\jakarta-struts\lib\commons-beanutils.jar;D:\JDeveloper\jakarta-struts\lib\commons-collections.jar;D:\JDeveloper\jakarta-struts\lib\commons-fileupload.jar;D:\JDeveloper\jakarta-struts\lib\commons-digester.jar;D:\JDeveloper\jakarta-struts\lib\commons-lang.jar;D:\JDeveloper\jakarta-struts\lib\commons-logging.jar;D:\JDeveloper\jakarta-struts\lib\commons-validator.jar;D:\JDeveloper\jakarta-struts\lib\jakarta-oro.jar;D:\JDeveloper\j2ee\home\lib\ojsp.jar;D:\JDeveloper\j2ee\home\jsp\lib\taglib\ojsputil.jar;D:\JDeveloper\j2ee\home\oc4j.jar;D:\JDeveloper\j2ee\home\lib\oc4j-internal.jar;D:\JDeveloper\j2ee\home\lib\servlet.jar;D:\JDeveloper\jdev\lib\ojc.jar;D:\product\10.1.3.1\OracleAS_1\bpel\lib\orabpel.jar view.Class1
    check 1
    check 2
    check 3
    Mar 22, 2011 11:04:07 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    java.lang.NoClassDefFoundError: javax/ejb/EJBHome
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.rmi.ClientRmiTypeCache$InterfaceTypeCache.getNamedInterfaces(ClientRmiTypeCache.java:98)
         at oracle.oc4j.rmi.ClientRmiTypeCache$InterfaceTypeCache.getInterfaceType(ClientRmiTypeCache.java:85)
         at oracle.oc4j.rmi.ClientRmiTypeCache.getCachedType(ClientRmiTypeCache.java:33)
         at com.evermind.server.rmi.RMIClientConnection.getBoundObject(RMIClientConnection.java:981)
         at com.evermind.server.rmi.RMIClientInputStream.resolveObject(RMIClientInputStream.java:26)
         at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
         at com.evermind.server.rmi.RMIClientConnection.handleLookupResponse(RMIClientConnection.java:825)
         at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:283)
         at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
         at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
         at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
         at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBException
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at view.Class1.main(Class1.java:40)
    Process exited with exit code 1.
    I have used checkpoints in between the code. It works fine till the third one. After that, it raises an exception.
    Can anyone help me out with this?
    Edited by: 846458 on Mar 22, 2011 11:04 AM

    Hi
    Can you try with below code
    package com.otn.samples;
    import java.util.Properties;
    import java.util.Map;
    import javax.naming.InitialContext;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import com.collaxa.xml.XMLHelper;
    import com.oracle.bpel.client.ClientDefs;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.NormalizedMessage;
    import com.oracle.bpel.client.delivery.IDeliveryService;
    public class CallBPEL
        public static void main(String[] args) throws Exception {
            if (args.length != 1) {
                System.out.println(
                    "I am here");
                return;
            try{
                String ssn = args[0];
                System.out.println("ssn is " + ssn);
                // properties in the classpath
                Properties props = new java.util.Properties();
                java.net.URL url = ClassLoader.getSystemResource("context.properties");
                props.load(url.openStream());
                System.out.println(props);
                String xml = "<ssn  xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";
                Locator locator = new Locator("default","bpel",props);
                IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
                // construct the normalized message and send to collaxa server
                NormalizedMessage nm = new NormalizedMessage( );
                nm.addPart("payload", xml );
                NormalizedMessage res = deliveryService.request("CreditRatingService", "process", nm);
                Map payload = res.getPayload();
                System.out.println( "BPELProcess  CreditRatingService executed!" );
                Element partEl = (Element) payload.get("payload");
                System.out.println( "Credit Rating is " + XMLHelper.toXML(partEl) );
            }catch(Exception e)
                e.printStackTrace();
    }Thanks
    AJ

  • "NoClassDefFoundError" Java exception while invoking BPEL process

    While invoking a BPEL process from my ADF application, I'm getting the following error, it seems some source files are missing, I have made sure the orabpel.jar, and a few other orabpel*.jar are located in the classpath on my PC. Anything else is still missing?
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBException
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
         at com.oracle.bpel.client.Locator.lookupProcess(Locator.java:259)
         at BusinessProcess.Class1.main(Class1.java:65)
    Process exited with exit code 1.
    Upon clicking on the second error, it shows message "Unable to find source file for package com.oracle.bpel.client filename locator.java", what's the problem?
    Thanks,
    Linda

    Sorry guys for disturbing.
    I deleted the file CacheDefaultConfig.properties by mistake from $JAVA_TOP
    I replaced it and it worked fine
    Thanks,
    Baraa

Maybe you are looking for

  • Java it not working on pogo for me

    i dont know whats going on, me and my husband both need java to get our internet games to work. well it works on his, but it will not work on pogo for me. first it was saying that the java was messed up or not right i mean up to date but i have takin

  • EVDRE Drill thru to Bex

    I am trying to drill through from BPC EVDRE to BW Bex report. Has someone done it..Please share document link/information/experience and constraints if any Appreciate inputs..

  • Apple ID password problem

    Hi, When I go to update my apps it asks me to sign in, however the login is wrong, it comes up with [email protected] when it should be [email protected] (note the email bit on the address is different). Then it keeps saying "your password was entere

  • Customise Apple Menu

    Hi all, I've had a look around, though I can't quite find any information (if indeed possible) to customise the Apple Menu Bar in OS X 10.4.11. More specifically I would like to remove the ?special? submenu (apologies I am having to use a PC to post

  • Critical Patch Updates Apr 2007 for Oracle10g Database Express edition

    Hi, When will Oracle10g Express edition which includes Apr 2007 critical patch updates will be available. We use Oracle10 Database Express ed for development purposes and as per Apr 2007 critical patch update Oracle on XP has a security vulnerabiliti