Query regarding End of File

Hi All,
How should I differentiate between End of File and blank space between lines in a file. Below is a sample input for the program:
a b c
d e f
i j k
l m nMy following code is able to read only till 'd e f'.
Here is the code:
        Scanner lscFileRead = new Scanner (ffInputFile);
        while ((lsLn =  lscFileRead.nextLine()) != null)
        }Please help me out.

Saish wrote:
When reading a line of zero length, Scanner throws an exceptionHuh? Using Scanner#nextLine()? Don't think so.I tested this before I posted!
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Scanner;
public class Sabre20100122
    public static void main(String[] args) throws Exception
        InputStream is = new FileInputStream("/home/sabre/test.txt");
        Scanner lscFileRead = new Scanner(is);
        String line = null;
        while ((line = lscFileRead.nextLine()) != null)
            System.out.println("[" + line + "]");
        is.close();
}Ubuntu 9.10, Sun JDK1.6.0_18 .
>
@OP: You should be using Scanner#hasNextLine() to determine if you are at EOF.
- Saish

Similar Messages

  • ORA-03113: end-of-file on communication channel while executing a query

    Hi all,
    I am getting following error while executing one of the query.
    ORA-03113: end-of-file on communication channel
    The query involves subqueries. At one point, in the second last condition of the whole query is the cause. what makes the query to disconnect from database.
    I am pasting the whole query with highlighted part causing the error.
    select
    A.Num_Employee_Id as col_0_0_,
    A.Str_Name_For_Reports as col_1_0_
    from
    Est_Esb_employee_m A
    where
    A.num_office_id=1
    and A.Num_Employee_Id not in
    (select
    B.Num_Employee_Id
    from
    Est_Esb_Employee_Service_D B
    where
    B.Chr_Curr_Status='N'
    and
    B.Dat_Effective_Date is not null
    and
    B.Dat_Effective_Date=
    (select
    max(C.Dat_Effective_Date)
    from
    Est_Esb_Employee_Service_D C
    where
    C.Num_Employee_Id=B.Num_Employee_Id
    and C.Dat_Effective_Date is not null
    and B.Num_Transaction_Id=
    (select
    max(D.Num_Transaction_Id)
    from
    Est_Esb_Employee_Service_D D
    where
    D.Dat_Effective_Date=
    (select
    max(E.Dat_Effective_Date)
    from
    Est_Esb_Employee_Service_D E
    where
    Num_Employee_Id=D.Num_Employee_Id
    and D.Num_Employee_Id=B.Num_Employee_Id
    and B.Num_New_Office_Id=1
    order by
    A.Str_First_Name,
    A.Str_Middle_Name,
    A.Str_Last_Name
    Awaiting your valuable suggestions.
    Regards
    Vijay Kumar

    I would start by compareing the explain plan of both versions of the statement.
    Also by adding such a restriction you might change from an uncorrelated subquery to a correlated subquery. I'm not sure, because your code is hardly readably without formatting.
    In any case you seem to select again and again from the same table. Maybe you should find a way to optimize to query in terms of io (less table access). Then this problem could go away.

  • End-of-file in communication channel while querying the data

    We are using ColdFusion(Windows) to access an Oracle - 8.1.7
    database. I have context indexes setup on the data for search
    purposes.
    If I use a package to query the database and return some values,
    when many people use the call to the package I get the following
    error:
    End-of-file in commnuication channel
    And many other users lose connection to the database. The
    database, however does not go down.
    The same logic works well on the development database where
    traffic is less.
    If we replace the stored proc call by the individual sql
    statements there are no problems. Due to complexity of the
    program, I would like to use stored procs instead of sql
    statements in the ColdFusion code.
    Does anyone have any suggestions?

    07445:exception encountered:core dump [kopedga()+200] [SIGSEGV]
    [Address not mapped to object] ....
    ORA-7445 is a core dump (segmentation fault) and is a bug in the
    database.
    You have now the following options:
    If you have metalink access:
    1. You can have a look if you find a bug entry and then see
    when it will be fixed (e.g. search for 'ORA-7445 kopedga').
    2. Create an iTAR in Metalink.
    If you don't have metalink access:
    3. Use the latest patchset and try again and hope that it is
    fixed.
    Regards,
    Thomas

  • Query works interactively, but not as a View? ORA-03113: end-of-file on communication

    Hi,
    I have created a db, using object stuff and now am doing a few
    queries. I created this query and it makes perfect sense, runns
    fine interactively and returns the correct records ..
    But if I put this query into a separate queries.sql file and try
    to create a VIEW of it in there, I get that end-of-file
    communicaton error, and it basically disconnects me from
    oracle .. so I have to restart SQLPlus. There are no other
    characters or anything in the file, just the query itself ..
    This is what happens when I run the .sql script which creates a
    view of the query:
    SQL> create or replace view query_b3 as
    2 SELECT w.dinner.restaurant AS Restaurant, w.y.name.surname
    AS Surname, w.x.bookingno AS BookingNo
    3 FROM (SELECT deref(wd.sdt) x, dinner, deref(sd.guestref) y
    4 FROM weekenddeal wd, specialdeal sd
    5 WHERE wd.sdt.bookingno = sd.bookingno) w;
    create or replace view query_b3 as
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    SQL>
    SQL> select * from query_b3
    2 /
    select * from query_b3
    ERROR at line 1:
    ORA-03114: not connected to ORACLE
    PLEASE HELP!!!! This query WORKS FINE in SQLPlus, but NOT when I
    put it in an outside file / try making a VIEW of it!!!!

    Hi,
    I was having this problem in a Test DB that was running in
    Windows NT.
    I thought the problem was caused by Inadequate memory.
    Pls Check that.
    Regards,
    Ganesh R

  • Getting end-of-file on communication channel error on this query

    Hi guys,
    I'm getting the end-of-file on communcation channel error when running the following query in SQL PLUS, If run it in a stored procedure called through code of JDBC, it gave "no more data to read from socket" error. Any idea what went wrong? kind of frustrated now. We are using the Oralce 9.0.1.4.0, which suppose to fix some sdo_uion and sdo_buffer bugs. Thanks a lot!!
    select SDO_GEOM.SDO_BUFFER((SELECT SDO_AGGR_UNION(MDSYS.SDOAGGRTYPE(GEOLOC, 0.011119487)) FROM GEOTEL_SOURCE where MSA='5000' and COMPANY_NAME ='AMERICAN FIBER SYSTEMS'),1.0,5,'unit=MILE arc_tolerance=0.05') from GEOTEL_SOURCE a where a.MI_PRINX = 1;

    Hi Daniel,
    Just tried the 9.2.0.2 patch, seems to work better now. At least I don't get the end-of-file on communication channel error. But how about the speed thing? I isolated the problem, and find out that sdo_aggr_union is taking too long to finish( 1 Hour!!! for 2300 lines with the same city. Any clue to optimize it, I tried some hint like /*+ordered*/ No_Merge and something like that, does not improve though. Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Query regarding the conversion of DME file in MT940 format.

    Hello Experts,
    I have a query regarding the generation of MT940 file after generating the payment file from other DME tree.
    After completion of payment run, my payment file is generated in the DME format which is according to the DME tree.
    I want to convert the DME file (which is generated via F110)  from existing format to the standard MT940 format.
    Is there any standard program which converts the DME file to MT940. If so,  please inform me as early.
    I have tried to upload the DME file in FF.5 transaction, but it is not allowing me to convert the file in MT940 structure.
    Or please inform the steps how i can convert the file .
    Awaiting for your inputs.
    Thanks in advance

    Hi Zareena.
    I would like to suggest,
    SX_OBJECT_CONVERT_RAW_TXT.
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Simple Spatial Query caused ORA-03113: end-of-file on communication channel

    I try to run a simple spatial query to find the ID's which inside the specified circle
    select n.ID,n.FEATURE_ID
    from NC_MANGROVE n
    where sdo_relate(n.shape,
         mdsys.sdo_geometry(2003,null,null,
         mdsys.sdo_elem_info_array(1,1003,4),
         mdsys.sdo_ordinate_array(848948,834940,848908,834980,848908,834900)),
         'mask=ANYINTERACT querytype=WINDOW')='TRUE';
    but it end up of ORA-03113: end-of-file on communication channel
    Then I try another query, which I think do the similar thing
    select n.ID,n.FEATURE_ID
    from NC_MANGROVE n
    where sdo_within_distance(n.shape,
         mdsys.sdo_geometry(2001,null,mdsys.sdo_point_type(848908,834900,null),null,null),
         'distance=40')='TRUE';
    but same error occurs.
    Is it the SQL*net configure problem. I am using Oracle 8.1.7 for both client and server.
    Please help
    Tommy

    Does SDO_FILETER Queries work fine? If so there is already reported bug and patch for that on Metalink site. Get all the patches for 8.17 spatial and install those.

  • Oracle 8.1.5, ORA-03113: end-of-file on communicat

    My Environment:
    ====================
    Unix Solaris 7
    jre 1.1.6; using native threads (sparc)
    Oracle 8i 8.1.5
    Netscape Enterprise Server 3.6
    Servlet Exec 2.0.2 plugin for NE Server
    LD_LIBRARY_PATH is set to include oracle libraries.
    CLASSPATH is set to include oracle classes111.zip
    and nls_charset10.zip.
    Include sample program JdbcCheckup confirmed that
    oracle installation is correct.
    Problem:
    ========
    Our servlet accesses Oracle DB using oci8 drivers.
    We are able to succesfully run simple queries
    (accessing only 1 table) with result set containing
    upto 9882 rows. However, a more complicated query,
    accessing 3 tables (one table contains 9882 rows)
    and performing a join, usually fails. By some miracle,
    it run couple of times after we accessed the same tables
    a few times with some simple queries (probably, some data
    were cached by Oracle and succesfully reused).
    Query fails with the message specified in the subject:
    SQLException: ORA-03113: end-of-file on communication channel
    If we try to repeat the same query with the same connection,
    we get:
    ORA-01041: internal error. hostdef extension doesn't exist
    Any ideas ? Thanks.
    Bozhena Bidyuk
    Here is a stack trace for ORA-03113:
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java)
    at oracle.jdbc.oci8.OCIDBAccess.fetch(OCIDBAccess.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement
    .java)
    at
    oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleSta
    tement.java)
    at
    oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.j
    ava)
    at JdbcDbs.doQuery(JdbcDbs.java)
    at HandleRequests.doQuery(HandleRequests.java)
    at HandleRequests.process(HandleRequests.java)
    at DataPortServlet.service(DataPortServlet.java)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at
    newatlanta.servletexec.ServletThread.run(ServletThread.java:122)
    null

    jreynolds wrote:
    I've already given the developers a changed version that works, but here's the part I don't understand. When it's run as is I get the Ora-03113, but if I change the alias in the subquery select to og (the outer query alias), this sql runs. What is it about selecting the subquery column that is used in the where portion of the exists that makes oracle 9.2.0.1 on windows 2003 enterprise server lose the connection.
    Any ideas would be greatly appreciated.
    thanks in advance.You're using an unpatched base release and simply hitting a bug that causes the server foreground process that serves your request to fail with an exception that causes the operating system to kill the corresponding process (e.g. segment access violation, general protection fault, you name it).
    As a workaround use the rewritten query you've already found out but you should consider to install at least the 9.2.0.8 patch set to prevent most of such nasty bugs in the future.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Steps to save a Query/Report as Excel file in Share folder

    Hi,
    I have a requirement where i need to schedule a BI report automatically on a daily basis and save it in a Sharepoint folder as a excel file.  I have gone through the Forums but didnt get a clear idea on how to proceed this with.  I read about RSCRM_BAPI transaction but i hope we need to do this manually to save the file each time.  Also, in Broadcaster there are options only to send Email & save in Portal. 
    So, if anybody have idea on saving a Query/Report as excel file in a Share folder automatically, kindly help me in suggesting the steps to do this activity.
    Regards,
    Murali

    Hi
    1. Create Three Floders in AL11 i.e. in Apllication Server. Eg Name it F1, F2 and F3.
    2. First dump the .csv files into F1. (Name xyz.csv).
    3. Then using UNIX/WINDOWS (depends on your OS) script , first check the file is there are not in F1, if yes then rename the file with date and time or date and transfer the files from F1 to F2 i.e xyz06032010.csv.
    4. Then Create a small ABAP program to check the file in F2, if it is there then Trigger the Event, and using that event you execute teh PC.
    5. Then using UNIX/WINDOWS (depends on your OS) script , transfer the files from F2 to F3 i.e xyz06032010.csv
    6. Next day morning F1 and F2 are empty and F3 is having the backup files.
    So use this method, I used the similar logic and it is working fine.
    Timinings are importent i.e what time you need to dump the fule in F1 and what time you need to run UNIX/WINDOWS (depends on your OS) script , transfer the files from F1 to F2 and what time UNIX/WINDOWS (depends on your OS) script , transfer the files from F2 to F3.
    OR
    1. Create Two Floders in AL11 i.e. in Apllication Server. Eg Name it F1 and F2
    2. First dump the .csv files into F1. (Name xyz.csv)
    3. Then load the data using InfoPackage, through PC.
    4. At the end of the load Attach a simple Program to Move the xyz.csv file from F1 to F2.
    5. So next day the file will come to F1 and the it will load and at the end it will move to F2.
    Else  you can use simple one or two lines of UNIX/WINDOWS (depends on your OS) script to move the file from F1 to F2 , once you load is over.
    While moving the file from F1 to F2 you can append the date at the end of the file and then move to F2, it is use full for future reference.
    See Blogs and Article, similar logic...
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    How to transfer the Data from SAP-System to Non-SAP system without additional Cost/License
    /people/surendrakumarreddy.koduru/blog/2009/03/11/how-to-transfer-the-data-from-sap-system-to-non-sap-system-without-additional-costlicense
    To Check the Files/Reports in Application Server and Trigger Mail Alerts.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/4096bf2d-bcea-2b10-4ab4-e0683830d9b2&overridelayout=true
    Thanks
    Reddy
    Edited by: Surendra Reddy on Mar 12, 2010 6:41 AM

  • FULL JOIN Error - (ORA-03113: end-of-file on communication channel)

    Hello,
    well my following query is running fine, no errors but not showing join records from table B and E.
    Query is as following:
    SELECT D.EMPLOYEE_ID, F.EMP_NAME,
    F.COMPANY_ID, F.COMP_NAME, F.BRANCH_ID, F.BR_NAME,
    TO_CHAR(F.BIRTH_DATE,'DD/MM/YYYY') DOB,
    ((NVL(A.PF_OWN,0) + NVL(A.PF_COMP,0) + NVL(A.PROF_OWN,0) + NVL(A.PROF_COMP,0) + NVL(B.PROF_OWN,0) +
    NVL(B.PROF_COMP,0) + NVL(B.TOT_PF_OWN,0) + NVL(B.TOT_PF_COMP,0) +
    NVL(D.SAL_PF_OWN,0) + NVL(D.SAL_PF_COMP,0) -
    (NVL(E.REV_PF_OWN,0) + NVL(E.REV_PF_COMP,0) + NVL(C.WD_PF_OWN,0) + NVL(C.WD_PF_COMP,0) +
    NVL(C.WD_PROF_OWN,0) + NVL(C.WD_PROF_COMP,0)))) PF_BALANCE
    FROM
    (SELECT EMPLOYEE_ID, SUM(PF_OWN) SAL_PF_OWN, SUM(PF_COMP) SAL_PF_COMP
    FROM EMPLOYEE.EMP_SAL_DETAILS
    WHERE SAL_DATE >= (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE <= '01-DEC-06')
    AND SAL_DATE <= '01-DEC-06'
    GROUP BY EMPLOYEE_ID) D
    LEFT JOIN
    (SELECT EMPLOYEE_ID, PF_OWN, PF_COMP, PROF_OWN, PROF_COMP
    FROM EMPLOYEE.EMP_PF_OPBALS
    WHERE AS_ON_DATE IN (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE <= '01-DEC-06')) A
    ON (D.EMPLOYEE_ID = A.EMPLOYEE_ID)
    LEFT JOIN
    (SELECT EMPLOYEE_ID, SUM(TOT_PF_OWN) TOT_PF_OWN, SUM(TOT_PF_COMP) TOT_PF_COMP, SUM(PROF_OWN) PROF_OWN, SUM(PROF_COMP) PROF_COMP
    FROM EMPLOYEE.EMP_PF_PROF_DETAILS WHERE END_DATE >= (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE <= '01-DEC-06')
    GROUP BY EMPLOYEE_ID) B
    ON (D.EMPLOYEE_ID = B.EMPLOYEE_ID)
    LEFT JOIN
    (SELECT EMPLOYEE_ID, SUM(PF_OWN) WD_PF_OWN, SUM(PF_COMP) WD_PF_COMP, SUM(PROF_OWN) WD_PROF_OWN, SUM(PROF_COMP) WD_PROF_COMP
    FROM EMPLOYEE.EMP_PF_WITHDRAWALS WHERE PF_WDRAW_DATE >= (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE <= '01-DEC-06')
    GROUP BY EMPLOYEE_ID) C
    ON (D.EMPLOYEE_ID = C.EMPLOYEE_ID)
    LEFT JOIN
    (SELECT EMPLOYEE_ID, SUM(PF_OWN) REV_PF_OWN, SUM(PF_COMP) REV_PF_COMP
    FROM EMPLOYEE.EMP_SAL_REVERSALS
    WHERE SAL_DATE >= (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE >= '01-DEC-06')
    AND SAL_DATE <= '01-DEC-06'
    GROUP BY EMPLOYEE_ID) E
    ON (D.EMPLOYEE_ID = E.EMPLOYEE_ID)
    LEFT JOIN
    (SELECT EMPLOYEE_ID, COMPANY_ID, COMP_NAME, BRANCH_ID, BR_NAME, EMP_NAME, BIRTH_DATE, CONF_DATE FROM V_SEL_SYS_EMP) F
    ON (D.EMPLOYEE_ID = F.EMPLOYEE_ID)
    ORDER BY D.EMPLOYEE_ID
    And when i try to full join my tables and replace LEFT JOIN with FULL OUTER JOIN following errors accurs:
    (ORA-03113: end-of-file on communication channel) and oracle gets disconnect.
    Query will only show records its tables are FULL JOINED.
    Please help what is the solution. Its very urgent also.
    I am thankful to you.
    Regards,
    Imran

    > And when i try to full join my tables and replace LEFT JOIN with FULL OUTER
    JOIN following errors accurs:
    (ORA-03113: end-of-file on communication channel) and oracle gets disconnect.
    This is not an error, but a symptom of an error. An ORA-03113 results when the Oracle Server Process that services your client, terminates abnormally. When that server process terminates, the connection (TCP socket) to your client is torn down - without your client knowing about it.
    The ORA-03113 is generated by your client's Oracle driver when your client suddenly discovers that the connection to the Oracle Server Process is no longer there.
    So why does the Server Process terminate abnormally? Usually due to an internal error (an ORA-600 and/or an ORA-7445).
    These errors results in:
    - error messages to be generated in the Oracle instance's alert log
    - a trace file generated by the server process that includes stack and memory dumps
    You need to determine what these errors are, and the use the ORA-600/ORA-7445 Troubleshooter (Metalink Note 153788.1) on [url http://metalink.oracle.com]Metalink to troubleshoot the error, determine whether it is a bug, if there is a patch or a workaround available, etc.
    > Please help what is the solution. Its very urgent also.
    I do not mind helping out where I can. But I do have a problem with people claiming there problem is urgent, and deserves quicker/better attention that other peoples' problems around here,
    If your problem is urgent then you are in the wrong place. I do not get paid to solve urgent problems quickly. I and others, spend our free time providing assistance. You cannot demand any kind of urgent attention from any of us.
    If you like urgent and special attention, use Oracle Support.

  • Error ORA-03113: end-of-file on communication channel in droppping  a table

    Good evening,
    I am very new on Oracle and I have a problem with some tables. Without any reason, apparently, I can't drop some of my table. Oracle gives me this error:
    ORA-03113: end-of-file on communication channel
    and then close the connection of the user.
    What I should have to do?
    It is very important.
    Thanks a lot
    best regards
    Anna Zanetti

    Good morning, I still have the same problem, I can't drop a table from my database.
    The message is again:
    Re: Error ORA-03113: end-of-file on communication channel
    The alert log file says:
    Fri Nov 17 12:27:31 2006
    Errors in file /usr/oracle/admin/oracledb/udump/oracledb_ora_4369.trc:
    ORA-07445: exception encountered: core dump [0955C61F] [SIGSEGV] [Address not mapped to object] [0xC] [] []
    and in file oracledb_ora_4369.trc there is:
    Exception signal: 11 (SIGSEGV), code: 1 (Address not mapped to object), addr: 0xc, PC: [0x955c61f, 0955C61F]
    Registers:
    %eax: 0x00000000 %ebx: 0x00012d95 %ecx: 0x58301930
    %edx: 0x00000000 %edi: 0x5830d9e8 %esi: 0x00000000
    %esp: 0xbfffae1c %ebp: 0xbfffb060 %eip: 0x0955c61f
    %efl: 0x00210282
    (0x955c61f) movzw 0xc(%eax),%eax(0x955c623) cmp $30,%eax
    (0x955c626) jle 0x955c63e
    (0x955c628) xor %edx,%edx
    (0x955c62a) push %edx
    *** 2006-11-17 12:27:31.658
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [0955C61F] [SIGSEGV] [Address not mapped to object] [0xC] [] []
    Current SQL statement for this session:
    drop table fiumiforjoin
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    08856247 call 0885776A 1 ? 0 ? 1 ? 1 ? 0 ? 0 ?
    08290320 call 0885605A 3 ? 0 ? 0 ? 0 ? 0 ? 0 ?
    0955C61F signal 08290320 B ? BFFFAAB0 ? BFFFAB30 ?
    0955D6BE call 0955C61F 5830F01C ? 0 ? FFFFFFFF ? 0 ?
    1 ? 5830F01C ?
    08DD1EEB call 0955CC22 BFFFB394 ? 0 ? 0 ? BFFFB348 ?
    58EAB2B0 ? C ?
    09434EF3 call 08DD1A28 BF2A8C4 ? BFFFC0C0 ?
    BFFFC0C0 ? 4 ? B6AB0300 ?
    B6ABC2E0 ?
    094106E0 call 094326D4 4 ? 0 ? BFFFC0C0 ?
    093D7BB5 call 0940FEF8 3 ? E ? BFFFC1F8 ? A4 ?
    093D630C call 093D7AC4 BFFFCDF0 ? BFFFCD08 ? 17 ?
    1 ? 0 ? A4 ?
    08293DE6 call 0850FFFF 5E ? 14 ? BFFFCDEC ?
    0A1ED44D call 08293DE6 5E ? 14 ? BFFFCDEC ? 0 ?
    08292122 call 0A1ECAE4 BF2A8C0 ? 5E ? BFFFCDEC ? 0 ?
    BFFFD6E8 ? BFFFD6E4 ?
    0941F190 call 0829193C 0 ? 0 ? BF2A8C0 ? BF83090 ?
    F1 ? 0 ?
    08293DE6 call 0850FFFF 3C ? 4 ? BFFFEB08 ?
    08291238 call 082937A8 3C ? 4 ? BFFFEB08 ? 0 ?
    0828F403 call 08291012 3C ? 4 ? BFFFEB08 ?
    08274A3D call 0828F39C BFFFEAEC ? 3C ? 4 ?
    BFFFEB08 ? B6CC017C ?
    B6C1A17C ?
    __libc_start_main() call 08274A3D 2 ? BFFFEBA4 ? BFFFEBB0 ? 0 ?
    +218 B6C1C898 ? B7600020 ?
    Any idea of what I have to do?
    Thanks for your help..
    Best Regards
    Anna Zanetti

  • Query regarding updation thru a Procedure

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru my Java application.
    The submit procedure saves the XML data in the database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by adding new elements to the same row.This row now contains additional XML elements.
    I would like to display the new row with the new elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru
    my Java application.
    The submit procedure saves the XML data in the
    database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by
    adding new elements to the same row.This row now
    contains additional XML elements.
    I would like to display the new row with the new
    elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with
    the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,If you delete (it seems to me yours this process is regular and frequent) and re insert the new updated one record then High water mark will cause to scan yours table which may cause to degrade the performance.AFAIK you should go with update.But hold down dont implement it as i suggested lets see what are others solution here which may be more precious then mine.
    Khurram

  • Create end of file character in email attachment

    Hi all,
    Currently I am attaching a text file to the email send using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    But here the issue is, in attachment file there are extra 3 blank lines are getting filled which client does't want.
    Is there any way to generate end of file character, to add after all rows got filled in internal table?
    Or is there any way to not to filled blank lines at the end of the file?
    Please advise a solution.
    Thanks and Regards
    Nishad

    Hi,
    gs_packinglist-doc_size =  gf_count * 255 .
    This is how I am passing the doc_size. In the above, gf_count is the number rows in attachment file that I am multiplying with 255 characters as I am passing attachment in contents_bin parameter.
    Thanks and regards
    Nishad

  • A query regarding synchronised functions, using shared object

    Hi all.
    I have this little query, regarding the functions that are synchronised, based on accessing the lock to the object, which is being used for synchronizing.
    Ok, I will clear myself with the following example :
    class First
    int a;
    static int b;
    public void func_one()
    synchronized((Integer) a)
    { // function logic
    } // End of func_one
    public void func_two()
    synchronized((Integer) b)
    { / function logic
    } // End of func_two
    public static void func_three()
    synchronized((Integer) a)
    { // function logic
    } // End of func_three, WHICH IS ACTUALLY NOT ALLOWED,
    // just written here for completeness.
    public static void func_four()
    synchronized((Integer) b)
    { / function logic
    } // End of func_four
    First obj1 = new First();
    First obj2 = new First();
    Note that the four functions are different on the following criteria :
    a) Whether the function is static or non-static.
    b) Whether the object on which synchronization is based is a static, or a non-static member of the class.
    Now, first my-thoughts; kindly correct me if I am wrong :
    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisation, since in case obj1 and obj2 happen to call the func_one at the same time, obj1 will obtain lock for obj1.a; and obj2 will obtain lock to obj2.a; and both can go inside the supposed-to-be-synchronized-function-but-actually-is-not merrily.
    Kindly correct me I am wrong anywhere in the above.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation.
    Kindly correct me I am wrong anywhere in the above.
    c) In case 3, we have a static function , synchronized on a non-static object. However, Java does not allow functions of this type, so we may safely move forward.
    d) In case 4, we have a static function, synchronized on a static object.
    Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation. But we are only partly done for this case.
    First, Kindly correct me I am wrong anywhere in the above.
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".
    Another query : so far we have been assuming that the only objects contending for the synchronized function are obj1, and obj2, in a single thread. Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.a; and again obj1 trying to obtain lock for obj1.a, which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed. Thus, effectively, our synchronisation is broken.
    Or am I being dumb ?
    Looking forward to replies..
    Ashutosh

    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisationThere is no synchronization between distinct First objects, but that's what you specified. Apart from the coding bug noted below, there would be synchronization between different threads using the same instance of First.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.obj1/2 don't call methods or try to obtain locks. The two different threads do that. And you mean First.b, not obj1.b and obj2.b, but see also below.
    d) In case 4, we have a static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.Again, obj1/2 don't call methods or try to obtain locks. The two different threads do that. And again, you mean First.b. obj1.b and obj2.b are the same as First.b. Does that make it clearer?
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".That's what happens in any case whether you write obj1.func_four(), obj2.func)four(), or First.func_four(). All these are identical when func_four(0 is static.
    Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.aNo we don't, we have a thread trying to obtain the lock on First.b.
    and again obj1 trying to obtain lock for obj1.aYou mean obj2 and First.b, but obj2 doesn't obtain the lock, the thread does.
    which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed.Of course it won't. Your reasoning here makes zero sense..Once First.b is locked it is locked. End of story.
    Thus, effectively, our synchronisation is broken.No it isn't. The second thread will wait on the same First.b object that the first thread has locked.
    However in any case you have a much bigger problem here. You're autoboxing your local 'int' variable to a possibly brand-new Integer object every call, so there may be no synchronization at all.
    You need:
    Object a = new Object();
    static Object b = new Object();

  • Help - Premature end of file Exception while using saaj

    Hi Everyone,
    I have written a sample saaj client, with a string as an attachment and trying to send it to a servlet as shown in the example below:
    * SaajClient.java
    * Created on June 23, 2004, 5:49 PM
    * @author Krishna Menon
    import javax.xml.soap.*;
    import javax.xml.messaging.URLEndpoint;
    public class SaajClient {
    public SaajClient() throws Exception
    try{
    SOAPMessage soapMessage = MessageFactory.newInstance().createMessage();
    SOAPPart soapPart = soapMessage.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPHeader header = envelope.getHeader();
    SOAPBody body = envelope.getBody();
    header.detachNode();
    String str = "Something a;alskdjf;laksjdfl;akjsdf;lk ;alskdjfl;asjdfl;ajk ;kdls a;kl";
    if(soapMessage != null)
    AttachmentPart attachment = soapMessage.createAttachmentPart();
    attachment.setContentType("text/plain");
    attachment.setContent(str,"text/plain");
    attachment.setContentId("Sample_String");
    soapMessage.addAttachmentPart(attachment);
    soapMessage.saveChanges();
    SOAPConnection connection = SOAPConnectionFactory.newInstance().createConnection();
    URLEndpoint endpoint = new URLEndpoint("http://10.2.1.132:8080/WebServices/servlet/AttachmentReceiver");
    SOAPMessage response = connection.call(soapMessage,endpoint);
    response.writeTo(System.out);
    }catch(Exception e)
    System.out.println("Caught in constructor");
    e.printStackTrace();
    public static void main(String args[])
    try
    SaajClient client = new SaajClient();
    }catch(Exception e)
    e.printStackTrace();
    When I run the above program, it is giving the following exception:
    Caught in constructor
    javax.xml.soap.SOAPException: org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:110)
    at SaajClient.<init>(SaajClient.java:58)
    at SaajClient.main(SaajClient.java:74)
    Caused by: org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:1753)
    at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:105)
    ... 2 more
    Caused by: org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1139)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
    ... 7 more
    If anybody has a solution for it, please post it here.
    Thanks in advance,
    With Regards,
    Krishna Menon. B.

    Hi
    Actually the problem is not with the client but with the servlet I think. In the servlet, I am able to retrieve the attachment and print its content. After receiving the Message, I am creating a new message and populating its body with a new child element and returning the message back to the client. Just Before returning the message, I am getting the Axis Fault error in the log file. I am giving the code for the Servlet I have used below:
    * AttachmentReceiver.java
    * Created on June 23, 2004, 7:11 PM
    * @author Krishna Menon
    import java.util.Iterator;
    import javax.servlet.ServletException;
    import javax.xml.messaging.JAXMServlet;
    import javax.xml.messaging.ReqRespListener;
    import javax.xml.soap.AttachmentPart;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPFactory;
    * Servlet that accepts a SOAP message and looks through
    * its attachments before sending the SOAP part of the message
    * to the console and sending back a response
    * @author Krishna Menon
    public class AttachmentReceiver extends JAXMServlet implements ReqRespListener {
    private MessageFactory fac;
    public void init() throws ServletException {
    try {
    fac = MessageFactory.newInstance();
    catch( Exception ex ) {
    System.out.println("In AttachmentReceiver init");
    ex.printStackTrace();
    throw new ServletException( ex );
    // This is the application code for handling the message.. Once the
    // message is received the application can retrieve the soap part, the
    // attachment part if there are any, or any other information from the
    // message.
    public SOAPMessage onMessage( SOAPMessage message ) {
    System.out.println( "On message called in receiving servlet" );
    try {
    System.out.println( "\nMessage Received: " );
    System.out.println( "\n============ start ============\n" );
    // dump out attachments
    System.out.println( "Number of Attachments: " + message.countAttachments() );
    int i = 1;
    for( Iterator it = message.getAttachments(); it.hasNext(); i++ ) {
    AttachmentPart ap = (AttachmentPart) it.next();
    System.out.println( "Attachment #" + i + " content type : " +
    ap.getContentType() );
    System.out.println("Attachment Content ::"+ap.getContent());
    // dump out the SOAP part of the message
    SOAPPart soapPart = message.getSOAPPart();
    System.out.println( "SOAP Part of Message:\n\n" + soapPart );
    System.out.println( "\n============ end ===========\n" );
    SOAPMessage msg = fac.createMessage();
    SOAPEnvelope env = msg.getSOAPPart().getEnvelope();
    SOAPFactory soapFactory = SOAPFactory.newInstance();
    System.out.println("Before getBody");
    env.getBody().addChildElement(soapFactory.createName("MessageResponse")).addTextNode("From Attachment Servlet"+"\nYour Attachment Received");
    System.out.println("After getBody");
    //addChildElement("MessageResponse").addTextNode("From Attachment Servlet"+"\nYour Attachment Received");
    msg.saveChanges();
    System.out.println("After Msg Save Changes");
    return msg;
    catch( Exception e ) {
    System.out.println("From OnMessage() of AttachmentReceiver");
    e.printStackTrace();
    return null;
    This is generating the following series of errors in the catalina.out (Tomcat4.1 error log ) file:
    On message called in receiving servlet
    Message Received:
    ============ start ============
    Number of Attachments: 1
    Attachment #1 content type : text/plain
    SOAP Part of Message:
    org.apache.axis.SOAPPart@16fdac
    ============ end ===========
    - java.io.IOException:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.ClassCastException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace: java.lang.ClassCastException
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:173)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:509)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:783)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
         at org.apache.axis.Message.writeTo(Message.java:440)
         at javax.xml.messaging.JAXMServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.ClassCastException
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:272)
         at org.apache.axis.Message.writeTo(Message.java:440)
         at javax.xml.messaging.JAXMServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:173)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:509)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:783)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
         ... 33 more

Maybe you are looking for

  • Apple tv und iPhone 4

    Hallo zusammen! Kurze frage. Kann ich mit meinem iPhone 4 in verbindung mit der apple tv box Videos (z.B. Youtube) per airstream auf meinem tv abspielen? Oder geht das nur mit dem 4s?

  • How to delete archive log files from ASM through Grid Control

    Hi Anybody suggest me how to delete archive log files from ASM through Grid Control. Thanks

  • ITunes (iMac) can't find album art

    So about a month ago I finally took the plunge and switched from PC to Mac. I have an iMac, running Mavericks, and itunes 11. I also have a Time Capsule, and when I moved my itunes library from the PC I put it there, both so I wouldn't clutter up my

  • Image Capture won't see my iPhone 4s running iOS 6.1

    I use Image Capture to pull images off my phone since I don't have iPhoto and I like to have more control of where my photos go. However today I plugged my iPhone 4s running iOS 6.1 into my MacBook Pro 2010 running Lion 10.7.4 and the iPhone will pop

  • Applications won't work

    Hello I have 3 problems. My virtual keyboard is displayed more. I d'ont found the most Tweeter application, yet it exists in the list. And I can't open new applications I downoload in Appworld because my terminal displays ERROR. Please help me