Error when running mortgage calc program from DOS prompt

I have a GUI Mortgage Calculator program. It probably isn't the most efficient use of code, but it gets the job done. I am running java SDK 1.6.0_06. This is a class assignment. We are to compile the code and post the .class file for our team members to run. I am trying to get the .class file to run after I compile it with javac. I used jCreator LE to create it... it compiles and runs there just fine. The program will compile at the DOS prompt, but will not run properly. The following is the error I get (any help would be appreciated):
Exception in thread "mani" java.lang.NoClassDefFoundError: manchorMortgage3
Caused by: java.lang.ClassNotFoundException: manchorMortgage3
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader1.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Below is my code:
* manchorMortgage3.java
* Created on July 10, 2008
* This program calculates and displays the mortgage amount
* from user input of the amount of the mortgage and the user's
* selection from a menu of available mortgage loans.
import java.math.*; //*loan calculator
import java.text.*; //*formats numbers
import java.util.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class manchorMortgage3 extends javax.swing.JFrame {
    /** Creates new form manchorMortgage3 */
         public manchorMortgage3() {
         initComponents();
         setLocation(300,200);
    /** This method is called from within the constructor to
     * initialize the form.
    // Begin Initialize Components
    private void initComponents() {
        mortgageAmount = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        termAndInterest = new javax.swing.JLabel();
        jRadioButton1 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();
        jRadioButton3 = new javax.swing.JRadioButton();
        calcButton = new javax.swing.JButton();
        enterAmount = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jButton2 = new javax.swing.JButton();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Manchor - Mortgage Calculator - Week 3");
        mortgageAmount.setText("Enter the Mortgage Amount:");
        termAndInterest.setText("Select Your Term and Interest Rate:");
        jRadioButton1.setText("7 years at 5.35%");
        jRadioButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        jRadioButton1.setMargin(new java.awt.Insets(0, 0, 0, 0));
        jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton1ActionPerformed(evt);
        jRadioButton2.setText("15 years at 5.5%");
        jRadioButton2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        jRadioButton2.setMargin(new java.awt.Insets(0, 0, 0, 0));
        jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton2ActionPerformed(evt);
        jRadioButton3.setText("30 years at 5.75%");
        jRadioButton3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        jRadioButton3.setMargin(new java.awt.Insets(0, 0, 0, 0));
        jRadioButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton3ActionPerformed(evt);
        calcButton.setText("Calculate");
        calcButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                calcButtonActionPerformed(evt);
        jTextArea1.setColumns(20);
        jTextArea1.setEditable(false);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);
        jButton2.setText("Quit");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addComponent(enterAmount)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 222, Short.MAX_VALUE)
                            .addComponent(calcButton)
                            .addGap(75, 75, 75))
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jRadioButton3)
                                .addComponent(jRadioButton2)
                                .addComponent(jRadioButton1)
                                .addComponent(termAndInterest)
                                .addComponent(mortgageAmount)
                                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap(224, Short.MAX_VALUE)))))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(277, Short.MAX_VALUE)
                .addComponent(jButton2)
                .addGap(70, 70, 70))
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addComponent(mortgageAmount)
                .addGap(14, 14, 14)
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addComponent(termAndInterest)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButton1)
                .addGap(15, 15, 15)
                .addComponent(jRadioButton2)
                .addGap(19, 19, 19)
                .addComponent(jRadioButton3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(calcButton)
                    .addComponent(enterAmount))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jButton2)
                .addGap(20, 20, 20))
        pack();
    }// End initialize components
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//event_jButton2ActionPerformed
        System.exit(1);
    }//event_jButton2ActionPerformed
    static NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US);
    static NumberFormat np = NumberFormat.getPercentInstance();
    static NumberFormat ni = NumberFormat.getIntegerInstance();
    static BufferedReader br;
    private void calcButtonActionPerformed(java.awt.event.ActionEvent evt) {//event_calcButtonActionPerformed
        enterAmount.setText(null);
        jTextArea1.setText(null);
        double monthlyPayment;
        double interest;
        double amount ;       
        int years ;
        double monthlyInterest, monthlyPrinciple, principleBalance;
        int paymentsRemaining, lineCount;
        np.setMinimumFractionDigits(2);
    br = new BufferedReader(new InputStreamReader(System.in));
  lineCount = 0;
        try
                amount=Double.parseDouble(jTextField1.getText());
        catch (Exception e)
            enterAmount.setText("Please Enter Mortgage Amount");
            return;
        if(jRadioButton1.isSelected())
            interest=0.0535;
            years=7;
        else if(jRadioButton2.isSelected())
            interest=0.055;
            years=15;
        else if(jRadioButton3.isSelected())
            interest=0.0575;
            years=30;
        else
            enterAmount.setText("Please Select Your Term and Interest Rate");
            return;
    jTextArea1.append(" For a mortgage of " + nf.format(amount)+"\n"+" With a Term of " + ni.format(years) + " years"+"\n"+" And an Interest rate of " + np.format(interest)+"\n"+" The Payment Amount is " + nf.format(getMortgagePmt(amount, years, interest)) + " per month."+"\n"+"\n");
    principleBalance = amount - ((getMortgagePmt(amount, years, interest)) - (amount*(interest/12)));
    paymentsRemaining = 0;
    do
        monthlyInterest = principleBalance * (interest/12);//*Current monthly interest
         monthlyPrinciple = (getMortgagePmt(amount, years, interest)) - monthlyInterest;//*Principal payment each month minus interest
        paymentsRemaining = paymentsRemaining + 1;
        principleBalance = principleBalance - monthlyPrinciple;//*New balance of loan
        jTextArea1.append(" Principal on payment  " + ni.format(paymentsRemaining) + " is " + nf.format(monthlyPrinciple)+"\n");
                jTextArea1.append(" Interest on payment  " + ni.format(paymentsRemaining) + " is " + nf.format(monthlyInterest)+"\n");
                jTextArea1.append(" New loan balance on payment  " + ni.format(paymentsRemaining) + " is " + nf.format(principleBalance)+"\n"+"\n"+"\n");
     while (principleBalance > 1);
    }//Begin event_jRadioBtton1Action Performed
    public static double getMortgagePmt(double balance, double term, double rate)
            double monthlyRate = rate / 12;
            double monthlyPayment = (balance * monthlyRate)/(1-Math.pow(1+monthlyRate, - term * 12));
            return monthlyPayment;
    private void jRadioButton3ActionPerformed(java.awt.event.ActionEvent evt) {//Begin event_jRadioButton3ActionPerformed
         if(jRadioButton2.isSelected())
            jRadioButton2.setSelected(false);
         if(jRadioButton1.isSelected())
            jRadioButton1.setSelected(false);
    }//End event_jRadioButton3ActionPerformed
    private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) {//Begin event_jRadioButton2ActionPerformed
         if(jRadioButton1.isSelected())
            jRadioButton1.setSelected(false);
         if(jRadioButton3.isSelected())
            jRadioButton3.setSelected(false);
    }//End event_jRadioButton2ActionPerformed
    private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton1ActionPerformed
        if(jRadioButton2.isSelected())
            jRadioButton2.setSelected(false);
        if(jRadioButton3.isSelected())
            jRadioButton3.setSelected(false);
    }//End event_jRadioButton1ActionPerformed
     * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new manchorMortgage3().setVisible(true);
    // Begin variables declaration
    private javax.swing.JButton calcButton;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel mortgageAmount;
    private javax.swing.JLabel termAndInterest;
    private javax.swing.JLabel enterAmount;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JRadioButton jRadioButton3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jTextField1;
    // End  variables declaration
}

The class is not in your classpath. Likely you blew away your classpath with some silly environment variable.
If you are in the directory where your class file is then execute
java -cp . manchorMortgage3and it will work. (Note the -cp . which tells java to include the current directory in the runtime classpath)

Similar Messages

  • I get errors When running the example programs SampleMetadataDiscoverer10g

    I installed database is 10g release 2 on Windows XP,and AWM version is 102010A.
    When running the example programs SampleMetadataDiscoverer10g.java to get the OLAP metadata,I get the following errors:
    oracle.express.idl.util.OlapiException: java.sql.SQLException: ORA-37158: CLOB 或可变数组输入参数错误: (情形 6)
    ORA-06512: 在 "SYS.GENSERVERINTERFACE", line 46
    ORA-06512: 在 line 1
    at oracle.express.idl.ExpressConnectionModule.ServerInterfaceStub.connect(ServerInterfaceStub.java:694)
    at oracle.express.olapi.data.full.ExpressDataProvider.connect(ExpressDataProvider.java:436)
    at oracle.express.olapi.data.full.ExpressDataProvider.initialize(ExpressDataProvider.java:282)
    at oracle.olapi.examples.chapter4.MyConnection10g.connectToDB(MyConnection10g.java:126)
    at oracle.olapi.examples.chapter4.SampleMetadataDiscoverer10g.initialize(SampleMetadataDiscoverer10g.java:57)
    at oracle.olapi.examples.BaseExample.execute(BaseExample.java:32)
    at oracle.olapi.examples.BaseExample.execute(BaseExample.java:46)
    at oracle.olapi.examples.chapter4.SampleMetadataDiscoverer10g.main(SampleMetadataDiscoverer10g.java:44)
    Closing JDBC connection.
    Closed the connection.
    please..can someone give me some advice? thanks!

    I got the same error while doing "dp.initialize()"
    I fixed this error by chang the the "olap_api.jar class12.jar" to "o4j.jar".
    But i can't explain that.
    Can anyone tell me why?
    By the way , the "olap_api.jar class12.jar" are copy from the %ORACLE_HOME%\10.2.0\db_1\olap\api\lib .

  • Error while running a ODI scenario from command prompt

    Hi,
    I'm trying to run a ODI scenario from command prompt. I've edited the tnsnames.ora and odiparam.bat file with exact host and port details. Even though I'm facing the below error.
    command:startcmd.bat OdiStartScen -SCEN_NAME=INT.CUSTOMER_STG -SCEN_VERSION=001 -CONTEXT=ICM -AGENT_CODE=KANBAN
    Error: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:orcl
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:280)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:361)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:595)
    at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
    at com.sunopsis.sql.i.run(i.java)
    Please help in resolving the error...
    Thanks in advance.
    Edited by: 894841 on Dec 22, 2011 11:15 PM

    Hi,
    Are you able to start the Standalone Agent(KANBAN) and test it in the Topology?
    Check the value of the ODI_MASTER_URL variable in odiparams file(at the path <ODI_HOME>\oracledi\agent\bin) of the agent.
    Specify the full the JDBC URL properly not like localhost(until the DB is on same machine as your ODI).

  • Error when running workflow inititiation program

    Hi,
    I get the following error when I try to run my java application which initiates
    a BPM workflow.
    <Nov 28, 2001 3:21:32 PM PST> <Error> <B2B> <<WLC-WLPI-Plugin> ERROR: WLC-WLPI
    p
    lugin must be initialized before creating workflow instances>
    Exception occured: com.bea.b2b.wlpi.WLPIException: ERROR: WLC-WLPI plugin must
    be initialized before creating workflow instances
    I could not find any documentation on how to perform this step. Can anyone please
    help. I have also attached this program.
    --Krish.
    [PIP3A2_Customer_RN2.java]

    Yes the B2B server is started and running. I see these two final messages which
    I believe is the indication that the server is up and running.
    Initialized WebLogic Integration Plugin Framework version 2.1
    Started WebLogic Integration - BPM Server version 2.1
    --Krish.
    "Adrian Price" <[email protected]> wrote:
    Are you sure the server has finished starting up? You should see a console
    message about WebLogic Integration 2.1 started when it is ready to service
    client requests.
    "Krish Khambadkone" <[email protected]> wrote in message
    news:3c057360$[email protected]..
    Hi,
    I get the following error when I try to run my java application whichinitiates
    a BPM workflow.
    <Nov 28, 2001 3:21:32 PM PST> <Error> <B2B> <<WLC-WLPI-Plugin> ERROR:WLC-WLPI
    p
    lugin must be initialized before creating workflow instances>
    Exception occured: com.bea.b2b.wlpi.WLPIException: ERROR: WLC-WLPIplugin
    must
    be initialized before creating workflow instances
    I could not find any documentation on how to perform this step. Cananyone
    please
    help. I have also attached this program.
    --Krish.

  • Error when running the LabVIEW program

    hello...........
    I'm newbie in LabVIEW....I have a problem when i'm running the LabVIEW program...i want to analyse data using the LabVIEW through the real experiment....
    My problem is, there is an Error when i try to start the program...This Error forced me to restart the program several times until it can run.......By the way, i'm using Picoscopes 3206 to connect the LabVIEW program in PC with the real experiment.....
    Here, I'm attached the picture that I snap when the Error occur....
    Attachments:
    error.JPG ‏222 KB

    You have to try to isolate the problem...
    Use 'Diagram disable' or 'Case' structure to run special part of code or try write a specific code to access and manage your equipment.
    Several questions could help: 
    - Are you up to date with your hardware driver?
    - Do you call external ressources (ex: dll)? perhaps with instability
    - Do you properly close connection with your equipment after using? 
    - With your offline mode, do you load all the code, including hardware driver or do you use a special method without no loading the specific code?
    - When you are able to run after many tries, is the program stable? Can you re-start it without exiting LabVIEW?

  • Error When running the Client Program

    hi all,
    i got exception while running the Client program
    "Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]"
    plz solve my problem ASAP.
    thanks in advance..
    from
    sree

    thanks this problem solved...
    but i got another exception
    javax.naming.NameNotFoundException: Unable to resolve 'ExeBean' Resolved: '' Unresolved:'ExeBean' ; remaining name 'ExeBean'
    thanks in advance
    from
    Sree

  • Can't run java or javac from dos prompt

    I just installed j2sdk1.4.1 on win98SE. I have a problem where I can't seem to be able to compile or run an application from the dos prompt. I can do both in Visualage for Java or in JGrasp but not at the DOS Prompt. I have set the PATH statement to PATH=c:\j2dsk1.4.1\bin and the classpath=c:\j2sdk1.4.1\lib. The following is a typical error message:
    javac RunApplet.java
    RunApplet.java:8: cannot resolve symbol
    symbol : class MyApplet
    location: class RunApplet
    MyApplet myApplet = new MyApplet():
    RunApplet..java:8: cannot resolve symbol
    symbol : class MyApplet
    location: class RunApplet
    MyApplet myApplet = new MyApplet()
    2 errors
    java RunApplet.class
    Exception in thread "main" java.lang.NoClassDefFoundError: RunApplet/class
    It seems like the system can't locate the class files?
    Also is there away to use more than the standard 8.3 charecter set in the DOS prompt window?
    TIA

    javac RunApplet.java
    RunApplet.java:8: cannot resolve symbol
    symbol : class MyApplet
    location: class RunApplet
    MyApplet myApplet = new MyApplet():
    RunApplet..java:8: cannot resolve symbol
    symbol : class MyApplet
    location: class RunApplet
    MyApplet myApplet = new MyApplet()
    2 errorsMost likely a Classpath problem. I suggest changing your classpath to:
    classpath=.;c:\j2sdk1.4.1\lib
    java RunApplet.class
    Exception in thread "main"
    java.lang.NoClassDefFoundError: RunApplet/class2 problems. As ChuckBing says, the command needs to be "java RunApplet" with no .class. The argument to the java command is the class name, not a file name. The second problem - if you do not have a successful compilation, there won't be any .class file to run.

  • Error when running EXE but not from editor. How do I find it?

    When I run my app from the editor, the program works fine. But when I try to run the EXE, I get an "index out of range" error. (???)
    I examined my code extensively but I can't figure out for the life of me where the error's coming from.
    Any advice on how to track it down? Thanks.

    Find out what is using indexes then correct whichever code is using indexes. Apparently you have not examined your code extensively enough.
    Can't you see details of the error and find what line the error occured on?
    La vida loca
    Monkeyboy brings an interesting point.
    Try wrapping all of your code in a try-catch block and msgboxing the stacktrace, that way you can find the line.
    “If you want something you've never had, you need to do something you've never done.”
    Don't forget to mark
    helpful posts and answers
    ! Answer an interesting question? Write a
    new article
    about it! My Articles
    *This post does not reflect the opinion of Microsoft, or its employees.

  • Error when running a oci program

    I have a oci program copiled on solaris.when i try to run it in another machine it stops giving a strange message:: I get the
    following error message.
    fatal: relocation error: file sqlplus: symbol naemd5s: reference symbol not found
    : killed
    null

    i'm OCI or SQLPLUS is not installed properly on the other machine. could you please reinstall oracle and make sure libraries are complete.

  • Error when running captive runtime .exe from root directory of drive.

    Platform: Windows
    Specifics: Captive runtime desktop app using an ANE.
    Problem:  I am distributing the app on a flash drive. Ideally,the .exe will be on the root of the drive, so the user will not need to enter a subdirectory. I'm mostly concerned about users moving the software and getting frustrated by this error.
    The error is "Adobe Air: The installation of this application is damaged. Try re-installing or contacting the publisher for assistance."
    Here's an example. Importantly, this error only occurs when an ANE is included. I tried a few different ANE files created by others, and simply adding them to the project produces the error. I don't even need to use the ANE anywhere in my code.
    https://www.dropbox.com/s/epfj0138pfbmu49/soExample.7z
    This is a simple application with a few blank buttons. Try extracting in a subdirectory somewhere, and then moving to the root of a flash drive or any other drive. However, I don't recommend running code from strangers on the top directory of your C:\ drive.
    Additionally, I installed Apache Flex 4.12 but the error persists. The text simply changed to "Initial content could not be loaded for this application. Try re-installing or contacting the publisher for assistance."
    https://www.dropbox.com/s/epfj0138pfbmu49/soExample.7z

    I did some more testing. Same issue occurs if I create a captive runtime app from Flash Pro. It also happens when I use the Adobe Air installer, but install to the root directory.
    Can anyone think of a workaround?

  • Error when run UNIX Shell Script from PL/SQL

    when I run command.
    I got the error message, please anyone suggest me., what's problem?
    thanks in advance.
    modd
    exec shell('ls')
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: '/modd/test/shell.so' is not a valid load module: Bad magic number
    ORA-06512: at "modd.SHELL", line 0
    ORA-06512: at line 1

    Hi
    Try to add
    (ENVS=EXTPROC_DLLS=ANY) to listener.ora
    eg:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/product/9.2)
    (ENVS=EXTPROC_DLLS=ANY)
    (PROGRAM = extproc)
    lajos

  • Error when running Web Service Proxy from JDev (running publisher report)

    Hello.
    I would like to call publisher report from forms, so i was using this instructions:
    http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v21.pdf
    When i test my Web Service Proxy, i get this warning:
    WARNING: The received SOAP fault contains non standard fault element: "{http://xml.apache.org/axis/}hostname". This element will be ignored.
    javax.xml.rpc.soap.SOAPFaultException: oracle.apps.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to oracle.apps.xdo.servlet.CreateException: Report definition not found:/Path/Employees.xdo
    at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:555)
    at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:396)
    at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
    at bip_webservice.proxy.runtime.PublicReportServiceSoapBinding_Stub.runReport(PublicReportServiceSoapBinding_Stub.java:290)
    at bip_webservice.proxy.PublicReportServiceClient.runReport(PublicReportServiceClient.java:105)
    at bip_webservice.proxy.PublicReportServiceClient.main(PublicReportServiceClient.java:79)
    What is wrong? Did anyone try those instructions?
    Thanks.

    I am getting the same error. What was the solution that worked for you? Please help

  • Error while running OWB mapping package from sql prompt

    hi all,
    i have deployed my owb mapping in oracle. Now i want to execute this from the sql prompt. the foolowing error is giving when i try to run.
    SQL> DECLARE
    2 RetVal NUMBER;
    3 P_ENV WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
    4 BEGIN
    5 RetVal := TEST1.TEST_MAP.MAIN ( P_ENV );
    6 END;
    7 /
    RetVal := TEST1.TEST_MAP.MAIN ( P_ENV );
    ERROR at line 5:
    ORA-06550: line 5, column 19:
    PLS-00302: component 'TEST_MAP' must be declared
    ORA-06550: line 5, column 3:
    PL/SQL: Statement ignored
    pls help me for finding the solution.
    -Regards
    Raj Kumar

    You need to split your data and create (at least 5) worksheet targets.
    For example if you have a ROW_NUMBER column you can use for instance a
    Conditional Split for something like:
    ROW_NUMBER % 5 == 0 for Case 1 (excel 1)
    ROW_NUMBER % 5 == 1 for Case 2 (excel 2)
    ROW_NUMBER % 5 == 2 for Case 3 (excel 3)
    ROW_NUMBER % 5 == 3 for Case 4 (excel 4)
    ROW_NUMBER % 5 == 4 for Case 5 (excel 5)

  • Running java program from DOS

    I have just installed JDK 5.0 (update 4) and have tried writing a small demo program. The .class module is created ok but when invoking java I get "Exception in thread "main" java.lang.NoClassDefFoundError. I am running java from a DOS batch file with one command of c:\progra~1\java\jdk15~1.0_0\java %1. A similar batch file is used to invoke javac which works.
    Any ideas what I'm doing wrong? Thanks.

    You can't run a Java program from DOS, in fact you can't even install a JRE under that old operating system as Java requires a 32 bit or 64 bit operating system architecture which DOS never offered.
    But on the off chance you mean a command prompt from Windows...
    Check your classpath, most likely you forgot to add the current directory to that.

  • Ora-0000 when submitting a concurrent program from DB trigger

    Hello,
    I am getting following error when submitting a concurrent program from a trigger.
    ORA-20002: ORA-20026: 10322991ORA-0000: normal, successful completion
    ORA-06512: at "APPS.NPX_RUN_PICKR", line 63
    ORA-04088: error during execution of trigger 'APPS.NPX_RUN_PICKR'Though, this indicates normal successful completion, it does not generate any request_id. Nor, it launches the concurrent request.
    Below is the trigger code. Any idea why this is happening? Thanks, R
    CREATE OR REPLACE TRIGGER APPS.NPX_RUN_PICKR
    AFTER INSERT
    ON APPS.NPX_PICK_RELEASE
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
       p_printer        VARCHAR2 (240);
          p_print_flag     BOOLEAN;
          --concurrent_request variables
          l_request_id     NUMBER;
          --initializing variables
          l_app_id         NUMBER;
          l_resp_id        NUMBER;
          --pick_release variables
          v_out            VARCHAR2 (500);
          lorg number;
         errx varchar2(2000);
         p_message varchar2(2000); 
         result boolean;
       BEGIN
          p_printer := fnd_profile.VALUE ('PRINTER');
          p_print_flag :=
             fnd_request.set_print_options (p_printer,                  -- printer
                                            'LANDSCAPE',                  -- style
                                            0,                           -- copies
                                            TRUE,                   -- save output
                                            ''                   -- print together
                                           result:= FND_Request.Set_Mode(TRUE);
          l_request_id :=
             fnd_request.submit_request (application      => 'NPX',
                                         program          => 'NPXIBOXPICK',
                                         description      => NULL,
                                         start_time       => NULL,
                                         sub_request      => FALSE,
                                         argument1 => :New.order_number,
                                         argument2 => :New.org_id
          IF l_request_id = 0
          THEN                                   
             errx := sqlerrm;
             p_message :=:New.Order_Number ||errx;
                      raise_application_error
                       (-20026, p_message);
          end if;
    exception when others then
    errx := sqlerrm;
    raise_application_error(-20002,errx);
    end;

    Hello Hussein,
    It is 11.5.10.2.
    The line 63 represents following block
    IF l_request_id = 0
          THEN                                   
             errx := sqlerrm;
             p_message :=:New.Order_Number ||errx;
                      raise_application_error
                       (-20026, p_message);
          end if;Thanks,
    R

Maybe you are looking for

  • Problem with tv tuner

    Hi...! i'm using hp pavilion dv4 1133tx Entertainment Notebook PC with windows vista Home premium. When i turn on tv tuner in windows media center the fan speed increasing too much making too much noise. also getting heat left side to the touch pad.

  • Moving columns in Numbers - it's not letting me do it!

    I seem to have this bizarre bug in Numbers, and it can't be normal behaviour. If I click on a column tab, it doesn't highlight the one column, it highlights the whole spreadsheet. Similarly, I can't select, say, cell D1 and drag the cursor down to D2

  • Making a list of servers

    Hey guys, I was hoping you all would give me you opinion on this. I need to make a list of server that are currently up (For my game). I can kind of get it to work by adding the server to the list when I start the program, And I can remove it from th

  • Does garageband for iOS include the lessons function?

    Sorry if this is a dumb question, but i see that they specifically mention this on the Mac OS version writeup, but not the iOS version. I'd like to try it out for the lessons. Thanks for the advice! Glen

  • Datasource creation in EP

    I have a Jsp web application currently running On oracle. I need to migrate this application to Enterprise portal. Could anyone provide me information of creating datasource in EP and necessary steps to establisg Oracle connection for Jsp/Servlet app