https://issues.apache.org/bugzilla/show_bug.cgi?id=51428

             Bug #: 51428
           Summary: Parser hangs in parseStyleSheet function.
           Product: Batik
           Version: 1.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: CSS
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


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,

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to