Error when select integers from Derby DB

    ResultSet rs = stmt.executeQuery(               "SELECT * FROM APP.SANGORGE WHERE " +               "khfn = '" + khTextField.getText()+"'"+               "OR khafn = '"+ khaTextField.getText()+"'"+               "OR docnum = "+docNumSearchTextField.getText()    // integer value                             );
all is going well when i select strings
but when i try to select an integer value i found errors like the last line here report :
java.sql.SQLSyntaxErrorException: Syntax error: Encountered "<EOF>" at line 1, column 91.
really need help about why i found errors with integer values only since i tried much with it
thanks for any help

i also tried
  "OR docnum = "+Integer.parseInt(docNumSearchTextField.getText())
in the last line of code and i get that error :
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: ""really need help
thanks

Similar Messages

  • Heterogeneous Connectivity: Error when select data from table

    Hi all,
    I use Heterogeneous Connectivity in Oracle 10g Linux to connect SQL server Database. I use FeeTDS ODBC driver. After configuration, I create database link in Oracle, Database link is active.
    But in SQLplus, I write: select * from all_catalog@DBL; It views all tables and views in sql server database.
    When I write: select * from AA@DBL; It produce error:
    ORA-00942: table or view does not exist
    [Generic Connectivity Using ODBC]Record AA has no fields. Loading failed
    ORA-02063: preceding 2 lines from DBL
    Please help me. Thank you very much!

    I am sorry, i did not go through the entire message of yours
    Does AA exist, does not contain columns, describe the table please.
    Maybe you should not try Select * from ,,,, rather Select specific fields.. Also if in the remote database, the field and tablename are written in lower case you may want to try
    select "field_name" , from "aa" etc
    ammar sajdi

  • Error when selecting Activity Guide item from BPM Workspace

    Hi,
    I've installed 11.1.1.6 SOA/BPM onto my local machine.
    I've deployed an Activity Guide example. This loads fine when i create an instance, the GUI loads and i can see the process progress on the left hand side.
    I have created my own test app and deployed it. I can see an instance in the Activity Guide List; however when selecting it the GUI doesn't load and i get an ADF error thrown.
    I can view the task from the Task List and open the GUI just fine. It only seems to be when selecting it from the Activity Guide List that i experience the problem.
    The error i can see in the logs is this:
    Caused by: java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.NullPointerException
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at oracle.bpel.services.workflow.activityguide.query.ejb.AGQueryService_kcuma2_EOImpl_1036_WLStub.getAGDisplayInfoDetailsById(Unknown Source)
         at oracle.bpel.services.workflow.activityguide.query.client.AGQueryServiceRemoteClient.getAGDisplayInfoDetailsById(AGQueryServiceRemoteClient.java:101)
         ... 112 more
    Any ideas?
    Kind Regards

    I've had the same issue with activity guides in 11.1.1.6 the last couple of days and thought I had been doing something wrong. Wish I'd seen your post sooner.
    Guessing it's a bug - know there's a patch set out - perhaps it's fixed in that.

  • Error when selecting the Report Center tab of the Issues web DB

    I started a DB from the Issues web DB template. Everything worked fine when I shutdown last night, but this morning I started receiving the following error when selecting the Report Center tab.
    You must specify an object for the BrowseTo to open. I have noticed that the ReportCenterDefault form no longer displays. How do I correct this?

    Hi Ben
    Wyer,
    Have you resolved
    your problem yet, and does the suggestion help you? If you still have any concern on the thread, feel free to follow up.
    Best Regards,
    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • ORA-1722 ERROR WHEN SELECTING MFG_LOOKUPS TABLE

    제품 : AOL
    작성날짜 : 2003-04-07
    ORA-1722 ERROR WHEN SELECTING MFG_LOOKUPS TABLE.
    ================================================
    PURPOSE
    Problem Description
    sqlplus 에서 mfg_lookups table을 select할때,
    ORA-1722 Invalid number 에러발생
    Workaround
    Solution Description
    =======================================================
    CREATE OR REPLACE VIEW mfg_lookups(
    lookup_type,
    lookup_code,
    meaning,
    description,
    enabled_flag,
    start_date_active,
    end_date_active,
    created_by,
    creation_date,
    last_update_date,
    last_updated_by,
    last_update_login
    AS
    SELECT lv.lookup_type,
    TO_NUMBER(lv.lookup_code) lookup_code, <==== Wrong code!!!
    lv.meaning,
    lv.description,
    lv.enabled_flag,
    lv.start_date_active,
    lv.end_date_active,
    lv.created_by,
    lv.creation_date,
    lv.last_update_date,
    lv.last_updated_by,
    lv.last_update_login
    FROM fnd_lookup_values lv
    WHERE lv.LANGUAGE = USERENV('LANG') AND
    lv.view_application_id = 700 AND
    lv.security_group_id =
    fnd_global.lookup_security_group(lv.lookup_type,
    lv.view_application_id)
    =================================================================
    MFG_LOOKUPS 은 view로 fnd_lookup_values의 lookup_code값을 가지고 오는
    방식이나, to_number로 변환하게 되어 있어 숫자가 아닌 문자의 경우
    이와 같은 에러를 발생한다.
    이번 경우, 고객이 새로 등록한 Lookup code였고, code값을 숫자의 format으로
    다시 등록하니 해결됨.
    Reference Documents
    -------------------

    Yes but this is a regular operation and the INSERT is the only opportunity.
    BTW, look at what else I have just found:
    INSERT INTO Local_Table (a, b)SELECT col1, col2 FROM DUAL INNER JOIN Table1@remote ON (1=1) LEFT JOIN Table2@remote ON (...)
    OK.

  • Error while selecting date from external table

    Hello all,
    I am getting the follwing error while selecting data from external table. Any idea why?
    SQL> CREATE TABLE SE2_EXT (SE_REF_NO VARCHAR2(255),
      2        SE_CUST_ID NUMBER(38),
      3        SE_TRAN_AMT_LCY FLOAT(126),
      4        SE_REVERSAL_MARKER VARCHAR2(255))
      5  ORGANIZATION EXTERNAL (
      6    TYPE ORACLE_LOADER
      7    DEFAULT DIRECTORY ext_tables
      8    ACCESS PARAMETERS (
      9      RECORDS DELIMITED BY NEWLINE
    10      FIELDS TERMINATED BY ','
    11      MISSING FIELD VALUES ARE NULL
    12      (
    13        country_code      CHAR(5),
    14        country_name      CHAR(50),
    15        country_language  CHAR(50)
    16      )
    17    )
    18    LOCATION ('SE2.csv')
    19  )
    20  PARALLEL 5
    21  REJECT LIMIT UNLIMITED;
    Table created.
    SQL> select * from se2_ext;
    SQL> select count(*) from se2_ext;
    select count(*) from se2_ext
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04043: table column not found in external source: SE_REF_NO
    ORA-06512: at "SYS.ORACLE_LOADER", line 19

    It would appear that you external table definition and the external data file data do not match up. Post a few input records so someone can duplicate the problem and determine the fix.
    HTH -- Mark D Powell --

  • Error when select posting level in document type

    Hi,
    Did anyone have an experience to face the Abab run time error when select "posting level" in document type?
    The Error is : GETWA_NOT_ASSIGNED
    Short text
    Field symbol has not yet been assigned.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_UC_ITKEY_FACTORY===========CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.

    If you searched the notes, as Dan proposed (and didn't find anything relevant), and the answer to the Greg's question is positive, then I would suggest regeneration data basis and ConsArea due to data model inconsistency.
    If it doesn't not help - open customer message to SAP.
    Edited by: Eugene Khusainov on Jan 26, 2010 10:26 AM

  • Getting an "installer failed to initialize" error when installing CS5 from CD

    Getting an "installer failed to initialize" error when installing CS5 from CD
    Mac OS X Version 10.7.5

    Try using the Adobe Creative Suite Cleaner Tool
    helps resolve installation problems for CS3 thru CS6 and for Creative Cloud
    http://www.adobe.com/support/contact/cscleanertool.html
    If you continue to have problems getting the CD installation to work you can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site or else the download will not work properly.
    CS5:
    http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • Error when reading data from socket

    Hi,
    I am getting the error 'NiRawReadError: An error occured when reading data from socket.' when using the ABAP API  'mo_core_service->invoke_matching'.
    And I get this error only when I pass ABAP_TRUE to the paramter 'iv_wait_for_invocation' .
    Can anybody help me in correcting this?

    Hi Narasa,
    The following error is already in discussion in the below forum.Plz consult the forum link you will find the error solution.
    Problem in ABAP API - NiRawReadError: error when reading data from socket
    Rgds
    Ankit

  • How can I get rid of a 1202 error when downloading products from itunes

    How can I get rid of an 1202 error when downloading products from itunes?

    You have probably downloaded the Norton program which is one of the least desirable helpmates you can invite in.
    Read this thread and follow the suggestions by Thomas R, one of our gurus in this field.
    https://discussions.apple.com/message/20005609#20005609

  • Error when selecting volume

    Hello,
    I just restarted my Maxtor external hard disk (which I use for time machine) because my Mac did not recognize it anymore.
    Now it does but I get an error when selecting the volume for Time Machine. The error says:
    "The file '.0011246f8842' can not be saved in the map 'Time Machine-reservekopieen'."
    Does anybody have a clue what I need to do to get my Time Machine working again?
    Thanks!
    BB

    Bauke Boezeman wrote:
    Hello,
    I just restarted my Maxtor external hard disk (which I use for time machine) because my Mac did not recognize it anymore.
    Now it does but I get an error when selecting the volume for Time Machine. The error says:
    "The file '.0011246f8842' can not be saved in the map 'Time Machine-reservekopieen'."
    Hi, and welcome to the forums.
    I'm not sure if that's the same message, but it sounds like a common permissions problem.
    Try this: Open the Terminal app (in your Applications/Utilities folder).
    In Terminal, the prompt looks like this: user-xxxxxx:~ <your name>$
    (where <your name> is your short user name). It's followed by a non-blinking block cursor (unless it's been changed via Terminal > Preferences).
    At the prompt, type the following exactly as shown, substituting the name of your TM drive exactly, including any spaces, between the quotes:
    sudo chmod 644 /volumes/"TM drive name"/.0011246f8842
    Press Return. You'll get some warnings and a request for your Administrator's password. Type it in (it won't be displayed) and press Return again.
    Then try a +Back Up Now.+

  • Error when generating IDoc from MC document - workitem to all the SAP users

    A workflow item with the subject of “Error when generating IDoc from MC document” is sent to all the SAP users' inbox. Is it possible to stop the generation of this work item? If that is not possible, can we limit sending the work item to a specific user/agent instead of all the users in the system?
    It appears that these work item or error message are generated when one of the developers reopen the POs and add line items. Moreover, during that time the procurement team blocked the IDOCs from going out to the vendors when changing and resaving the POs. Therefore, we need stop the generation of error message/work item when the IDOCs generation blocked.

    Please check Rule 70000141which is the default rule for this task. Inside this rule a FM is attcahed which is reading table EDO13 and EDPP1 where agent is retrieved Probably this table entries are not maintained. This Workflow is getting triggered from Message cOntrol I think.
    Please check this link for
    http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4aec8453d11d189430000e829fbbd/frameset.htm
    <b>Reward points if useful and close thread if resolved</b>

  • Error when generating IDoc from MC document

    Hi,
    Our Workflow administrator is getting the following error  in his inbox daily for a particular IDOC type.
    Error when generating IDoc from MC document
    Please let me know how to disable this message.
    Regards
    Elini.P

    Hi  experts,
                i got the error msg when generating idoc from mc document
    this error msg goes to all sap users inbox,how to resolve this problem
    pl give me solutions
    regards
    kumar

  • Error when downloading application from Server

    Hi,
    I have installed MI Client 7.0 SPS 11 Patch 0 on Symbol Device ;OS Windows Mobile5.0
    i have successfully completed <b>first</b> synchronization .
    After that i assigned Mobile Component to the device and tried synchronizing.
    "Error when downloading application from http://<servername>:50000/meContainerSync/servlet/com.sap.ip.mi.http.MobileComponentServlet?Application=xyz&Type=APPLICATION&Runtime=JSP"
    Pl. suggest
    Note: In NWA under 'Device Maintenance' -> Mobile component
    The state of the aplication is <b>"Deployment Activated"</b>
    rgds,
    Kiran Joshua
    Message was edited by:
            Kiran Joshua

    Hi ALL,
    I resolved it on my own guys !!!
    Actually while downloading server url consists of hostname bcoz the hostfile entry in windows/system32/drivers/etc/hosts was only hostname.
    i entered FQDN name in the hostfile... It WORKED
    Being Saturday and Sunday...i cud not get any help from forums...i was really worried and Guys we need to think on this :-?
    rgds,
    Kiran Joshua

  • ! Error when copying song from Purchased to IPod play list.  How to fix?

    ! Error when copying song from Purchased to IPod play list. How to fix?

    Hi
    Try the iPod for windows forum http://discussions.apple.com/forum.jspa?forumID=826
    Tony

Maybe you are looking for