PI 7.1 IMAP email Adapter Error reading large amounts of emails

Hi,
are there any known problems with the email-Adapter (Sender), reading IMAP MS Exchange Server?
We have an email adapter reading the MS Exchange Server Mail Account once per Minute and in the mail account are about 4.000 unread email  (1KB each) .
After 2000 emails, the adapter stops working and throws only exceptions.
Any idea?
Thanks
hs

Hi Holger,
i made a few tests at that time, and there was no specific scenario which re-produced this error.
In some tests i was able to process more than 3000 emails before the error occured, next time only 2000.
And this only occured when the inbox had a huge amount of emails. if i moved, lets say 1000 emails to a temporary folder,
processed 1000 and then moved the 1000 back to the inbox, there was no problem. Now i'm polling every minute and i'm
not receiving 2000 emails in a minute, so i'm not having this issue anymore. it only happend when we stopped the
sender channel for a while and a lot of emails were queuing up in the inbox.  I don't think that there are any MS Exchange settings that need to be changed and when we spoke to Support that time, they refered to the Note i mentioned earlier.
Maybe there is still a problem in the mail adapter itself..
regards,
Daniel

Similar Messages

  • How do i delete large amount of emails with the iPad mini

    how do i delete large amounts of emails using the ipad mini

    To delete multiple emails touch Edit, select all the emails and then touch Trash.
    There is no way to delete all emails from the Inbox. One can delete all emails from Trash.

  • Deleting large amount of emails locks up Mail?

    I have a local mailbox ("On My Mac") that has about 50000 messages, and I want to delete about half of them. Deleting messages is always very slow (tbh, doing anything in Mail is very slow), but when I try to delete more than 5000 messages at once, Mail simply locks up on me.
    I thought that it was just busy and would eventually come back, but I left it going overnight and came back to see it still locked up. So I force-quit and restarted it, only to find that none of the messages had been deleted or even moved to the trash. I guess deleting messages is an atomic process.
    So my question is, how can I delete a large amount of emails without locking up Mail and without manually sitting there deleting one, waiting 5 seconds for the app to start responding again, and delete another, 25000 times?

    I'm not surprised that dealing with so many messages chokes mail up.
    You can try deleting messages in chunks about 1000 at a time.
    also, you might want to try the following apple script.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Mail"
    set mlist to selection
    repeat with msg in mlist
    delete msg
    end repeat
    end tell</pre>
    Paste the script into Script Editor, select the messages you wish to delete in Mail and press "Run" in script editor. the script works by moving messages one at a time so I hope it shouldn't choke Mail up. However, it will take a long time to run.

  • Java NIO - reading large amount of data

    Hi,
    I have diffuculties of reading large amount of data with SocketChannel (using directAllocated buffer & allocated one). Files greater than 300KB are cut even though I tried write the data into FileChannel.
    My Code:
    ByteBuffer directBlockBuffer = ByteBuffer.allocateDirect(150000);
    buffer = ByteBuffer.allocate(6000000);
    out = new     FOS("d:\\msgData.tmp");
    fc=out.getFOS().getChannel(); // FileChannel               
    int fileLength = (int)fc.size();
    while (clientChannel.read(directBlockBuffer)>0)
    {                              directBlockBuffer.flip()                         buffer.put(directBlockBuffer);
         directBlockBuffer.compact();
    //close data file
                                       buffer.flip();
                                       fc.write(buffer);
                                       fc.close();
    FOS.close();
    // end of code
    Any ideas?
    Thanks
    AST

    I don't understand how the "write" result will help read the whole data.
    Anyway, I changed the code so the SocketChannel will read in smaller chunks (~8KB) & the FileChannel writes in every read
    but the data stream is cut again (to ~5KB no matter what size of file I send).
    In the updated code when try to compare socketChannel.read to -1 I got endless loop.
    I'm basically trying to write POP3/SMTP server program, this part of code handles attachment that is received by the SocketChannel in one unit (i.e 1+ MB of data, the other SMTP commands/lines are no more than 27 chars and simple to handle).
    Therefore I need to be ready to accept large amount of data to the buffer & write it to filechannel. (In the POP3 thread I'm using MappedByteBuffer successfully).
    Updated code:
    ByteBuffer directBlockBuffer = ByteBuffer.allocateDirect(8192);
    while (clientChannel.read   (directBlockBuffer>0&&directBlockBuffer.hasRemaining))
              directBlockBuffer.flip();
              fc.write(directBlockBuffer);
              directBlockBuffer.clear();
         }I think based on API my code is logical (and good for small files) but what about handling bigger files (up to 5MB)?
    Thanks,
    AST 

  • Tidal Email Adapter error monitoring folder 'INBOX':Illegal whitespace in address

    I am experiencing an issue with a tidal email adapter and email events are not being triggered.
    TIDAL Enterprise Scheduler: version 5.3.1.316
    Java version: 1.6.0_27
    Java Virtual Machine version: 20.2-b06
    Adapter Host: version 5.3.1.299
    Java version: 1.6.0_27
    Java Virtual Machine version: 20.2-b06
    Issue started shortly after our environment did a unexpected failover a couple of days ago.  The servers have been rebooted but the issue still appears
    I have disabled the email adapter and recreated a new one, issue is still there.  Any suggestions on resolving this would be appreciated. The email mailbox is working and recieving messages, and I am able to connect using a pop3 client to the mailbox no problem.
    Any suggestions would be appreciated.
    Here is the Tidal Master email adapter log messages:
    02/29 13:45:12:759[MD-8]: (mem=5062504/16515072) Connection 7: Error monitoring folder 'INBOX':Illegal whitespace in address
    02/29 13:45:12:759[MD-8]: (mem=5059960/16515072) javax.mail.internet.AddressException: Illegal whitespace in address in string ``Mail Delivery Subsystem''
    at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:900)
    at javax.mail.internet.InternetAddress.parse(InternetAddress.java:793)
    at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:554)
    at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:658)
    at javax.mail.internet.MimeMessage.getFrom(MimeMessage.java:321)
    at com.tidalsoft.service.logic.EmailInterface.b(Unknown Source)
    at com.tidalsoft.service.logic.EmailInterface.a(Unknown Source)
    at com.tidalsoft.service.logic.EmailInterface.a(Unknown Source)
    at bd.p(Unknown Source)
    at bd.l(Unknown Source)
    at com.tidalsoft.service.logic.ConnectionMessageHandler.onPoll(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at bt.a(Unknown Source)
    at ba.b(Unknown Source)
    at ba.a(Unknown Source)
    at com.tidalsoft.framework.message.BaseMessageHandlerImpl.onMessage(Unknown Source)
    at com.tidalsoft.framework.data.DataWrapper.onMessage(Unknown Source)
    at ad.run(Unknown Source)
    02/29 13:45:12:759[MD-8]: (mem=5062504/16515072) Connection 7: Error monitoring folder 'INBOX':Illegal whitespace in address
    02/29 13:45:12:759[MD-8]: (mem=5059960/16515072) javax.mail.internet.AddressException: Illegal whitespace in address in string ``Mail Delivery Subsystem''
    at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:900)
    at javax.mail.internet.InternetAddress.parse(InternetAddress.java:793)
    at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:554)
    at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:658)
    at javax.mail.internet.MimeMessage.getFrom(MimeMessage.java:321)
    at com.tidalsoft.service.logic.EmailInterface.b(Unknown Source)
    at com.tidalsoft.service.logic.EmailInterface.a(Unknown Source)
    at com.tidalsoft.service.logic.EmailInterface.a(Unknown Source)
    at bd.p(Unknown Source)
    at bd.l(Unknown Source)
    at com.tidalsoft.service.logic.ConnectionMessageHandler.onPoll(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at bt.a(Unknown Source)
    at ba.b(Unknown Source)
    at ba.a(Unknown Source)
    at com.tidalsoft.framework.message.BaseMessageHandlerImpl.onMessage(Unknown Source)
    at com.tidalsoft.framework.data.DataWrapper.onMessage(Unknown Source)
    at ad.run(Unknown Source)
    Thanks,
    Pete

    We found the problem, there was an message in the inbox that is being monitored by the email event.  The message was an undeliverable and the sender was = Mail Delivery Subsystem 
    We had received previous undeliverables from this company and the sender was =  Mail Delivery Subsystem <[email protected]
    The email monitoring was impacted by those previous message but as soon as it only reflected Mail Delivery Subsystem and no email domanin name it failed.
    Once we removed the messages from the inbox the email events triggered as expected.  I now need to build a rule to remove these message from the mailbox.
    Thanks,
    Pete

  • File Adapter Not Reading Large Files

    Dear Experts,
    Enviornment :-
    OS:-Linux
    Jdeveloper:- 11.1.1.6
    SOA:-11.1.1.6
    Weblogic:-10.3.6
    JDK:-SUN
    Allocated RAM:-16GB
    Currently we are in UAT Phase and now we are facingan  issue in reading large file.Below is the Design details of the service
    FileAdapter(Read)-->Bpel(Business login,Using FlowN)-->FileAdapter(Write CSV),JMS Adapter(AQ JMS topics)
    In this case at the time of read itself we are facing issue. File adapter reading xml file but in receive activity receives input data as
    xmlDocKey:1C135990067411E3BFA6B5087B629F9DI
    I really couldn;t understand about the error. Even i tried reading as Opaque format and still end up with same error.
    In order to make sure i have create mediator and tried reading the file, in case i was able to read file upto 15mb with out any error.Also i tried as  "read as Attachment" in Bpel component and able to read the attachment upto 7 mb file, but this is hitting the performance side.
    I request some one please let me know why the file adapter is giving XmlDOCKey rather then XMLContent to the inputvariable
    Regards,
    Tarak

    Can you check your BPEL Properties in EM?
    Go to Soa-infra > right Click > SOA Administration > BPEL properties
    increase the Dispatcher Engine Thread = 10, Dispatcher Invoke Threads = 60 and Dispatcher Engine Threads to 90
    Click on "More BPEL Configuration Properties"
    Increase the  DispatcherMaxRequestDepth from 600 to 1000.
    Bounce the server and see if works..
    Bounce the server and try again.
    If this fails, try get a threshold by increasing the file size until it fails again. 

  • Error reading Large Blobs

    Hello all,
    I have encountered the following problem when reading large BLOB data and sending it to an OutputStream. I receive the following error messages.
    exception thrown from the servlet service function (uri=/imagepush): java.lang.NullPointerException, stack: java.lang.NullPointerException
    at oracle.sql.LobPlsqlUtil.plsql_read(Compiled Code)
    at oracle.sql.LobPlsqlUtil.plsql_read(Compiled Code)
    at oracle.jdbc.dbaccess.DBAccess.lobRead(Compiled Code)
    at oracle.sql.LobDBAccessImpl.getBytes(Compiled Code)
    at oracle.sql.BLOB.getBytes(Compiled Code)
    at oracle.jdbc.driver.OracleBlobInputStream.needBytes(Compiled Code)
    at oracle.jdbc.driver.OracleBufferedStream.read(Compiled Code)
    at java.io.BufferedInputStream.read1(Compiled Code)
    at java.io.BufferedInputStream.read(Compiled Code)
    at java.io.FilterInputStream.read(Compiled Code)
    at imagepush.doGet(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    Any help or comments would be welcome.
    Thanks,
    Mark

    Here it is:
    Statement stmt = null;
    ResultSet rs = null;
    try
    BLOB blob;
    byte buffer[];
    con = myBroker.getConnection();
    String requestIMAGE = req.getParameter("imagenumber");
    stmt = con.createStatement();
    rs = (OracleResultSet)stmt.executeQuery("SELECT TITLE AS TITLE, DESCRIPTION AS DESCRIPTION, DATA AS IMAGE FROM IMAGES WHERE CAT_NUMBER = "+requestIMAGE+"");
    while (((OracleResultSet)rs).next())
    res.setContentType("image/tiff");
    blob = ((OracleResultSet)rs).getBLOB("IMAGE");
    // Create temporary buffer for read
    buffer = new byte[(int)blob.getChunkSize()];
    InputStream instream_non_buffered = blob.getBinaryStream(1);
    BufferedInputStream instream = new BufferedInputStream(instream_non_buffered, (int)blob.getChunkSize());
    // length of bytes read
    int length = 0;
    // Fetch data
    while ((length = instream.read(buffer)) != -1)
    outstream.write (buffer, 0, length);
    outstream.flush();
    buffer = null;
    outstream.close();
    rs.close();
    rs=null;
    stmt.close();
    stmt=null;
    con.close();
    con=null;
    I use Connection Pools for the connection to the DB. When only one client is accessing the servlet everything works fine...as soon as a second client tries to access the servlet while client 1 is downloading I get the previously mentioned error messages. I have my connection pools setup in a seperate servlet and user servlet chaining to use the connection pool connection in this servblet.
    Hope someone can help...
    Cheers,
    Mark

  • Sender File Adapter Error reading file

    Hello!
    I have a problem with reading a file using the FTP adapter.
    I have configured everything according to the steps of weblog "FILE to JDBC Adapter using SAP XI 3.0" (/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30).
    I know the sender FTP adapter can connect to the directory and file because:
    1) it has complained about wrong format in the content conversion (has been fixed)
    2) when there is no file for it there to pick up, the FTP flag in the adapter monitor is green
    When I put a file in the specified directory I get the following error:
    - 2006-06-21 09:52:23 CDT: Retry interval started. Length: 10.000 s
    - 2006-06-21 09:52:23 CDT: Error: Retrieving file 'test_file.dat' failed unexpectedly: FTPEx: Public: The system cannot find the file specified.
    - 2006-06-21 09:52:20 CDT: Processing started
    - 2006-06-21 09:52:13 CDT: Error: Retrieving file 'test_file.dat' failed unexpectedly: FTPEx: Public: The system cannot find the file specified.
    - 2006-06-21 09:52:10 CDT: Processing started
    I also get the same error if I skip the content conversion and put a "ready" XML file there.
    There should be no auth problems at all. Public server, and I can log on, get, put, delete etc. Also it can apparently read it since it can complain about the content format. Anyone seen this before?
    Please advise. Thanks!
    Nam

    Hi Nam,
    Is your User Id and User Id/Password is correct ?
    Is connection mode is per file transfer in File Adapter configuration?
    Also you can see the log from Visual Admin..
    Regards,
    Moorthy

  • XML-Export Error for large amount of data

    Hi there...
    I have an application process, which runs on demand (Button) and which exports data (from sql query) into a file (.xls).
    The result is being formated and the export works fine as long as the query returns just a small amount of data, approx. 8 to 10 rows.
    As the result is being stored in a clob, I output the data with "htp.prn" in a loop by "cutting" the clob into small pieces (varchar).
    However, as soon as the amount is bigger than the mentioned 8 to 10 rows, I get an error (sqlerrm:ORA-06502: PL/SQL: numeric or value error).
    I guess there must be something wrong with my loop or the way I "cut" the clob into pieces and output them.
    Maybe someone has a hint for me where to look at exactly!?
    Thanks in advance...
    Johnny
    Here is my code (I removed parts of it, which are not important for this issue):
    declare
    l_xml_header varchar2(32767);
    l_xml_body clob;
    l_xml_text varchar2(32767);
    l_xml_footer varchar2(32767);
    runner number;
    clob_size number;
    begin
    runner := 2;
    owa_util.mime_header( 'application/octet', FALSE);
    htp.p('Content-Disposition: attachment; filename="Test.xls"');
    owa_util.http_header_close;
    l_xml_header := '<?xml version="1.0" encoding="utf-8"?>'||chr(10)||
    '<?mso-application progid="Excel.Sheet"?>'||chr(10)||
    '<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"'||chr(10)||
    'xmlns:o="urn:schemas-microsoft-com:office:office"'||chr(10)||
    'xmlns:x="urn:schemas-microsoft-com:office:excel"'||chr(10)||
    'xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"'||chr(10)||
    'xmlns:html="http://www.w3.org/TR/REC-html40">'||chr(10)||
    '<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">'||chr(10)||
    '<Version>1.0</Version>'||chr(10)||
    '</DocumentProperties>'||chr(10)||
    '<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">'||chr(10)||
    '<WindowHeight>8580</WindowHeight>'||chr(10)||
    '<WindowWidth>15180</WindowWidth>'||chr(10)||
    '<WindowTopX>120</WindowTopX>'||chr(10)||
    '<WindowTopY>45</WindowTopY>'||chr(10)||
    '<ProtectStructure>False</ProtectStructure>'||chr(10)||
    '<ProtectWindows>False</ProtectWindows>'||chr(10)||
    '</ExcelWorkbook>'||chr(10)||
    '<Styles>'||chr(10)||
    '<Style ss:ID="Default" ss:Name="Normal">'||chr(10)||
    '<Alignment ss:Vertical="Bottom"/>'||chr(10)||
    '<Borders/>'||chr(10)||
    '<Font ss:FontName="Arial" x:Family="Swiss"/>'||chr(10)||
    '<Interior/>'||chr(10)||
    '<NumberFormat/>'||chr(10)||
    '<Protection/>'||chr(10)||
    '</Style>'||chr(10)||
    '<Style ss:ID="s22">'||chr(10)||
    '<Font x:Family="Swiss" ss:Bold="1"/>'||chr(10)||
    '</Style>'||chr(10)||
    '<Style ss:ID="s67">'||chr(10)||
    '<Font ss:FontName="Arial" x:Family="Swiss" ss:Color="#FFFFFF"/>'||chr(10)||
    '</Style>'||chr(10)||
    '<Style ss:ID="s157">'||chr(10)||
    '<Borders/>'||chr(10)||
    '</Style>'||chr(10)||
    '<Style ss:ID="s158">'||chr(10)||
    '<Borders>'||chr(10)||
    '<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>'||chr(10)||
    '</Borders>'||chr(10)||
    '</Style>'||chr(10)||
    '</Styles>';
    for z in 1..1
    loop
    l_xml_body:=l_xml_body||'<Worksheet ss:Name="Worksheet1"> <Table x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="60">';
    l_xml_body:=l_xml_body||'<Row><Cell ss:StyleID="s163"><Data ss:Type="String">Colum1</Data></Cell>'||
    '<Cell ss:StyleID="s163"><Data ss:Type="String">Colum2</Data></Cell>'||
    '<Cell ss:StyleID="s163"><Data ss:Type="String">Colum3</Data></Cell>'||
    '<Cell ss:StyleID="s163"><Data ss:Type="String">...</Data></Cell>'||
    '<Cell ss:StyleID="s166"><Data ss:Type="String">ColumN</Data></Cell></Row>';
    for z in (
    select
    a."Col1",
    a."Col2",
    b."Col3",
    b."ColN"
    from table1 a,
    table2 b
    where a.id = b.id
    loop
    l_xml_body := l_xml_body||'<Row><Cell ss:StyleID="s157"><Data ss:Type="String">'||
    z.Col1||'</Data></Cell><Cell ss:StyleID="s157"><Data ss:Type="String">'||
    z.Col2||'</Data></Cell><Cell ss:StyleID="s157"><Data ss:Type="String">'||
    z.Col3||'</Data></Cell><Cell ss:StyleID="s157"><Data ss:Type="String">'||
    ... ||'</Data></Cell><Cell ss:StyleID="s157"><Data ss:Type="String">'||
    z.ColN||'</Data></Cell>';
    l_xml_body := l_xml_body||'</Row>'||chr(10);
    runner := runner + 1;
    end loop;
    l_xml_body := l_xml_body||'</Table>';
    end loop;
    clob_size := dbms_lob.getlength(l_xml_body);
    htp.prn(l_xml_header);
    for i in 1..ceil(clob_size / 32767)
    loop
    l_xml_text := dbms_lob.SUBSTR (l_xml_body, 32767, v_count);
    HTP.prn (l_xml_text);
    v_count := v_count + 32767;
    end loop;
    htp.prn('</Worksheet></Workbook>');
    HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN
    OWA_UTIL.mime_header ('application/octet', FALSE);
    HTP.prn ('Content-Disposition: attachment; filename="Test.xls"');
    OWA_UTIL.http_header_close;
    HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;
    end;
    #######################################################

    Thanks for the hint Paul,
    here is my code in code-tags.
    I appreciate any help!
    Johnny
    declare
    l_xml_header varchar2(32767);
    l_xml_body clob;
    l_xml_text varchar2(32767);
    l_xml_footer varchar2(32767);
    runner number;
    clob_size number;
    begin
    runner := 2;
    owa_util.mime_header( 'application/octet', FALSE);
    htp.p('Content-Disposition: attachment; filename="Test.xls"');
    owa_util.http_header_close;
    l_xml_header := '<?xml version="1.0" encoding="utf-8"?>'||chr(10)||
    '<?mso-application progid="Excel.Sheet"?>'||chr(10)||
    '<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"'||chr(10)||
    'xmlns:o="urn:schemas-microsoft-com:office:office"'||chr(10)||
    'xmlns:x="urn:schemas-microsoft-com:office:excel"'||chr(10)||
    'xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"'||chr(10)||
    'xmlns:html="http://www.w3.org/TR/REC-html40">'||chr(10)||
    '<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">'||chr(10)||
    '<Version>1.0</Version>'||chr(10)||
    '</DocumentProperties>'||chr(10)||
    '<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">'||chr(10)||
    '<WindowHeight>8580</WindowHeight>'||chr(10)||
    '<WindowWidth>15180</WindowWidth>'||chr(10)||
    '<WindowTopX>120</WindowTopX>'||chr(10)||
    '<WindowTopY>45</WindowTopY>'||chr(10)||
    '<ProtectStructure>False</ProtectStructure>'||chr(10)||
    '<ProtectWindows>False</ProtectWindows>'||chr(10)||
    '</ExcelWorkbook>'||chr(10)||
    '<Styles>'||chr(10)||
    '<Style ss:ID="Default" ss:Name="Normal">'||chr(10)||
    '<Alignment ss:Vertical="Bottom"/>'||chr(10)||
    '<Borders/>'||chr(10)||
    '<Font ss:FontName="Arial" x:Family="Swiss"/>'||chr(10)||
    '<Interior/>'||chr(10)||
    '<NumberFormat/>'||chr(10)||
    '<Protection/>'||chr(10)||
    '</Style>'||chr(10)||
    '<Style ss:ID="s22">'||chr(10)||
    '<Font x:Family="Swiss" ss:Bold="1"/>'||chr(10)||
    '</Style>'||chr(10)||
    '<Style ss:ID="s67">'||chr(10)||
    '<Font ss:FontName="Arial" x:Family="Swiss" ss:Color="#FFFFFF"/>'||chr(10)||
    '</Style>'||chr(10)||
    '<Style ss:ID="s157">'||chr(10)||
    '<Borders/>'||chr(10)||
    '</Style>'||chr(10)||
    '<Style ss:ID="s158">'||chr(10)||
    '<Borders>'||chr(10)||
    '<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>'||chr(10)||
    '</Borders>'||chr(10)||
    '</Style>'||chr(10)||
    '</Styles>';
    for z in 1..1
    loop
      l_xml_body:=l_xml_body||'<Worksheet ss:Name="Worksheet1"> <Table x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="60">';
      l_xml_body:=l_xml_body||'<Row><Cell ss:StyleID="s163"><Data ss:Type="String">Colum1</Data></Cell>'||
                              '<Cell ss:StyleID="s163"><Data ss:Type="String">Colum2</Data></Cell>'||
                              '<Cell ss:StyleID="s163"><Data ss:Type="String">Colum3</Data></Cell>'||
                              '<Cell ss:StyleID="s163"><Data ss:Type="String">...</Data></Cell>'||
                              '<Cell ss:StyleID="s166"><Data ss:Type="String">ColumN</Data></Cell></Row>';
      for z in (
      select
       a."Col1",
       a."Col2",
       b."Col3",
       b."ColN"
      from table1 a,
           table2 b
      where a.id = b.id
      loop
          l_xml_body := l_xml_body||'<Row><Cell ss:StyleID="s157"><Data ss:Type="String">'||
                            z.Col1||'</Data></Cell><Cell ss:StyleID="s157"><Data ss:Type="String">'||
                            z.Col2||'</Data></Cell><Cell ss:StyleID="s157"><Data ss:Type="String">'||
                            z.Col3||'</Data></Cell><Cell ss:StyleID="s157"><Data ss:Type="String">'||
                             ...  ||'</Data></Cell><Cell ss:StyleID="s157"><Data ss:Type="String">'||
                            z.ColN||'</Data></Cell>';
          l_xml_body := l_xml_body||'</Row>'||chr(10);
          runner := runner + 1;  
    end loop;
        l_xml_body := l_xml_body||'</Table>';
    end loop;
    clob_size           := dbms_lob.getlength(l_xml_body);
    htp.prn(l_xml_header);
    for i in 1..ceil(clob_size / 32767)
    loop
       l_xml_text := dbms_lob.SUBSTR (l_xml_body, 32767, v_count);
       HTP.prn (l_xml_text);
       v_count := v_count + 32767;
    end loop;
    htp.prn('</Worksheet></Workbook>');
    HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;
       EXCEPTION
          WHEN OTHERS
          THEN
             OWA_UTIL.mime_header ('application/octet', FALSE);
             HTP.prn ('Content-Disposition: attachment; filename="Test.xls"');
             OWA_UTIL.http_header_close;
             HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;
    end;

  • Error with large amount of HTML received

    Hi,
    I'm using MS IE 6.0 and I'm having the same problem.
    When loading a page containing huge informaion, I receive the following popup error:
    "Internet Explorer cannot open the internet site http://localhost:8080/Tree/center.jsp?chapterValue=242&topicvalue=6745&chapterName=Chapter67&topicname=topic45
    Operation aborted"
    center.jsp accesses the database and returns the information which can be 80MB.
    Interesting... MSIE reports the error when loading the page. When you click "OK" in the error popup, the page stays blank(i.e., says"Page cannot be displayed"), but if you click the refresh button on the browser, the page displays correctly.
    Don't know if it's a problem associated with MS IE 6, but it seems to occur ONLY when loading the page that has huge data.
    - Frank.

    Sounds like the browser is timing out because the page is taking so long to load. Try doing a search of the forum on how to do a "page loading" JSP page. It comes up fairly frequently and should be easy to find.

  • Read large amounts of data for Midlets

    I am making a midlet that will display the text from a book. However, I want to make the text searchable. Basically there is a few books that I want to include, and I want to search through all the books for a word or phrase and diplay the sectence that contians the matched word or phrase. I was wonder what is the best way to do this. I thought about read from a text file, source file, or XML file, but I am open to any suggestions.

    Not a feature of iphone.

  • How can i send large amount of emails?

    I have bought Max Bulk mailer (which works well, but stops at 200 emails at one time, and than i can't send any emails for a couple of hours as i have exceeded my quota) and spoke with my internet provider, but they can't advise me. I need to send 2000/ 3000 emails a week at one time.. any advice would be much appriciated! thanks in advance x

    I know you're probably trying to find free options, but there are some good options for companies that send bulk mail. There are pros and cons each way of course. One advantage of using a hosted service is that they will go to work for you if your email gets designated as spam -- assuming that you're using a legitimate permission based list -- which you are, right? I'm not associated with any of these companies, by the way.
    http://www.verticalresponse.com
    http://www.campaignmonitor.com
    May not be what you're looking for, but it's an alternative to sending through your ISP if you can only send 200 a day.
    Peace,
    Kelly

  • Deleting large amounts of email easily

    I subscribe to large email lists and have as many as 80,000 email in a mailbox. When I want to do some housekeeping and try to select over 100 or so messages, email stops and I have to force quit. It is very time consuming to select 20 at a time. Is there another way to select a large number of messages and delete them.

    Another problem with delete is that it generates a vast amount of redo log (and archived logs) information . The better way to get rid of the unneeded data would be to use TRUNCATE command:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_107a.htm#2067573
    The problem with truncate that it removes all the data from the table. In order to save some data from the table you can do next thing:
    1. create another_table as select * from &lt;main_table&gt; where &lt;data you want to keep clause&gt;
    2. save the indexes, constraints, trigger definitions, grants from the main_table
    3. drop the main table
    4. rename &lt;stage_table&gt; to &lt;main_table&gt;.
    5. recreate indexes, constraints and triggers.
    Another method is to use partitioning to partition the data based on the key (you've mentioned "historical" - the key could be some date column). Then you can drop the historical data partitions when you need it.
    As far as your question about recalculating the statistics - it will not release the storage allocated for index. You'll need to execute ALTER INDEX &lt;index_name&gt; REBUILD :
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_18a.htm
    Mike

  • After updating to the 4.0 beta 5 a few weeks ago, my PC reboots when down loading large amounts of email and or attempting to play a .wav video file. i did not have that issue prior to the upgrade.

    Having used the beta 4 version of Firefox, the screen pop up kept insisting to upgrade to the 4.0 beta 5 version. I finally went ahead and did the update, and have had the above issue since.

    Firefox 4.0 has not been in Beta testing for months now as it was released back in April and you appear to be posting with Firefox 5.0
    Are you using the Firefox 5.0 which was released June 21 and is at www.mozilla.com ?
    As for the sudden reboots well it could likely be a issue with hardware or dirver (for graphics card for example) or even a runlevel software as a application like Firefox itself does not cause Windows to reboot.

  • Email Application Error ?!?!?!

    Help - I have my Pre set up through both Yahoo & Cox email accounts. My Cox email account doesn't seem to be sending emails (receives just fine) and that's where my problem began. I tried to reply to an email and it obviously didn't go through so I received an "Email Application Error" in regards to this email. I've have since deleted the the email from the Outbox and both the Outbox and the Sent folders are empty but... I am still getting the error message and I have no idea how to stop the error message from popping up. Please Help!! 
    Post relates to: Pre p100eww (Sprint)

    Greetings and welcome to Palm Forums
    if you are still getting the error delete the email account from the pre, restart the device then add the email account back in if the origional settings do not work try this:
    Cox Communications blocks outgoing unsecured IMAP communications that take place using Port 25. To avoid this issue and to ensure secured email, enable SSL on Port 465 and server authentication in your email client.
    So  set up for incoming is same as home:
    mail type: POP
    pop.east.cox.net
    user name
    password
    port #110
    no encryption
    outgoing
    smtp.east.cox.net
    Use Authentication-OFF
    username
    password
    port # 465
    turn on SSL encryption
    good luck
    Please check the knowledge base for advice and self help options at http://kb.palm.com and for windows help go to http://support.microsoft.com
    Please post in the forums. PM's will not be answered.

Maybe you are looking for