W3C home > Mailing lists > Public > www-validator-css@w3.org > November 2008

Where can we get stabel version???

From: TAKAHASHI Makoto <hobbit_mak@yahoo.co.jp>
Date: Wed, 19 Nov 2008 00:13:33 +0900 (JST)
Message-ID: <20081118151334.8732.qmail@web3303.mail.ogk.yahoo.co.jp>
To: css-validator <www-validator-css@w3.org>

I found bug of org.w3c.css.css.StyleSheetGenerator.java
And fix as below

    static {
	URL url;
	availableFormat = new Utf8Properties();
	try {
-	    url =
Messages.adjustURL(StyleSheetGenerator.class.getResource("format.properties"));
-	    java.io.InputStream f = url.openStream();
+	    java.io.InputStream f =
StyleSheetGenerator.class.getResourceAsStream("format.properties");
	    availableFormat.load(f);
	    f.close();
	} catch (Exception e) {
	   
System.err.println("org.w3c.css.css.StyleSheetGeneratorHTML:
couldn't load format properties ");
	    System.err.println("  " + e.toString());
	}

	availablePropertiesURL = new Utf8Properties();
	try {
-	    url =
Messages.adjustURL(StyleSheetGenerator.class.getResource("urls.properties"));
-	    java.io.InputStream f = url.openStream();
+	    java.io.InputStream f =
StyleSheetGenerator.class.getResourceAsStream("urls.properties");
	    availablePropertiesURL.load(f);
	    f.close();
	} catch (Exception e) {
	   
System.err.println("org.w3c.css.css.StyleSheetGeneratorHTML:
couldn't load URLs properties ");
	    System.err.println("  " + e.toString());
	}
    }

And I found degrade of org.w3c.css.util.xml.XMLCatalog.
I rollback latest change.

		try {
-			parse("\"" + baseURI.toString() + "\"");
+			baseURI = XMLCatalog.class.getResource("catalog.xml");
			parse(baseURI.toString());
		} catch (Exception e) {


Then I reached another error messages.

C:\Jigsaw\Jigsaw\WWW\servlet\css-validator>set
CLASSPATH=C:\jigsaw\jigsaw\www\servlet\css-validator\css-validator.jar;c:\jigsaw\classes\velocity-1.5.jar;c:\jigsaw\\classes\xerces.jar;c:\jigsaw\classes\jigsaw.jar;c:\jigsaw\classes\xp.jar;c:\jigsaw\classes\sax.jar;c:\jigsaw\classes\servlet.jar;c:\jigsaw\classes\Tidy.jar;
c:\jigsaw\classes\tagsoup-1.2.jar;C:\Jigsaw\classes\commons-lang-2.4.jar;C:\Jigsaw\classes\commons-collections-3.2.1.jar

C:\Jigsaw\Jigsaw\WWW\servlet\css-validator>Java
org.w3c.css.css.StyleSheetCom http://www.w3.org/
2008/11/18 23:45:04
org.apache.velocity.runtime.log.JdkLogChute log
情報: Velocity not initialized yet. Calling init()...
2008/11/18 23:45:04
org.apache.velocity.runtime.log.JdkLogChute log
情報: FileResourceLoader : adding path '.'
2008/11/18 23:45:04
org.apache.velocity.runtime.log.JdkLogChute log
致命的: ResourceManager : unable to find resource
'text.properties' in any resource loader.
Unable to find resource 'text.properties'
org.apache.velocity.exception.ResourceNotFoundException:
Unable to find resource 'text.properties'
        at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452)
        at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335)
        at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
        at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077)
        at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:303)
        at
org.apache.velocity.app.Velocity.getTemplate(Velocity.java:503)
        at
org.w3c.css.css.StyleSheetGenerator.<init>(StyleSheetGenerator.java:159)
        at
org.w3c.css.css.StyleSheetCom.htmlRequest(StyleSheetCom.java:63)
        at
org.w3c.css.css.StyleSheetCom.main(StyleSheetCom.java:236)
java.lang.NullPointerException
        at
org.w3c.css.css.StyleSheetGenerator.print(StyleSheetGenerator.java:417)
        at
org.w3c.css.css.StyleSheetCom.htmlRequest(StyleSheetCom.java:68)
        at
org.w3c.css.css.StyleSheetCom.main(StyleSheetCom.java:236)
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
                     
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='en' xml:lang='en'
xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
    <title>CSS Validator : Error</title>
    <link type="text/css" rel='stylesheet'
href='http://jigsaw.w3.org/css-validator/style/error.css'
/>
  </head>

  <body>
    <div>
      <a href="http://www.w3.org/"><img
src="http://www.w3.org/Icons/w3c_home" alt="w3c" /></a>
    </div>
    <hr />
    <div class="t1">CSS</div>
    <div class="t2">Validator</div>
    <div class="t3">Error</div>

<h2>Target: http://www.w3.org/</h2>
<div class="error">
<p>Oups! Internal error!</p><p>
</p></div>
<hr />
<p><img src='images/mwcss.gif' alt='made with CSS' /></p>
<address><a
href='Email.html'>www-validator-css</a></address>
</body></html>


Makoto Takahashi
                                 http://hobbit.ddo.jp

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
Received on Tuesday, 18 November 2008 15:14:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:21 GMT