Hi!

I traced the error down a bit. My guess it is in the
org.apache.util.ParsedUrl class. 
It seems that it cannot process an url like
jar:file:/Z:/eclipseHome/current/eclipse/workspace/geocafe/target/Geocaf
e-1.0-dev-uber.jar!/WORLDS-INF/lib/batik-svg-dom1.5.jar!/org/apache/bati
k/dom/svg/resources/UserAgentStyleSheet.css
which is the url which I get when I have the batik jars in an other
jarfile

the corresponding error message is java.net.MalformedURLException: no
protocol: //:0file:/Z:/eclipseHome/current/ec
lipse/workspace/geocafe/target/Geocafe-1.0-dev-uber.jar

Any Idea how to fix this?

Ralf

-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 30, 2003 8:41 PM
To: Batik Users
Subject: Re: CssEngine issues

Ralf M�ller wrote:

>I will look more into it and than come back to you.
>But my Document is not from a file it gets constructed in the
>application. From this there should be no difference if I jar
everything
>up. (Or am I mistaken there)
>  
>
    The point is that the NPE you are getting is a symptom not the 
cause, but I
can't begin to guess what the cause is without knowing more.

>Thanks for the help 
>
>Ralf
>
>-----Original Message-----
>From: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
>Sent: Monday, June 30, 2003 2:39 PM
>To: Batik Users
>Subject: Re: CssEngine issues
>
>Ralf M�ller wrote:
>
>  
>
>>Hi!
>>
>> 
>>
>>I have a problem. I am not so sure if it resides in Batic or not...
>>
>>Ok here the description
>>
>>I have an application which constructs an svg and Displayes it using 
>>Batik. This works fine when using my IDE (Eclipse).
>>
>>When I use the maven uberjar plugin to create a distribution (copys 
>>the dependent batik jars together with my application jar in one jar) 
>>my application still generates the same svg file, but the display gets
>>    
>>
>
>  
>
>>the following error.
>>
>> 
>>
>>java.lang.NullPointerException
>>
>>               at 
>>org.apache.batik.css.engine.CSSEngine.parseStyleSheet(Unknown Source)
>>
>>               at 
>>org.apache.batik.dom.svg.SVGDOMImplementation.createCSSEngine(Unknown 
>>Source)
>>
>>               at 
>>org.apache.batik.bridge.BridgeContext.initializeDocument(Unknown
>>    
>>
>Source)
>  
>
>>               at org.apache.batik.bridge.GVTBuilder.build(Unknown
>>    
>>
>Source)
>  
>
>>               at 
>>org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)
>>
>> 
>>
>>My thought is that it might be because I jave the batic jars now 
>>residing in an other jar. Has anybody experienced something similar?
>>
>>    
>>
>    So it appears that the problem is when it is parsing the User Agent

>Style Sheet.
>However I think the problem is really lower down than is indicated and 
>the NPE is
>caused when Batik tries to build the SyntaxError message because your
>document is from a stream and it has no documentURI ( see line 940 in
>CSSEngine.java).  You might try replacing  'documentURI.toString()'
>with:
>
>(documentURI == null)?"<document stream>":documentURI.toString()
>
>    And see if you get a better message (you might also stick a ' 
>e.printStackTrace()'
>in the catch to see the real 'source' of the problem).
>
>  
>
>> 
>>
>>Thanks for your help
>>
>> 
>>
>>Ralf
>>
>>    
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to