Junk characters display while using multipart with html content in Javamail

Hi All,
I have used Java mail API to send mail with attachment. To enable to attachment in mail and to do content formatting i have used multipart and html content type together.
My web application runs on apache tomcat 5.5 in MAC server. Java version is 1.5.
The Function which i have used for sending mail with attachment is as follows:
public void sendmailAttached(String to,String from,String host,boolean debug,String mailContent,String mailSubject,String cc,String attachFiles)
          String mailarray[]=to.split(";");
          Properties props = new Properties();
          //props.put("mail.smtp.port","425");
          props.setProperty("mail.smtp.host", host);
          if (debug) props.setProperty("mail.debug", ""+debug);
          Session session = Session.getInstance(props, null);
          session.setDebug(debug);
          try {
               Message msg = new MimeMessage(session);
              msg.setFrom(new InternetAddress(from));
             javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[mailarray.length];
             for (int i=0;i<mailarray.length ;i++ )
                                        toAddress=new javax.mail.internet.InternetAddress(mailarray[i]);
          msg.setRecipients(Message.RecipientType.TO, toAddress);
          msg.setSubject(mailSubject);
          try{
                    String ccaray =cc;                    
                    String mailarray1[]=ccaray.split(";");
                    javax.mail.internet.InternetAddress[] CCAddress=new javax.mail.internet.InternetAddress[mailarray1.length];
     for (int i=0;i<mailarray1.length ;i++ )
     CCAddress[i]=new javax.mail.internet.InternetAddress(mailarray1[i]);
          msg.setRecipients(Message.RecipientType.CC,CCAddress);
          }catch(Exception ss)
                    System.out.println("CC mail exception is ====>"+ ss.getMessage());     
          msg.setSentDate(new java.util.Date());
          Multipart multipart = new MimeMultipart("related");
          BodyPart messageBodyPart = new MimeBodyPart();
          messageBodyPart.setContent(mailContent, "text/html");
          multipart.addBodyPart(messageBodyPart);
               String fileName = attachFiles.substring(attachFiles.lastIndexOf("/")+1,attachFiles.length());
               if(!fileName.equals(""))
                    messageBodyPart = new MimeBodyPart();
          DataSource source = new FileDataSource(attachFiles);
          messageBodyPart.setDataHandler(new DataHandler(source));
          messageBodyPart.setFileName(fileName);
          multipart.addBodyPart(messageBodyPart);
          msg.setContent(multipart);
          Transport.send( msg );
          catch(MessagingException mex)
               Exception ex = mex;
               if (ex instanceof SendFailedException)
               SendFailedException sfex = (SendFailedException)ex;
Address[] invalid = sfex.getInvalidAddresses();
if (invalid != null) {
if (invalid != null) {
for (int i = 0; i < invalid.length; i++)
System.out.println("Invalid Addresss --------> " + invalid[i]);
try
     Message msg = new MimeMessage(session);
          msg.setFrom(new InternetAddress(from));
          Multipart multipart = new MimeMultipart("related");
     BodyPart messageBodyPart = new MimeBodyPart();      
     messageBodyPart.setContent(mailContent, "text/html");
multipart.addBodyPart(messageBodyPart);
Address[] validUnsent = sfex.getValidUnsentAddresses();
javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[validUnsent.length];                         
if (validUnsent != null) {
for (int i = 0; i < validUnsent.length; i++)
System.out.println("Valid Address ------>"+validUnsent[i]);
String test = validUnsent[i]+"";
toAddress[i]=new javax.mail.internet.InternetAddress(test);
msg.setRecipients(Message.RecipientType.TO, toAddress);
msg.setSubject(mailSubject);
String fileName = attachFiles.substring(attachFiles.lastIndexOf("/")+1,attachFiles.length());
               if(!fileName.equals(""))
                    messageBodyPart = new MimeBodyPart();
          DataSource source = new FileDataSource(attachFiles);
          messageBodyPart.setDataHandler(new DataHandler(source));
          messageBodyPart.setFileName(fileName);
          multipart.addBodyPart(messageBodyPart);
msg.setContent(multipart);
Transport.send( msg );
catch(Exception e)
     System.out.println("Mail Not Send");
          else
                    System.out.println("Mail Server Not Connectd ");
This code is working properly and i am able to send mail with attachment and html formatted content without any problem. But console of server is filled up with too much junk characters because of which the catalina.out file of tomcat server is becoming fully filled.
Sample cosnole display with  junk characters are as follows:
Subject: HBSP - DRUCKER - QC - CH16 - QC  R2 Completed
MIME-Version: 1.0
Content-Type: multipart/related;
     boundary="----=_Part_34_15681668.1247471518887"
------=_Part_34_15681668.1247471518887
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<b>Hi,</b><br><br>     Chapter CH16 in the project DRUCKER is Completed . <br><br>     <b>Comments :</b> Qc Accepted.<br><br> <b><i>Thanks,<br>ANTONY.</i></b>
------=_Part_34_15681668.1247471518887
Content-Type: application/octet-stream; name=9420317_CH06_p084-119.pdf.zip
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=9420317_CH06_p084-119.pdf.zip
UEsDBBQAAAAIAMOz6TqHaQ4BUtXhAGzP8QAZAAAAOTQyMDMxN19DSDA2X3AwODQtMTE5LnBkZsQ7
CTxUX9tCUpIWEomxpoWZuTN3FmvW7P9skaUajCXGiCHSYiuKFrIvlWStROSvaBEtiIpkK5WlUipa
ZKl898wYRP/37fve7/e69TjnPuc5z3LOuc95zjP3ym7S1lXAKuL5ZTu7HjTyL8ATiCgMiu6wA6Wi
gjZy86RSvN12U51QWLQRCguT8ESISED/hcITMWgdFJZIgPAwBm2CwhHQFqAdRySRcWg9lC2KBBNQ
WAIRZ6+mxk/1dEI48qNYF7+/N9WZHwiCSPyY8QtLQDFLlCf/AhYGgiHyDBwBIs7EETEzcCR4Bg6H
IZBn4LBE7AwcNBOHJ87EwWQ8aTqOgIWJM3C4mX2JMH6GLiQiHjMDR8bD03BYDBYizcDh8LjpOCyM
xczAETH4mbgZOmNhmDCDHwE7Qz+IhMNO54eHCKTp/GAcboYuBBJMmi6DSIZxU+lYF7KSJnEMb4qb
B9WbH1md5sjCROHJMHqTN9VvfPGRcGgzOp2BwhOQMUKZofU9nenIDYF1o22rgtXU1EWGRgsia2vp
Like this display of junk characters are filling up multiple pages of console file.
Can any one suggest me how to overcome this problem?
Many thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

There is no "sendmail" method in the JavaMail API.
The debug flag is set using the Session.setDebug method, or by setting the Session property "mail.debug".
If you're using someone else's helper classes with JavaMail, they may provide another way to set it.

Similar Messages

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

  • Why doesn't apple tv show song info while using pandora with AirPlay?

    Why doesn't apple tv show song info while using pandora with AirPlay?

    Welcome to the Apple Community.
    I'm not really familiar with Pandora but I assume it's an audio app and the app places text on screen to inform you of the current track playing.
    As an audio app, it seems to make sense it will stream audio over AirPlay, which doesn't include text of course. For that matter the text is also unlikely to be a video stream either, just to cover the possibility you ask why can't they stream it over AirPlay as video.

  • Problems with html content in box

    Hi! I have a problem with html content. For example photoswipe. If I import the folder with the index.html of photoswipe as an article all works fine. If I link it trough the folio overlay creator/webcontent) into a box in indesign dps, it stays empty. Seems like it doesnt find the images/paths??
    Klaus

    This sounds familiar. PhotoSwipe doesn't seem to like working in a web content overlay unless the JavaScript and other source files are uploaded within HTMLResources. This means editing your local HTML file so that paths to the JavaScript, images and CSS files begin by pointing to HTMLResources virtual folder (../../../HTMLResources/) before their subfolder and filenames. It's worth a try.

  • Value getting truncated in display while using F4IF_INT_TABLE_VALUE_REQUEST

    Hi.,
        I am using FM F4IF_INT_TABLE_VALUE_REQUEST to display F4 for a Particular field .
    But while displaying a field(ISBN) with 13 characters is displayed only with value of 8 characters only. kindly advice.
    IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'ESTNO'.
      APPEND IT_FT.
    IT_FT-TABNAME = 'ZC001_ESTMAST_HD'.
    IT_FT-FIELDNAME = 'VERSN'.
    APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'VERSN'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'SIRNO'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'TITNR'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'KUNNR'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'NAME1'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'JBDVN'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'MAKTX'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'TPWRK'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'ISBNO'.
      APPEND IT_FT.
    IT_FT-TABNAME = 'ZC002_ESTNOF4'.
    IT_FT-FIELDNAME = 'ORDDAT'.
    APPEND IT_FT.
      IT_DM-FLDNAME = 'ESTNO'.
      IT_DM-DYFLDNAME = 'IT_ESTMAS-ESTNO'.
      APPEND IT_DM.
      IT_DM-FLDNAME = 'VERSN'.
      IT_DM-DYFLDNAME = 'IT_ESTMAS-VERSN'.
      APPEND IT_DM.
      IT_DM-FLDNAME = 'SIRNO'.
      IT_DM-DYFLDNAME = 'IT_ESTMAS-SIRNO'.
      APPEND IT_DM.
    IT_DM-FLDNAME = 'SERIS'.
    IT_DM-DYFLDNAME = 'ZV001_TITLMAS_HD'.
    APPEND IT_DM.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = 'IT_VALUE'
       DDIC_STRUCTURE         = 'ZC002_ESTNOF4'
        RETFIELD               = 'ESTNO'
      PVALKEY                = ' '
        DYNPPROG               = SY-REPID
        DYNPNR                 = SY-DYNNR
        DYNPROFIELD            = 'IT_ESTMAS-ESTNO'
        VALUE_ORG   = 'S'
       STEPL                  = 0
        TABLES
           VALUE_TAB              = IT_MESTNO_F4
           FIELD_TAB              = IT_FT
          RETURN_TAB             = IT_RT
           DYNPFLD_MAPPING        = IT_DM
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards.,
    S.Sivakumar

    Hi.,
        i think i confused u all . i will paste the entire code here .
    DATA : BEGIN OF IT_MESTNO_F4 OCCURS 0,
           MANDT LIKE ZC001_ESTMAST_HD-MANDT,
            ESTNO LIKE ZC001_ESTMAST_HD-ESTNO,
            VERSN LIKE ZC001_ESTMAST_HD-VERSN,
            SIRNO LIKE ZC001_ESTMAST_HD-SIRNO,
            TITNR LIKE ZV001_TITLMAS_HD-TITNR,
            TPWRK LIKE ZV001_TITLMAS_HD-TPWRK,
            KUNNR LIKE ZC001_ESTMAST_HD-KUNNR,
            NAME1 LIKE KNA1-NAME1,
            JBDVN LIKE ZC001_ESTMAST_HD-JBDVN,
            MAKTX LIKE ZV001_TITLMAS_HD-MAKTX,
            ISBNO TYPE ZV001_TITLMAS_HD-ISBNO,
           END OF IT_MESTNO_F4.
      CLEAR: IT_MESTNO_F4[], IT_MESTNO_F4,
               IT_FT[], IT_FT,
               IT_DM[], IT_DM,
               IT_RT[], IT_RT.
    *ORDDAT
    SELECT DISTINCT  ESTNO VERSN SIRNO FROM ZC001_BUDMAS_MAT INTO CORRESPONDING FIELDS OF TABLE IT_MESTNO_F4.
    SELECT ESTNO VERSN SIRNO FROM ZC001_ESTMAST_HD INTO CORRESPONDING FIELDS OF TABLE IT_MESTNO_F4  WHERE ZSAVE EQ 'X'..
      SELECT  DISTINCT A~ESTNO A~VERSN A~SIRNO A~TITNR A~TPWRK A~KUNNR D~NAME1 JBDVN   B~MAKTX   ISBNO
       FROM ZC001_ESTMAST_HD AS A INNER JOIN  ZV001_TITLMAS_HD AS B
      ON A~TITNR = B~TITNR
        INNER JOIN  ZC001_BUDMAS_MAT AS C
      ON A~ESTNO = C~ESTNO AND A~VERSN = C~VERSN AND A~SIRNO = C~SIRNO
        INNER JOIN  KNA1 AS D
      ON A~KUNNR = D~KUNNR
       INTO CORRESPONDING FIELDS OF TABLE IT_MESTNO_F4
       WHERE ZSAVE EQ SPACE AND ZLOCK EQ SPACE.
      SORT IT_MESTNO_F4 BY ESTNO DESCENDING.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'ESTNO'.
      APPEND IT_FT.
    IT_FT-TABNAME = 'ZC001_ESTMAST_HD'.
    IT_FT-FIELDNAME = 'VERSN'.
    APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'VERSN'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'SIRNO'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'TITNR'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'KUNNR'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'NAME1'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'JBDVN'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'MAKTX'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'TPWRK'.
      APPEND IT_FT.
      IT_FT-TABNAME = 'ZC002_ESTNOF4'.
      IT_FT-FIELDNAME = 'ISBNO'.
      APPEND IT_FT.
    IT_FT-TABNAME = 'ZC002_ESTNOF4'.
    IT_FT-FIELDNAME = 'ORDDAT'.
    APPEND IT_FT.
      IT_DM-FLDNAME = 'ESTNO'.
      IT_DM-DYFLDNAME = 'IT_ESTMAS-ESTNO'.
      APPEND IT_DM.
      IT_DM-FLDNAME = 'VERSN'.
      IT_DM-DYFLDNAME = 'IT_ESTMAS-VERSN'.
      APPEND IT_DM.
      IT_DM-FLDNAME = 'SIRNO'.
      IT_DM-DYFLDNAME = 'IT_ESTMAS-SIRNO'.
      APPEND IT_DM.
    IT_DM-FLDNAME = 'SERIS'.
    IT_DM-DYFLDNAME = 'ZV001_TITLMAS_HD'.
    APPEND IT_DM.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = 'IT_VALUE'
       DDIC_STRUCTURE         = 'ZC002_ESTNOF4'
        RETFIELD               = 'ESTNO'
      PVALKEY                = ' '
        DYNPPROG               = SY-REPID
        DYNPNR                 = SY-DYNNR
        DYNPROFIELD            = 'IT_ESTMAS-ESTNO'
        VALUE_ORG   = 'S'
       STEPL                  = 0
        TABLES
           VALUE_TAB              = IT_MESTNO_F4
           FIELD_TAB              = IT_FT
          RETURN_TAB             = IT_RT
           DYNPFLD_MAPPING        = IT_DM
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards.,
    S.Sivakumar

  • Error while using RSCRM_BAPI with remote cubes

    Hi,
       We are getting short dump while trying to use RSCRM_BAPI with hierarchies i.e.display hierarchies to extract data to a flat file.
    We do get a warning that display hierachies are not longer supported in 2004s with RSCRM_BAPI and have been going on and on with SAP development.  They are saying we need to find alternatives.
    I wanted to know if anybody has tried using display hierarchies with RSCRM_BAPI in 2004s if not then I would like to know what are my options in getting a flat hierarchy report on to a flat file? 
    I dont think infospoke supports flat hierarchy extracts as infoproviders dont store hierarchy information.
    Thanks

    Heres my thought -
    to use Bex Broadcaster to download the information,am not sure if RSCRM_BAPI is replaced by new functionality ,might wait for SAP to confirm.
    <b>Key capabilities:-</b>
    1)The right information:Based on BExqueries, views, workbooks, Web applications & enterprise reports
    2)In different formats:HTML, MHTML, PDF, ZIP, printer formats, online links, SAP alerts…
    3)To the right people:e.g., single users, groups, distribution lists, user-specific or role-specific (incl. non-SAP users)
    4)In different channels:e-mail, Portal, BExPortfolio (unified access based on Knowledge Management folders), collaboration rooms, Universal Work List…
    At the right time:event driven, exception driven, ad-hoc, scheduled
    Bex Broadcaster + Information Broadcasting
    Note 760775 - Settings for Information Broadcasting
    Functions of Bex broadcaster
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/220c40ac368f5ce10000000a155106/frameset.htm
    Hope it Helps
    Chetan
    @CP..

  • Junk characters displayed when viewing BEx query through WAD

    Hello,
    I am trying to display the results of a web report containing a BEx query through the "Execute in the Browser" option in WAD. But, junk Chinese characters keep showing up in the display. Also, if I try the same with one of the older web reports, they display fine. But, the moment I make a copy of these and execute without any modifications, the junk characters show up again.
    I tried executing through RSRT and there my report works perfectly. So, what could be going wrong or am I missing something?
    Thanks in advance!
    Menaz

    Thanks Emma.
    We figured it was related to the Unicode charset while I was going through the source code. I don't think there is any permanent fix yet. But, I followed the posting below and am trying to temporarily fix the error:
    Web Application Designer Appearing in Unicode (UTF-8)
    Thank you!

  • Full text not getting displayed while using RSRT

    Hi,
    I am facing issue while downloading data using RSRT in BI system.
    When I go to RSRT and execute a report the output doesn't display full text for a characteristic. i.e. the characteristic has a size of 60 characters, but only 30 chars ( approx) are being displayed as report output in RSRT.
    COuld anyone here please help me in getting the full text using RSRT transaction?
    I am not using Bex here for the reason that the output has more than 1.8 lac records and hence I get an error while using Bex
    WHen I try to execute this report using Bex for a small selection I could see full text there.
    And there is no text master data maintained for this characteristic.
    Thanks in advance for your replies.

    Hi,
    As you said you have 1.8 Lac records, There is no point in increasing the size to maximum number possible i.e 65K .
    You have following three options to satisfy your requirement.:
    1.    Usage of  web reporting for export of more than 65k rows. According the note: 1127156 - Safety belt: Result set is too large, in BW version 7.x it I possible to set parameters that would allow such a massive export of data.
    2.    Functionality of OpenHubs. Data can be placed directly into the files (e.g. in CSV format) on application server. Be careful here OpenHubs are specially licensed and by using it there are additional fees.
    3.    Coding of custom ABAP report which runs BW query and gets all its output and saves it in the flat files.
    Please let me know if this info is helpful.
    Regards,
    Krishna Tangudu

  • Howto use java with html

    Hi,
    I have got following project :
    an axis webcam displays an image thanks to http protocol
    at the right of my image, I have to create a panel with some java controls.
    I would like some hints on howto do this?
    Do I need a to setup a web server or is it possible to do this using a single html file loaded in my browser ?
    Best Regards
    Steph

    At best you can load an applet in a html page (the other possibility is to use servlets and JSP's to do server side processing, which is most likely not what you want to do).
    But what do you want to do with these "java controls"?

  • Licence Error while Using nqcmd with Analytics Web DSN

    Hi,
    While running nqcmd with Analytics Web DSN i am getting a DataDirect error, stating that you do not have appropriate licence to run ODBC Data Direct.
    I am getting this on Linux box but while running the same on Windows their is no such error.
    Have any one of you got such kind of stuff. I am using OBIEE which Oracle provides on her website for free for development purpose.
    Please help.
    Edited by: RKK on Oct 3, 2011 10:01 PM

    Hi,
    kindly Refer
    https://forums.oracle.com/forums/thread.jspa?messageID=2289534&#2289534
    Thanks
    Deva

  • Performance issue in linux while using set with URL object

    Hi,
    I am facing performance issue while using Set(HashSet) with URL object on linux. But it is running perfectly on windows.
    I am using
    set.contains(urlObject)
    Above particular statement is taking 40 sec on Linux, and only a fraction of ms on windows.
    I have checked the jre version on both OS. It is the same version (jre6)
    on both the OS.
    Could anyone please tell me what is the exact reason, why the same statement is taking more time on linux than windows.
    Thanks & Regards
    Naveen

    jtahlborn wrote:
    I believe the URL hashCode/equals implementations have some /tricky behavior which involves network access in order to run (doing hostname lookups and the like). you may want to either use simple Strings, or possibly the URI class (i think it fixed some of this behavior, although i could be wrong).The second new thing I have learned today. I was wrong in reply # 1 because looking at the URL code for 1.6 I see that the hash code is generated from the IP address and this has a lazy evaluation. Each URL placed in a HashMap (or other hash based collection) requires a DNS lookup the first time the hash code is used.
    P.S. 40 seconds does seem a long time for a DNS lookup!
    Edited by: sabre150 on Feb 13, 2008 3:40 PM

  • After effects instantly crashes while using opengl with nvidias new drivers 178.24

    Since I installed nvidias new drivers 178.24, after effects instantly crashes while using opengl. Anyone else experienced this?
    I have Geforce 8600 GT.
    As a minor note, I had major problems with the new quicktime 7.5.5 update, both After effects and Premiere got problems with interpreting footage and frames here and there got the "missing frame" look. I also got more problems so I uninstalled it instantly. Is there a major problem with the update or a major problem with me?
    Thanks
    / Olle

    I use Vista (in retroperspective this was probably a mistake, but the company wanted to test the capabilities with Vista when we bought the computer a year ago). And specs are:
    *Graphics: Asus Extreme GeForce 8600GT SILENT 512MB DDR3 TV-out HDTV DUAL DVI RETAIL PCI Express
    *HD: Samsung HD501LJ 500GB 7200rpm 16MB SATA2
    *Audio: Creative Sound Blaster X-Fi Xtreme Audio Retail
    *Mem: Corsair QUAD2X4096-6400C5DHX QuadDHX 4x1024MB (tot. 4096MB) Kit DDR2 XMS2-6400 800MHz
    *Motherboard: Asus P5K iP35 4DDR2-DIMM 3PCI 3PCIe SATA Raid Audio GB-LAN Firewire Socket775 ATX
    *Processor: Intel Core 2 EXTREME QUAD QX6850 3.0GHz 8MB FSB1333 Boxed (with cpu-cooler!) Socket 775
    *Power: Sirtec/Chieftec CFT-750-14C 750W 140mm fan ATX2.0 20/24-pin 4/8-pin 12V Modular
    Sorry not to give more info on the Quicktime problem, I don't remember exactly what more problems there where as we have had extremely much to do these last couple of weeks and I just freaked out and uninstalled it as soon as the problems emerged. I do remember the frame issue however, it was very clear, i imported an image sequence in premiere and everything worked fine, then i updated and frames were suddenly dropped, then i uninstalled and installed 7.5 again and it worked just fine. I also tried to flush the cache, restart and generally search for the source of the problem for a couple of hours.
    / Olle

  • Problem while using XML with Oracle

    I have a problem using XML with oracle applications
    The process I am following
    1. Making a XML string.
    2. Parsing it to get a document
    3. Free the parser using xmlparser.freeparser
    4. Traversing through nodes .
    5. Freeing the document.
    The whole Process is executed in batch mode.
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")
    Can you please help me out to overcome this problem
    It's urgent
    I have
    Oracle version 8.1.7.0.0
    XML version 1.2
    OS Windows NT
    To resolve the problem I have increase shared memory size and java initialization parameters ,which seems OK
    Looking forward for your answer.

    Hello, Reena
    Your process flow seems to be correct in term of getting/freeing memory.
    Following error
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")may be caused by memory leaks in xdk or memory fragmentation(due to get/free memory cycle)
    To find out if this is an memory leak issue you could try to monitor V$SGASTAT from one session while running your batch process in another session.
    To prevent (or lower its impact) fragmentation issues try to PIN objects, and adjust java_pool_size and shared_pool_reserved_size.
    Anyway, counsult your Oracle DBA.
    Oracle version 8.1.7.0.0I think, you should apply database patch first of all. The latest one (8.1.7.4.x) could be accured from Metalink.

  • Thunderbolt display problems using MBP with lid closed

    I am experiencing a very reproducible problem since purchasing aThunderbolt display to use with a recent (1 month old) Macbook Pro 13"2.7GHz i7.
    I use my MBP with lid closed with myThunderbolt display. If Ithen allow the MBP to sleep and power down, on restarting it the WiFi hasstopped working- the menu bar says I am connected by WiFi but Safari will notconnect to the internet and Time Machine cannot connect to the Airport/TimeCapsule to backup. Nothing I do will fix it (shutting down all programs, turingWiFi off then on) and so I have to shutdown/reboot BUT THEN the MBP freezesduring shutdown (waiting 15, 20, 30 minutes!) and I have to hold down the powerbutton (hard reboot). Once I reboot everything works fine UNTIL I take a breakand the computer goes to sleep again.
    Doesn't seem to be a problem with the MBP lid open, but I needto test this a bit more to be sure...
    On top of this the Bluetooth trackpad now keeps going on andoff; connected, not connected despite being near or the computer. Veryirritating at best, unusable at worst. This only started to be a major problem(every 10-15 minutes or so) when I started to use the Thunderbolt display.
    These problems seems to be in some ways similar to anotherthread:
    https://discussions.apple.com/message/16205098#16205098
    ("Major problemswith Thunderbolt display & MBAir")
    I have applied the recent Thunderbolt Firmware update, and SMC& PRAM/NVRAM resets. Interestingly these seemed to work initially but thenafter a prolonged power-down period the problem has recurred. Back to square 1.
    Any ideas out there?

    Just to be clear, have you installed everything that you find on this page?
    http://support.apple.com/kb/HT4644
    I just talked to Apple Care about Thunderbolt issues in general and even though I already had the Thunderbolt Software Update installed, he had me reinstall it.  If you go to this page:
    https://discussions.apple.com/message/16889000#16889000
    you can read in detail about the issues I was having which have for the most part been remedied (for now at least!)
    The Thunderbolt cable definitely transfers heat for some reason even when there isn't a high CPU utilization.  The process 'kernel_task' seems to be where the API for thunderbolt is running.  But for some reason, the behavior of CPU Utilization to Fan Speed is amplified when connected to the TBD.
    Apple Care is researching it.

  • Error while using pppd with chat script.

    We are using pppd with chat script to establish a connection.
    In the process we get the "Protocol reject" error.
    e.g.
    Fri Feb 26 11:35:40 2010 : Serial connection established.
    Fri Feb 26 11:35:40 2010 : Using interface ppp0
    Fri Feb 26 11:35:40 2010 : Connect: ppp0 <--> /dev/cu.usbmodem413
    Fri Feb 26 11:35:43 2010 : Remote message: PAP access OK
    Fri Feb 26 11:35:43 2010 : PAP authentication succeeded
    Fri Feb 26 11:35:43 2010 : Protocol-Reject for unsupported protocol 0x382
    Fri Feb 26 11:35:46 2010 : Protocol-Reject for unsupported protocol 0x382
    Fri Feb 26 11:35:48 2010 : local IP address 161.30.96.51
    Any inputs for resolving this error.

    Some more details:
    Tue Mar 9 13:39:34 2010 : Serial connection established.
    Tue Mar 9 13:39:34 2010 : using link 0
    Tue Mar 9 13:39:34 2010 : Using interface ppp0
    Tue Mar 9 13:39:34 2010 : Connect: ppp0 <--> /dev/cu.usbmodem413
    Tue Mar 9 13:39:35 2010 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x23b22dfd> <pcomp> <accomp>]
    Tue Mar 9 13:39:35 2010 : rcvd [LCP ConfRej id=0x1 <asyncmap 0x0> <magic 0x23b22dfd> <pcomp> <accomp>]
    Tue Mar 9 13:39:35 2010 : sent [LCP ConfReq id=0x2]
    Tue Mar 9 13:39:35 2010 : rcvd [LCP ConfAck id=0x2]
    Tue Mar 9 13:39:37 2010 : rcvd [LCP ConfReq id=0x34 <mru 1500> <auth pap>]
    Tue Mar 9 13:39:37 2010 : lcp_reqci: returning CONFACK.
    Tue Mar 9 13:39:37 2010 : sent [LCP ConfAck id=0x34 <mru 1500> <auth pap>]
    Tue Mar 9 13:39:37 2010 : sent [PAP AuthReq id=0x1 user="void" password=<hidden>]
    Tue Mar 9 13:39:37 2010 : rcvd [PAP AuthAck id=0x1 "PAP access OK"]
    Tue Mar 9 13:39:37 2010 : Remote message: PAP access OK
    Tue Mar 9 13:39:37 2010 : PAP authentication succeeded
    Tue Mar 9 13:39:37 2010 : sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 161.30.96.51> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
    Tue Mar 9 13:39:37 2010 : sent [ACSCP ConfReq id=0x1 <ms-dns1 0.0.0.1> <ms-dns1 0.0.0.1>]
    Tue Mar 9 13:39:37 2010 : rcvd [LCP ProtRej id=0x35 03 82 35 01 01 00 10 01 06 00 00 00 01 02 06 00 00 00]
    Tue Mar 9 13:39:37 2010 : Protocol-Reject for unsupported protocol 0x382
    Tue Mar 9 13:39:39 2010 : rcvd [IPCP ConfRej id=0x1]
    Tue Mar 9 13:39:39 2010 : sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 161.30.96.51> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
    Tue Mar 9 13:39:40 2010 : sent [ACSCP ConfReq id=0x1 <ms-dns1 0.0.0.1> <ms-dns1 0.0.0.1>]
    Tue Mar 9 13:39:40 2010 : rcvd [LCP ProtRej id=0x36 03 82 35 01 01 00 10 01 06 00 00 00 01 02 06 00 00 00]
    Tue Mar 9 13:39:40 2010 : Protocol-Reject for unsupported protocol 0x382
    Tue Mar 9 13:39:41 2010 : rcvd [IPCP ConfRej id=0x2]
    Can anyone provide help to resolve the above error ?

Maybe you are looking for

  • Save File: Does not save my file to the chosen location

    When the window pops up for the save location of a file, select location, and save. Navigate to the save location and the file is not there. cannot find the file via a search. Also does not remember last save location, but there is not entry in the a

  • The search box and non-US english characters?

    Anyone know how to make the search box work right with non-US characters? For example lets say I wanted to search for an U with an umlaut (Sütterlin). If I type the ü it gives me every word with a U in it.

  • Toshiba laptop running slow

    couple days ago my laptop wont go to windows , when I start it and the screen black and the logo in the middle and stay like that forever , so I start it in Safe Mood and I restore my windows to couple weeks ago , it work fine , but the windows runni

  • NI-VISA is installed, but visa32.dll could not be loaded.

    Hi, When I start MAX, it shows the yellow exclamation mark icon and "VISA Error" under Devices and Interfaces. The description of the error is "C:\Windows\system32\visa32.dll was found but could not be loaded." I followed MAX's suggestion to repair t

  • My ipod is messed up please read and help.

    my ipod is about 6 months old and all of the sudden it shows the screen that means it wants you to connect it to itunes. so i do. it says i have to restore it. so i do. when i click restore it says i have to update and restore. so i do. i wait about