Records truncating (formatting problem)

Hello all,
I am writing a script wherein a SQL generates another SQL.
Lets say that we have a varchar2(2000) column with around 1500 characters in each record. When I try to write a script it only returns the first few characters of it and doesnt print the remaining data in the record.
Example
insert into baba values(353521,'200410',1,1,18-JUL-
03,'ELOPEZ5','Y','Y' ,,'Have
insert into baba values(353521,'200410',1,2,18-JUL-03,'ELOPEZ5','Y','Y','Give
It truncates the remaining part of the inserts statements. I guess this is a formatting problem. I set the linesize to 999 and it didnt solve my problem.Please let me know what else I can do.
Thanks,
Dola

Hello Garcia,
Thanks a lot for your response. I tried putting line feed as you suggested and this didn't work too. This time
it didn't even give that coulmn
insert into baba
values(
353521,'
200410',
1,
1,
18-JUL-03,'
ELOPEZ5','
Y','
Y'
insert into baba
values(
353521,'
200410',
1,
2,
18-JUL-03,'
ELOPEZ5','
Y','
Y
Any help will be deeply appreciated.
Thanks

Similar Messages

  • Mapping problem with compressed key update record (target format)...

    Hi Guys,
    Getting below error while replication from Source to target. Source table is having NOT NULL Column, but on target replicat process giving error about some NULL value ??
    How to overcome this issue, any idea...
    2011-08-04 10:35:04 INFO OGG-00995 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: REPLICAT RMASTRK starting.
    2011-08-04 10:35:05 INFO OGG-00996 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: REPLICAT RMASTRK started.
    2011-08-04 10:35:06 WARNING OGG-00869 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: OCI Error ORA-01407: cannot update ("INFRA"."CUST"."CODE") to NULL (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"DP_ID" = :a3,"EXCHNG_CODE" = :a4,"ORD_QTY" = :a5,"ORD_PRICE" = :a6,"CODE" = :a7,"MKRT_CODE" = :a8,"CHANN>.
    2011-08-04 10:35:06 WARNING OGG-01004 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Aborted grouped transaction on 'INFRA.CUST', Database error 1407 (ORA-01407: cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL).
    2011-08-04 10:35:06 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Repositioning to rba 44132192 in seqno 68708.
    2011-08-04 10:35:06 *WARNING OGG-01154 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: SQL error 1407 mapping INFRA.CUST to INFRA.CUST OCI Error ORA-01407:* *cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"DP_ID" = :a3,"EXCHNG_CODE"=:a4,"ORD_QTY"*
    *= :a5,"ORD_PRICE" = :a6,"SCRP_CODE" = :a7,"MKRT_CODE" = :a8,"CHANN>.*
    2011-08-04 10:35:06 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Repositioning to rba 44132192 in seqno 68708.
    2011-08-04 10:35:06 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Error mapping from INFRA.CUST to INFRA.CUST.
    2011-08-04 10:35:06 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: PROCESS ABENDING.
    Oracle GoldenGate Delivery for Oracle process started, group RMASTRK discard file opened: 2011-08-04 10:35:05
    Current time: 2011-08-04 10:35:06
    Discarded record from action ABEND on error 1407
    OCI Error ORA-01407: cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL
    (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"MKRT_CODE" = :a8,"CHANN>
    Aborting transaction on ./dirdat/pm beginning at seqno 68708 rba 44132192
    error at seqno 68708 rba 44132192
    Problem replicating INFRA.CUST to INFRA.CUST
    *Mapping problem with compressed key update record (target format)...*
    ORD_QTY = 500
    ORD_PRICE = 37430
    SCRP_CODE =
    MKRT_CODE = N
    Oracle GoldenGate Delivery for Oracle process started, group RMASTRK discard file opened: 2011-08-
    04 10:35:05
    Current time: 2011-08-04 10:35:06
    Discarded record from action ABEND on error 1407
    OCI Error ORA-01407: cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL
    (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"MKRT_CODE" = :a8,"CHANN>
    Aborting transaction on ./dirdat/pm beginning at seqno 68708 rba 44132192
    error at seqno 68708 rba 44132192
    Problem replicating INFRA.CUST to INFRA.CUST
    Mapping problem with compressed key update record (target format)...
    ORD_QTY = 500
    ORD_PRICE = 37430
    SCRP_CODE =
    MKRT_CODE = N
    Any inputs / help would be appreciated.
    Regards,
    Manish

    The SCRP_CODE column has a NOT NULL constraint. The ORA-01407 error is telling you that you cannot update or set a value for this column to null because of the constraint. This has absolutely nothing to do with an index. You can use a marker/sentinel value in lieu of using NULL. For a numeric field, where everything is positive, a negative value (-1) can be decoded as meaning null. For a character field, a code such as NA can represent NULL.
    This also has nothing to do (directly) with GoldenGate failing because of this error. The underlying SQL statement will fail everywhere, regardless of the tool or application. It is not a case of failing only in GoldenGate.

  • Exception in XML Parser (format problem?)

    Hi Experts,
    I am working on IDOC -> AS2 Configuration and the AS2 Configuration has the below structure
    <RecordSet>
         <Row1>
                       <row1 - field1>
                       <row1 - field2>
                       <row1 - field3>
         </Row1>
         <Row2>
                       <row2 - field1>
                       <row2 - field2>
                       <row2 - field3>
         </Row2>
         <Records>
              <Record1>
                        <Record1-Field1>
                        <Record1-Field1>
                        <Record1-Field1> 
              </Record1>
              <Record2>
                        <Record2-Field1>
                        <Record2-Field1>
                        <Record2-Field1> 
              </Record2>
         </Records>
    </RecordSet>
    We are getting the expected Structure when we AS2 Receiver has the xml format. But while doing module development with the strctxml2Plain, we are getting the below error  in RWB CC Monitoring.
    Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
    Any ideas, why this error we are getting.....
    Thanks in advance,
    Regards,
    Vasu

    Hi Vasu,
    Not in the Mapping of IR.
    In BIC Mapping Designer you have to test with the standard Mappings by providing the sample file whether the Conversion is happening correctly or not.
    You have to take the same input file that what ever you are having now.
    So that it will say clearly what is the problem in converting the XMLto the required EDI Format...
    Check whether you have any Date Format Values are comming from the input file.
    Regards
    Seshagiri

  • ALV Excel in place formatting problem

    Hi All,
    I'm running out of options with a particular problem I'm experiencing in ALV, and it i'm doing my head in...
    The Problem :
    I'm using ALV Grid to create a report. The report is sorted on 4 fields of which 3 have subtotals.
    The whole of the report displays fine in ALV but when I start Excel in place, after 75 lines or so, the export to the Excel sheet seems to get confused and initially starts repeating merged cells (which is not that big a deal) but eventually values are left out all together.
    I'm not posting any code, as it does not seem to have anything to do with my code (after all it displays correctly in ALV).
    What I have tried sofar :
    -Replaced sap_mm.xls and sap_om.xls templates in BDS --> No luck, still the same problems.
    -Display without subtotals and kick off Excel in Place --> Works fine, no values truncated formatting OK, but not as I want it !!!
    -If I filter out the sections one by one,eg, C2ST by itself, L1ST by itself, the export seems to work fine.
    I have linked in two files, which show the problem :
    Here is a [Screen shot of the Original SAP list |http://www.geocities.com/adutchoz/alv_PROBLEM.jpg].
    And here is the [Excel in Place file |http://www.geocities.com/adutchoz/ALV_Formatting_problem.xls] which is wrongly formatted. As you can see after line 75 the cell merge does not work anymore and from  line 100 it is leaving out Management Activity column values.
    Has anybody else experienced these problems ? I'm interested to know this before I go to OSS...
    Any feedback will be highly be appreciated.
    Cheers,
    Wouter.

    Did you get an answer to this? could you share a solution, please?

  • Date Format problem...

    Hi users,
    Forte version : 2.e.2 and ForteWebSDK
    Datacase : Oracle
    We have a problem with a simple HTML text field which acccepts
    a date. When we try to update the record with some date, the following
    exception occurs:
    24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
    project Rap
    tServices, class RaptSqlMethods, method updateActivity, methodId 104,
    line 51, e
    rror from database is:
    ORA-01830: date format picture ends before converting entire input
    string
    The Oracle manual says that the above exception occurs when there are
    some extra characters on that field, which is not the case. In fact,
    we raise our own exception for the cases like : o1-Apr-1997,
    01-apr-97 etc. The correct format is 01-apr-1998.
    Same date soemtimes is added to the database successfully. Waht I mean
    to say that the exception deos not occur consistently.
    We just conevert the String taken from the HTML field into a Forte
    DateTimeData Object and send it to database. May be, the conversion
    part is causing the problem. But, once again the problem is not
    consistent.
    Any ideas in this will be appreciated.
    Thanx in advance
    -Rajeev Talwar
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    We had the same problem when our application first went live. The
    default date format for our Oracle database is 'dd-mmm-yy' without the
    time component. The default format for datatype DateTimeData is
    'dd-mmm-yyyy hh:mm:ss'. Since we did not want to change the default date
    format for the Database, we included in our service partitions an Alter
    Session statement to change the NLS_Date_format attribute in Oracle to
    conform to the Forte DateTimeData format. It worked.
    Kam Chow
    Mazda Australia
    -----Original Message-----
    From: Gary F Giger [mailto:[email protected]]
    Sent: Thursday, June 25, 1998 4:11 AM
    To: Rajeev Talwar
    Cc: [email protected]
    Subject: Re: Date Format problem...
    I was having the same problem a few weeks back when I would
    read/write
    dates to Oracle. I was using objects of type DateTimeData and I would
    occasionally get errors like you said you were. I found discovered my
    problem. Sometimes I would process a null date and would get an error.
    So to
    resolve this issue, I simply changes my objects of type DateTimeData to
    type
    DateTimeNullable. This enabled my Forte Application to handle regular
    dates
    as well as null dates. I have not gotten any oracle errors since then
    with
    regards to dates. Hope this helps.
    Rajeev Talwar wrote:
    Hi users,
    Forte version : 2.e.2 and ForteWebSDK
    Datacase : Oracle
    We have a problem with a simple HTML text field which acccepts
    a date. When we try to update the record with some date, the following
    exception occurs:
    24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
    project Rap
    tServices, class RaptSqlMethods, method updateActivity, methodId 104,
    line 51, e
    rror from database is:
    ORA-01830: date format picture ends before converting entire input
    string
    The Oracle manual says that the above exception occurs when there are
    some extra characters on that field, which is not the case. In fact,
    we raise our own exception for the cases like : o1-Apr-1997,
    01-apr-97 etc. The correct format is 01-apr-1998.
    Same date soemtimes is added to the database successfully. Waht I mean
    to say that the exception deos not occur consistently.
    We just conevert the String taken from the HTML field into a Forte
    DateTimeData Object and send it to database. May be, the conversion
    part is causing the problem. But, once again the problem is not
    consistent.
    Any ideas in this will be appreciated.
    Thanx in advance
    -Rajeev Talwar
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    Gary Giger
    Raytheon Systems Company
    300 Science Park Road
    State College, PA. 16804
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    This message has successfully passed virus checking.
    Mazda Australia takes every precaution to ensure email messages are virus free. For complete protection, you should virus test this message.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Attempt to process file failed with Exception in XML Parser-format problem

    Hi all,
    Iam getting an unusual error in the J2EE stack in XI.
    And the message is:
    006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
    This means that error occured during content conversion of XML to the prescribed file format.
    Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
    Thanks in advance...
    karun

    Hi Bhavesh,
    Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
    The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
    2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
    2006-11-30 17:30:50 Success Start converting XML document content to plain text
    2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
    2006-11-30 17:31:07 Error Exception caught by adapter framework: null
    2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
    2006-11-30 17:31:07 Success The message status set to WAIT.
    2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
    2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
    2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1

  • I am exporting a pages doc to ePub and I keep getting formatting problems any idea thx in advance

    I am exporting a pages doc to ePub and I keep getting formatting problems any idea thx in advance

    Since you don't say what the "formatting problems" are, all we can say is:
    "There, there. Hope they get better."
    Peter

  • Smartform: Formatting Problem with QUAN-Field

    I want to print a smartform and get exception 1 (formatting error). With function SSF_READ_ERRORS I get an error table. There is on entry: errnumber = 020011, msgid = SSFCOMPOSER, msgty = E, msgno = 601, msgv1 = wa_outtab-menge.
    It seems to be a formatting problem with field WA_OUTTAB-MENGE. But in the structure this field is referenced correctly.
    Does anybody know a solution?

    I solve this kind of problem in my SmartForm.
    Try this:
    Go to "Global Definitions" Node, then "Current/Quant.Fields" tab and set these values:
    Field Name:      WA_OUTTAB-MENGE
    Reference Field: WA_OUTTAB-MEINS
    Data Type:       QUAN
    Best Regards,
    Eduardo Ribeiro.

  • Format problem when export to RTF

    Hi,
    Iam creating a RTF template, when export to pdf everything working fine. However, when i export to RTF(word) alot of document properties got lost such as :
    font size default to 12 when it's blank line; page number are not re-start for multi sections; table properties not holding, header, footer and edge margin are not holding, etc...... Is there any way to fix these. I tried to create a word macro to fix some of the format problems, but the macro have to run manually instead of initialized form a text field option on exit. Any idea on how to fix or work around would be appreciated.
    Thanks,
    Tam

    im2famous4u wrote:
    Do you know if and when Pages will provide support for tables in rtf format? (My school requires that I send all assignments rtf format.)
    As Yvan points out, no one here can write what they know about it, and the vast majority of us know nothing about it.
    You cannot take any decision based on the assumption that Pages will one day support tables in RTFs, because it may never happen. If you need both RTF and tables, the only option is another tool (like NeoOffice, TextEdit, MS Office and so on).

  • Convert Web Page to PDF formatting problem - 1st line of each paragraph outdented

    Hi Folks,
    I get a formatting problem when I convert any web page to PDF using the 'Convert Web Page to PDF' option - the 1st line of each paragraph is outdented.
    eg if i convert http://helpx.adobe.com/acrobat/using/whats-new-acrobat-xi.html I get this:
    I get the same problem using IE 9, Chrome (latest) or Firefox 30.0. I don't get it converting a Word doc to PDF.
    I'm using Adobe Acrobat XI Pro on a PC running Windows 7.
    Is there a simple setting somewhere I am missing?
    Any help much appreciated!

    Are you using "Adobe PDF" or "PDF or XPS?" I sounds like "Adobe PDF," but trying to be sure. Have you updated your Acrobat to the latest version? If not, try that.

  • Break on formatting problem ...

    I have report based on PLSQL func. body return SQL.
    Break formatting part is here:
    http://i14.tinypic.com/4dqu1xl.png
    I have curios break on formatting problem. Here is the picture of the report on the page:
    http://i13.tinypic.com/3yqrs6f.png
    Here are real data:
    Datum       Vrijednosni papir  Registrirano s      Pozicija           Tip        Količina  Naziv
    =====================================================================================================
    1.12.1999   PODR-R-A           PODR-I          SLOBODBA POZICIJA  OTPLAĆENO  -200      PRIJENOS        
    9.11.1999   PODR-R-A           PODR-I          SLOBODBA POZICIJA  OTPLAĆENO  201       PRIJENOS IZ KD   Is that OK?
    Looks like not!

    Hello,
    These kinds of problems were reported before. Are you using the order by clause in your select statement? It seems to solve all the problems I've encountered of this sort.
    Regards,
    Arie.

  • Whatsnew page for 3.6.17 has formatting problems with Firefox and I.E.

    I just updated from 3.6.16 to 3.6.17n and the whatsnew page, displayed after Firefox restarted, has formatting problems in the lower right hand corner.
    I checked it with I.E. 8 and it also shows the formatting problem.
    Why wasn't this caught before the page was put into "production"?
    The URL is http://www.mozilla.com/en-US/firefox/3.6.17/whatsnew/
    There is a line with the text "Release Notes » Firefox Features » Firefox Help »" that is being displayed on top of other material.
    I wonder what a new Firefox user or an inexperienced user would think of this? They might think that they did something wrong or, worse, they might consider Firefox had problems and they won't use it.
    This reflects badly on Firefox.
    One more thing, could someone make this textarea taller and wider. It is so small as to cause problems typing and proofing the material.
    The URL is https://support.mozilla.com/en-US/questions/new?product=desktop&category=d6&search=whatsnew+page+for+3.6.17+has+formatting+problems+with+Firefox+and+I.E.&showform=1
    How about upping the cols and rows values? They are currently rows="10" cols="40"

    As you have a Power Mac you also have a alternative option to consider which is a third-party build from http://tenfourfox.blogspot.com/2011/08/601-now-available.html

  • Music slightly out of sync when exporting in Premiere CS6, format problem?

    Hi guys, i have a quick question.
    I edited together a promo for a local band and everything is perfect in the sequence as far as being on point with the music at certain beats and such. However when I export it the music is slightly out of sync, which is bad when you edited everything specificly to the song. I am not using ANY audio from the footage but instead layed a music track over everything. I'm not sure what else to do, could it be a format problem? I am using h.264 (see below), but would AVI or anything else work better? any help is appreciated thank you!
    I am exporting directly from inside Premiere CS6 using a custom H.264 preset. 24fps, VBR 2 pass encoding. Target 7MB, Max 11MB. (with render at maxium bit depth, and render at highest quaility selected.)
    I put the audio settings to high, 320kbs AAC format.
    I use a custom built PC with an i7-3770K, 32 GB RAM, and I exported to a 120GB SSD.
    Any other info you need just ask.any types for uploading to vimeo so it doesn't get out of sync there? thank you in advance!
    Also, any types for uploading to vimeo so it doesn't get out of sync there? thank you in advance!

    Hi,
    I dont think that you will really get a problem while exporting in any of the given formats. But i would really like to check if the audio layer is exactly same as of the video. for eg - if my audio is 00:05:30 and my video is 00:05:20 , we might face issue with the sync.
    We can try to put more black video to make it a match with the audio and then try to export.
    Where do you have the media files , on a internal drive like c: or desktop? In case not , try to move the media files to desktop and then try to export.
    Also instead of exporting the files to your 120GB SSD , try to export it on the desktop.
    Hope it helps.
    Thanks

  • Copying text from InDesign to Word: formatting problems

    Hi all,
    I have copied a large amount of text from an InDesign CS4 document into Word. I am now having formatting problems. The main problem is that where long words run over two lines, they are not appearing as hyphenated, and I am not able to stop them running over two lines. Inserting the cursor at the start of the second part of such a word and deleting simply deletes the preceding letter on the line above, as if there were no line break.
    Any help much appreciated.
    Jon Cope

    Instead of Copy/Paste, try selecting the text and exporting to .rtf (or if you have an active cursor, but no selection, theentire story will be exported). Open the .rtf in Word.

  • Data format problem

    Hello All
    Can anyone help me to solve this data format problem? On the top of my program, I have declare the two variables "purchasePrice" and "purchaseAmount" as double. I dont know why, the compiler still think I didnt initialize this two variables? I have printed the error message below the code.
    Thanks for your help : )
    Jen
    =============================================================================
    double purchasePrice, purchaseAmount, GPS, total_gain, amount;
    //Find the purchase stock price
         rs = stmt.executeQuery("SELECT Price FROM PORTFOLIO WHERE Username = '"+ username+"' AND Symbol = '"+strsymbol+"'");
         while (rs.next()){
              purchasePrice = rs.getDouble("Price");
    //Calculate the amount of Gain Per Share
    GPS = intask - purchasePrice;
    //Find the purchase stock amount
    rs = stmt.executeQuery("SELECT Amount FROM PORTFOLIO WHERE Username = '"+ username+"' AND Symbol = '"+strsymbol+"'");
         while (rs.next()){
              purchaseAmount = rs.getDouble("Amount");
    //Calculate the amount of Total Gain
    total_gain = amount - purchaseAmount;
    =============================================================================
    Error message:
    variable purchasePrice might not have been initialized
    [javac] GPS = intask - purchasePrice;
    [javac] ^
    variable purchaseAmount might not have been initialized
    [javac] total_gain = amount - purchaseAmount;
    [javac] ^
    [javac] 2 errors

    Instance and class variables are automatically initialized to their default values if they are not initialized explicitly, but local variables are not. They have to be initialized explicitly before they can be referenced.
    In your code:
        while (rs.next()){
            purchasePrice = rs.getDouble("Price");
        ...purchasePrice is initialized only if rs.next() returns true. purchaseAmount has the same problem. To avoid this problem, you could declare them by:
    double purchasePrice = 0;
    double purchaseAmount = 0;

Maybe you are looking for

  • Internal table in sap script

    Hello All , I  have got a internal table with tracking numbers and I want to print all the numbers in that internal table on sap script. Please advise. Thanks Moderator message:  please search for available information before asking. locked by: Thoma

  • Logic 7.1.1 OMF/AAF import work around

    Hi everyone I may just have a proper workaround for all you poor audio types like myself, trying to do post sound in logic. Firslty, let me say it helps if you have Protools (6.4 is fine) with digitranslator. I've been trying to import a 94 minute fe

  • Is there a way to password protect a document in the app Pages

    Is there a way to password protect a document in the app Pages?

  • Extracting Images from PDF file

    Hello All,                I am reading PDF File.I need to extract images from PDF File programatically.But problem is that some images are stored inside PDF File using FlateDecode Filter and I need to first decode that file and then I can extract tha

  • Cannot download oracle 10

    Hello, being on page http://otn.oracle.com/software/products/database/oracle10g/index.html and trying to follow the link to "microsoft windows 32Bit" i'm coming to a page where i am prompted to "Please click on the link to the left to continue to the