Unable to read the message java.io.IOException: No content

Getting the following Exception while reading a mail........
Caused by: java.io.IOException: No content
at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:108)
at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:805)
at javax.activation.DataHandler.getContent(DataHandler.java:550)
at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1396)
at com.test.services.inbound.readmail.BouncedMailReader.processBouncedMails(BouncedMailReader.java:151)
Line 151 is below
{color:#0000ff}*multipart = (MimeMultipart)msg.getContent();*
{color}
But when I manually copy the same mail back to "new" folder from "cur",then the read is successful.
Please suggest.

Sounds like Subbaraja may be right, there's no synchronization between the program that's
storing the messages in the files and your program that's reading the messages from the files.
If the program storing the message has only written half the message, and then you try to read
it, you're going to get errors similar to what you got. Adding the call to getMessageID may just
slow your program down enough to allow the writer to finish writing the message.
Of course, the "maildir" local store provider that you seem to be using should be synchronizing
with the other program that's writing the messages, so you might want to talk to whoever you
got the maildir provider from to see what's going wrong there.

Similar Messages

  • When I start the program I instantly see this message:  "Adobe Bridge encountered a problem and is unable to read the cache, please try purging the central cache in cache preferences to correct the situation".  I have tried this and it only results in a s

    When I start the program I instantly see this message:  "Adobe Bridge encountered a problem and is unable to read the cache, please try purging the central cache in cache preferences to correct the situation".  I have tried this and it only results in a stalled/locked program.  I have tried restarting my machine multiple times and tried reconfiguring how the cache is managed.  Do you have anyone who could walk me through each step to correct this problem which just started two days ago.  I have owned this program for at least a year now...

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • When opening Bridge (CS6) I get the following message: "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation" I tried and after selecting purge cache it does not a

    When opening Bridge (CS6) I get the following message: "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation" I tried and after selecting purge cache it does not allow me to select OK. Also Bridge keeps saying "Building Criteria" with the spinning wheel and nothing happens. I tried uninstalling and reinstalling to no avail. Please help:)

    Maybe a Preferences reset can help:
    Numerous program settings are stored in the Adobe Bridge preferences file, including display, Adobe Photo Downloader, performance, and file-handling options.
    Restoring preferences returns settings to their defaults and can often correct unusual application behavior.
    Press and hold the Ctrl key (Windows) or the Option key (Mac OS) while starting Adobe Bridge.  
    In the Reset Settings dialog box, select one or more of the following options:  
      Reset Preferences 
    Returns preferences to their factory defaults. Some labels and ratings may be lost. Adobe Bridge creates a new preferences file when it starts.
    Purge Entire Thumbnail Cache
    Purging the thumbnail cache can help if Adobe Bridge is not displaying thumbnails properly. Adobe Bridge re-creates the thumbnail cache when it starts.
    Reset Standard Workspaces
    Returns Adobe predefined workspaces to their factory default configurations.
    Click OK, or click Cancel to open Adobe Bridge without resetting preferences.   

  • My bridge is not working normally and keep given me this message : bridge encountered a problem and is unable to read the cache . Please try purging the central cache in cache preferences to correct the situation

    My bridge is not working normally and keep given me this message : bridge encountered a problem and is unable to read the cache . Please try purging the central cache in cache preferences to correct the situation

    And did you then actually purge the cache?
    Please realize that you have given ZERO details.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • When opening Bridge I get this message: Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in the cache preferences to correct the situation. I have tried this and still get this message. when I delete image

    When opening Bridge I get this message: Bridge encountered a problem and is unable to read the cash. Please try purging the central cache in the cache preferences to correct this problem. I did this and still get this same message.Also now when deleting images they don't delete till I close and reopen Bridge. What can i do to fix this problem?

    Maybe a Preferences reset can help:
    Numerous program settings are stored in the Adobe Bridge preferences file, including display, Adobe Photo Downloader, performance, and file-handling options.
    Restoring preferences returns settings to their defaults and can often correct unusual application behavior.
    Press and hold the Ctrl key (Windows) or the Option key (Mac OS) while starting Adobe Bridge.  
    In the Reset Settings dialog box, select one or more of the following options:  
      Reset Preferences 
    Returns preferences to their factory defaults. Some labels and ratings may be lost. Adobe Bridge creates a new preferences file when it starts.
    Purge Entire Thumbnail Cache
    Purging the thumbnail cache can help if Adobe Bridge is not displaying thumbnails properly. Adobe Bridge re-creates the thumbnail cache when it starts.
    Reset Standard Workspaces
    Returns Adobe predefined workspaces to their factory default configurations.
    Click OK, or click Cancel to open Adobe Bridge without resetting preferences.   

  • I have master suite cs6. on mac osx. bridge has been quitting unexpectedly. Also, getting message at start up that states that "bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to corr

    I have master suite cs6. on mac osx. bridge has been quitting unexpectedly. Also, getting message at start up that states that "bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation" I have purged the cache several times and adjusted settings with no change. I also downloaded the entire suite and installed. Do I need to uninstall all of the programs before installing the suite? There is not an option to install only Bridge from the install package.

    Maria,
    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • B2B RosettaNet incoming messages throws error "Unable to read the preamble"

    Hi,
    We have configured Oracle B2B to send Invoices to TP using Rosettanet V2.0.
    The incoming message are coming to B2B server via DMZ running apache HTTP server. We have security certificates installed on DMZ and has shared the public key with the TP.
    TP has shared public key which we have installed on SOA server keystore.
    We are able to see incoming messages in "Wire Message" tab, but the status is "processing". The SOA log file shows the error "Unable to read the preamble".
    Any suggestion on this really appreciated.
    Thanks,
    Adarsh

    The configuration that we have here is -
    Outbound
    SOA -> <Firewall> TP
    Inbound
    TP -> DMZ(SSL Enabled) -> FIREWALL -> SOA Server
    SOA server is SSL enabled too, but the communication between DMZ and SOA has been configured on HTTP (non SSL). We shared the public key of DMZ server with the TP.
    Here is the message that we are receiving from TP.
    --27888100.1321681003096.JavaMail.webmethods@exshaw
    Message-ID: <14801385.1321681003095.JavaMail.webmethods@exshaw>
    Mime-Version: 1.0
    Content-Type: multipart/related; type="application/xml";
         boundary="----=_Part_6149_9357410.1321681003080"
    ------=_Part_6149_9357410.1321681003080
    Content-Type: Application/XML
    Content-Transfer-Encoding: binary
    Content-Location: RN-Preamble
    Content-ID: <16966956.1321681003078.JavaMail.webmethods@exshaw>
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE Preamble SYSTEM "Preamble_MS_V02_00.dtd">
    <Preamble>
    <standardName>
    <GlobalAdministeringAuthorityCode>RosettaNet</GlobalAdministeringAuthorityCode>
    </standardName>
    <standardVersion>
    <VersionIdentifier>V02.00</VersionIdentifier>
    </standardVersion>
    </Preamble>
    ------=_Part_6149_9357410.1321681003080
    Content-Type: Application/XML
    Content-Transfer-Encoding: binary
    Content-Location: RN-Delivery-Header
    Content-ID: <18073579.1321681003079.JavaMail.webmethods@exshaw>
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE DeliveryHeader SYSTEM "DeliveryHeader_MS_V02_00.dtd">
    <DeliveryHeader>
    <isSecureTransportRequired>
    <AffirmationIndicator>Yes</AffirmationIndicator>
    </isSecureTransportRequired>
    <messageDateTime>
    <DateTimeStamp>20111118T223643.053Z</DateTimeStamp>
    </messageDateTime>
    <messageReceiverIdentification>
    <PartnerIdentification>
    <domain>
    <FreeFormText xml:lang="EN">DUNS</FreeFormText>
    </domain>
    <GlobalBusinessIdentifier>616252495</GlobalBusinessIdentifier>
    </PartnerIdentification>
    </messageReceiverIdentification>
    <messageSenderIdentification>
    <PartnerIdentification>
    <domain>
    <FreeFormText xml:lang="EN">DUNS</FreeFormText>
    </domain>
    <GlobalBusinessIdentifier>200103377</GlobalBusinessIdentifier>
    <locationID>
    <Value>Calgary</Value>
    </locationID>
    </PartnerIdentification>
    </messageSenderIdentification>
    <messageTrackingID>
    <InstanceIdentifier>ac1aab8df70da53a000ca325</InstanceIdentifier>
    </messageTrackingID>
    </DeliveryHeader>
    ------=_Part_6149_9357410.1321681003080
    Content-Type: Application/XML
    Content-Transfer-Encoding: binary
    Content-Location: RN-Service-Header
    Content-ID: <27927869.1321681003079.JavaMail.webmethods@exshaw>
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE ServiceHeader SYSTEM "ServiceHeader_MS_V02_00.dtd">
    <ServiceHeader>
    <ProcessControl>
    <ActivityControl>
    <BusinessActivityIdentifier>Invoice Notification</BusinessActivityIdentifier>
    <MessageControl>
    <fromRole>
    <GlobalPartnerRoleClassificationCode>Buyer</GlobalPartnerRoleClassificationCode>
    </fromRole>
    <fromService>
    <GlobalBusinessServiceCode>Buyer Service</GlobalBusinessServiceCode>
    </fromService>
    <inReplyTo>
    <ActionControl>
    <ActionIdentity>
    <GlobalBusinessActionCode>Invoice Notification</GlobalBusinessActionCode>
    <messageStandard>
    <FreeFormText>PIDX</FreeFormText>
    </messageStandard>
    <standardVersion>
    <VersionIdentifier>1.0</VersionIdentifier>
    </standardVersion>
    </ActionIdentity>
    <messageTrackingID>
    <InstanceIdentifier>33323237303737323338343533343832</InstanceIdentifier>
    </messageTrackingID>
    </ActionControl>
    </inReplyTo>
    <Manifest>
    <numberOfAttachments>
    <CountableAmount>0</CountableAmount>
    </numberOfAttachments>
    <ServiceContentControl>
    <SignalIdentity>
    <GlobalBusinessSignalCode>Exception</GlobalBusinessSignalCode>
    <VersionIdentifier>V02.00</VersionIdentifier>
    </SignalIdentity>
    </ServiceContentControl>
    </Manifest>
    <toRole>
    <GlobalPartnerRoleClassificationCode>Seller</GlobalPartnerRoleClassificationCode>
    </toRole>
    <toService>
    <GlobalBusinessServiceCode>Seller Service</GlobalBusinessServiceCode>
    </toService>
    </MessageControl>
    </ActivityControl>
    <GlobalUsageCode>Test</GlobalUsageCode>
    <pipCode>
    <GlobalProcessIndicatorCode>P21</GlobalProcessIndicatorCode>
    </pipCode>
    <pipInstanceId>
    <InstanceIdentifier>PIPAC11165C133BA538E8A0000018B17B6C</InstanceIdentifier>
    </pipInstanceId>
    <pipVersion>
    <VersionIdentifier>1.0</VersionIdentifier>
    </pipVersion>
    <KnownInitiatingPartner>
    <PartnerIdentification>
    <domain>
    <FreeFormText>DUNS</FreeFormText>
    </domain>
    <GlobalBusinessIdentifier>616252495</GlobalBusinessIdentifier>
    </PartnerIdentification>
    </KnownInitiatingPartner>
    </ProcessControl>
    </ServiceHeader>
    ------=_Part_6149_9357410.1321681003080
    Content-Type: Application/XML
    Content-Transfer-Encoding: binary
    Content-Location: RN-Service-Content
    Content-ID: <24309402.1321681003079.JavaMail.webmethods@exshaw>
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE Exception SYSTEM "Exception_MS_V02_00.dtd">
    <Exception>
    <ExceptionDescription>
    <errorClassification>
    <GlobalMessageExceptionCode>PRF.ACTN.GENERR</GlobalMessageExceptionCode>
    </errorClassification>
    <errorDescription>
    <FreeFormText>Errors: The Invoice Number entered already exists.; Warnings: Using default Supplier Site., Using default Supplier Group., Using default Supplier User., Units has been truncated.</FreeFormText>
    </errorDescription>
    <offendingMessageComponent>
    <GlobalMessageComponentCode>ServiceContent</GlobalMessageComponentCode>
    </offendingMessageComponent>
    </ExceptionDescription>
    <GlobalExceptionTypeCode>Receipt Acknowledgment Exception</GlobalExceptionTypeCode>
    </Exception>
    ------=_Part_6149_9357410.1321681003080--
    --27888100.1321681003096.JavaMail.webmethods@exshaw--

  • Any way to remove the kitkat update?  Once I downloaded the KitKat upgrade, i was unable to read text messages or MMS messages. Battery life really short, and now I'm unable to get it to load, phone is unusable.

    Once I downloaded the KitKat upgrade, i was unable to read text messages or MMS messages. Battery life really short, and now I'm unable to get it to load, phone is unusable. took phone into the Version store, and they were not able to get it to work either..

    I have 3 Motorola M on my account, one updated correctly, and one has not been updated to the new version.  I have since taken the broken phone into the store, and they customer support people were not able to get it to load as well.  Pretty much told me there is nothing they can do to make it work again, But I can buy a new phone at full price since I still have 6 months on my contract.  Oh that's nice, I can see having to pay full price if the phone was broken by something I did, but not because of a software update. Its very frustrating and not right!

  • Readline() function is not reading the message sent

    Hi I developed a small socket server to receive GPS positions over IP. the system is very simple it listen to a port using the following syntax
    Server.this.socket = Server.this.ssocket.accept();
    and when a client is connected a new thread will be created using the following syntax
    try {
    Server.this.clientThread = new ClientThread(Server.this.socket);
    Thread t = new Thread(Server.this.clientThread);
    Server.this.clientThread.addObserver(Server.this);
    Server.this.clients.addElement(Server.this.clientThread);
    System.out.println("System reading the process 4");
    t.start();
    } catch (IOException ioe) {
    System.out.println("Thread Error");
    try{
    System.out.println("Start reading the buffer ");
    in = new BufferedReader(new InputStreamReader(Server.this.socket.getInputStream()));
    out = new PrintWriter(Server.this.socket.getOutputStream(), true);
    } catch (IOException e) {
    System.out.println(e);
    System.exit(-1);
    line = in.readLine();
    Normally when I run it in a lan environment the system is well functionning and I recieve the data properly. but when I upload it to the hosting server the software is blocked on the level of
    line = in.readLine();
    and stop execution after that line and if I disconnect the client software that I am using for testing the software will crash.

    thank you for your response in fact I surely made some research while developping and had a lo of code and sample that I combined together. In my question I added small part of the code. In Fact the exceptions for readline can be througn be on level "WriteLog("Thread Error "+ioe);"
    In fact this program function very good in local environment. it seems the program is crashing on the level of readline() but nothing is writen on the log file.
    in our lan environment I can send messages from several stations in the same time and insert them in the database properly.
    package com.usal.serverPattern;
    import java.net.*;
    import java.util.*;
    import java.io.*;
    import java.sql.*;
    import java.text.*;
    import java.awt.*;
    public class Server implements Observer {
    private Socket socket;
    private Vector clients;
    private ServerSocket ssocket; //Server Socket
    private StartServerThread sst; //inner class
    private SimpleDateFormat formatter; // Formats the date displayed
    private ClientThread clientThread;
    /** Port number of Server. */
    private int port;
    private boolean listening; //status for listening
    public Server() {
    this.clients = new Vector();
    this.port = 2029; //default port
    this.listening = false;
    public void startServer() {
    if (!listening) {
    this.sst = new StartServerThread();
    this.sst.start();
    this.listening = true;
    System.out.println("Server Started");
    WriteLog("Server Started");
    public void stopServer() {
    if (this.listening) {
    this.sst.stopServerThread();
    //close all connected clients//
    System.out.println("Threadclosed");
    WriteLog("Thread closed");
    java.util.Enumeration e = this.clients.elements();
    while(e.hasMoreElements()) {
    ClientThread ct = (ClientThread)e.nextElement();
    ct.stopClient();
    this.listening = false;
    public void update(Observable observable, Object object) {
    //notified by observables, do cleanup here//
    this.clients.removeElement(observable);}
    public int getPort()
    return port;
    public void setPort(int port)
    this.port = port;
    private class StartServerThread extends Thread {
    private boolean listen;
    public StartServerThread() {
    this.listen = false;
    public void run() {
    String line;
    BufferedReader in = null;
    PrintWriter out = null;
    this.listen = true;
    try {
    Server.this.ssocket = new ServerSocket(Server.this.port);
    while (this.listen) {
    //wait for client to connect//
    Server.this.socket = Server.this.ssocket.accept();
    System.out.println("Client connected ");
    WriteLog("Client connected ");
    try {
    Server.this.clientThread = new ClientThread(Server.this.socket);
    WriteLog("System reading the process 1");
    System.out.println("System reading the process 1");
    Thread t = new Thread(Server.this.clientThread);
    WriteLog("System reading the process 2");
    System.out.println("System reading the process 2");
    Server.this.clientThread.addObserver(Server.this);
    WriteLog("System reading the process 3");
    System.out.println("System reading the process 3");
    Server.this.clients.addElement(Server.this.clientThread);
    WriteLog("System reading the process 4");
    System.out.println("System reading the process 4");
    t.start();
    System.out.println("Server Thread Server Started ");
    WriteLog("Server Thread Server Started ");
    } catch (IOException ioe) {
    //some error occured in ClientThread //
    WriteLog("Thread Error 1"+ioe);
    System.out.println("Thread Error"+ioe);
    try{
    WriteLog("Start reading the buffer ");
    System.out.println("Start reading the buffer ");
    in = new BufferedReader(new InputStreamReader(Server.this.socket.getInputStream()));
    out = new PrintWriter(Server.this.socket.getOutputStream(), true);
    } catch (IOException e) {
    System.out.println("Accept failed: 2029"+e);
    WriteLog("Accept failed: 2029");
    System.exit(-1);
    WriteLog("Start reading the Info ");
    line = in.readLine();
    WriteLog("Finish reading the info ");
    java.util.Date currentDate;
    currentDate = new java.util.Date();
    formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss", Locale.getDefault());
    Statement stmt = null;
    //making the database connection
    try {
    String dsn = "jdbc:odbc:IntegralFleet";
    String user = "paty";
    String password = "takingflight501";
    // Connect to the database
    Connection conn = DriverManager.getConnection(dsn, user, password);
    stmt = conn.createStatement();
    stmt.execute("Insert into socketvehi (IDVEHI, Message, Date) Values('Vehi1', '"+ line +"', '"+ formatter.format(currentDate) +"')");
    System.out.println("DataBase Updated");
    WriteLog("DataBase Updated");
    stmt.close();
    stmt = null;
    catch (SQLException ex) {
    // handle any errors
    System.out.println("SQLException: " + ex.getMessage());
    WriteLog("SQLException: " + ex.getMessage());
    System.out.println("SQLState: " + ex.getSQLState());
    WriteLog("SQLState: " + ex.getSQLState());
    WriteLog("VendorError: " + ex.getErrorCode());
    } catch (IOException ioe) {
    WriteLog("Thread Error "+ioe);
    public void stopServerThread() {
    try {
    Server.this.ssocket.close();
    catch (IOException ioe) {
    //unable to close ServerSocket
    WriteLog("unable to close ServerSocket "+ioe);
    this.listen = false;
    public void ExecSQL(String strSQL){
    Statement stmt = null;
    //making the database connection
    try {
    //Connection conn = DriverManager.getConnection("jdbc:mysql://Localhost/MapServer?user=gas&password=test");
    Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://GISLEB1:1433","sa","");
    stmt = conn.createStatement();
    stmt.execute(strSQL);
    stmt.close();
    stmt = null;
    catch (SQLException ex) {
    // handle any errors
    System.out.println("SQLException: " + ex.getMessage());
    WriteLog("SQLException: " + ex.getMessage());
    System.out.println("SQLState: " + ex.getSQLState());
    WriteLog("SQLState: " + ex.getSQLState());
    WriteLog("VendorError: " + ex.getErrorCode());
    public void ParseMessage(String strValue){
    //Variables Declaration
    String strTime;
    String[] strSplitValue;
    String strDate;
    String strLatitude;
    String strLongitude;
    String strMinutes;
    String strREQ;
    float fltMinutes;
    strSplitValue = strValue.split(",");
    strTime = strSplitValue[1].substring(0,2)+":";
    strTime = strTime+strSplitValue[1].substring(3,2)+":";
    strTime = strTime+strSplitValue[1].substring(4,2);
    strLatitude = strSplitValue[3].substring(0,2);
    strMinutes = strSplitValue[3].substring(3,7);
    fltMinutes = Float.parseFloat(strMinutes)/60;
    strLatitude = strLatitude+":"+fltMinutes;
    strLongitude = strSplitValue[5].substring(0,2);
    strMinutes = strSplitValue[5].substring(3,7);
    fltMinutes = Float.parseFloat(strMinutes)/60;
    strLongitude = strLongitude+":"+fltMinutes;
    strDate = strSplitValue[9].substring(0,2)+"-";
    strDate = strDate+strSplitValue[9].substring(3,2)+"-";
    strDate = strDate+strSplitValue[9].substring(4,2);
    strREQ = "Insert into socketvehi (Time, Valid, Latitude, Longitude, Speed, Date) Values('"+strTime+"', '"+strSplitValue[2]+"', "+
    strLatitude+", "+strLongitude+","+strSplitValue[7]+",'"+strDate+"')";
    ExecSQL(strREQ);
    public void WriteLog(String Value) {
    String textline = null;
    String AddText = "";
    java.util.Date currentDate;
    currentDate = new java.util.Date();
    try {
    FileReader file=new FileReader("LOG.DAT");
    BufferedReader buffer=new BufferedReader(file);
    while((textline = buffer.readLine()) != null)
    AddText = AddText+textline+"\t\n";
    buffer.close();
    catch (IOException e) {System.out.println(e);
    AddText = AddText+Value+" " + currentDate.toString();
    try {
    FileWriter file = new FileWriter("LOG.DAT");
    BufferedWriter buffer1 = new BufferedWriter(file);
    buffer1.write(AddText);
    buffer1.close();
    catch (IOException e) {System.out.println(e);
    public static void main(String[] args){
    //Loading the db Drivers
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch (Exception ex) {
    System.out.println(ex);
    System.exit(-1);
    Server Svr = new Server();
    Svr.startServer();
    }

  • Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found

    In my 2006 biztalk application I have exposed web service to receive SAP input. It was working fine. After I have modified something in orchestration in that application . I am getting following error while SAP try to consume my web service. Can anyone please
    help me.
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found

    In my 2006 biztalk application I have exposed web service to receive SAP input. It was working fine. After I have modified something in orchestration in that application . I am getting following error while SAP try to consume my web service.
    HI Arivazhagan K,
    Could you give some explanation about what you modified? according the to error message, this is "resource is not found issue".
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ASDM is unable to read the configuration from ASA.

    Earlier today I was configuring the Cisco ASA (7.2(2)) using the ASDM, but after a reboot of the appliance I now get the following:
    ASDM is unable to read the configuration from ASA.
    This happens shortly after ?Loading running configuration from the device? appears in the ASDM status window.
    I have tried restarting both the appliance and my workstation, but the issue persists. I have also tried clearing the ASDM cache, but that doesn?t help either. The issue occurs whether I used the Cisco ASDM Launcher or the web interface.
    SSH access to the appliance works fine.
    Thanks for any assistance (why is it that Cisco?s GUIs always have issues?!?).

    I have exactly the same issue , SSH works fine but ASDM and Web interface reply with that error message "ASDM is unable to read the configuration from ASA".
    My ASA is a 5520 ver 7.1(2) with ASDM 5.1(2)
    Could it be something related to Java ?
    Thanks for any hint.

  • ORA-27047: unable to read the header block of file

    My Windows 2003 crashed which was running Oracle XE.
    I installed Oracle XE on Windows XP on another machine.
    I coped my D:\oracle\XE10g\oradata folder of Win2003 to the same location in WinXP machine.
    When I start the database in WinXP using SQLPLUS i get the following message
    SQL> startup
    ORACLE instance started.
    Total System Global Area 146800640 bytes
    Fixed Size 1286220 bytes
    Variable Size 62918580 bytes
    Database Buffers 79691776 bytes
    Redo Buffers 2904064 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    I my D:\oracle\XE10g\app\oracle\admin\XE\bdump\alert_xe I found following errors
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Wed Apr 25 18:38:36 2007
    ALTER DATABASE MOUNT
    Wed Apr 25 18:38:36 2007
    ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
    ORA-27047: unable to read the header block of file
    OSD-04001: invalid logical block size (OS 2800189884)
    Wed Apr 25 18:38:36 2007
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
    ORA-27047: unable to read the header block of file
    OSD-04001: invalid logical block size (OS 2800189884)
    Please help.
    Regards,
    Zulqarnain

    Try to install win 2003 server software, do the fresh installation of oracle software, now copy the datafiles and controlfiles to same locations as you did on winxp.
    get back to us, if still not out of the woods. I still doubt that a simple restore would do the trick, since you doing it across different platforms, might be I can be wrong, but this is what I personally feel, you not able to start the database on winxp.
    hare krishna
    Alok

  • How to read the message body in a mail

    how can we read the message body of a mail. i am using pop3 server for reading the mails. my program is
    public class GetMessageExample {
    public static void main (String args[]) throws Exception {
    String host = args[0];
    String username = args[1];
    String password = args[2];
    Properties props = new Properties();
    Session session = Session.getInstance(props, null);
    Store store = session.getStore("pop3");
    store.connect(host, username, password);
    Folder folder = store.getFolder("INBOX");
    folder.open(Folder.READ_ONLY);
    BufferedReader reader = new BufferedReader (
    new InputStreamReader(System.in));
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++) {
    System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    System.out.println(
    "Do you want to read message? [YES to read/QUIT to end]");
    String line = reader.readLine();
    if ("YES".equals(line)) {
    message[i].writeTo(System.out);
    } else if ("QUIT".equals(line)) {
    break;
    folder.close(false);
    store.close();
    i am getting the following exception
    Exception in thread "main" java.lang.NoSuchFieldError: contentStream
    at com.sun.mail.pop3.POP3Message.getContentStream(POP3Message.java:115)
    at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSou
    rce.java:61)
    at com.sun.mail.handlers.text_plain.getContent(text_plain.java:65)
    at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.
    java:755)
    at javax.activation.DataHandler.getContent(DataHandler.java:511)
    at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1072)

    The Part interface that the Message class implements describes 3 ways for getting the content of a message. To use an Input Stream, you can call the getInputStream() method on the message itself, rather than System.in.
    Hope this helps!

  • OBIEE Writeback error - The system is unable to read the Write Back Templat

    Hi all,
    I'm trying to set up the write back feature for one of the reports. All the set up up including XML file in the custommessage folder is done.Ensured the webmessage name tag value (pmet_update) is same as the one used in the report write back template value etc.
    Also the server is restarted after the latest XML file(as shown below) is copied after all type of debugging with similar threads on this matter.
    But when i click on the update button in the report (button is highlighted), i'm getting the error
    "The system is unable to read the Write Back Template 'pmet_update'. Please contact your system administrator."
    here is the xml.
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="pmet_update">
    <XML>
    <writeBack connectionPool="PMTCOG">
    <insert></insert>
    <update> UPDATE XREF_PMET_URL SET URL= '@{c1}' WHERE API='@{c0}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    Could you please help?

    Hi,
    I think that you have to spacify also an SQL statement for the update tag, for example:
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="pmet_update">
    <XML>
    <writeBack connectionPool="PMTCOG">
    <insert> select null from dual</insert>
    <update> UPDATE XREF_PMET_URL SET URL= '@{c1}' WHERE API='@{c0}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    The witeback wants for both the tags (<insert></insert> and <update></update>) an SQL Statement.
    For me it works.
    Let me know!
    Gianluca Ancarani

  • Write Back Error The system is unable to read the Write Back Template 'test

    Write Back Error The system is unable to read the Write Back Template 'test'. Please contact your system administrator. OK
    But, the update button is on.
    It did work and now it doesn't... nothing of course that we know of has changed. We got this message when we started and the name of the file was what we put as template name in obiee instead of webmessage name but the update button was off.... now we have update button on and same error.
    File is on unix and we have made 777 so it's open to the world.
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="D_EXEC_METRIC">
    <WebMessage name="test">
    <XML>
    <writeBack connectionPool="writeback">
    <update>UPDATE D_EXEC_METRIC SET EXEC_METRIC_ICON_WID = @{c3}, EXEC_METRIC_COMMENT='@{c7}' WHERE SECTOR_WID=@{c0} AND EXEC_METRIC_WID=@{c2}</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    thanks in advance for your help!

    You're better off searching for an answer to this question in the [OBIEE Forum|http://forums.oracle.com/forums/forum.jspa?forumID=378].
    The topic is discussed at least twice a month so there's tons of posts with all the answers you need. Make a forum search for writeback and you'll have your answer.
    Cheers,
    C.

Maybe you are looking for

  • Loop Browser Crashes Logic

    I have "upgraded" from Logic 7 to 8 (actually a downgrade in my opinion) and then to Logic 9. Now in L9, the Apple Loop browser crashes logic. It will not reindex. I can't play anything back, any activity in the browser crashes Logic. I've seen this

  • Adobe: Can you either 1) not update so frequently or 2) fix the acceptance processing for it?

    I've just waded through many, many pages of entries to find if anyone has asked this and haven't found a precise match so please forgive me if I am (re)covering something of this specific nature. This is addressed to Adobe itself, having found no oth

  • Acrobat Pro 9 - Disable thumbnail preview in PDF file icons on Desktop

    After upgrading to Acrobat Pro 9, the file icons of PDF files on my Windows 7  desktop changed to showing a thumbnail preview. I want to get the standard PDF file icon back for all PDF files. Can someone please tell me how? Thanks.

  • How to call the javascript file through sdk?

    I created a plugin through SDK. Now i need to call my javascript file in that plugin code(c++). Could you please advice me with some samples. This is for "Illustrator CS". Thanks, Prabudass

  • MacBook Air vs. MacBook Pro

    I'm looking to buy a MacBook but I don't know which one to get. I'll mostly use it for school work like research projects, powerpoints, etc. I'd also use for some gaming and video editing and also photo editing. I don't want to spend more then 1400$