Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-994

Parser hangs in parseStyleSheet function.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: CSS
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      Hi,

      We are using batic-css.jar file associated with css4j sources. When try to apply style sheet of a particular css file, the application becomes hang,

      We tried to apply style of the following css file:
      http://www.blogeee.net/wp-content/themes/blogeee/style.css

      ____________________________________________________

      href = "http://www.blogeee.net/wp-content/themes/blogeee/style.css"
      InputSource source = new InputSource();
      InputStream is;
      try

      { is = ((XHTMLDocument) getDocument()).openStream(href); }

      catch (IOException e)

      { return; }

      source.setByteStream(is);
      try

      { ((XHTMLDocument) getDocument()).addStyleSheet(source); }

      catch (DOMException e) {
      } catch (CSSException e) {
      } catch (IOException e) {
      } catch (Throwable t) {
      } finally {
      try

      { is.close(); }

      catch (IOException e) {}
      }

      public void addStyleSheet(InputSource cssSrc)
      throws DOMException, IOException, CSSException

      { getStyleSheet().parseCSSStyleSheet(cssSrc); }

      public void parseCSSStyleSheet(InputSource source) throws DOMException, IOException, CSSException {
      Parser parser = createSACParser(); //"org.apache.batik.css.parser.Parser"
      parser.setDocumentHandler(createDocumentHandler());
      parser.parseStyleSheet(source); //This function does not return any value.
      }
      ____________________________________________________

      here, the parseStyleSheet function did not return any value or did not throw any error, just simply hangs. Is there any fix or error case handling done in the latest version.. or any fix for the issue.

      Thanks in Advance,

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              ashar51985@yahoo.com rahul
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: