Problem display SVG format map

I have installed adobe SVG viewer.
Oracle DB 10.2.0
Oracle Application server 10.1.3.
Map Viewer 10.1.2
I browser mapviewer/demo/mapinit.jsp and select SVG.
Everything works fine except there is no map displayed in the window.
If I choose regular image, everything is fine.
Does anyone have ideas about it?

Hi,
Do you have any errors (client or server), any log-Messages?
This is the first thing i would look for.
regards,
Andreas
btw: the svg-browser (ie/mozilla) is installed?

Similar Messages

  • SVG format and Jdeveloper

    Hi,
    Is it possible to display SVG format map generated by MapViewer through Jdeveloper / embedded oc4j?
    Thanks,
    Shoutong

    Maybe this sample can help:
    http://andrejusb-samples.blogspot.com/2007/01/jdevadf-sample-spatially-enabled-adf.html

  • How to display SVG on screen using Batik

    I have the following working code which reads in a PNG graphic and displays it on screen. It uses ImageIO and is fairly simple. I have the same symbols in SVG format. I have downloaded Batik from Apache, but I can't for the life of me find code to simply load the image and display it on screen. Can someone direct me to working code that does this.
    Thanks,
    Chris
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.imageio.*;
    public class Example01 extends Frame
    public static void main(String args[])
    new Example01();
    public Example01()
    super("Java 2D Example01");
    setSize(400,300);
    setVisible(true);
    addWindowListener(new WindowAdapter()
    {public void windowClosing(WindowEvent e)
                    {dispose(); System.exit(0);}}
    public void paint(Graphics g)
    Graphics2D g2d = (Graphics2D)g;
    try
    Image bi = ImageIO.read(new File("burda_knitthruback.png"));
    g2d.drawImage(bi, 40, 40, 50, 50, this);
    catch(IOException ioe)
    System.err.println(ioe.getMessage());

    I'm complely new to Batik.
    I need to display a PNG file in a SVG format. As well I need to display it on the JSVGCanvas.
    What I don't know is using Batik how to implement svg <image> tag.
    Please help me on this problem.
    Here's the code I used. But It's not working.I have used ImageIcon object to display a PNG file.
    But the svg output is not as expected
    import javax.swing.*;
    import org.apache.batik.dom.svg.SVGDOMImplementation;
    import org.apache.batik.dom.util.DOMUtilities;
    import org.apache.batik.svggen.SVGGraphics2D;
    import org.apache.batik.swing.JSVGCanvas;
    import org.apache.batik.util.SVGConstants;
    import org.w3c.dom.DOMImplementation;
    import org.w3c.dom.Element;
    import org.w3c.dom.svg.SVGDocument;
    import java.awt.*;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    import java.io.IOException;
    public class RectCreate{
    private SVGGraphics2D generator = null;
    private JSVGCanvas canvas = null;
    private SVGDocument doc = null;
    public static void main(String[] args){
    RectCreate rc = new RectCreate();
    private void passContent(){
    Element root = doc.getDocumentElement ();
    generator.getRoot(root);
    canvas.setSVGDocument (doc);
    public RectCreate(){
    canvas = new JSVGCanvas();
    DOMImplementation dom = SVGDOMImplementation.getDOMImplementation();
    String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
    doc = (SVGDocument)dom.createDocument(svgNS,"svg",null);
    generator = new SVGGraphics2D(doc);
    passContent();
    Rectangle rect = new Rectangle(10,10,48,48);
    ImageIcon imIcon = new ImageIcon("/home/dds/IdeaProjects/BPEL2SVGLibrary/BPEL2SVGIcons/icons/invoke.png");
    passContent();
    saveToFile("/home/dds/IdeaProjects/MyBatikSVG/svg1.svg");
    private void saveToFile(String file){
    try{
    FileWriter f = new FileWriter(file);
    PrintWriter writer = new PrintWriter(f);
    // Get the created document from the canvas
    writer.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
    writer.write ("<!DOCTYPE svg PUBLIC '");
    writer.write (SVGConstants.SVG_PUBLIC_ID);
    writer.write ("' '");
    writer.write (SVGConstants.SVG_SYSTEM_ID);
    writer.write ("'>\n\n");
    SVGDocument svgDoc = canvas.getSVGDocument();
    // And here our SVG content is actually being
    // written to a file
    DOMUtilities.writeDocument(svgDoc, writer);
    writer.close();
    } catch(IOException ioe){
    System.err.println("IO problem: " + ioe.toString());
    Edited by: ddweerasiri on Nov 10, 2008 8:36 PM

  • Problem in SVG Export

    Hi,
    We're facing a problem generating an image in SVG format. The generated image has an empty background, all in blue. This already had happened before, but the solution was to allocate more memory in oc4j. This solution does not seem to work with SVG format.
    Has anyone passed through this problem?
    If necessary I'll post the map request XML
    Thanks.

    <!--
    @page { size: 21cm 29.7cm; margin: 2cm }
    P { margin-bottom: 0.21cm }
    -->Thanks for the answer Jo&atilde;o.
    In fact, we are using oracle maps.
    May I send you the log through e-mail?
    Follows the map request. (I have changed the datasource, map_cache_name and datasource to a fake one).
    <!--
    @page { size: 21cm 29.7cm; margin: 2cm }
    P { margin-bottom: 0.21cm }
    -->
    <address>&lt;?xml version="1.0" standalone="yes"?&gt;</address>
    <address>&lt;map_request datasource="XXXXX" format="SVG_URL" width="1188" height="840" antialiase="true" srid="8292"&gt;</address>
    <address>&lt;center size="0.5649696304616238"&gt;</address>
    <address>&lt;geoFeature&gt;</address>
    <address> &lt;geometricProperty typeName="center"&gt;</address>
    <address> &lt;Point&gt;&lt;coordinates&gt;-51.1553105,-30.099853500000002&lt;/coordinates&gt;&lt;/Point&gt;</address>
    <address> &lt;/geometricProperty&gt;</address>
    <address>&lt;/geoFeature&gt;</address>
    <address>&lt;/center&gt;</address>
    <address>&lt;themes&gt;</address>
    <address> &lt;theme name="cached_basemap0"&gt;</address>
    <address> &lt;map_cache_theme map_cache_name="XXX.XXXX" snap_to_cache_scale="true" /&gt;</address>
    <address> &lt;/theme&gt; </address>
    <address> &lt;theme name='FILTERS_CITY1231348452513'&gt; </address>
    <address> &lt;jdbc_query asis='true' </address>
    <address> spatial_column='SHAPE' </address>
    <address> jdbc_srid='8292' </address>
    <address> render_style= 'filter_cities' </address>
    <address> datasource='CLARIDATA'&gt;SELECT XXXXX</address>
    <address> &lt;/jdbc_query&gt; </address>
    <address> &lt;/theme&gt; </address>
    <address>&lt;/themes&gt;</address>
    <address>&lt;north_arrow&gt;</address>
    <address> &lt;style&gt;ROSA_DOS_VENTOS_A0&lt;/style&gt; </address>
    <address> &lt;location&gt;35,750&lt;/location&gt; </address>
    <address> &lt;size&gt;40,40&lt;/size&gt; </address>
    <address>&lt;/north_arrow&gt; </address>
    <address>&lt;scale_bar position="SOUTH_WEST" mode="DUAL_MODES" color1="#ff0000" color1_opacity="70" color2_opacity="70" color2="#0000ff" length_hint="183" </address>
    <address> label_font_family="Dialog" label_font_size="11" label_halo_size="3.5" /&gt;</address>
    <address>&lt;geoFeature render_style="LOGO_CLARIDATA_A4"&gt;</address>
    <address>&lt;geometricProperty&gt;</address>
    <address> &lt;Point srsName="SDO:8292"&gt;</address>
    <address> &lt;coordinates&gt;-51.1553105,-30.341686182275325&lt;/coordinates&gt;</address>
    <address> &lt;/Point&gt;</address>
    <address>&lt;/geometricProperty&gt;</address>
    <address>&lt;/geoFeature&gt;</address>
    <address>&lt;/map_request&gt;</address>
    Thanks for helping.

  • Problem with date format dd/mm/yyyy. But I need to convert yyyy-mm-dd.

    Dear friends,
    I have the problem with date format. I receiving the date with the format dd/mm/yyyy. But I can upload to MySQL only in the format of yyyy-mm-dd.
    how should I handle this situation, for this I've created these code lines.But I have some problem with these line. please help me to solve this problem.
    String pattern = "yyyy-mm-dd";
    SimpleDateFormat format = new SimpleDateFormat(pattern);
    try {
    Date date = format.parse("2006-02-12");
    System.out.println(date);
    } catch (ParseException e) {
    e.printStackTrace();
    System.out.println(format.format(new Date()));
    this out put gives me Tue Apr 03 00:00:00 IST 2007
    But I need the date format in yyyy-mm-dd.
    regards,
    maza
    thanks in advance.

    Thanks Dear BalusC,
    I tried with this,
    rs.getString("DATA_SCAD1")// where the source from .xls files
    String pattern = "yyyy-MM-dd";
    SimpleDateFormat format = new SimpleDateFormat(pattern);
    try {
    Date date = format.parse("DATA_SCAD1");
    System.out.println(date);
    } catch (ParseException e) {
    e.printStackTrace();
    System.out.println(format.format(new Date()));
    this out put gives me Tue Apr 03 00:00:00 IST 2007
    But I want to display the date format in yyyy-mm-dd.
    regards,
    maza

  • Problem displaying CLOB in text file

    Hello All,
    I have a problem displaying the content from the database in notepad. When I click on a link on my jsf screen, I retrieve the data and display it in notepad.
    I have my text content stored in the database with CLOB datatype. When I look in the database the data looks in the following format:
    ---------STARTS FROM NEXT LINE-------------
    The firm, known for its keen oversight of products, has been the subject of complaints from firms who have had apps blocked from the store. Some developers have complained that the company's rules seem inconsistent.
    Some have found apps blocked after seemingly minor updates, or for having content deemed inappropriate by them. In light of this, and after careful consideration, I believe it is unnecessary to sign this measure at this time.
    Sincerely,
    ABC
    ----------ENDS IN THE PREVIOUS LINE------------
    Now when I display this content onto the notepad, all the spaces and new line characters are lost, and the entire display looks awkward. This is how it looks:
    The firm, known for its keen oversight of products, has been the subject of complaints from firms who have had apps blocked from the store. Some developers have complained that the company's rules seem inconsistent.[]Some have found apps blocked after seemingly minor updates, or for having content deemed inappropriate by them. In light of this, and after careful consideration, I believe it is unnecessary to sign this measure at this time.[]Sincerely,[]ABC
    All the new line characters are lost and it just puts some junk character in place of a new line.
    When I copy the same text onto textpad, everything is alright and it displays exactly the way it is present in the database. I am also open to display the content in html, but in HTML it doesn't even display me the junk character in place of new line. It is just one single string without any line separators.
    I am using the following code to put the content into the text.
    public String writeMessage(){
       OutputStream outStream = null;
       HttpServletResponse response = getServletResponseFromFacesContext();
       Reader data = null;
       Writer writer = null;
       try{
          response.reset();
          response.setContentType("text/plain; charset=UTF-8");
          response.setHeader("Content-Disposition","attachment; filename="+id+"_Message.txt");
          outStream = response.getOutputStream();
          QueryRemote remote = serviceLocator.getQueriessEJB();
          data = remote.retrieveGovernorsVetoMessage(billId);
          writer = new BufferedWriter(new OutputStreamWriter( outStream, "UTF-8" ) );
          int charsRead;
          char[] cbuf = new char[1024];
          while ((charsRead = data.read(cbuf)) != -1) {
             System.out.println(charsRead);
          writer.write(cbuf, 0, charsRead);
          writer.flush();
       }catch(Exception ex){
          ex.printStackTrace();
       }finally{
          //Close outStream, data, writer
          facesContext.responseComplete();
       return null;
    }Any help or hints on resolving this issue would be highly appreciated.
    Thanks.

    The data is imported from a third party application to my database. It doesn't display any newline characters when I view the data.
    But when I do a regular expression search on text pad, I could see that my clob contains \n as the new line character. Is there a way to replace \n with \n\r while writing the data.
    Thanks.

  • Problem in JDBC Adapter Mapping

    Hi all,
    I am working on a scenario wherein i am trying to connect an ORACLE DB to SAP 4.7 system using XI 3.0 . I configured the JDBC Adapter and the JDBC adpter is picking up the message but i have a problem in JDBC adpter Mapping.
    The error message is like this:
    <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_ORACLE_MSGMAP_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_ORACLE_MSGMAP_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    How to map the "Resultset" from the Adapter to a target message? Can anybody throw some light on how to get the message from the JDBC adpter and map it to some other message format...Any documents regarding this ?
    Waitin for ur replies...
    Bye,
    Romit Shankar Arun.

    Hi,
    Does your other SDN post "Inserting data through JDBC adapter" refer to the same problem?
    I assume you use XMLSPY for creating XSDs.
    I used the XSD posted by you in the other forum thread and tried to generate the XML structure and it does not seem to generate the XML structure in the format required by the JDBC adapter.
    sample file generated from your XSD posted in the other forum thread:
    <?xml version="1.0" encoding="UTF-8"?>
    <resultset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Untitled1.xsd">
         <row action="INSERT">
              <CUSTOMER_NUMBER>String</CUSTOMER_NUMBER>
              <COUNTRY_KEY>String</COUNTRY_KEY>
              <FIRST_NAME>String</FIRST_NAME>
              <LAST_NAME>String</LAST_NAME>
              <AUTHORIZATION_GROUP>String</AUTHORIZATION_GROUP>
              <INDUSTRY_KEY>String</INDUSTRY_KEY>
              <ACCOUNT_GROUP>String</ACCOUNT_GROUP>
              <INTIAL_CONTACT>String</INTIAL_CONTACT>
              <COMPANY_CODE>String</COMPANY_CODE>
              <CITY>String</CITY>
              <CITY_CODE>String</CITY_CODE>
              <COUNTRY_CODE>String</COUNTRY_CODE>
              <DISTRICT>String</DISTRICT>
              <FAX_NUMBER>String</FAX_NUMBER>
              <HOUSE_NUMBER>String</HOUSE_NUMBER>
              <POSTAL_CODE>String</POSTAL_CODE>
              <REGION>String</REGION>
              <TELEPHONE_NUMBER>String</TELEPHONE_NUMBER>
         </row>
    </resultset>
    Compare the above to the template i have mentioned.
    Hope this helps.
    Regards,
    Sridhar

  • How to Generate and Display SVG Graphics in ABAP

    Hi everybody,
    I tried to complete the Tutorial "How to Generate and Display SVG Graphics in ABAP, Part 1" by Siarhei Ulasenka (https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ad83a990-0201-0010-d680-a189f8bc20fa).
    Unfortunately when I tried the example to display an SVG Drawing in an ABAP Report I get the error message "Es ist ein Laufzeitfehler aufgetreten, ungültiges Zeichen" (english should be something like "Runtime Error, unkown character"). But it works when I open the svgfile in a new IE Window (parameter in_place from cl_gui_html_viewer->show_url). Also when I open a svg file from the local disc it works fine.
    The code:
        CALL METHOD html_control->load_data
          EXPORTING
            url            = 'chart.svg'
            type         = 'image'
            subtype    = 'svg+xml'
          CHANGING
            data_table = lt_svg
          EXCEPTIONS
            OTHERS     = 1.
        CALL METHOD html_control->show_url
          EXPORTING
            url        = 'chart.svg'
            in_place   = 'X'
          EXCEPTIONS
            cntl_error = 1.
    Has anyone a solution? Thanks in advance for your help!
    Regards
    Kathrin

    Hello Alex,
    The Corel SVG viewer has problems loading and displaying the examples (see the list of limitations at their site). Try to use the Adobe viewer instead.
    Regards,
    Sergei Ulasenka

  • Problem displaying picture stored in mySQL

    Hi, i just have got problem displaying picture stored in database as BLOB and presented on JSP over servlet. Below is my code i am using to upload file into database, than download it and display again. The result is the picture can not draw inself and there is always only empty picture space on the web page i am displaying. Please help me to find why it is not working, thanx.
    servlet uploading picture to database
                   boolean isMultipart = FileUpload.isMultipartContent(req);
                   DiskFileUpload upload = new DiskFileUpload();
                   List items = upload.parseRequest(req);
                   Hashtable textFields = new Hashtable();
                   byte[] data = new byte[4096];
                   if(isMultipart)
                        Iterator iter = items.iterator();
                        while(iter.hasNext())
                             FileItem item = (FileItem)iter.next();
                             if(item.isFormField())
                                  textFields.put(item.getFieldName(), item.getString());
                             }else{
                                  data = item.get();
                   String sqlStatement = "INSERT INTO cds VALUES('" textFields.get("id")"'," +
                                            "'" textFields.get("album") "','" textFields.get("interpreter") "'," +
                                                      "'" textFields.get("gr1") "','" textFields.get("gr2") "','" textFields.get("price") "')";
                   String sqlStatement2 = "INSERT INTO pics VALUES('" textFields.get("id") "','" data "')";
    servlet to download picture
    String SQL =
         "SELECT Picture " +
         "FROM pics " +
         "WHERE id = '" + request.getParameter("id") + "'";
         ResultSet rs = stmt.executeQuery(SQL);
         rs.next();
         Blob blob = null;
         blob = rs.getBlob(1);
         response.setContentType("image/jpg");
         request.setAttribute("blob", blob);
         System.out.println("just above OutputStream");
         InputStream in = blob.getBinaryStream();
         ServletOutputStream sout = response.getOutputStream();
         int b;
         while ((b = in.read()) != -1) {
         sout.write(b);
         in.close();
         sout.flush();
         sout.close();
    img tag in JSP
    <img src="LoadImageServlet?id=some id>
    plus i am using
    Tomcat 5.0
    mySQL 4.0
    debuging in eclipse
    thanx for help once more, Libor.

    1:
    are there any exceptions throws by the jdbc code
    2:
    is the code in a doGet
    3:
    you should do a if(result.next())
    4:
    Is your mapping code working

  • Problems displaying rtf memo fields

    Post Author: Davidm
    CA Forum: General
    We use Crystal Reports X to run reports on an Access database with a significant number of rtf memo fields. We use Total Access Memo to allow extended use of rtf within Access as our users require the additional formatting capabilities that this offers.
    However, there are considerable problems displaying items like bullet points, tables and hyperlinks in the Crystal Viewer with tables in particular coming out in a real mess with all entries in the table being displayed in a list with a small square marking each cell at the end of each line.
    Curiously, if you preview the report in the full version of Crystal X, it appears a bit better with the hyperlinks still underlined (bullet points still vanish) and rows in rtf tables are at least presented as a row even if the columns are not ordered and mixed (with no bounding cells visible).
    Firstly, is this disparity of end result between full Crystal X Print Preview and the Crystal X Viewer fixable?
    Secondly, is the limited handling of rtf tags likely to be solved in the next release of Crystal?

    Hi Mathias,
    If I caught you correctly, you want to display data in Adobe forms in form of tabel, right?
    So, follow the steps:
    1. Insert one sub form on your adobe form.
    2. Set its type as "flow content" in object->subform property.
    3. Set flow direction as "Table".
    4. Insert another subform inside this subform.
    5. set its type as "flow content" and flow direction as "Table row".
    6. Now, choose binding tab, and there check "repeat subform for each Data item check box" and specify min. count for your rows.
    7. Now, insert your column fields inside this sub form once.
    8. Format its look and feel as you want.
    When you run this application, it will show you multiple data as table on Adobe form.
    Regards,
    Bhavik

  • SVG format in Illustrator

    So I was told to create a story book illustration (as seen on my first post) and convert it to an svg format. My boss, upon checking the file told me that the svg file I made was just an embedded picture and that's not what he wants. I don't really get the svg format so can someone help me? My boss goes to the files codes and says that it's just an embedded png pic or something. I find it weird because I "save as" the work on the Illustrator itself and is not embedding anything else. Can anyone please explain to me how this whole svg file works? How will I know if it's not an embedded pic like what my boss says?
    Thanks in advance.

    You can redraw the entire scene and use flat shapes where your fuzzy edges are small and "stroke-like" (like in her hair, dress, and boots, the house roof and fence- anything highly-detailed), you can also use several shapes to get the non-round rocks in a purposefully-banded type of posterized effect, so they won't be smooth but with consistency they can give the eye a good illusion.  And for items which are needing to be fuzzy and round, you may be able to use shapes with gradients inside them.  For the trees, you may want to change them to have a radial gradient with dark-green outside and shift it so they look more lit from one side, and add some leave shapes for symbolic texture. This may be a complicated process of setting up the gradients just right, but it's going to let you scale the image.  When you're done and save as SVG, open that Svg in a browser and zoom in to see what items got added well.  If you open up one of your svgs which use a mesh, you will most likely see pixels when zooming in, that's because browsers don't read AI's gradient meshes and can't display them as such, so AI converts the meshes to images and the svg has a bunch of embedded pictures which do not scale like vectors.  Even though you may be able to zoom in quite far and not see a big quality difference in your meshes which have very smooth gradation, each embedded image takes up a lot of space within the file as base64 encoded image date (if you saved with images embedded).  Otherwise, if you saved with images linked, those created images will be put into a parent folder of your svg file, and the shapes inside the svg will link to those images.  If you save your red riding hood in this manner, you may see a whole lot of those, and take note of the file size of each.

  • Problem displaying Word 2002 RTF files in JEditorPane

    Hi all,
    I am having a problem displaying RTF files created in Word 2002/Office XP in a JEditorPane.
    Our code, which does the usual stuff:
    JEditorPane uiViewNarrativeEda = new JEditorPane();
    uiViewNarrativeEda.setContentType(new RTFEditorKit().getContentType());
    FileInputStream inDocument = new FileInputStream("c:/temp/testing.rtf"); uiViewNarrativeEda.read(inDocument, "");
    inDocument.close();
    works just FINE with RTF files created in Word 97, WordPad etc, but it seems that Word 2002 adds some tags to the RTF file that the RTFReader cannot handle.
    For example, I believe the following exception is due to the new \stylesheet section that Word 2002 adds to the RTF file:
    java.lang.NullPointerException:
         at javax.swing.text.rtf.RTFReader$StylesheetDestination$StyleDefiningDestination.close(RTFReader.java:924)
         at javax.swing.text.rtf.RTFReader.setRTFDestination(RTFReader.java:254)
         at javax.swing.text.rtf.RTFReader.handleKeyword(RTFReader.java:484)
         at javax.swing.text.rtf.RTFParser.write(RTFParser.java, Compiled Code)
         at javax.swing.text.rtf.AbstractFilter.readFromReader(AbstractFilter.java:111)
         at javax.swing.text.rtf.RTFEditorKit.read(RTFEditorKit.java:129)
         at javax.swing.text.JTextComponent.read(JTextComponent.java:1326)
         at javax.swing.JEditorPane.read(JEditorPane.java:387)
    Does anyone have similar problems or knows how I could get around this?
    I thought about writing a parser that replaces the \stylesheet section with one that works but that seems a lot of work and it does not always work (I tried that by copying and pasting...).
    Maybe I could replace the RTF converter that Word 2002 is using with another one - but how?

    Hello again,
    I found out that the 2002 version of MS Word writes a lot more of data into the file than e.g. Wordpad does.
    There is one section that causes the problem, its called "\stylesheet".
    My workaround (working in my case) is to wrap the input stream of the RTF document and remove this section (only in memory).
    See example implementation:
    <<<<<<<<<<<<<<<<<<<<<<< SOURCE CODE<<<<<<<<<<<<<
    * Copyright 2004 DaimlerChrysler TSS.
    * All Rights Reserved.
    * Last Change $Author: wiedenmann $
    * At $Date: 2004/03/31 11:08:54CEST $.
    package com.dcx.tss.swing;
    import java.io.*;
    * This class provides a workaround for parse errors in the
    * {@link javax.swing.text.rtf.RTFEditorKit}. These errors are caused
    * by new format specification for RichTextFormat (RTF V1.7).<br>
    * <br>
    * The workaround is to filter out a section of the RFT document
    * which causes an exception during parsing it. This section has no
    * impact on the display of the document, it just contains some
    * meta information used by MS Word 2002.<br>
    * The whole document will be loaded into memory and then the section
    * will be deleted in memory, there is no affect to the document
    * directly (on file system).<br>
    * <br>
    * <i>This workaround is provided without any warranty of completely solving
    * the problem.</i>
    * @version $Revision: 1.1 $
    * @author Wiedenmann
    public class RtfInputStream extends FilterReader {
    /** Search string for start of the section. */
    private static final String SEC_START = "{\\stylesheet";
    /** Search string for end of the section. */
    private static final String SEC_END = "}}";
    /** Locale store for the document data. */
    private final StringBuffer strBuf = new StringBuffer();
    * Wrapper for the input stream used by the RTF parser.<br>
    * Here the complete document will be loaded into a string buffer
    * and the section causes the problems will be deleted.<br>
    * <br>
    * @param in Stream reader for the document (e.g. {@link FileReader}).
    * @throws IOException in case of I/O errors during document loading.
    public RtfInputStream( final Reader in ) throws IOException {
    super( in );
    int numchars;
    final char[] tmpbuf = new char[2048];
    // read the whole document into StringBuffer
    do {
    numchars = in.read( tmpbuf, 0, tmpbuf.length );
    if ( numchars != -1 ) {
    strBuf.append( tmpbuf, 0, numchars );
    } while ( numchars != -1 );
    // finally delete the problem making section
    deleteStylesheet();
    * Deletion of the prblematic section.
    private void deleteStylesheet() {
    // find start of the section
    final int start = strBuf.indexOf( SEC_START );
    if ( start == -1 ) {
    // section not contained, so just return ...
    return;
    // find end of section
    final int end = strBuf.indexOf( SEC_END, start );
    // delete section
    strBuf.delete( start, end + 2 );
    * Read characters into a portion of an array.<br>
    * The data given back will be provided from local StringBuffer
    * which contains the whole document.
    * @param buf Destination buffer.
    * @param off Offset at which to start storing characters -
    * <srong>NOT RECOGNIZED HERE.</strong>.
    * @param len Maximum number of characters to read.
    * @return The number of characters read, or -1 if the end of the
    * stream has been reached
    * @exception IOException If an I/O error occurs
    public int read( final char[] buf, final int off, final int len ) throws IOException {
    if ( strBuf.length() == 0 ) {
    // if buffer is empty end of document is reached
    return -1;
    // fill destination array
    int byteCount = 0;
    for (; byteCount < len; byteCount++) {
    if ( byteCount == strBuf.length() ) {
    // end reached, stop filling
    break;
    // copy data to destination array
    buf[byteCount] = strBuf.charAt( byteCount );
    // delete to copied data from local store
    strBuf.delete( 0, byteCount + 1 );
    return byteCount;
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Integration of the warpper looks like:
    RtfInputStream inDocument = new RtfInputStream( new FileReader("test.rtf"));
    Document doc = rtf.createDefaultDocument();
    rtf.read(inDocument, doc, 0 );
    Hope this helps - for me it did :-)
    Timo Wiedenmann
    DaimlerChrysler TSS, Germany

  • It is possible to Display HTML Formatted Text?

    Hi
    This is what I want to accomplish:
    I created a system and now I want to add a help button on each page. This button will open a popup window which will display the help of the current page. (This is done)
    But now I want to display a formated text (plain or html) just like this example:
    h2. Help
    Page 20:
    Description:
    This page displays a list of users.
    And don't like this other:
    Help Page 20: Description: This page displays a list of users.
    Thanks a lot!

    This is still a problem...I'd like to add a bit to it.
    The HTML Editor correctly places formatting tags around the text and the item is saved to the db (or whatever)...however, when displaying the formatted text on an apex generated page, and it doesn't matter what type of DISPLAY (saved, non-saved, escape, etc..) is being used, Apex places <SPAN class="display_only"> around the text in question which is apparently overriding the html tags, so the text displays in the CSS defaults regardless of the formatting used by the HTML Editor. The reason the formatted text displays correctly in a "report" is because this span doesn't exist.
    I'd like to take the time to add a change request and request that item level classes are not buried within apex and the theme. It would be nice if they were displayed on the item, for example, so they could be easily removed or overrided...this span for example overrides even a TD level custom class because of it's placement, so there seems to be little or no way to override it.

  • Problem displaying the value zero in dashboard

    Hello,
    I have a problem displaying the value zero.
    When I am Treat Numbers As number, the value that appears
    When Treat Numbers As Percentage box is empty.
    Can you tell me how to display this value when the criterion
    is in percentage format.
    thanks for answers
    Best regards

    cast the number as float or multiply by 1.00 e.g. 1.00 * table.column

  • Display xml format  ERROR

    Hello
    if I in Integration Directory  with one Communication Channel in the menu service
    display xml format clicks comes to this error message;
    com.sap.aii.ibdir.sbeans.misc.DirSpecMiscServicesRemote_Stub.wsapi_getApiXmlForXiReference(Lcom/sap/aii/ib/bom/gen/XiReference;Z)Ljava/lang/String;
    Internal problem occurred (INTERNAL_PROBLEM)
    MESSAGE ID: com.sap.aii.utilxi.swing.framework.rb_exceptions.INTERNAL_PROBLEM
    STACKTRACE:
    com.sap.aii.utilxi.swing.framework.FrameworkException: Internal problem occurred
        at com.sap.aii.utilxi.swing.toolkit.ExceptionDialog.init(ExceptionDialog.java:116)
        at com.sap.aii.utilxi.swing.toolkit.ExceptionDialog.(ExceptionDialog.java:93)
        at com.sap.aii.utilxi.swing.toolkit.Guitilities.showExceptionDialog(Guitilities.java:1137)
        at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:162)
        at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at com.sap.plaf.frog.FrogMenuItemUI$MouseInputHandler.mouseReleased(FrogMenuItemUI.java:833)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
    com.sap.aii.ibdir.sbeans.misc.DirSpecMiscServicesRemote_Stub.wsapi_getApiXmlForXiReference(Lcom/sap/aii/ib/bom/gen/XiReference;Z)Ljava/lang/String;
    STACKTRACE:
    java.lang.AbstractMethodError: com.sap.aii.ibdir.sbeans.misc.DirSpecMiscServicesRemote_Stub.wsapi_getApiXmlForXiReference(Lcom/sap/aii/ib/bom/gen/XiReference;Z)Ljava/lang/String;
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)
        at $Proxy10.wsapi_getApiXmlForXiReference(Unknown Source)
        at com.sap.aii.ibdir.clsif.misc.DirSpecMiscServices.wsapi_getApiXmlForXiReference(DirSpecMiscServices.java:177)
        at com.sap.aii.ibdir.gui.convxmlviewer.XMLViewerDialog.initGui(XMLViewerDialog.java:97)
        at com.sap.aii.ibdir.gui.convxmlviewer.XMLViewerCommand.execute(XMLViewerCommand.java:75)
        at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
        at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
        at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at com.sap.plaf.frog.FrogMenuItemUI$MouseInputHandler.mouseReleased(FrogMenuItemUI.java:833)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
    Version INFO
    Runtime Environment
    Java version:
    1.4.2_11
    Version
    Service pack:
    12
    Release:
    645_VAL_REL
    Latest change:
    399837
    Sync time:
    ${sync.time}
    please they help me
    Yours sincerely
    Köse
    Message was edited by:
            Levent Köse

    Hi
    I think the problem is with your Java package
    try again by closing ID and reopening again
    if this doesnt work try to reinstall Java
    or it may occure due to overflow of Java stack.
    Just check
    Ranjit

Maybe you are looking for