SharedByetArrayInputStream is returned by message.getContent (mail1.4.3)

Hi
I want to extract the body text and all the attachments of the mail with POP3. So i am getting a session, opening the INBOX folder and getting all the messages. After that for every message i am checking the mimetype. If it is multipart/*, then i am doing getContent & I am expecting MultiPart as return from message.getContent.
When ever i am trying to call message.getContent for multipart/* mimeType , I am getting SharedByteArrayInputStream. I have Also printed the mimetypes supported by the mailCapCommandMap Class and multipart/* mimetype is getting printed.
I am using mail.jar 1.4.3 and activation.jar 1.1.1 implementation version.
Can you please help me and point out where i am wrong.
Thanks
Edited by: user13526637 on Dec 21, 2010 9:18 PM

But as far as i know, we get an inputstream because the java mail couldnot find the appropriate Datahandler for the corresponding mimetype. Hence if i am getting the multipart/* as the supported the mimetype, then i should get the MUltipart class from the getContent method & not the inputStream.
ALso please tell me how we can read the input stream to the different attachments & the body part of the mail.???_

Similar Messages

  • Message.getContent() returns IMAPInputStream

    When I run my class normally messageContent usually returns a class that is a Multipart. But when I package my appliction into a jar and run it, messageContent is returned as a IMAPInputStream. I do not know how to handle this, and can't find this class in the javadoc - what can I do?
    Message message = ...; // left out here
    Object messageContent = message.getContent();
    System.out.println("class type: " + messageContent.getClass());class type: class com.sun.mail.imap.IMAPInputStream

    Hi, thank you. I will try to analize it. It's running under oc4j and jdk 1.6
    And I have only this message:
    08/04/03 14:46:49 DEBUG: JavaMail version 1.4.1
    08/04/03 14:46:49 DEBUG: not loading file: C:\Programme\Java\jdk1.6.0_04\jre\lib\javamail.providers
    08/04/03 14:46:49 DEBUG: java.io.FileNotFoundException: C:\Programme\Java\jdk1.6.0_04\jre\lib\javamail.providers (Das System kann die angegebene Datei nicht finden)
    08/04/03 14:46:49 DEBUG: !anyLoaded
    08/04/03 14:46:49 DEBUG: not loading resource: /META-INF/javamail.providers
    08/04/03 14:46:49 DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    08/04/03 14:46:49 DEBUG: Tables of loaded providers
    08/04/03 14:46:49 DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    08/04/03 14:46:49 DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
    08/04/03 14:46:49 DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    08/04/03 14:46:49 DEBUG: !anyLoaded
    08/04/03 14:46:49 DEBUG: not loading resource: /META-INF/javamail.address.map
    08/04/03 14:46:49 DEBUG: not loading file: C:\Programme\Java\jdk1.6.0_04\jre\lib\javamail.address.map
    08/04/03 14:46:49 DEBUG: java.io.FileNotFoundException: C:\Programme\Java\jdk1.6.0_04\jre\lib\javamail.address.map (Das System kann die angegebene Datei nicht finden)
    08/04/03 14:46:49 DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]

  • After upgrading to Lion the bookmarks in Preview returns error message.

    After upgrading to Lion the bookmarks in Preview returns error message : The File "****" couldn't be opened because you don't have permission to view it. To change the perimssion, select the item in finder and Choose File info.  I have bookmarked plenty of files in Preview.  How to overcome this error message???

    Doesn't work Steve. I think it is an issue with Preview being sandboxed (check the sandbox column in Activity Monitor: Preview = Yes). Sandboxed apps restrict file access to those the user has explicitly selected. My theory is that this causes the unfortunate side effect of bookmarked or linked PDFs not working. A simple test: open a file with bookmarks, manually open the bookmarked file and then select the bookmark in the first file - it should open with no complaints about permissions (which leads to a weak workaround: open all the PDFs you intend to work with!).

  • How to return the message in MTI and bitmap?

    Here we receive xml message from client but the problem is this coding is for the first time it receive MTI message, so how can i do if i receive from client in xml type then convert to MTI then response it as xml again to client.
    Is it too hard to understand?????
         * Waits and receive an ISOMsg over the TCP/IP session
         * @return the Message received
         * @exception IOException
         * @exception ISOException
        public ISOMsg receive() throws IOException, ISOException {
            byte[] b=null;
            byte[] header=null;
            LogEvent evt = new LogEvent (this, "receive");
            ISOMsg m = createMsg ();
            Socket socket = getSocket();
            m.setSource (this);
            try {
                if (!isConnected())
                    throw new ISOException ("unconnected ISOChannel");
                synchronized (serverIn) {//read byte/array of byte
                    int len  = getMessageLength();
                    int hLen = getHeaderLength();
                    if (len == -1) {
                        if (hLen > 0) {
                            header = readHeader(hLen);//read in message header
                        b = streamReceive();
                    else if (len > 0 && len <= 10000) {
                        if (hLen > 0) {
                            // ignore message header (TPDU)
                            // Note header length is not necessarily equal to hLen (see VAPChannel)
                            header = readHeader(hLen);//header lenght read the message header
                            len -= header.length;
                        b = new byte[len];
                        serverIn.readFully(b, 0, len);//get the input from user with byte type,0 length into lenght,read the byte to server in.
                        getMessageTrailler();  
                    else
                        throw new ISOException(
                            "receive length " +len + " seems strange");
                *// TODO:*
    *         // prefix with standard ISO MTI and bitmap*
                *// using ISOMsg setters*
                m.setPackager (getDynamicPackager(b));//msg receive
                m.setHeader (getDynamicHeader(header));
                if (b.length > 0 && !shouldIgnore (header))  // Ignore NULL messages
                    m.unpack (b);//raw message
                m.setDirection(ISOMsg.INCOMING);//set the direction for incoming msg into isoMsg
                m = applyIncomingFilters (m, header, b, evt);//remove the incoming filter to isoMsg
                m.setDirection(ISOMsg.INCOMING);
                evt.addMessage (m);
                cnt[RX]++;
                setChanged();
                notifyObservers(m);
           catch {
            return m;
        }

    check this link, and use as per you requirement
    XI: How-to on JDBC receiver response
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    Regards
    Chilla

  • How to return a message in a boolean method?

    I am looking to return a message other than true or false using a boolean method. Is that possible to do without displaying the true, or false?
    private boolean search(Node node, int id){
              if (node == null)
                   return false;
              else if (id == node.id){
                   return true;
              else if (id < node.id){
                   return search(node.left, id);
              else
                   return search(node.right, id);
         }In this snippet I would like to return a message rather than true or false.
    My idea was to put the println statement just before the return, but that leaves me with a true or false being displayed.
    I also thought i could use an if statement in my main:
    public class studentTest {
         public static void main(String[] args) {
              StudentDatabase data = new StudentDatabase();
              System.out.println(data.insert(7066, "Pianczk", 25, 4.0));
              System.out.println(data.insert(7067, "Pianczk", 25, 4.0));
              data.insert(756, "Pia", 78, 3.5);
              boolean result;
              result = data.search(7066);
              if (result){
                   System.out.print("")
    }the problem with this is I can't reach the info I would like to print out.(or at least I don't know how)

    I figured it out.
    I thought I tried this once already, but must not have done it correctly.
    private boolean search(Node node, int id){
              if (node == null){
                   return false;
              else if (id == node.id){
                   System.out.print("Student info: " + node.id + " " + node.lastName + " " + node.age + " " + node.gpa);
                   return true;
              else if (id < node.id){
                   return search(node.left, id);
              else
                   return search(node.right, id);
    public static void main(String[] args) {
              StudentDatabase data = new StudentDatabase();
              System.out.println(data.insert(7066, "Pianczk", 25, 4.0));
              System.out.println(data.insert(7067, "Pianczk", 25, 4.0));
              data.insert(756, "Pianc", 78, 3.5);
              int id = 7065;
              boolean result;
              result = data.search(id);
              if (result)
                   System.out.println("");
              else
                   System.out.print("Your ID " + id + " was not found");
    }this works, although I am not sure if this is the optimal way of doing it.

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75

    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
    Scenario:
    I am having difficulty getting ODBC connection between Oracle OWB app with an 11gR2 DB (running on a VirtualBox Linux) and SQL Server 2008 running directly on the host. (Windows 8)
    I am trying to take a SQL Server 2008 feed into Oracle Ware house Builder, and think(!) I have read everything and configured it in accordance (but I presume not given 3 days of failed attempts to fix it). I have also read several blogs, hence there might be a few more settings in the configuration files than the formal documentation says, but these have come from blogs that have “Solved” problems for other similar situations.
    The environments:
    HOST:
    Name: RESOLVEIT-PC
    IP: 192.168.1.80
    Windows 8 (64bit) , with system DSN ODBC connection ACME_POS created with 32 bit ODBC set up (This setting still shows up fine in the 64 bit ODBC).
    GUEST VM:
    Name: OraDBSvr.com
    GUES fixed IP Address: 192.1.200
    Oracle VirtualBox (4.2.16)
    Oracle Redhat Linux 6 (x86)
    Oracle 11gR2 Enterprise Edition (11.2.0.1.0)
    ODBC: Freetds driver
    Configuration files:
    initacmepos.ora
    HS_FDS_CONNECT_INFO = 192.168.1.80/SQLEXPRESS/ACME_POS
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_RPC_FETCH_REBLOCKING= OFF
    HS_FDS_FETCH_ROWS = 1
    HS_FDS_SHAREABLE_NAME = /usr/local/lib/libtdsodbc.so
    set ODBCINI=/opt/odbc/odbc.ini
    # set <envvar>=<value>
    odbc.ini
    [ACME_POS]
    Driver     = FreeTDS
    Description = ODBC Connection via FreeTDS
    Trace       = 1
    Servername  = 192.168.1.80
    Database    = dbo
    odbcinst.ini
    [PostgreSQL]
    Description                        = ODBC for PostgreSQL
    Driver                   = /usr/lib/psqlodbc.so
    Setup                    = /usr/lib/libodbcpsqlS.so
    Driver64                              = /usr/lib64/psqlodbc.so
    Setup64                              = /usr/lib64/libodbcpsqlS.so
    FileUsage                           = 1
    [MySQL]
    Description                        = ODBC for MySQL
    Driver                   = /usr/lib/libmyodbc5.so
    Setup                    = /usr/lib/libodbcmyS.so
    Driver64                              = /usr/lib64/libmyodbc5.so
    Setup64                              = /usr/lib64/libodbcmyS.so
    FileUsage                           = 1
    [FreeTDS]
    Discription             = TDS driver (Sybase / MS SQL)
    Driver                           = /usr/local/lib/libtdsodbc.so
    # Setup                         = /usr/local/lib/libtdsS.so
    FileUsage                           = 1
    CPTimeout               =
    CPReuse                 =
    [oracle@oraDBsvr etc]$
    freetds.conf
    #   $Id: freetds.conf,v 1.12 2007-12-25 06:02:36 jklowden Exp $
    # This file is installed by FreeTDS if no file by the same
    # name is found in the installation directory. 
    # For information about the layout of this file and its settings,
    # see the freetds.conf manpage "man freetds.conf". 
    # Global settings are overridden by those in a database
    # server specific section
    [global]
            # TDS protocol version
    ;              tds version = 4.2
                   # Whether to write a TDSDUMP file for diagnostic purposes
                   # (setting this to /tmp is insecure on a multi-user system)
    ;              dump file = /tmp/freetds.log
    ;              debug flags = 0xffff
                   # Command and connection timeouts
    ;              timeout = 10
    ;              connect timeout = 10
                   # If you get out-of-memory errors, it may mean that your client
                   # is trying to allocate a huge buffer for a TEXT field.
                   # Try setting 'text size' to a more reasonable limit
                   text size = 64512
    # A typical Sybase server
    [egServer50]
                   host = symachine.domain.com
                   port = 5000
                   tds version = 5.0
    # A typical Microsoft server
    [ACME_POS]
      host = 192.168.1.80
      port = 60801                                # also tried 1433
      instance = SQLEXPRESS
      tds version = 8.0
      client charset = UTF-8
    tsql -LH 192.168.1.80
         ServerName RESOLVEIT-PC
       InstanceName SQLEXPRESS
        IsClustered No
            Version 10.50.4000.0
                tcp 60801
                 np \\RESOLVEIT-PC\pipe\MSSQL$SQLEXPRESS\sql\query
                via RESOLVEIT-PC,0:1433
    Oracle listener:
    [oracle@oraDBsvr log]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = acmepos)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM = dg4odbc)
    (HS = OK)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oraDBsvr)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    [oracle@oraDBsvr log]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 16-SEP-2013 13:57:41
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oraDBsvr)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                16-SEP-2013 13:50:34
    Uptime                    0 days 0 hr. 7 min. 7 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/oraDBsvr/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oraDBsvr)(PORT=1521)))
    Services Summary...
    Service "acmepos" has 1 instance(s).
    Instance "acmepos", status UNKNOWN, has 1 handler(s) for this service...
    Service "dw" has 1 instance(s).
    Instance "dw", status READY, has 1 handler(s) for this service...
    Service "dwXDB" has 1 instance(s).
    Instance "dw", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Oracle tnsnames.ora
    [oracle@oraDBsvr admin]$ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    dw =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dw)
    acmepos  =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=acmepos)
    (HS=OK)
    Oracle sqlnet.ora
    [oracle@oraDBsvr admin]$ cat sqlnet.ora
    # sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
    ADR_BASE = /u01/app/oracle
    I can connect from the linux server to SQL Server, and query the database:
    [oracle@oraDBsvr etc]$ tsql -S acme_pos -U acme_dw_user -P acme1234
    locale is "en_US.utf8"
    locale charset is "UTF-8"
    using default charset "UTF-8"
    1> select last_name from dbo.employees;
    2> go
    last_name
    Davolio
    Fuller
    Leverling
    Peacock
    Buchanan
    Suyama
    King
    Callahan
    Dodsworth
    (9 rows affected)
    1>
    However, I can’t get a response through Oracle OWB , and I get:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
    In the hs log file I get:
    [oracle@oraDBsvr log]$ cat acmepos_agt_3821.trc
    Oracle Corporation --- MONDAY    SEP 16 2013 13:51:22.170
    Heterogeneous Agent Release
    11.2.0.1.0
    HS Gateway:  NULL connection context at exit
    [oracle@oraDBsvr log]$
    I am really stuck now and going round in circles and can’t see the wood for trees! Can anyone please help?!!
    Many Thanks.
    Rafe.

    Let us rewrite your ODBC DSN a little bit... Your current odbc.ini looks like:
    [ACME_POS]
    Driver     = FreeTDS
    Description = ODBC Connection via FreeTDS
    Trace       = 1
    Servername  = 192.168.1.80
    Database    = dbo
    Let us change it a little bit so that we only need one config file - no odbcinst.ini nor freetds.conf file anymore:
    [ACME_POS]
    Driver =/usr/local/lib/libtdsodbc.so
    Server = 192.168.1.80
    Database
    = dbo     ####  I have some doubts that you have a SQL Server database called dbo - one database that always exists is master - so as a test use master here or get the real database name of the SQL Server database you want to connect
    Port = 60801 ## make sure it really is the correct port - best would be to check on the SQL server and then try telnet <ip> <port> if you can connect to the SQL server
    TDS_Version = 8.0
    QuotedId=YES
    Especially the last 2 parameters are mandatory. TDS_Version specifies the TDS Version you have to use to connect to the SQL Server and QuotedID is required for DG4ODBC as it surrounds objevt names by double quotes.
    What happens now when you try to connect with for example isql - the ODBC test utility shipped with the ODBC Driver manager?
    In addition, could you please do me another favour and check the word size of DG4ODBC and the ODBC Driver Manager as well as the ODBC Driver - just execute:
    file /u01/app/oracle/product/11.2.0/dbhome_1/bin/dg4odbc
    file /usr/local/lib/libtdsodbc.so
    file < the patch to your libodbc.so library>/libodbc.so
    and post the output.

  • I am trying to batch convert cr2 to jpg. in bridge i go tools ps image processor and it returns a message "Image Processor.jsx could not be found." I updated cc to no avail. i am on mac 10.7.5

    I am trying to batch convert cr2 to jpg. in bridge i go tools>ps>image processor and it returns a message "Image Processor.jsx could not be found." I updated cc to no avail. i am on mac 10.7.5

    I go to file scripts but there is no option there for Image Processor

  • When I attempt to import some regular, commercial CD's, iTunes returns the message "The song names for this CD could not be found online.  Do you still want to import the songs?"   This has happened for four CD's in a row now, Eagles - Hotel California.

    Hi All,
    When I attempt to import some regular, commercial CD's, iTunes returns the message "The song names for this CD could not be found online.  Do you still want to import the songs?"   This has happened for four CD's in a row now.  Today, after importing some other CD's in the regular way, all of a sudden, iTunes won't recognize the Eagles - "Hotel California" CD, the Eagles "**** Freezes Over" CD,  "The Best of Roy Orbison" or "Milestones" by Miles Davis.
    What happened?  Anybody know?

    We've gotten the same error at the same time. I guess we need to let this play out. In the meantime, I'm gonna update iTunes.

  • Dblink oracle to postgres with dg4odbc | ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line

    Hi, i'm trying to create database link from a database Oracle 11g to PostgreSQL with DG4ODBC, and unixODBC
    my configured to /etc/odbc.ini
    [PostgreSQL]
    Description = Test to Postgres
    Driver = psqlodbc
    Trace = Yes
    TraceFile = /tmp/sql.log
    Database = danieldb
    Servername =
    UserName = SA
    Password = password
    Port = 5432
    Protocol = 6.4
    ReadOnly = No
    RowVersioning = No
    ShowSystemTables = No
    ShowOidColumn = No
    FakeOidIndex = No
    my configured to /etc/odbcinst.ini
    [ODBC]
    CommLog=1
    Debug=1
    FileUsage=1
    Pooling=No
    Trace=1
    [psqlodbc]
    Description=PostgreSQL ODBC driver
    Driver=/usr/lib64/psqlodbcw.so
    CommLog=1
    Debug=0
    FileUsage=1
    my configured to /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora
    HS_FDS_CONNECT_INFO = PostgreSQL
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so
    set ODBCINI=/etc/odbc.ini
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
    Listener =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
    SID_LIST_LISTENER =
            (SID_LIST =
                    (SID_DESC=
                            (SID_NAME=PostgreSQL)
                            (ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)
                            (PROGRAM=dg4odbc)
                            (ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib")
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora
    PostgreSQL=
            (DESCRIPTION =
                    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
                    (CONNECT_DATA =
                            (SID = PostgreSQL)
                    (HS = OK)
    i'm try to created public database link :
    CREATE PUBLIC DATABASE LINK "orapos" CONNECT TO "SA" IDENTIFIED BY "password" USING 'PostgreSQL';
    when i used tnsping
    [root@oracle-poc admin]# tnsping PostgreSQL
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 16-MAY-2013 20:34:19
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/xe/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))
    OK (0 msec)
    and last i try to use the database link :
    SQL> select * from "tabel2"@orapos
      2  ;
    select * from "tabel2"@orapos
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    Whats wrong with my configuration??
    Thank you and best regards,
    Daniel

    Mike,
    yes i've downloaded the ODBC driver manager..
    for HS_FDS_SHAREABLE_NAME i use /usr/lib/psqlodbc.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    for HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbcw.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    c
    and when i used isql isql to call DNS(PostgreSQL) is success
    whats wrong with my config?
    about PostGres ODBC did you mean postgresql-odbc-08.04.0200-1.el6.x86_64 ??
    Thank you and best regards,
    Daniel

  • Will someone please help me set-up Acrobat to send a PDF via webmail?  Acrobat returns a message "Server Connection Error .... Port 143 unavailable"

    Will someone please help me set-up Acrobat to send a PDF via webmail?  Acrobat returns a message "Server Connection Error .... Port 143 unavailable"

    Are you using a Microsoft or Apache web server? If so, you can submit to a server-side script, which will bypass web mail and client-side email software such as OUTLOOK.
    For examples:
    http://www.nk-inc.com/software/pdfemail.net/examples/

  • AuditActivityReport  returned error message

    Hi!
    i'd like to get Audit Activity Report, but return error message "An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for data set 'ActivityData'. (rsErrorExecutingCommand)
    For more information about this error navigate to the report server on the local server machine, or enable remote errors "
    this problem in BPC 5.1 MS, SQL 2003
    thanks
    Arai

    thanks
    i solved this problem. mistake was in string connection for OsoftDataAudit

  • S_ALR_87011774 returns the message u0093Program 9PSM does not exist

    Hi Dear Gurus,
    I have been given a   task to add a t-code to a role and i did that but when the user execute the transaction
    the transaction S_ALR_87011774 returns the message “Program 9PSM does not exist.
    how to fix it.
    i did run the SU53 report and it says
    activity : 03
    co trasaction  rks
    and these two are maintained in the object.
    please help me how to resolve this issue.
    Kind Regards,
    vamsi,

    as far as I can tell, it is not actually the program that does not exist, but the report group.
    when changes have been made to the layout, it is sometimes necessary to regenerate them.  this can be done through GR52.
    I'm curious to know what the SU53 will display for the user who's executing the transaction, because I don't find a reason to assume this is related to authorizations?
    for more info on report groups, have a look [over here|http://help.sap.com/saphelp_47x200/helpdata/en/5b/d2308343c611d182b30000e829fbfe/frameset.htm|sap help]
    it may have something to do with logging on in a different language than the report was setup to be displayed in?
    If reports are to be available in several languages,
    you must define the languages concerned in Customizing.
    For more information, see the Implementation Guide (IMG)
    for Special Purpose Ledger under Information System ->
    Define Report Writer Languages.
    Edited by: Dimitri van Heumen on Feb 21, 2008 11:36 AM (messing up the layout...)

  • Exchange 2013 CAS server returned '500 Message rejected'

    Hi, all.
    Exchange 2013 with CAS server and 2 mailbox servers. Health checks are all 100% healthy.
    One of our users cannot receive email from an external user. Our CAS server keeps rejecting the message. I can trace the message and see that it did indeed hit our servers, and was rejected. But I cannot find out WHY it was rejected.
    Here is the Delivery Report from the EAC:
    Delivery Report for               NAME ‎([email protected])
    Failed
    3/30/2015 1:41 PM <CAS servername>
    The message couldn't be delivered.
    [{LRT=};{LED=500 Message rejected};{FQDN=};{IP=}]
    The external user gets this NDR:
    <our local CAS servername> gave this error:
    Message rejected
    In the Diagnostic information for administrator section:
    <our local CAS servername> returned '500 message rejected'
    followed by the Original message headers. I think I'm looking for some more verbose logging to see what rule or configuration rejected the message. Any help would be greatly appreciated!
    Thanks!
    Dan

    My main question: how can I see what triggered my CAS server to reject this message with error 500?
    Our user can receive email from other external senders ok. It seems to be just this one sender having trouble.
    Our transport rules are not complex, and I see no rules that would block this sender or domain.
    We use Exchange Online Protection. The message gets through EOP and hits our CAS server. The CAS server rejects the message - it never gets to the Client.
    The CAS server gives the error 500 - but that's all I can find. I need a command or somewhere to look to see what triggered the 500 error.
    I've posted the NDR received by the sender and scrubbed our identifying information.
    Rcn.com looks like the sender's online forwarding host - the spf record for senderdomain.net points back to rcn.com. I've run an spf record check and it passes, so I do not believe that is the issue.
    Here is the NDR:
    From: [email protected]
    To: [email protected]
    Sent: Monday, March 30, 2015 1:41 PM
    Subject: Undeliverable: Hello from FirstName
    CAS1.our_internal_domain.local rejected your message to the following email addresses:
    FirstName LastName ([email protected])
    A problem occurred while delivering your message to this email address. Try sending your message again. If the problem continues, please contact your email admin.
    CAS1.our_internal_domain.local gave this error:
    Message rejected
    Diagnostic information for administrators:
    Generating server: BY1PR0501MB1112.namprd05.prod.outlook.com
    [email protected]
    CAS1.our_internal_domain.local
    Remote Server returned '500 Message rejected'
    Original message headers:
    Received: from BLUPR05CA0049.namprd05.prod.outlook.com (10.141.20.19) by
     BY1PR0501MB1112.namprd05.prod.outlook.com (25.160.103.146) with Microsoft
     SMTP Server (TLS) id 15.1.118.21; Mon, 30 Mar 2015 17:40:54 +0000
    Received: from BL2FFO11FD027.protection.gbl (2a01:111:f400:7c09::115) by
     BLUPR05CA0049.outlook.office365.com (2a01:111:e400:855::19) with Microsoft
     SMTP Server (TLS) id 15.1.125.19 via Frontend Transport; Mon, 30 Mar 2015
     17:40:54 +0000
    Received: from smtp.rcn.com (69.168.97.78) by
     BL2FFO11FD027.mail.protection.outlook.com (10.173.161.106) with Microsoft
     SMTP Server (TLS) id 15.1.130.10 via Frontend Transport; Mon, 30 Mar 2015
     17:40:54 +0000
    Return-Path: [email protected]
    X_CMAE_Category: , ,
    X-CNFS-Analysis: v=2.0 cv=PMSNCIWC c=1 sm=1 a=gRQJo8bc1j9+0GSSRogFxg==:17 a=NTyKUL13AAAA:8 a=ML7w5Z3_AAAA:8 a=3H5rcUylbt2uBKgiyYQA:9 a=wPNLvfGTeEIA:10 a=XQfDMMe_SRUA:10 a=SEXQnC1BqQAA:10 a=7ZjHjvgxCjAA:10 a=Wcs1mLwGzyUA:10 a=sBa8ZLUje9YA:10 a=k-GqB2yPh3IA:10
    a=N4kHG9ehtKzd7-3o534A:9 a=_W_S_7VecoQA:10 a=gRQJo8bc1j9+0GSSRogFxg==:117
    X-CM-Score: 0
    X-Scanned-by: Cloudmark Authority Engine
    X-Authed-Username: ZHAtZm1hQHJjbi5jb20=
    Authentication-Results: smtp02.rcn.cmh.synacor.com
     [email protected]; sender-id=neutralourdomain.com; dkim=none
     (message not signed) header.d=none;ourdomain.com; dmarc=pass action=none
     header.from=senderdomain.net;
    Authentication-Results: smtp02.rcn.cmh.synacor.com [email protected]; spf=neutral; sender-id=neutral
    Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.user=sender; auth=pass (LOGIN)
    Received-SPF: neutral (smtp02.rcn.cmh.synacor.com: 69.72.92.252 is neither permitted nor denied by domain of senderdomain.net)
    Received: from [69.72.92.252] ([69.72.92.252:2689] helo=FirstNameLastName)
            by smtp.rcn.com (envelope-from <[email protected]>)
            (ecelerity 3.6.2.43620 r(Platform:3.6.2.0)) with ESMTPA
            id 58/6E-17115-4AA89155; Mon, 30 Mar 2015 13:40:53 -0400
    Message-ID: <011A7DBF0D954F62987032D45778AF29@FirstNameLastName>
    From: FirstName LastName <[email protected]>
    To: FirstName LastName <[email protected]>
    Subject: Hello from FirstName
    Date: Mon, 30 Mar 2015 13:40:49 -0400
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
            boundary="----=_NextPart_000_0007_01D06AEF.223E4A60"
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Mailer: Microsoft Outlook Express 6.00.2900.5931
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
    X-EOPAttributedMessage: 0
    Received-SPF: Pass (protection.outlook.com: domain of senderdomain.net designates
     69.168.97.78 as permitted sender) receiver=protection.outlook.com;
     client-ip=69.168.97.78; helo=smtp.rcn.com;
    Authentication-Results: spf=pass (sender IP is 69.168.97.78)
     [email protected];
    X-Forefront-Antispam-Report:
            CIP:69.168.97.78;CTRY:US;IPV:NLI;EFV:NLI;SFV:SKN;SFS:;DIR:INB;SFP:;SCL:-1;SRVR:BY1PR0501MB1112;H:smtp.rcn.com;FPR:;SPF:None;LANG:en;
    X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0501MB1112;
    X-Exchange-Antispam-Report-Test: UriScan:;
    X-Exchange-Antispam-Report-CFA-Test:
            BCL:0;PCL:0;RULEID:(601004);SRVR:BY1PR0501MB1112;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0501MB1112;
    X-OriginatorOrg: ourdomain.onmicrosoft.com
    X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2015 17:40:54.1243
     (UTC)
    X-MS-Exchange-CrossTenant-Id: c92ecf05-92f8-42f4-a246-24bee4988793
    X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
    X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0501MB1112
    Dan

  • Getting returned mail messages for emails I did not send

    I've recently started getting returned mail messages for emails I did not send. Why is this happening and how can I stop it?

    cadillacjoe69 wrote:
    That might be tough to do. Is there a rule I can use to help. The mail messages are so varied.
    I'd look at the headers (View -> Message -> Long Headers) to see if there's anything in common, then try to create a rule based on that.
    By the way, welcome to Apple's discussion groups.

  • "Returned mail: Message failed to pass through virus scanner"

    We have a large number of this mail (see below) on our OCS1 cause by virus like MyDoom:
    From: "Mail Delivery Subsystem" <[email protected]>
    To: [email protected]
    Mime-Version: 1.0
    Content-Type: multipart/report;
         report-type=delivery-status; BOUNDARY="----ORCL_ES6_BOUNCE_1095724----"
    Date: Fri, 22 Oct 2004 09:52:32 +0200
    Subject: Returned mail: Message failed to pass through virus scanner
    ------ORCL_ES6_BOUNCE_1095724----
    Content-Type: text/plain
    The original message was received at Fri, 22 Oct 2004 09:51:21 +0200
    from <[email protected]>
    ----- The following addresses had delivery problems -----
    <[email protected]> (unrecoverable error)
    ----- Transcript of session follows -----
    Message failed to pass through virus scanner
    ------ORCL_ES6_BOUNCE_1095724----
    content-type: message/delivery-status
    Reporting-MTA: dns; maildb.italtbs.com
    Final-Recipient: rfc822;[email protected]
    Action: failed
    Status: 5.7.7
    Diagnostic-Code: smtp; Message failed to pass through virus scanner
    ------ORCL_ES6_BOUNCE_1095724----
    Content-Type: message/rfc822
    Return-Path: <[email protected]>
    Received: from mailas.italtbs.com by maildb.italtbs.com
         with ESMTP id 10957241098431481; Fri, 22 Oct 2004 09:51:21 +0200
    Received: from italtbs.com
         by mailas.italtbs.com with SMTP id i9M7pJJ06571
         for <[email protected]>; Fri, 22 Oct 2004 09:51:19 +0200
    Message-Id: <[email protected]>
    From: [email protected]
    To: [email protected]
    Subject: Found
    Date: Fri, 22 Oct 2004 09:50:40 +0200
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
         boundary="----=_NextPart_000_0007_0000355F.0000439E"
    X-Priority: 3
    X-MSMail-Priority: Normal
    ------ORCL_ES6_BOUNCE_1095724------
    On MAILAS.italtbs.com are installed infrastructure, sendmail and Symantec Scan Engine.
    On MAILDB.italtbs.com are installed storage database and midtier.
    Can I stop this useless messagges?
    Thanks and regard
    Matteo

    Are you still unable to send email?  What client are you using?  Do you see your job represented on ePrintCenter?
    Although I am an HP employee, I am speaking for myself and not for HP

Maybe you are looking for