Bug#152180: Split libbatik-java and make command line tools available

Petter Reinholdtsen pere at hungry.com
Sat May 20 09:44:38 UTC 2006


I did some more testing, and discovered that the svgbrowser program
need the xercesImpl jar as well.  But it still does not run properly
with the new Classpath library.  I tested using jamvm and the CVS
version of classpath.

I also tried with SUN Java, and it fail to run with that one too.  I
get this error in the terminal, as well as a error popup described
below.

% /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/bin/java \
  -cp /usr/share/java/xercesImpl.jar:/usr/share/java/batik-all.jar \
  org/apache/batik/apps/svgbrowser/Main
java.security.AccessControlException: access denied (java.net.NetPermission setDefaultAuthenticator)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at java.security.AccessController.checkPermission(AccessController.java:427)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.net.Authenticator.setDefault(Authenticator.java:110)
        at org.apache.batik.apps.svgbrowser.Main.<init>(Unknown Source)
        at org.apache.batik.apps.svgbrowser.Main.main(Unknown Source)
[had to use ^C to get out]
%
The  popup look like this

  SVG Error:
  null
         [Show Details]  [OK]

when I press 'Show Details', I get this stack trace:

java.lang.NullPointerException
	at java.util.Properties$LineReader.readLine(Properties.java:365)
	at java.util.Properties.load(Properties.java:293)
	at org.apache.batik.dom.svg.SAXSVGDocumentFactory.resolveEntity(Unknown Source)
	at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
	at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
	at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
	at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(Unknown Source)
	at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
	at org.apache.batik.swing.svg.SVGDocumentLoader.run(Unknown Source)

Based on this, I am not sure if the applications are supposed to work,
and neither if it is useful to provide wrappers for them in /usr/bin/.

Friendly,
-- 
Petter Reinholdtsen




More information about the pkg-java-maintainers mailing list