Error  Stack 1 when running external java function

Hello,
I defined 1 item that contains an external java program.
When I launch the process, i receive following error on the
Java agent listener screen :
Thu Mar 07 10:25:10 CET 2002 Executing TST_JAVA/22 xx.yyyy.workflow.UpdateWorkflowAttribute
Thu Mar 07 10:25:11 CET 2002 Enqueuing TST_JAVA/22 xx.yyyy.workflow.UpdateWorkflowAttribute
Error Stack: 1
WF_FN_ERROR (MODULE=xx.yyyy.workflow.UpdateWorkflowAttribute) (ITEMTY
PE=TST_JAVA) (ITEMKEY=22) (ACTID=739) (FUNCMODE=RUN) (ERRMESSAGE=null)
and the status remains deferred.
Running the background engine does not change the status of the item. It remains deferred. Anybody has any idea of what is happening ?
grtz,
Chris.

I remember rec. similar errors.
If you are writing a simple code based on the code shown in the workflow guide, looks like you have included some statements which are invalid at run time. examine your code and try to remove all unnecessary statements. write a very simple piece of code by just inserting only the required statements and the error will vanish.
hope this helps
satish paul
Hello,
I defined 1 item that contains an external java program.
When I launch the process, i receive following error on the
Java agent listener screen :
Thu Mar 07 10:25:10 CET 2002 Executing TST_JAVA/22 xx.yyyy.workflow.UpdateWorkflowAttribute
Thu Mar 07 10:25:11 CET 2002 Enqueuing TST_JAVA/22 xx.yyyy.workflow.UpdateWorkflowAttribute
Error Stack: 1
WF_FN_ERROR (MODULE=xx.yyyy.workflow.UpdateWorkflowAttribute) (ITEMTY
PE=TST_JAVA) (ITEMKEY=22) (ACTID=739) (FUNCMODE=RUN) (ERRMESSAGE=null)
and the status remains deferred.
Running the background engine does not change the status of the item. It remains deferred. Anybody has any idea of what is happening ?
grtz,
Chris.

