Excpetion with UpdatableResuleSet

Help Pleaseeeeeeeeeeeee
I am trying
stmt created as
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet rset = stmt.executeQuery(query.toString());
                    int key = 0;
                    while(rset.next()) {
                         key = rset.getInt(1);
                    if(key!=0) {
                         rs.updateInt(3,key);
where rs is another resultset
I am getting this exception
Exception in thread "main" java.lang.NullPointerException
     at oracle.jdbc.driver.UpdatableResultSet.getInternalMetadata(UpdatableResultSet.java:2324)
     at oracle.jdbc.driver.UpdatableResultSet.updateObject(UpdatableResultSet.java:2146)
     at oracle.jdbc.driver.UpdatableResultSet.updateInt(UpdatableResultSet.java:1956)
     at com.mdb.GetConnection.main(GetConnection.java:56)

First, there is a JDBC forum that would probably be more appropriate for this sort of thing.
Can you post the code that creates (and potentially manipulates) the rs ResultSet?
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • UnknownHostException with WLS5.1 sp6

    Hi,
    after installing sp6 for WLS5.1 whenever a client connects to the server
    we get the following exception:
    java.net.UnknownHostException: unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:449)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:585)
    at weblogic.t3.srvr.httplog.CLFLogger.log(CLFLogger.java:40)
    at weblogic.t3.srvr.httplog.LogManagerHttp.log(LogManagerHttp.java:409)
    at weblogic.t3.srvr.HttpServer.log(HttpServer.java:726)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:292)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
    The whole log file is cluttered with these messages. They go away as soon as soon
    as we downgrade
    to sp5. Any ideas?

    Hi,
    We are getting similar excpetion with WLS 6.0 also.
    I checked and "Reverse DNS allowed" flag is not checked
    on server.
    Here is a stack trace:
    java.net.UnknownHostException: unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:449)
    at
    weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:726)
    at weblogic.servlet.internal.HttpServer.logToFile(HttpServer.java:911)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:866)
    at
    weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:817)
    at
    weblogic.rjvm.http.HTTPServerJVMConnection.sendMsg(HTTPServerJVMConnection.java:360)
    at
    weblogic.rjvm.MsgAbbrevJVMConnection.sendOutMsg(MsgAbbrevJVMConnection.java:363)
    at
    weblogic.rjvm.MsgAbbrevJVMConnection.sendMsg(MsgAbbrevJVMConnection.java:173)
    at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:458)
    at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:419)
    at
    weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.java:114)
    at
    weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:122)
    at
    weblogic.rjvm.MsgAbbrevOutputStream.sendOneWay(MsgAbbrevOutputStream.java:140)
    at
    weblogic.rmi.internal.AbstractOutboundRequest.sendOneWay(AbstractOutboundRequest.java:79)
    at
    weblogic.jms.client.JMSCallback_WLStub.pushEnvelope(JMSCallback_WLStub.java:106)
    at weblogic.jms.frontend.FESession.execute(FESession.java:1826)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Regards,
    Andrew

  • Need help using Select statement  to  retrieve one record

    Hi guys, my first post so be gentle please. The basis of this fucntion is to search my dtabase using the select statement to find the record the user wants, by retrieving the name of theitem from the text box. details are then displayed on a joption message box.
    Everytime I run this program it throws an exception 'Exception: null'. Can anyone see where I am going wrong, I have only bn learning java for thepast 6 months so perhaps I am doing something wrong.
    Or perhaps there is another way for me to close the st, con, rs?
    Your help appreciated
    public void searchproducts(){
    Connection con = null;
    Statement st = null;
    ResultSet rs = null;
    try{
    //creating and loading a database connection
    String dbUrl = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=db2.mdb;"; // String dbUrl = "jdbc:odbc:people";
    String user = "";
    String password = "";
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection c = DriverManager.getConnection(
    dbUrl, user, password);
    int count;
    st = con.createStatement();
    rs = st.executeQuery("SELECT ItemName, Country, Yearmade, ValuePrice, Forsale FROM Collectman WHERE ItemName="+" '"+txtsearchproduct.getText()+"'" );
    while(rs.next()) {
    String ItemName = rs.getString(1);
    String Country = rs.getString(2);
    String Yearmade = rs.getString(3);
    String ValuePrice = rs.getString(4);
    String Forsale = rs.getString(5);
    JOptionPane.showMessageDialog(null, "product details are: " + ItemName + " " + Country + " " + Yearmade + " " + ValuePrice + " " + Forsale);
    //It keeps on throwing this excpetion with null
    catch (Exception e) {
    System.err.println("Exception: " + e.getMessage());
    } finally {
    try {
    if(rs != null)
    rs.close();
    if(st != null)
    st.close();
    if(con != null)
    con.close();
    } catch (SQLException e) {
    }

    And while we're waiting on that, I'll just say it's nice to see you almost got the general layout of a db call correct...that's a rare thing around here. The finally should have a try/catch round each of the close statements and not around all three in one go. If the resultset throws an exception in your version then you would fail to close either the statement or the connection.
    The second thing is, look up PreparedStatements. They're a better choice for handling SQL requiring variables than using a bog standard Statement.

  • How create a complex process with excpetion handling

    i need to modell a complex process which consists of subprocesses
    e.g. a shell command as subprocess
    now i want informations in the audit browser which process component fails at runtime, for example: think that the shell script fails and returns with exit 3
    i have no information in the runtime audit browser that the subprocess failed - it will always displayed as "processed" (without an error)
    so how can i make errors/warnings visible in the execution log of the audit browser

    Hello,
    managed the execution of rscrm jobs in PC as follows:
    1. Execute query through RSCRM_BAPI transaction
    2. goto sm37 and copy the Jobname (the active one)
    3. Create following progromm
    *& Report /WST/RSCRM_START *
    REPORT /WST/RSCRM_START .
    parameter: l_bid TYPE sysuuid_c.
    CALL METHOD cl_rscrmbw_bapi=>exec_rep_in_batch
    EXPORTING
    i_barepid = l_bid
    4. Execute Programm and fill the Parameter with the Jobname
    5. Save as a new program variant and use in PC as a normal program
    Very strange and I think not very nice that sap uses the jobname to control the execution....but with this workararount it works very nice.
    I hope that helps.
    Regards,

  • I have a problem with my home butten, its working but when i press it, it seems like something is stuck in it. like sand or something like that, and this is the second time it happens to me with 2 devices. what can i do?

    Ok so first sorry for my english, Im not American.
    2 months ago i bought a new Iphone 4 device from my phone company, after a month something happened to the home butten, when i pressed it it felt like something stuck in it.. like sand or dirt.. but the home butten worked perfectly. so i went to the phone company and they told me that it is a problem and they replaced it with a new one. but after a week my iphone fell and something happened to him so i sold it to someone i know, and with that money i bought a new one from privet store (unlike the last time, when i bought my iphone in a big phone company) and in the begining it felt new, i didnt had any problems, but 2 days ago when i woke up i pressed the butten and i noticed that the problem with the home butten is back.. and i dont know what to do.. i mean like its not a big deal or something, it just that when i buy something new, i excpet it to be new, and i want to ejnoy it while its new.
    so i went to some guy i know and he told me that he will see what he can do, i paid him 130 Shekels (35$) and he told my that he replaced the butten with new one, but still it makes problems. it bothers me alot, because i pay almost 300 shekels per month (75$) and i expect from this device to be new.. and its killing me.
    now, i cant go to the phone company because thats not their device, and i know what the people in the privet store will tell me.. that its my fault and bla bla bla.. so what can i do? i cant spend any more money on this..
    its new.. for some reason this always happenes to me.. 3 devices, problems problems and problems..

    You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
    and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money..

  • Issues with Installing CE 7.1, SCS Service

    Hello,
    I have tried to install the CE 7.1, unfortunately the SCS service installation seems to run into an error each time. I have attached the log down below.
    Please advise,
    Rgs Boris
    CUT OUT *********
    Aug 6, 2007 11:46:05 AM [Info]: Start external command...
    Aug 6, 2007 11:46:05 AM [Info]: Using parent environment...
    Aug 6, 2007 11:46:05 AM [Info]: Executing Argv:
    Aug 6, 2007 11:46:05 AM [Info]: Arg[0]: C:/usr/sap/CE1/SYS/exe/uc/NTI386/sapstartsrv
    Aug 6, 2007 11:46:05 AM [Info]: Arg[1]: -q
    Aug 6, 2007 11:46:05 AM [Info]: Arg[2]: -r
    Aug 6, 2007 11:46:05 AM [Info]: Arg[3]: -s
    Aug 6, 2007 11:46:05 AM [Info]: Arg[4]: CE1
    Aug 6, 2007 11:46:05 AM [Info]: Arg[5]: -p
    Aug 6, 2007 11:46:05 AM [Info]: Arg[6]: C:/usr/sap/CE1/SYS/profile/CE1_SCS00_WDFN00167350A
    Aug 6, 2007 11:46:05 AM [Info]: Arg[7]: -n
    Aug 6, 2007 11:46:05 AM [Info]: Arg[8]: 00
    Aug 6, 2007 11:46:05 AM [Info]: Arg[9]: -U
    Aug 6, 2007 11:46:05 AM [Info]: Arg[10]: NT AUTHORITY\LocalService
    Aug 6, 2007 11:46:05 AM [Info]: Arg[11]: -P
    Aug 6, 2007 11:46:05 AM [Info]: Arg[12]: ""
    Aug 6, 2007 11:46:05 AM [Info]: Process started. Try to get Streams..
    Aug 6, 2007 11:46:05 AM [Info]: Got Streams. Try to read them...
    Aug 6, 2007 11:46:48 AM [Info]: Service not started within 40 seconds.
    Aug 6, 2007 11:46:48 AM [Info]: Process exited with rc: -1
    Aug 6, 2007 11:46:48 AM [Error]: excpetion in step:
    Aug 6, 2007 11:46:48 AM [Error]:      name: CREATE_SCS_SERVICE [com.sap.xpf.controller.TaskExecutionStep]
    Aug 6, 2007 11:46:48 AM [Fatal]: com.sap.xpf.tasklib.TaskLibraryException: cannot start serice. rc was: -1
           at com.sap.instancemgt.win.SAPServiceCreateDEV.execute(SAPServiceCreateDEV.java:80)
           at com.sap.xpf.tasklib.execution.TaskExecutionObjectJava.execute(TaskExecutionObjectJava.java:54)
           at com.sap.xpf.tasklib.TaskLibraryEngine.executeTask(TaskLibraryEngine.java:256)
           at com.sap.xpf.tasklib.TaskLibraryEngine.executeTask(TaskLibraryEngine.java:264)
           at com.sap.xpf.controller.TaskExecutionStep.execute(TaskExecutionStep.java:115)
           at com.sap.xpf.controller.Controller.execute(Controller.java:506)
           at com.sap.xpf.controller.Controller.start(Controller.java:292)
           at com.sap.inst.engine.customactions.CallController.install(CallController.java:93)
           at com.zerog.ia.installer.actions.CustomAction.installSelf(DashoA8113:-1)
           at com.zerog.ia.installer.Action.install(DashoA8113:-1)
           at com.zerog.ia.installer.Action.install(DashoA8113:-1)
           at com.zerog.ia.installer.GhostDirectory.install(DashoA8113:-1)
           at com.zerog.ia.installer.Installer.install(DashoA8113:-1)
           at com.zerog.ia.installer.actions.InstallProgressAction.m(DashoA8113:-1)
           at com.zerog.ia.installer.actions.ProgressPanelAction$1.run(DashoA8113:-1)
    Aug 6, 2007 11:46:48 AM [Info]: End CREATE_SCS_SERVICE [com.sap.xpf.controller.TaskExecutionStep]
    Aug 6, 2007 11:46:48 AM [Info]: rc:   1
    Aug 6, 2007 11:46:48 AM [Info]: at:   2007.08.06 - 11.46.48[yyyy.MM.dd - HH.mm.ss]
    Aug 6, 2007 11:46:48 AM [Info]: duration:   00:00:43[HH:mm:ss]
    Aug 6, 2007 11:46:48 AM [Info]:
    Aug 6, 2007 11:46:48 AM [Info]: Error during executing
    Aug 6, 2007 11:46:48 AM [Info]: End Controller
    Aug 6, 2007 11:46:48 AM [Info]:   at          : 2007.08.06 - 11.46.48[yyyy.MM.dd - HH.mm.ss]
    Aug 6, 2007 11:46:48 AM [Info]:   durationt   : 00:17:16[HH:mm:ss]
    Aug 6, 2007 11:46:48 AM [Info]:   status   : ERROR
    Message was edited by:
            Benny Schaich-Lebek

    Hi Boris,
    I had the same problem, so I investigated the issue a bit.
    The problem is that the timeout for installing and launching the SCS service is 40 seconds, but sometimes it happens slower than this. In this case the installer thinks that the service was not setup correctly (actually it was), and aborts.
    For me the solution was to stop every unnecessary service (like desktop search indexing, etc.) and quit all the applications. This way the installation ran without problems. Unfortunately if you have a slower pc this may not help.
    best regards,
    Csaba

  • Problem with store procedures and Hibernate

    I got some problem when I am trying to override INSERT, and UPDATE operations in Hibernate. My delete functions works fine, and everything works when i´m not override with my stored procedure, and I have no idea why. When I am trying to make an INSERT, everything seems to be fine but no data is being insert and no excpetion throws.
    When I am trying to make an UPDATE following excpetion throws:
    Could not synchronize database state with session
    org.hibernate.exception.GenericJDBCException: could not update: [labb6Hibernate.bil#18]
    Here is my hbm.xml file:
    <hibernate-mapping>
    <class catalog="Cars" name="labb6Hibernate.bil" table="Bil">
    <id name="idNum" type="java.lang.Integer">
    <column name="idNum"/>
    <generator class="identity"/>
    </id>
    <property name="marke" type="string">
    <column length="10" name="Marke" not-null="true"/>
    </property>
    <property name="modell" type="string">
    <column length="10" name="Modell" not-null="true"/>
    </property>
    <property name="arsmodell" type="string">
    <column length="4" name="Arsmodell" not-null="true"/>
    </property>
    <sql-insert callable="true"> { call insertCars(?,?,?) } </sql-insert>
    <sql-update callable="true"> { call updateCars(?,?,?) </sql-update>
    <sql-delete callable="true"> { call deleteCars(?) } </sql-delete>
    </class>
    Here is my UPDATE code:
    Session session = MyHibernateUtil.getSessionFactory().openSession();
    session.beginTransaction();
    int s = Integer.parseInt(idTxt.getText());
    bil Bil = (bil) session.get(bil.class, s);
    Bil.setIdNum(s);
    Bil.setMarke(markeTxt.getText());
    Bil.setModell(modellTxt.getText());
    Bil.setArsmodell(arsmodellTxt.getText());
    session.update(Bil);
    session.getTransaction().commit();
    session.close();
    Here is my INSERT code:
    Session session = MyHibernateUtil.getSessionFactory().openSession();
    session.beginTransaction();
    bil Bil = new bil();
    Bil.setMarke(markeTxt.getText());
    Bil.setModell(modellTxt.getText());
    Bil.setArsmodell(arsmodellTxt.getText());
    session.save(Bil);
    session.getTransaction().commit();
    session.close();
    Does anyone have an idea what is wrong in my code?

    I got some problem when I am trying to override INSERT, and UPDATE operations in Hibernate. My delete functions works fine, and everything works when i´m not override with my stored procedure, and I have no idea why. When I am trying to make an INSERT, everything seems to be fine but no data is being insert and no excpetion throws.
    When I am trying to make an UPDATE following excpetion throws:
    Could not synchronize database state with session
    org.hibernate.exception.GenericJDBCException: could not update: [labb6Hibernate.bil#18]
    Here is my hbm.xml file:
    <hibernate-mapping>
    <class catalog="Cars" name="labb6Hibernate.bil" table="Bil">
    <id name="idNum" type="java.lang.Integer">
    <column name="idNum"/>
    <generator class="identity"/>
    </id>
    <property name="marke" type="string">
    <column length="10" name="Marke" not-null="true"/>
    </property>
    <property name="modell" type="string">
    <column length="10" name="Modell" not-null="true"/>
    </property>
    <property name="arsmodell" type="string">
    <column length="4" name="Arsmodell" not-null="true"/>
    </property>
    <sql-insert callable="true"> { call insertCars(?,?,?) } </sql-insert>
    <sql-update callable="true"> { call updateCars(?,?,?) </sql-update>
    <sql-delete callable="true"> { call deleteCars(?) } </sql-delete>
    </class>
    Here is my UPDATE code:
    Session session = MyHibernateUtil.getSessionFactory().openSession();
    session.beginTransaction();
    int s = Integer.parseInt(idTxt.getText());
    bil Bil = (bil) session.get(bil.class, s);
    Bil.setIdNum(s);
    Bil.setMarke(markeTxt.getText());
    Bil.setModell(modellTxt.getText());
    Bil.setArsmodell(arsmodellTxt.getText());
    session.update(Bil);
    session.getTransaction().commit();
    session.close();
    Here is my INSERT code:
    Session session = MyHibernateUtil.getSessionFactory().openSession();
    session.beginTransaction();
    bil Bil = new bil();
    Bil.setMarke(markeTxt.getText());
    Bil.setModell(modellTxt.getText());
    Bil.setArsmodell(arsmodellTxt.getText());
    session.save(Bil);
    session.getTransaction().commit();
    session.close();
    Does anyone have an idea what is wrong in my code?

  • Problem with SubmitButton name across screens, which use the same action?

    I am using multiple submit buttons in a single JSP. The problem i am using the same action across 4 screens, and excpet the 1st screen the remaingin 3 screens have BACK & Continue button, in every page the click of back button should take back to the previous screen and continue should submit the options selected to the next screen;
    The problem is i m using to LookupDispatchAction to handle multiple submit buttons, and i m using this for buttons
    <html:submit property="method"><bean:message key="reg.bt.back"/></html:submit>
    In resource bundle reg.bt.back=Back , but i need to pass to the previous screen so how to do that
    Help needed............
    Thanks in Advance

    why can you not store the information you require in the session?
    session.setAttribute("attributename" <attribute object>);
    surely that would negate you needing to pass parameters though the http?
    but otherwise there are several ways to do this, first of all you could simply rewrite the URL, which i'll admit is slightly labour intensive, but it would do the job... of if you really wanted you could put hidden html values throughout your page, and populate them with the data you wish you pass in your request, as long as the hidden inputs are in the <form> there should be no issue here.
    N.B. you are right, i would never suggest using JS for ANYTHING to do with sessions and submitted/retrieving data when you are using a JSP.

  • Help With adding a scrollbar to my applet

    This is the source code of my applet.I wat to have an autoscroll on this applet
    i think it is usefull if i put here all the code for my project.
    ======================================================
    Class ConsolePanel:
    The file defines a class ConsolePanel. Objects of type
    ConsolePanel can be used for simple input/output exchanges with
    the user. Various routines are provided for reading and writing
    values of various types from the output. (This class gives all
    the I/O behavior of another class, Console, that represents a
    separate window for doing console-style I/O.)
    This class is dependent on another class, ConsoleCanvas.
    Note that when the console has the input focus, it is outlined with
    a bright blue border. If, in addition, the console is waiting for
    user input, then there will be a blinking cursor. If the console
    is not outlined in light blue, the user has to click on it before
    any input will be accepted.
    This is an update an earlier version of the same class,
    rewritten to use realToString() for output of floating point
    numbers..
    package myproj;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JScrollPane;
    import javax.swing.JScrollBar;
    import javax.swing.*;
    public class ConsolePanel extends JTextArea{
    static public JScrollPane scrollPane;
    // ***************************** Constructors *******************************
    public ConsolePanel() { // default constructor just provides default window title and size
    setBackground(Color.white);
    setLayout(new BorderLayout(0, 0));
    canvas = new ConsoleCanvas(500,1000);
    scrollPane = new JScrollPane(canvas);
    scrollPane.setVerticalScrollBarPolicy(
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    scrollPane.setPreferredSize( new Dimension( 1000,10000) );
    add("Center", scrollPane);
    //scrollPane.getVerticalScrollBar().setUnitIncrement(1);
    try {
    jbInit();
    } catch (Exception ex) {
    ex.printStackTrace();
    public void clear() { // clear all characters from the canvas
    canvas.clear();
    // *************************** I/O Methods *********************************
    // Methods for writing the primitive types, plus type String,
    // to the console window, with no extra spaces.
    // Note that the real-number data types, float
    // and double, a rounded version is output that will
    // use at most 10 or 11 characters. If you want to
    // output a real number with full accuracy, use
    // "con.put(String.valueOf(x))", for example.
    public void put(int x) {
    put(x, 0);
    } // Note: also handles byte and short!
    public void put(long x) {
    put(x, 0);
    public void put(double x) {
    put(x, 0);
    } // Also handles float.
    public void put(char x) {
    put(x, 0);
    public void put(boolean x) {
    put(x, 0);
    public void put(String x) {
    put(x, 0);
    // Methods for writing the primitive types, plus type String,
    // to the console window,followed by a carriage return, with
    // no extra spaces.
    public void putln(int x) {
    put(x, 0);
    newLine();
    } // Note: also handles byte and short!
    public void putln(long x) {
    put(x, 0);
    newLine();
    public void putln(double x) {
    put(x, 0);
    newLine();
    } // Also handles float.
    public void putln(char x) {
    put(x, 0);
    newLine();
    public void putln(boolean x) {
    put(x, 0);
    newLine();
    public void putln(String x) {
    put(x, 0);
    newLine();
    // Methods for writing the primitive types, plus type String,
    // to the console window, with a minimum field width of w,
    // and followed by a carriage return.
    // If outut value is less than w characters, it is padded
    // with extra spaces in front of the value.
    public void putln(int x, int w) {
    put(x, w);
    newLine();
    } // Note: also handles byte and short!
    public void putln(long x, int w) {
    put(x, w);
    newLine();
    public void putln(double x, int w) {
    put(x, w);
    newLine();
    } // Also handles float.
    public void putln(char x, int w) {
    put(x, w);
    newLine();
    public void putln(boolean x, int w) {
    put(x, w);
    newLine();
    public void putln(String x, int w) {
    put(x, w);
    newLine();
    // Method for outputting a carriage return
    public void putln() {
    newLine();
    // Methods for writing the primitive types, plus type String,
    // to the console window, with minimum field width w.
    public void put(int x, int w) {
    dumpString(String.valueOf(x), w);
    } // Note: also handles byte and short!
    public void put(long x, int w) {
    dumpString(String.valueOf(x), w);
    public void put(double x, int w) {
    dumpString(realToString(x), w);
    } // Also handles float.
    public void put(char x, int w) {
    dumpString(String.valueOf(x), w);
    public void put(boolean x, int w) {
    dumpString(String.valueOf(x), w);
    public void put(String x, int w) {
    dumpString(x, w);
    // Methods for reading in the primitive types, plus "words" and "lines".
    // The "getln..." methods discard any extra input, up to and including
    // the next carriage return.
    // A "word" read by getlnWord() is any sequence of non-blank characters.
    // A "line" read by getlnString() or getln() is everything up to next CR;
    // the carriage return is not part of the returned value, but it is
    // read and discarded.
    // Note that all input methods except getAnyChar(), peek(), the ones for lines
    // skip past any blanks and carriage returns to find a non-blank value.
    // getln() can return an empty string; getChar() and getlnChar() can
    // return a space or a linefeed ('\n') character.
    // peek() allows you to look at the next character in input, without
    // removing it from the input stream. (Note that using this
    // routine might force the user to enter a line, in order to
    // check what the next character.)
    // Acceptable boolean values are the "words": true, false, t, f, yes,
    // no, y, n, 0, or 1; uppercase letters are OK.
    // None of these can produce an error; if an error is found in input,
    // the user is forced to re-enter.
    // Available input routines are:
    // getByte() getlnByte() getShort() getlnShort()
    // getInt() getlnInt() getLong() getlnLong()
    // getFloat() getlnFloat() getDouble() getlnDouble()
    // getChar() getlnChar() peek() getAnyChar()
    // getWord() getlnWord() getln() getString() getlnString()
    // (getlnString is the same as getln and is onlyprovided for consistency.)
    public byte getlnByte() {
    byte x = getByte();
    emptyBuffer();
    return x;
    public short getlnShort() {
    short x = getShort();
    emptyBuffer();
    return x;
    public int getlnInt() {
    int x = getInt();
    emptyBuffer();
    return x;
    public long getlnLong() {
    long x = getLong();
    emptyBuffer();
    return x;
    public float getlnFloat() {
    float x = getFloat();
    emptyBuffer();
    return x;
    public double getlnDouble() {
    double x = getDouble();
    emptyBuffer();
    return x;
    public char getlnChar() {
    char x = getChar();
    emptyBuffer();
    return x;
    public boolean getlnBoolean() {
    boolean x = getBoolean();
    emptyBuffer();
    return x;
    public String getlnWord() {
    String x = getWord();
    emptyBuffer();
    return x;
    public String getlnString() {
    return getln();
    } // same as getln()
    public String getln() {
    StringBuffer s = new StringBuffer(100);
    char ch = readChar();
    while (ch != '\n') {
    s.append(ch);
    ch = readChar();
    return s.toString();
    public byte getByte() {
    return (byte) readInteger( -128L, 127L);
    public short getShort() {
    return (short) readInteger( -32768L, 32767L);
    public int getInt() {
    return (int) readInteger((long) Integer.MIN_VALUE,
    (long) Integer.MAX_VALUE);
    public long getLong() {
    return readInteger(Long.MIN_VALUE, Long.MAX_VALUE);
    public char getAnyChar() {
    return readChar();
    public char peek() {
    return lookChar();
    public char getChar() { // skip spaces & cr's, then return next char
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n') {
    dumpString("? ", 0);
    ch = lookChar();
    return readChar();
    public float getFloat() { // can return positive or negative infinity
    float x = 0.0F;
    while (true) {
    String str = readRealString();
    if (str.equals("")) {
    errorMessage("Illegal floating point input.",
    "Real number in the range " + Float.MIN_VALUE +
    " to " + Float.MAX_VALUE);
    } else {
    Float f = null;
    try {
    f = Float.valueOf(str);
    } catch (NumberFormatException e) {
    errorMessage("Illegal floating point input.",
    "Real number in the range " + Float.MIN_VALUE +
    " to " + Float.MAX_VALUE);
    continue;
    if (f.isInfinite()) {
    errorMessage("Floating point input outside of legal range.",
    "Real number in the range " + Float.MIN_VALUE +
    " to " + Float.MAX_VALUE);
    continue;
    x = f.floatValue();
    break;
    return x;
    public double getDouble() {
    double x = 0.0;
    while (true) {
    String str = readRealString();
    if (str.equals("")) {
    errorMessage("Illegal floating point input",
    "Real number in the range " + Double.MIN_VALUE +
    " to " + Double.MAX_VALUE);
    } else {
    Double f = null;
    try {
    f = Double.valueOf(str);
    } catch (NumberFormatException e) {
    errorMessage("Illegal floating point input",
    "Real number in the range " + Double.MIN_VALUE +
    " to " + Double.MAX_VALUE);
    continue;
    if (f.isInfinite()) {
    errorMessage("Floating point input outside of legal range.",
    "Real number in the range " + Double.MIN_VALUE +
    " to " + Double.MAX_VALUE);
    continue;
    x = f.doubleValue();
    break;
    return x;
    public String getWord() {
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n') {
    dumpString("? ", 0);
    ch = lookChar();
    StringBuffer str = new StringBuffer(50);
    while (ch != ' ' && ch != '\n') {
    str.append(readChar());
    ch = lookChar();
    return str.toString();
    public boolean getBoolean() {
    boolean ans = false;
    while (true) {
    String s = getWord();
    if (s.equalsIgnoreCase("true") || s.equalsIgnoreCase("t") ||
    s.equalsIgnoreCase("yes") || s.equalsIgnoreCase("y") ||
    s.equals("1")) {
    ans = true;
    break;
    } else if (s.equalsIgnoreCase("false") || s.equalsIgnoreCase("f") ||
    s.equalsIgnoreCase("no") || s.equalsIgnoreCase("n") ||
    s.equals("0")) {
    ans = false;
    break;
    } else {
    errorMessage("Illegal boolean input value.",
    "one of: true, false, t, f, yes, no, y, n, 0, or 1");
    return ans;
    // ***************** Everything beyond this point is private *******************
    // ********************** Utility routines for input/output ********************
    private ConsoleCanvas canvas; // the canvas where I/O is displayed
    private String buffer = null; // one line read from input
    private int pos = 0; // position next char in input line that has
    // not yet been processed
    private String readRealString() { // read chars from input following syntax of real numbers
    StringBuffer s = new StringBuffer(50);
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n') {
    dumpString("? ", 0);
    ch = lookChar();
    if (ch == '-' || ch == '+') {
    s.append(readChar());
    ch = lookChar();
    while (ch == ' ') {
    readChar();
    ch = lookChar();
    } while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    if (ch == '.') {
    s.append(readChar());
    ch = lookChar();
    while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    if (ch == 'E' || ch == 'e') {
    s.append(readChar());
    ch = lookChar();
    if (ch == '-' || ch == '+') {
    s.append(readChar());
    ch = lookChar();
    } while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    return s.toString();
    private long readInteger(long min, long max) { // read long integer, limited to specified range
    long x = 0;
    while (true) {
    StringBuffer s = new StringBuffer(34);
    char ch = lookChar();
    while (ch == ' ' || ch == '\n') {
    readChar();
    if (ch == '\n') {
    dumpString("? ", 0);
    ch = lookChar();
    if (ch == '-' || ch == '+') {
    s.append(readChar());
    ch = lookChar();
    while (ch == ' ') {
    readChar();
    ch = lookChar();
    } while (ch >= '0' && ch <= '9') {
    s.append(readChar());
    ch = lookChar();
    if (s.equals("")) {
    errorMessage("Illegal integer input.",
    "Integer in the range " + min + " to " + max);
    } else {
    String str = s.toString();
    try {
    x = Long.parseLong(str);
    } catch (NumberFormatException e) {
    errorMessage("Illegal integer input.",
    "Integer in the range " + min + " to " + max);
    continue;
    if (x < min || x > max) {
    errorMessage("Integer input outside of legal range.",
    "Integer in the range " + min + " to " + max);
    continue;
    break;
    return x;
    private static String realToString(double x) {
    // Goal is to get a reasonable representation of x in at most
    // 10 characters, or 11 characters if x is negative.
    if (Double.isNaN(x)) {
    return "undefined";
    if (Double.isInfinite(x)) {
    if (x < 0) {
    return "-INF";
    } else {
    return "INF";
    if (Math.abs(x) <= 5000000000.0 && Math.rint(x) == x) {
    return String.valueOf((long) x);
    String s = String.valueOf(x);
    if (s.length() <= 10) {
    return s;
    boolean neg = false;
    if (x < 0) {
    neg = true;
    x = -x;
    s = String.valueOf(x);
    if (x >= 0.00005 && x <= 50000000 &&
    (s.indexOf('E') == -1 && s.indexOf('e') == -1)) { // trim x to 10 chars max
    s = round(s, 10);
    s = trimZeros(s);
    } else if (x > 1) { // construct exponential form with positive exponent
    long power = (long) Math.floor(Math.log(x) / Math.log(10));
    String exp = "E" + power;
    int numlength = 10 - exp.length();
    x = x / Math.pow(10, power);
    s = String.valueOf(x);
    s = round(s, numlength);
    s = trimZeros(s);
    s += exp;
    } else { // constuct exponential form
    long power = (long) Math.ceil( -Math.log(x) / Math.log(10));
    String exp = "E-" + power;
    int numlength = 10 - exp.length();
    x = x * Math.pow(10, power);
    s = String.valueOf(x);
    s = round(s, numlength);
    s = trimZeros(s);
    s += exp;
    if (neg) {
    return "-" + s;
    } else {
    return s;
    private static String trimZeros(String num) { // used by realToString
    if (num.indexOf('.') >= 0 && num.charAt(num.length() - 1) == '0') {
    int i = num.length() - 1;
    while (num.charAt(i) == '0') {
    i--;
    if (num.charAt(i) == '.') {
    num = num.substring(0, i);
    } else {
    num = num.substring(0, i + 1);
    return num;
    private static String round(String num, int length) { // used by realToString
    if (num.indexOf('.') < 0) {
    return num;
    if (num.length() <= length) {
    return num;
    if (num.charAt(length) >= '5' && num.charAt(length) != '.') {
    char[] temp = new char[length + 1];
    int ct = length;
    boolean rounding = true;
    for (int i = length - 1; i >= 0; i--) {
    temp[ct] = num.charAt(i);
    if (rounding && temp[ct] != '.') {
    if (temp[ct] < '9') {
    temp[ct]++;
    rounding = false;
    } else {
    temp[ct] = '0';
    ct--;
    if (rounding) {
    temp[ct] = '1';
    ct--;
    // ct is -1 or 0
    return new String(temp, ct + 1, length - ct);
    } else {
    return num.substring(0, length);
    private void dumpString(String str, int w) { // output string to console
    for (int i = str.length(); i < w; i++) {
    canvas.addChar(' ');
    for (int i = 0; i < str.length(); i++) {
    if ((int) str.charAt(i) >= 0x20 && (int) str.charAt(i) != 0x7F) { // no control chars or delete
    canvas.addChar(str.charAt(i));
    } else if (str.charAt(i) == '\n' || str.charAt(i) == '\r') {
    newLine();
    private void errorMessage(String message, String expecting) {
    // inform user of error and force user to re-enter.
    newLine();
    dumpString(" *** Error in input: " + message + "\n", 0);
    dumpString(" *** Expecting: " + expecting + "\n", 0);
    dumpString(" *** Discarding Input: ", 0);
    if (lookChar() == '\n') {
    dumpString("(end-of-line)\n\n", 0);
    } else {
    while (lookChar() != '\n') {
    canvas.addChar(readChar());
    dumpString("\n\n", 0);
    dumpString("Please re-enter: ", 0);
    readChar(); // discard the end-of-line character
    private char lookChar() { // return next character from input
    if (buffer == null || pos > buffer.length()) {
    fillBuffer();
    if (pos == buffer.length()) {
    return '\n';
    return buffer.charAt(pos);
    private char readChar() { // return and discard next character from input
    char ch = lookChar();
    pos++;
    return ch;
    private void newLine() { // output a CR to console
    canvas.addCR();
    private void fillBuffer() { // Wait for user to type a line and press return,
    // and put the typed line into the buffer.
    buffer = canvas.readLine();
    pos = 0;
    private void emptyBuffer() { // discard the rest of the current line of input
    buffer = null;
    public void clearBuffers() { // I expect this will only be called by
    // CanvasApplet when a program ends. It should
    // not be called in the middle of a running program.
    buffer = null;
    canvas.clearTypeAhead();
    private void jbInit() throws Exception {
    this.setNextFocusableComponent(scrollPane);
    this.setToolTipText("");
    } // end of class Console
    ============================================================
    Class ConsoleCanvas:
    /* A class that implements basic console-oriented input/output, for use with
    Console.java and ConsolePanel.java. This class provides the basic character IO.
    Higher-leve fucntions (reading and writing numbers, booleans, etc) are provided
    in Console.java and ConolePanel.java.
    (This vesion of ConsoleCanvas is an udate of an earilier version, rewritten to
    be compliand with Java 1.1. David Eck; July 17, 1998.)
    (Modified August 16, 1998 to add the
    a mousePressed method to ConsoleCanvas. The mousePressed method requests
    the focus. This is necessary for Sun's Java implementation -- though not,
    apparently for anyone else's. Also added: an isFocusTraversable() method)
    MouseListener interface and
    Minor modifications, February 9, 2000, some glitches in the graphics.
    package myproj;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class ConsoleCanvas extends JTextArea implements FocusListener, KeyListener,
    MouseListener {
    // public interface, constructor and methods
    public ConsoleCanvas(int u,int y) {
    addFocusListener(this);
    addKeyListener(this);
    try {
    jbInit();
    } catch (Exception ex) {
    ex.printStackTrace();
    public final String readLine() { // wait for user to enter a line of input;
    // Line can only contain characters in the range
    // ' ' to '~'.
    return doReadLine();
    public final void addChar(char ch) { // output PRINTABLE character to console
    putChar(ch);
    public final void addCR() { // add a CR to the console
    putCR();
    public synchronized void clear() { // clear console and return cursor to row 0, column 0.
    if (OSC == null) {
    return;
    currentRow = 0;
    currentCol = 0;
    OSCGraphics.setColor(Color.white);
    OSCGraphics.fillRect(4, 4, getSize().width - 8, getSize().height - 8);
    OSCGraphics.setColor(Color.black);
    repaint();
    try {
    Thread.sleep(25);
    } catch (InterruptedException e) {}
    // focus and key event handlers; not meant to be called excpet by system
    public void keyPressed(KeyEvent evt) {
    doKey(evt.getKeyChar());
    public void keyReleased(KeyEvent evt) {}
    public void keyTyped(KeyEvent evt) {}
    public void focusGained(FocusEvent evt) {
    doFocus(true);
    public void focusLost(FocusEvent evt) {
    doFocus(false);
    public boolean isFocusTraversable() {
    // Allows the user to move the focus to the canvas
    // by pressing the tab key.
    return true;
    // Mouse listener methods -- here just to make sure that the canvas
    // gets the focuse when the user clicks on it. These are meant to
    // be called only by the system.
    public void mousePressed(MouseEvent evt) {
    requestFocus();
    public void mouseReleased(MouseEvent evt) {}
    public void mouseClicked(MouseEvent evt) {}
    public void mouseEntered(MouseEvent evt) {}
    public void mouseExited(MouseEvent evt) {}
    // implementation section: protected variables and methods.
    protected StringBuffer typeAhead = new StringBuffer();
    // Characters typed by user but not yet processed;
    // User can "type ahead" the charcters typed until
    // they are needed to satisfy a readLine.
    protected final int maxLineLength = 256;
    // No lines longer than this are returned by readLine();
    // The system effectively inserts a CR after 256 chars
    // of input without a carriage return.
    protected int rows, columns; // rows and columns of chars in the console
    protected int currentRow, currentCol; // current curson position
    protected Font font; // Font used in console (Courier); All font
    // data is set up in the doSetup() method.
    protected int lineHeight; // height of one line of text in the console
    protected int baseOffset; // distance from top of a line to its baseline
    protected int charWidth; // width of a character (constant, since a monospaced font is used)
    protected int leading; // space between lines
    protected int topOffset; // distance from top of console to top of text
    protected int leftOffset; // distance from left of console to first char on line
    protected Image OSC; // off-screen backup for console display (except cursor)
    protected Graphics OSCGraphics; // graphics context for OSC
    protected boolean hasFocus = false; // true if this canvas has the input focus
    protected boolean cursorIsVisible = false; // true if cursor is currently visible
    private int pos = 0; // exists only for sharing by next two methods
    public synchronized void clearTypeAhead() {
    // clears any unprocessed user typing. This is meant only to
    // be called by ConsolePanel, when a program being run by
    // console Applet ends. But just to play it safe, pos is
    // set to -1 as a signal to doReadLine that it should return.
    typeAhead.setLength(0);
    pos = -1;
    notify();
    protected synchronized String doReadLine() { // reads a line of input, up to next CR
    if (OSC == null) { // If this routine is called before the console has
    // completely opened, we shouldn't procede; give the
    // window a chance to open, so that paint() can call doSetup().
    try {
    wait(5000);
    } catch (InterruptedException e) {} // notify() should be set by doSetup()
    if (OSC == null) { // If nothing has happened for 5 seconds, we are probably in
    // trouble, but when the heck, try calling doSetup and proceding anyway.
    doSetup();
    if (!hasFocus) { // Make sure canvas has input focus
    requestFocus();
    StringBuffer lineBuffer = new StringBuffer(); // buffer for constructing line from user
    pos = 0;
    while (true) { // Read and process chars from the typeAhead buffer until a CR is found.
    while (pos >= typeAhead.length()) { // If the typeAhead buffer is empty, wait for user to type something
    cursorBlink();
    try {
    wait(500);
    } catch (InterruptedException e) {}
    if (pos == -1) { // means clearTypeAhead was called;
    return ""; // this is an abnormal return that should not happen
    if (cursorIsVisible) {
    cursorBlink();
    if (typeAhead.charAt(pos) == '\r' || typeAhead.charAt(pos) == '\n') {
    putCR();
    pos++;
    break;
    if (typeAhead.charAt(pos) == 8 || typeAhead.charAt(pos) == 127) {
    if (lineBuffer.length() > 0) {
    lineBuffer.setLength(lineBuffer.length() - 1);
    eraseChar();
    pos++;
    } else if (typeAhead.charAt(pos) >= ' ' &&
    typeAhead.charAt(pos) < 127) {
    putChar(typeAhead.charAt(pos));
    lineBuffer.append(typeAhead.charAt(pos));
    pos++;
    } else {
    pos++;
    if (lineBuffer.length() == maxLineLength) {
    putCR();
    pos = typeAhead.length();
    break;
    if (pos >= typeAhead.leng

    Hi
    I don't understand the exact need you want
    you want to add Scrolling facility to your Entire Applet or only for the Textarea Class?
    In first case
    Create the ScrollPane and add it to the applet contentPane. and put entire components to a Panel and just add it to scroll pane.
    Regards
    Vinoth

  • ITunes gives unknown error (-50) when syncing songs with iPhone

    I recently ripped a few mp3 files to my library and started up iTunes to sync them with my iPhone. If I recall correctly, this prompted me to upgrade to 9.2 of iTunes.
    Everything synced perfectly - apps, photos, excpet for the new songs I had ripped - I got the unknown error (-50) syncing the new songs. This puzzled me as I followed the exact same process as I had when ripping all the other songs in the library.
    I then removed an existing song from my iPhone, and tried the sync again, and now THAT song also failed to sync. Thus - it sure does not look like a problem with my mp3 files, but some sort of problem with iTunes.
    I found this article which was very similar, but ended up being only specific songs:
    http://support.apple.com/kb/ts1539
    I followed all the steps there, but have yet to achieve success. I have also followed every iTunes upgrade since I started - I am currently at 9.2.1.5.
    I also have an iPod Touch, and it experiences the same symptoms, thus once again pointing to iTunes not the device. I even went through the process of restoring my Touch to factory settings, and that did not help. I even upgraded my Touch to 4.0, still no change. With this restore to factory settings, all the music on my Touch was wiped out, and unfortunately now NONE of my songs sync - which includes the almost 300 other songs that were synced perfectly fine before I did the restore.
    After the restore - photos, videos, etc. all synced fine - it is just music that has this problem. I do not suspect my USB connection as a result (some of my videos are very large) I have over 10GB free on my 1 GB Touch, and much more than that on my 32 GB iPhone.
    I am really stuck here - everything else is working but I can not get any new songs, and I am afraid of doing too much more in case I lose the songs I already have.
    Thanks in advance for any suggestions!
    Brent.

    I just wanted to add that I have updated to iTunes 10, and this problem still exists.

  • IPod still not connecting with windows

    I recently got a replacement iPod from Apple. I connected my iPod with my computer and the "Do not disconnect." sign shows up instantly. It was there for over 20 hours so I disconnected it. I checked out the 5 step guide for Windows to recognize the iPod, but it still doesn't work. I'm using the exact same cable and USB port that I used on my old iPod. The iPod is not recognized by my PC or by iTunes. When using the iPod updater, the only option available is "restore" and I already tried that. Whenever I connect my iPod to Windows, it always says "USB device not recognized." and the iPod always goes to the "Do not disconnect." screen. Can anyone help me?

    I have a similar problem, excpet that my ipod just stopped being recognised by itunes, although Windows Exploere recognises it. When I run the updater, it keeps telling me to plug in my ipod (even when it is plugged it) and both the update and restore buttons are greyed out.
    No hardware has been installed since the ipod was last working properly.
    I've tried everything suggested at the website... I've reset the ipod, installed, uninstalled and reinstalled the latest versions of updater and itunes repeatedly, performed restarts running only the ipod drivers using system config, nothing works. I've tried the ipod on both firewire and USB2 connections with the same result - Windows Explorer sees the ipod, but not itunes or ipod updater.
    I figure the ipod needs to be restored to its factory settings, but how do I do this if the software to do so won't recognise the ipod? Is there a hardware option to do a complete restore/reset?

  • I havea 4g iphone and want to sync the data from my phone onto my computer. I am able to  sync data from phone onto the computer  (with the exception of contacts, notes,  and email. Will purchasing Icloud help me? I dont have the latest IOS software.

    Hi.
    I have a 4g iphone without the IOS software ( or the latest version of it.) I have exhausted the devices that I can exchange info. on  which I believe is 5. 3 o out of the five broke. I am able to sync my phone and get apps, books, and music (thankfully from my phone to my latest computer, but not vice versa. In order to update and downlaod the IOS software it says I need to back up all of my info. Will purchasing the latest subscription of icloud 24.99 per year help me or should I just excpet that I will lose my lateset notes, text messages, and contacts through the update. I also want to make sure that after I update, I will be able to get all of the info back onto my phone. Any help would be greatly appreciated.
    Thanks.

    See:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    To copy iTunes purchases to the computer you have to log into (authorize) the account that purchased them and them transfer
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    When associating a device with an Apple ID see the following regarding the 90 day limit.

  • Help require with installing Adobe Acrobat onto my Macbook Pro Retina.

    Help require with installing Adobe Acrobat onto my Macbook Pro Retina.
    I have successfully installed all of my creative cloud apps with the exception being acrobat.
    I cannot print from Indesign to PDF.
    I have unistalled, reinstalled and still no Adobe Acrobat.
    I now have to go back to Windows 8 and create the PDF's there.
    Any one know how to get around this issue?
    Thanks in advance
    Kelvin

    OSX has effectively killed the ability to print to pdf, (print to pdf eliminates most of the "Rich features" of current pdf).
    Export from InDesign, always, excpet for the 1% of the time where you know why print to pdf would produce a better result.

  • Issue with Payment Run (FPY1)

    Hi Gurus, need you help. I am getting the following message when executing the FPY1. Exceptions        1 Message no. MASSACT101 Diagnosis Counter Exceptions has value        1. For a more precise description of counter Click Here. Counter in Payment Program: Items with Exception Indicator Definition Number of items that cannot be paid and that have been placed in the list of payment exceptions. Each payment exception is classified using the item indicator (data element POKEN_PAY). For each item indicator, you can define whether these exceptions are to be included in the clarification worklist of the payment run.

    Hi Aravind
    Payments which cannot be made through FPY1 are caught in the exceptions. You can view the exception list by checking on the excpetion checkbox. Each exception corresponds to an item indicator (POKEN_PAY). Check for what item indicator, you are getting an exception. The solution is based on the type of exception.
    check the screenshot below
    regards
    debashish

  • Select and function with no_data_found

    Hi,
    I came across this today (I remembered reading about it somewhere).
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create function rahul_f return varchar2 as
    2 begin
    3 raise no_data_found;
    4 end rahul_f;
    5 /
    Function created.
    SQL> select rahul_f from dual;
    RAHUL_F
    SQL> declare
    2 i varchar2(1);
    3 begin
    4 i := rahul_f;
    5 end;
    6 /
    declare
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "XX.RAHUL_F", line 3
    ORA-06512: at line 4
    SQL>
    So, I know this has something to do with 'no_data_found' mentioned here:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/errors.htm#LNPLS00703
    'Because this exception is used internally by some SQL functions to signal completion, you should not rely on this exception being propagated if you raise it within a function that is called as part of a query.'
    Anybody have any link on explaining this part more? I looked around but, couldn't find any discussions on this.

    I had same experience few days back.
    First I dont think you need the funtion to call the exception.
    You can directly implement your code in the EXCEPTION block, if theres a no_data_found excpetion.
    This is my code..
    PROCEDURE modify_req_det(
    detail_id_in IN req_details.detail_id%TYPE,
    type_id_in IN req_details.req_type_id%TYPE,
    value_in IN VARCHAR2,
    parent_in IN req_details.parent%TYPE,
    sortorder_in IN req_details.sort_order%TYPE,
    groupid_in IN req_details.group_id%TYPE,
    errormsg OUT NOCOPY VARCHAR2) AS
    BEGIN
    SELECT DISTINCT lookup, col_name
    INTO v_lookup, v_colname
    FROM req_type t, req_details d
    WHERE parent = parent_in
    AND t.req_type_id = d.req_type_id;
    EXCEPTION
    WHEN no_data_found THEN
    UPDATE req_details SET
    req_type_id = type_id_in,
    value_id = v_valueId,
    parent = parent_in,
    sort_order = sortorder_in,
    group_id = groupid_in
    WHERE detail_id = detail_id_in;
    END modify_req_det;

Maybe you are looking for

  • How do I keep the paragraph spacing in tables?

    Hi, I used a table and styles to format a CV in InDesign. Unfortunately the paragraph spacings are only applied in cells, but not inbetween them. In the following table, for example, there would be a paragraph spacing between p1 and p2 but not betwee

  • Selction screen text or label to be dyanamic'''''''''''''''''''''''''''''

    my requirement is to display.........................label of an parameter based on value selected by user from f4 help. e.g if user selects 'px' from f4 help which has text as "posted". As soon user selects value from f4 help the corresponding text

  • Urgent - Form hangs

    Hello, I am new to Application Express. I developed couple of forms. Both were working fine until yesterday. All of a sudden my second form just hange when I try to run. I looked into all the queries that run at OnLoad. I tuned them and they run fine

  • Cannot process argument transformation on parameter 'Identity'.

    Hi, When using remote exchange powershell I get this error: $MB = Get-Mailbox -Database MyDataBase  $MB | foreach-object { $user = Get-User -identity $_ | select DisplayName } Cannot process argument transformation on parameter 'Identity'. Cannot con

  • Cisco 7911G Upgrade form SSCP to SIP using TFTP

    Hi All, I am upgrading the Cisco 7911G phone from SCCP to SIP. i dont have Call manager. How i can upgrade from SCCP to SIP using TFTP server on my PC. your input will be appericiated.