Similar Messages

  • RW-50004: Error code received when running external process.

    Hi,
    I am trying to install 11.5.10 on windows vista and receiveing following error.
    RW-50004: Error code received when running external process. Check log for details. Running Database Install Driver for VIS Instance
    When checked on the log file following is the error. Could anyone pls help me with this regard
    There was an error while running the command - c:\OracleApps\visdb\9.2.0\temp\VIS_erp\adrun9i.cmd APPS APPS
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    RW-50010: Error: - script has returned an error: 1
    RW-50004: Error code received when running external process.
    "dbInstancecfg" file shows below error
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROCVIS))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=erp.erp)(Port=1521))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    LSNRCTL for 32-bit Windows: Version 9.2.0.6.0 - Production on 13-JUL-2008 05:48:04
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Starting tnslsnr: please wait...
    TNS-12546: TNS:permission denied
    TNS-12560: TNS:protocol adapter error
    TNS-00516: Permission denied
    32-bit Windows Error: 5: Input/output error
    addlnctl.cmd exiting with status 3
    OpenSCManager failed
    adsvdlsn.cmd exiting with status 1002
    ERRORCODE = 1002 ERRORCODE_END
    .end std out.
    System error 1060 has occurred.
    The specified service does not exist as an installed service.
    .end err out.
    File c:\OracleApps\visdb\9.2.0\appsutil\install\VIS_erp\afmkinit_inst.cmd not instantiated in the current pass, this file will not be executed
    Executing script in InstantiateFile:
    c:\OracleApps\visdb\9.2.0\appsutil\install\VIS_erp\afmkinit.cmd
    script returned:
    Sun 07/13/2008
    05:48 AM
    1 file(s) copied.
    1 file(s) copied.
    1 file(s) copied.
    "afmkinit.cmd exiting with status 0"
    ERRORCODE = 0 ERRORCODE_END
    .end std out.
    .end err out.
    Skipping INSTE8_PRF
    Skipping INSTE8_APPLY
    [AutoConfig Error Report]
    The following report lists errors AutoConfig encountered during each
    phase of its execution. Errors are grouped by directory and phase.
    The report format is:
    <filename> <phase> <return code where appropriate>
    [SETUP PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: c:\OracleApps\visdb\9.2.0\appsutil\install\VIS_erp
    adsvdlsn.cmd INSTE8_SETUP 1002
    AutoConfig is exiting with status 1

    Thanks for the update and the link was informational.
    Can I install following on windows vista? Pls confirm.
    Oracle® Applications 11i Release 10.2 Media Pack for
    Microsoft Windows (32-bit) No That's not possible, if you would like to use this machine for Applications then the OS needs to be changed or install vmware/Microsoft Virtual PC with a Certified Operating system to be able to use Applications.
    Thanks
    Ronald

  • Unable to run External Java activity getting Null pointerException

    Hi All,
    Im unable to run external java activity in my workflow on Solaris environment.
    My workflow looks like:
    start -----> External java activity----> end
    External java activity code :
    exceute(WFContext ctx) {
    System.out.print("im in java activity");//Only this stmt is present in my code
    1) I have set the classpath in the environment variables pointing all the workflow jars.
    2) Executed wfjvlsnr.csh and it displays the following.
    Oracle Workflow 2.6.4.0.0 JAVA Function Activity Agent
    Please Enter Database Password : r4v25zx
    Connected to owf_mgr@wfSystem:1667:WFUser with character set UTF8
    Listening...
    Till here it is fine.workflow agent started listening
    3) Now i started my client program which triggers the workflow and reaches java activity.
    4) Now when i verify console (2) where i run the java activity agent it displays the following errors:
    oradev_WFUser> ./wfjvlsnr.csh
    Oracle Workflow 2.6.4.0.0 JAVA Function Activity Agent
    Please Enter Database Password : owfpswd
    Connected to owf_mgr@wfSystem:1667:WFUser with character set UTF8
    Listening...
    Sat Jun 02 12:18:47 EST 2007 Executing EXTERNAL/002 oracle.apps.fnd.wf.internal
    java.lang.NullPointerException
    null
    Sat Jun 02 12:18:47 EST 2007 Enqueuing EXTERNAL/002 oracle.apps.fnd.wf.internal null
    Error executing class oracle.apps.fnd.wf.internal: null
    Sat Jun 02 12:18:47 EST 2007 Executing EXTERNAL/002 oracle.apps.fnd.wf.internal
    java.lang.NullPointerException
    null
    Sat Jun 02 12:18:47 EST 2007 Enqueuing EXTERNAL/002 oracle.apps.fnd.wf.internal null
    Error executing class oracle.apps.fnd.wf.internal: null
    Though i dont have any code in my java activity it says NULL pointer exception.
    Im unable find where the mistake is.
    Please help me out in running my java activity.
    Thanks in Advance,
    Cheers,
    Sharath

    Hi,
    I am using integrated web logic server. Do I have to create JDBC connection in Integrated Weblogic Server? If yes, then how come it was working earlier and stopped working suddenly.
    Just to try out, I have created JDBC with a name soademo (As mentioned in bc4j.xml) in Integrated Weblogic Server but didn't worked.
    I will send you sample java class for your reference.
    public class TestClient {
        public static void main(String[] args) {
            String amDef = "com.moj.model.AM.AppModule";
            String config = "AppModuleLocal";
            ApplicationModule am =
                Configuration.createRootApplicationModule(amDef, config);
            ViewObject emplist = am.findViewObject("EmployeesView1");
            emplist.setWhereClause("first_name = :p_firstname");
            emplist.defineNamedWhereClauseParam("p_firstname", null, null);
            emplist.setNamedWhereClauseParam("p_firstname", "Smith");
            emplist.executeQuery();
            while (emplist.hasNext()) {
                Row emp = emplist.next();
                System.out.println ("emp " + emp.getAttribute("Empno"));
                System.out.println("First Name " + emp.getAttribute("FirstName"));
                System.out.println("Last Name " + emp.getAttribute("LastName"));
            Configuration.releaseRootApplicationModule(am, true);
    Appreciate if you can provide me in more detail as I have started working on very recently.
    Parvez

  • TableView Context Menu Item shows up when run on Java 8 until update 5 but not on later ones

    The code below runs as its name says on Java 8 update 5 but not on later ones:
    public class TableViewShowingOnlyAnAppendContextMenuItemIfRowIsEmptyElseDeleteIsIncluded extends Application {
        private final TableView<Name> table = new TableView<>();
        private final ObservableList<Name> data = FXCollections.observableArrayList(new Name("Jacob"),
                new Name("Isabella"), new Name("Ethan"), new Name("Emma"), new Name("Michael"));
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage stage) {
            TableColumn<Name, String> column = new TableColumn<>("Name");
            column.setCellValueFactory(new PropertyValueFactory<>("name"));
            table.getColumns().add(column);
            table.setItems(data);
            ContextMenu contextMenu = new ContextMenu();
            contextMenu.getItems().add(new MenuItem("append"));
            table.setContextMenu(contextMenu);
            table.setRowFactory(tableView -> {
                TableRow<Name> row = new TableRow<>();
                row.contextMenuProperty().bind(
                        Bindings.when(Bindings.isNotNull(row.itemProperty()))
                                .then(showOnlyAppendContextMenuItemIfRowIsEmptyElseIncludeDelete())
                                .otherwise((ContextMenu) null));
                return row;
            Scene scene = new Scene(table);
            stage.setScene(scene);
            stage.show();
        private ContextMenu showOnlyAppendContextMenuItemIfRowIsEmptyElseIncludeDelete() {
            ContextMenu rowMenu = new ContextMenu();
            ContextMenu tableMenu = table.getContextMenu();
            if (tableMenu != null)
                rowMenu.getItems().addAll(tableMenu.getItems());
            rowMenu.getItems().add(new MenuItem("delete"));
            return rowMenu;
        public static class Name {
            private final SimpleStringProperty name;
            private Name(String name) {
                this.name = new SimpleStringProperty(name);
            public String getName() {
                return name.get();
            public void setName(String name) {
                this.name.set(name);
    Can help me find the error in the code? Or if there is none, is this a regression that should be submitted? As of now, all the PCs in use have 8u5.
    Thanks in advance.

    Correctly answered by James_D:
    http://stackoverflow.com/questions/28195552/javafx-tableview-context-menu-item-shows-up-when-run-on-java-8-until-update-5-bu
    pasted below:
    The fix is to create new menu items that are copies of the ones in the table's context menu:
    private ContextMenu showOnlyAppendContextMenuItemIfRowIsEmptyElseIncludeDelete() {
    ContextMenu rowMenu = new ContextMenu();
    ContextMenu tableMenu = table.getContextMenu();
    if (tableMenu != null) {
    for (MenuItem item : tableMenu.getItems()) {
    MenuItem rowItem = new MenuItem(item.getText());
    rowItem.setGraphic(item.getGraphic());
    rowItem.setOnAction(item.getOnAction());
    rowMenu.getItems().add(rowItem);
    rowMenu.getItems().add(new MenuItem("delete"));
    return rowMenu;

  • Customized java class for an external Java function activity

    Hi,
    how can i customize my jdeveloper in order to build my own classes for external Java function activities ?
    because any time i try to build my class the compiler tells me that it doesn't know WFFunctionAPI! And i do not have any idea neither which libraries i have to reference nor where i can find them. i tried to reference the *.jar file from my <ORACLE_HOME>.Wf.Java\Oracle\Apps\Fnd\Wf path, but the compiler still was mocking at me!
    Thanks for your help
         abi

    In the "Project" menu, select "Project Properties";
    In the "Libraries" tab, click the "Add" button;
    Click "New";
    Type "Oracle Workflow" (or any other name) in the Name field;
    In the "Class path" field, click the "..." button;
    Click "Add path" and select <ORACLE_HOME>/wf/java;
    Click "Add ZIP/Jar" and select wfjava.jar and wfapi.jar from the <ORACLE_HOME>/wf/java/oracle/apps/fnd/wf/jar directory.
    Click "Ok" in all those windows and compile your class.
    Regards,
    Daniel Viero - [email protected]
    iProcess Solugues em Tecnologia
    Porto Alegre, RS - Brasil

  • Error has occurred when running internal order report

    Error has occurred when running internal order report. Last month also used this report without any error.
    Error #01: [ASE Error SQL422]Too many nested expressions or logical operators to compile. Try splitting query or limiting ANDs and ORs.
    Error #02: SQL Error: 422
    Error #03: An error occurred while reading the data; Navigation is possible.
    Please guide me to solve this issue.

    Please just say how you removed the CC version and did you remove the Preferences from Hidden User>Library??
    https://helpx.adobe.com/lightroom/kb/preference-file-locations-lightroom-41.html
    In here??
    Sorry I'm trying to help but please answer the questions specifically... thanks.

  • Exception - Trying to invoke an External Java Function

    Hi,
    Can any one Please Help me out am Stuck up with the following Exception While trying to invoke a External java Function.
    Step 1: Written the attached Java Class from "Oracle WorkFlow's Developers's" guide.
    Ref: http://www.stanford.edu/dept/itss/docs/oracle/10g/workflow.101/b10284/deffa02.htm#stdjfa
    Step 2: In builder created a process and created a Java Function
    <package-name>.<class-name>
    Step 3: Compiled the Java Class,and Created a jar file and included the jar and the required .jar files [which are required to make that class compile free] in the class path.
    Step 4: We modified the wfjvlsnr.bat by including the custom jar file which was created and the dependent jar files in the classpath and ran the Java Agent.
    Step 5: Invoked the Process from client, once the process is invoked we are getting
    Unable to load class gov.oracle.apps.fnd.wf.SampleWF
    java.lang.ClassNotFoundException: gov.oracle.apps.fnd.wf.SampleWF
    Tue Oct 10 14:33:38 GMT+05:30 2006 Enqueuing VAC02/VAC02 gov.oracle.apps.fnd.wf.SampleWF
    null
    Unable to load class gov.oracle.apps.fnd.wf.SampleWF
    : java.lang.ClassNotFoundEx
    ception: gov.oracle.apps.fnd.wf.SampleWF
    Regards
    Varma

    The engine doesn't see your jar file,
    try to change the path where you put your jar file, or try to call it for first in the set classpath

  • ORA-03113 error when running the Java stored proc demos

    Hi there,
    Has anyone else run into this issue. When attempting to transfer an object type from Java to Oracle - through a Java stored proc - the session crashes with:
    ORA-03113: end-of-file on communication channelLooking in the trace file generated the error message looks something like:
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [0x8fe04468] [SIGTRAP] [unknown code] [0x8FE59034] [] []
    Current SQL statement for this session:
    select pointruntime.jdistance(point(1, 2), point(2, 3)) from dual
    ----- Call Stack Trace -----
    calling              call     entry                argument values in hex     
    location             type     point                (? means dubious value)    
    ksedmp+764           call     ksedst               0 ? 2C4F4A ? 2C ? 98968000 ?
                                                       DB02C ? 27A50000 ?
    ssexhd+956           call     ksedmp               3 ? 0 ? 8FE5E790 ? 5905870 ?
                                                       8FE0434C ? 40895E4 ?
    0x9012c860           call     ssexhd               5 ? BFFEEF70 ? BFFEEFB0 ? 0 ?
                                                       0 ? 0 ?As you can see from the trace snippet above, I was attempting to run one of the Oracle Java stored procedure demos. Has anyone successfully run those demos? Specifically the ones where complex types (table objects or the Point object) are passed back to Oracle from the JVM.
    I would appreciate some help with this. The code works fine in a Windows or Solaris environment but barfs on Apple. Truly annoying....
    Anyone?
    Thanks in advance,
    Alex

    Yes,
    Apologies for not stating that information, Steve. Was a bit naughty of me! I guess the reason I didn't was because I just wanted to hear if anyone else running Oracle on Mac received such errors when executing the Java stored proc demos (specifically, the execution of PointRuntime.jDistance). Nevertheless, here's the relevant info from the trace file:
    Dump file /Users/oracle/admin/sandbox/udump/sandbox_ora_1861.trc
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
    ORACLE_HOME = /Users/oracle/product/10.1.0/db
    System name:     Darwin
    Node name:     maczilla.local
    Release:     8.3.0
    Version:     Darwin Kernel Version 8.3.0: Mon Oct  3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC
    Machine:     Power Macintosh
    Instance name: sandbox
    Redo thread mounted by this instance: 1
    Oracle process number: 10
    Unix process pid: 1861, image: [email protected] for the Java version, according to the readme file in the javavm directory, I am running 1.4.1:
    1.5  Java Compatibility
    This release has been thoroughly tested with Sun's Java Compatibility
    Kit for the JDK 1.4.1. Oracle is committed to OracleJVM keeping pace
    with Java and other Internet standards.

  • Error Message when running first java program

    Hi,
    I am reading "Sams Teach Yourself Java 6 in 21 Days" by Rogers Cadenhead. I am having a problem with compiling the sample program in the first part of the book, "HelloUser" which is supposed to print out "Hello (my name - Matt)" when run in the command line.
    I receive this error when trying to run it after having successfully compiled it (I enter java HelloUser while in correct folder):
    Exception in thread "main" java.lang.NoSuchMethodError: main
    I have correctly set the PATH and CLASSPATH settings for my PC (Windows XP). I am guessing that I need to define a "main" or something. I'm brand new to Java but am good with the scripting language PHP. Please tell me what I should do to correct this problem. Thanks in advance

    Here is the code for the program:
    public class HelloUser {
         public static void man(String[] arguments) {
              String username = System.getProperty("user.name");
              System.out.println("Hello " + username);
    }Here is what I enter in the Command Line:
    cd \JavaWork\j21work
    javac HelloUser.java
    java HelloUser
    There are no problems up until I enter the last line (java HelloUser) to run the program. By the way, I using JDK 6 update 1 with Windows XP.

  • Encountering exceptions when running a java program in the db

    hi,
    when running the following following program in oracle11g, AIX (5300-07)
    DROP JAVA SOURCE DIRLIST;
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED DIRLIST as import java.io.*;
    import java.sql.*;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    public class DirList
    public static void getList(String directory)
    throws SQLException
    File path = new File( directory );
    String[] list = path.list();
    String element;
    for(int i = 0; i < list.length; i++)
    element = list;
    String fpath=directory+"/"+list[i];
    File f = new File(fpath);
    long len;
    Date date;
    String ftype;
    String sqldate;
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:S");
    if (f.isFile()) {
    len = f.length();
    date = new Date(f.lastModified());
    sqldate = df.format(date) ;
    ftype = "F";
    else {
    len = 0;
    sqldate = null;
    ftype = "D";
    #sql { INSERT INTO DIR_LIST (FILENAME, filelength, filetype, filemodified)
    VALUES (:element, :len, :ftype, to_timestamp(:sqldate,'YYYY-MM-DD HH24:MI:SS:FF3'))
    we are encountering the following issues..
    SQL> sho error JAVA SOURCE DIRLIST
    Errors for JAVA SOURCE DIRLIST:
    LINE/COL ERROR
    0/0 An exception has occurred in the compiler (1.5.0_10). Please
    file a bug at the Java Developer Connection
    (http://java.sun.com/webapps/bugreport) after checking the Bug
    Parade for duplicates. Include your program and the following
    diagnostic in your report. Thank you.
    0/0 java.lang.NullPointerException
    0/0 at
    com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:4
    80)
    LINE/COL ERROR
    0/0 at
    oracle.aurora.jdkcompiler.JdkDriver.compile(JdkDriver.java:570)
    0/0 at oracle.aurora.rdbms.Compiler.compile(Compiler.java:322)
    0/0 at oracle.aurora.rdbms.Compiler.access$000(Compiler.java:57)
    0/0 at oracle.aurora.rdbms.Compiler$1.run(Compiler.java:324)
    0/0 at java.security.AccessController.doPrivileged(Native Method)
    0/0 at oracle.aurora.rdbms.Compiler.doCompile(Compiler.java:651)
    In trace files there are another set of exceptions that are getting generated when this program is running as shown below
    joez_compile_method: failed compiling method oracle/aurora/sqljdecl/SqljDecl.jj_
    scan_token with oracle/aurora/zephyr/util/JITCompileException:class java.lang.Ar
    rayIndexOutOfBoundsException:null
    oracle.aurora.zephyr.util.JITCompileException: class java.lang.ArrayIndexOutOfBo
    undsException:null
    at oracle.aurora.zephyr.util.Debug.assert_(Debug.java:67)
    at oracle.aurora.zephyr.JITDriver.jitMethod(JITDriver.java:197)
    at oracle.aurora.zephyr.JITDriver.jitMethod(JITDriver.java:71)
    at oracle.aurora.vm.OracleRuntime.jitOneMethod(Native Method)
    at oracle.aurora.vm.OracleRuntime.jitSomeMethods(OracleRuntime.java:758)
    Caused by: java.lang.ArrayIndexOutOfBoundsException
    at java.util.Vector.addElement(Vector.java:582)
    at java.util.Stack.push(Stack.java:44)
    at oracle.aurora.zephyr.bytecode.ByteCodeToMIR.push(ByteCodeToMIR.java:4
    03)
    at oracle.aurora.zephyr.bytecode.ByteCodeToMIR.pushRef(ByteCodeToMIR.jav
    a:406)
    at oracle.aurora.zephyr.bytecode.ByteCodeToMIR.translateBasicBlock(ByteC
    odeToMIR.java:1822)
    at oracle.aurora.zephyr.bytecode.ByteCodeToMIR.translateMethod(ByteCodeT
    oMIR.java:824)
    at oracle.aurora.zephyr.bytecode.ByteCodeToMIR.translateMethod(ByteCodeT
    oMIR.java:4633)
    at oracle.aurora.zephyr.JITDriver.jitMethod(JITDriver.java:125)
    ... 3 more
    We been trying for couple of weeks to figure out the issue.
    Has anyone encountered this issue or having solution in rectifying this please share with us..
    Thanks

    If you mean can you run it as a windows 2000 service so the user doesn't see it yes you can.
    I recommend the following Java Service wrapper program:
    http://www.eworksmart.com/JNT/
    It's quite simple to set up and will start when the user logs in (so long as the service is set to start automatically).
    Hope that helps,
    Seigers.

  • Problem when Running a java program

    I am new to Java. I have installed JDK 1.3.1 on my machine. have setup the class path also. My program complies fine but when i am running it I am getting the following error.
    Exception in thread "main" java.lang.NoClassDefFoundError: InsertSuppliers
    Press any key to continue . . .
    I am pasting my java program underneath. Can anybody please help me?
    import java.sql.*;
    import java.lang.*;
    import java.util.*;
    import java.io.*;
    public class InsertSuppliers
         public static void main(String[] args)
    throws IOException
              System.out.println("iuysuiysuidyfsduyf");
              String url = "jdbc:odbc:CafeJava";
              Connection con;
              Statement stmt;
              String query = "select SUP_NAME, SUP_ID from SUPPLIERS";
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              } catch(java.lang.ClassNotFoundException e) {
                   System.err.print("ClassNotFoundException: ");
                   System.err.println(e.getMessage());
              try {
                   con = DriverManager.getConnection(url,
                                                 "Admin", "duke1");
                   stmt = con.createStatement();
                   stmt.executeUpdate("insert into SUPPLIERS " +
         "values(49, 'Superior Coffee', '1 Party Place', " +
                        "'Mendocino', 'CA', '95460')");
                   stmt.executeUpdate("insert into SUPPLIERS " +
                        "values(101, 'Acme, Inc.', '99 Market Street', " +
                        "'Groundsville', 'CA', '95199')");
                   stmt.executeUpdate("insert into SUPPLIERS " +
         "values(150, 'The High Ground', '100 Coffee Lane', " +
                        "'Meadows', 'CA', '93966')");
                   ResultSet rs = stmt.executeQuery(query);
                   System.out.println("Suppliers and their ID Numbers:");
                   while (rs.next()) {
                        String s = rs.getString("SUP_NAME");
                        int n = rs.getInt("SUP_ID");
                        System.out.println(s + " " + n);
                   stmt.close();
                   con.close();
              } catch(SQLException ex) {
                   System.err.println("SQLException: " + ex.getMessage());
    }

    Your error occurs because java can not find a file named InsertSuppliers.class in the Classpath. there are 3 basic ways to make this work. Assume you compiled InsertSuppliers so that the InsertSuppliers.class file is in a directory c:\myjava (I am assuming Windows).
    1. Do not set your System Classpath. CD to the c:\myjava directory. Enter "java InsertSuppliers"
    2. Set your System Classpath = .;c:\myjava and enter "java InsertSuppliers" from any directory.
    3. Enter "java -classpath c:\myjava InsertSuppliers" from any directory.
    Of course, none of these will work if InsertSuppliers.class file doesn't exist in c:\myjava. And remember that class names are case sensitive.

  • Error in BIM when running in background mode

    Hi,
    I am facing an error when running a BIM in sm35.
    The BIM runs fine with my userid in all three modes( foreground,display error mode, background mode)....but fails when the functional person is testing in background mode. The BIM runs fine in all other modes.
    It gives the message when running in background mode
    "No batch input data for screen SAPLMGMW 4008"
    What should I check or do to correct it.
    Please help.
    Regards
    Rashi

    The BIM runs fine in Foreground mode and in Display error mode even for the functional..It is giving error only for Background mode.
    I also did the following
    1.   Created the BIM in my id and tried running( in background) it using the other id ...it was successful
    2.   Created the BIM in other id and ran ( in background) using my id....it failed.
    I will check again for authorisations also.
    Regards,
    Rashi

  • SQL: Issue with running out of storage on server when running table-valued function

    SQL Version: 2008 (not r2)
    Problem:  I'm getting the following error message when running a table-valued function:
    Msg 1105, Level 17, State 2, Line 1
    Could not allocate space for object 'dbo.SORT temporary run storage:  141072001204224' in database 'tempdb' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files
    to the filegroup, or setting autogrowth on for existing files in the filegroup.
    Request:  Could anyone tell me if there are modifications that I could make to my SQL code to avoid this storage issues?
    Thanks,
    ....bob sutor
    Code Facts:
    The JCCD table is a large table 2MM records
    The other tables in the JOINS are very small 15 records or less
    SQL Function Code:
    ALTER FUNCTION [dbo].[xcft_XAWP_GLBalance_JCCD_Detail]()
    RETURNS @JCGLDetail TABLE
          JCCo tinyint
        , Job varchar(10)
        , PostingSource varchar(10)
        , CostToDate numeric(12,2)
        , Phase varchar(20)
        , EarnType smallint
        , LiabilityType smallint
        , CostType tinyint
        , ControllingSetting varchar(30)
        , GLAccountCharged varchar(20)
        , DeptNum varchar(10)
        , DeptDesc varchar(30)
        , JCDC_CostType tinyint
        , CostTypeGL_Open varchar(20)
        , CostTypeGL_Closed varchar(20)
        , JCDO_ExcludePR varchar(1)
        , JCDO_Phase varchar(20)
        , PhaseGL_Open varchar(20)
        , PhaseGL_Closed  varchar(20)
        , JCDL_LiabType smallint
        , LiabTypeGL_Open varchar(20)
        , LiabTypeGL_Closed varchar(20)
        , JCDE_EarnType smallint
        , EarnTypeGL_Open varchar(20)
        , EarnTypeGL_Closed varchar(20)
    AS
    BEGIN
     DECLARE
     @WIPMonthCurrent date
     SET @WIPMonthCurrent = (Select TOP 1 WIPMonth FROM udxcWIPMonths WHERE ActiveWIPPeriod = 'Y')
     INSERT INTO @JCGLDetail
          JCCo
        , Job
        , PostingSource
        , CostToDate
        , Phase
        , EarnType
        , LiabilityType
        , CostType
        , DeptNum
        , DeptDesc
        , JCDC_CostType
        , CostTypeGL_Open
        , CostTypeGL_Closed
        , JCDO_ExcludePR
        , JCDO_Phase
        , PhaseGL_Open
        , PhaseGL_Closed
        , JCDL_LiabType
        , LiabTypeGL_Open
        , LiabTypeGL_Closed
        , JCDE_EarnType
        , EarnTypeGL_Open
        , EarnTypeGL_Closed
     SELECT  
         JCCD.JCCo, JCCD.Job, JCCD.Source, sum(JCCD.ActualCost) AS CostToDate, JCCD.Phase, JCCD.EarnType, JCCD.LiabilityType, JCCD.CostType
       , JCDM.Department, JCDM.Description
       , JCDC.CostType AS JCDC_CostType, JCDC.OpenWIPAcct AS CostTypeGL_Open, JCDC.ClosedExpAcct AS CostTypeGL_Closed
       , JCDO.ExcludePR AS JCDO_ExcludePR, JCDO.Phase AS JCDO_Phase, JCDO.OpenWIPAcct AS PhaseGL_Open, JCDO.ClosedExpAcct AS PhaseGL_Closed
       , JCDL.LiabType AS JCDL_LiabType, JCDL.OpenBurdenAcct AS LiabTypeGL_Open, JCDL.ClosedBurdenAcct AS LiabTypeGL_Closed
       , JCDE.EarnType AS JCDE_EarnType, JCDE.OpenLaborAcct AS EarnTypeGL_Open, JCDE.ClosedLaborAcct AS EarnTypeGL_Closed
     FROM JCCD
     LEFT JOIN JCJP ON JCCD.JCCo = JCJP.JCCo AND JCCD.Job = JCJP.Job
     LEFT JOIN JCCM ON JCJP.JCCo = JCCM.JCCo AND JCJP.Contract = JCCM.Contract
     LEFT JOIN JCDM ON JCCM.JCCo = JCDM.JCCo AND JCCM.Department = JCDM.Department
     LEFT JOIN JCDC ON JCDM.JCCo = JCDC.JCCo AND JCDM.Department = JCDC.Department AND JCCD.CostType = JCDC.CostType
     LEFT JOIN JCDE ON JCDM.JCCo = JCDE.JCCo AND JCDM.Department = JCDE.Department AND JCCD.EarnType = JCDE.EarnType
     LEFT JOIN JCDO ON JCDM.JCCo = JCDO.JCCo AND JCDM.Department = JCDO.Department AND JCCD.Phase = JCDO.Phase
     LEFT JOIN JCDL ON JCDM.JCCo = JCDL.JCCo AND JCDM.Department = JCDL.Department AND JCCD.LiabilityType = JCDL.LiabType
     LEFT JOIN xcft_XAWP_FiscalPeriodCutoffs_ForWIPMonth() AS cutoffs ON JCCD.JCCo = cutoffs.GLCo
     WHERE
          JCCD.Mth <= cutoffs.FiscalYear_LastMonth
         AND JCCD.Job IN(SELECT JobNum FROM budxcWIPData_SQL WHERE WIPMonth = @WIPMonthCurrent)
         AND JCCD.JCCo IN(SELECT JCCo FROM JCCO WHERE udExcludeFromWIP <> 'Y' or udExcludeFromWIP IS NULL)
         --AND LTRIM(RTRIM(JCCD.Job)) = '71-'
     GROUP BY
         JCCD.JCCo, JCCD.Job, JCCD.Source, JCCD.Phase, JCCD.EarnType, JCCD.LiabilityType, JCCD.CostType
       , JCDM.Department, JCDM.Description
       , JCDC.CostType, JCDC.OpenWIPAcct, JCDC.ClosedExpAcct
       , JCDO.ExcludePR, JCDO.Phase, JCDO.OpenWIPAcct, JCDO.ClosedExpAcct
       , JCDL.LiabType, JCDL.OpenBurdenAcct, JCDL.ClosedBurdenAcct
       , JCDE.EarnType, JCDE.OpenLaborAcct, JCDE.ClosedLaborAcct
     UPDATE @JCGLDetail
      SET
          ControllingSetting =
        CASE WHEN Phase = JCDO_Phase AND JCDO_ExcludePR = 'N' THEN 'PhaseOverride-PR Excluded'
          WHEN Phase = JCDO_Phase AND JCDO_ExcludePR = 'Y'
           AND EarnType NOT IN(Select EarnType FROM JCDE WHERE JCDE.JCCo = JCCo AND JCDE.Department = DeptNum)
           AND LiabilityType NOT IN(Select LiabType FROM JCDL WHERE JCDL.JCCo = JCCo AND JCDL.Department = DeptNum)
           THEN 'PhaseOverride-PR Not Excluded'
          WHEN EarnType = JCDE_EarnType THEN 'Earn Type Override'
          WHEN LiabilityType = JCDL_LiabType THEN 'Liability Type Override'
          ELSE 'Cost Type' END
     UPDATE @JCGLDetail
      SET
          GLAccountCharged =
        CASE WHEN ControllingSetting = 'PhaseOverride-PR Excluded' OR ControllingSetting = 'PhaseOverride-PR Not Excluded'
          THEN PhaseGL_Open
          WHEN ControllingSetting = 'Earn Type Override' THEN EarnTypeGL_Open
          WHEN ControllingSetting = 'Liability Type Override' THEN LiabTypeGL_Open
          ELSE CostTypeGL_Open END
    RETURN 
    END
    Bob Sutor

    well, did you either restart the instance or add another tempdb file (no restart required) to let other transactions  continue on the server.
    or check if autogrowth was limited, change that to unlimnited , to the transactions conintue..
    the function may be dumping the data on to tempdb, how much data are you excepting back...what are indexes on the tables
    Hope it Helps!!

  • External Java Function with a Result Type

    Dear all,
    I have created a workflow process which use a Function Activity of type "External Java" without a result type and it works fine, but i have created another with the result type of boolean (WFSTD_BOOLEAN) and it doesn't work properly. I will explain what is happening.
    I start a process and it stops in that function activity, then the oracle Function Activity Agent executes the class associated to that function and it works fine. Then i review the workflow process and check that the status of the activity is "Deferred". I execute the wf_engine.background process, and then the status of the activity is "Complete" but the result field is blank, thus the process is stopped and did not go through the "True" branch of the process. I have follow the Oracle Workflow and Java Technical White Paper to build the class associated to the function activity, and i return true in the execute method and don't put anything in the errorStack variable.
    The documentation says:
    resultOut If a result type is specified in the Activities properties page for the activity in the Oracle Workflow Builder, this parameter represents the expected result that is returned when the procedure completes.
    Note: Unlike the resultout for a PL/SQL procedure called by a function activity, the resultOut for a Java procedure does not include a status code. In the Java API, only the result type value is required. The status of the activity will be set automatically by the Workflow Engine depending on whether there is a value in the errorStack variable.
    am I doing something wrong? could anyone help me?
    Thanks in advance.

    Hi Allison,
    I've found the solution to the problem. If i set the variable resultOut to "T" or "F" before finnishing the execute method it works.
    I think that you have to set the variable resultOut with the internal value of the lookup type that you are using as the result type of the function activity.
    Bye!

  • Error always showing when running....HELP!

    I have java 1.3.1 and if compiles fine but whenever i try to run an java based application it gives me the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: (file name)
    Can you guys help me figure out why this error mgs is always apperaing in my java application runner...Thanks

    My First Java Program (for Windows)
    Follow these steps:
    1. Download and install the Java 2 SDK
    2. Make sure your path and classpath are set correctly
    3. Type in your first program
    4. Compile your first program
    5. Run your first program
    6. Read the Java tutorial
    1. Download and install the Java 2 SDK
    Go to the Java website and download the Java 2 SDK, Standard Edition:
    http://java.sun.com/j2se/1.4.1/download.html
    NOTE: Make sure you download the SDK (leftmost column) and not just the JRE. The JRE (Java Runtime Environment) only contains the stuff necessary to run Java programs, and not the compiler and other tools you need to develop Java programs.
    After downloading, run the installation program to install the Java 2 SDK.
    2. Make sure your path and classpath are set correctly
    After installing, READ THE INSTALLATION NOTES! Lots of people get in trouble and are asking questions in the forums because they were too lazy to read and follow the installation notes. Especially, after installing the Java 2 SDK you need to add the 'bin' directory of the SDK to your PATH, otherwise you will get an error like "javac is not recognized as an internal or external command" or something similar.
    If you've installed the Java 2 SDK in C:\j2sdk1.4.1_03, add C:\j2sdk1.4.1_03\bin to the PATH. If you don't know how to change environment variables in Windows, look at Microsoft's website (http://www.microsoft.com). The procedure is different for different versions of Windows. How you should do this for different versions of Windows is also described in the installation notes:
    http://java.sun.com/j2se/1.4.1/install-windows.html
    If you are using a version of the Java 2 SDK older than 1.4, you need to add the current directory (".") to the CLASSPATH environment variable. CLASSPATH is where Java looks for *.class files (compiled Java classes). Since Java 1.4, Java looks in the current directory automatically if the CLASSPATH isn't set, so you don't need to add "." to the CLASSPATH. Again, the installation notes explain what CLASSPATH is and how you should set it.
    3. Type in your first program
    Start Notepad and type in your first program:
    public class HelloWorld {
        public static void main(String[] args) {
            System.out.println("Hello World");
    }NOTE: Java is case-sensitive. Be careful to type in the program exactly as shown above. Don't type "Helloworld" or "helloworld" or anything else.
    Save the file somewhere in a file called "HelloWorld.java". NOTE: Again, the case must be correct. Even though Windows is case-insensitive for filenames, the case must be correct, because Java is case-sensitive. Also watch out that Notepad doesn't append ".txt" to the filename (so that you end up with a file called "HelloWorld.java.txt"). To make things worse, Windows Explorer hides file extensions by default so you don't even see that the file is actually called "HelloWorld.java.txt" instead of "HelloWorld.java".
    4. Compile your first program
    Open a command prompt, CD to the directory that contains your source file and type:
    javac HelloWorld.java
    NOTE: Again, the case must be exactly right.
    If all goes well, you'll not get any error messages and a file "HelloWorld.class" is generated.
    5. Run your first program
    To run your program, type:
    java HelloWorld
    NOTE: Don't type "HelloWorld.class". You are specifying the class name here, not the filename. Ofcourse, the case is important again.
    6. Read the Java tutorial
    Go to the Java website and follow The Java Tutorial:
    http://java.sun.com/docs/books/tutorial/
    The chapter "Your First Cup of Java" also explains in detail how to start with Java.
    Jesper

Maybe you are looking for

  • Calculating and Displaying the Total for a field

    Hi all, I have a template that must have a field's total at the end of each page. I use <?add-page-total: InvAmt;' ACCOUNTEDDR'?> for calculating the sum and<?show-page-total:InvAmt; 'C9G990D00';'(C9G990D00)'?> for showing the total. Its coming up pr

  • My multi-view component does not trigger WDDOMODIFY

    I have a webdynpro for abap component which displays three areas of information. The top part of the screen is a static display of a structure. The middle is a structure that displays a key field and its values. The bottom is an alv grid. It was impl

  • Open GUI using second GUI in applicatio​n but close first GUI

    HI, I have created a GUI which evaluates semiconductor parts of different families.   Objective trying to achieve Create an exe such that when the user double clicks the exe file it opens a GUI which opens a front panel with a TextRing box with diffe

  • Uploading JARS

    Hello, I am trying to deploy few jars to Oracle database, however I have the below mentioned problem. We have three databaes under one engine, say A,B and C, in database A & B, USER_JAVA_POLICY table exists where as in database C, it's not available,

  • Noob Help: Uknown Error

    Ok...so im writing this program and the issue starts at the last line of what ima post import java.util.Scanner; public class BasketballQuiz {      public static void main (String[] args) {           Scanner sc = new Scanner (System.in);           in