You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Tom McCallum <te...@googlemail.com> on 2008/01/23 15:53:55 UTC

Compiling with sources

Quick problem,  this is what I did to compile the sources in the jar file  
so that I can debug an exception I am getting from within Batik with  
Netbeans 6 Java debug mode:

./build.sh clean
Edit build.xml and turn debug=on, optimise=on, deprecated=on
./build.sh all-jars

Builds but still no source information.  I am using Netbeans 6 as my IDE.   
I have also tried:

./build.sh clean
Edit build.xml and turn debug=on, optimise=off, deprecated=off
./build.sh all-jars

./build.sh clean
Edit build.xml and turn debug=on, optimise=off, deprecated=on
./build.sh all-jars

./build.sh clean
Edit build.xml and turn debug=on, optimise=on, deprecated=on
./build.sh compile
./build.sh jars

With  Batik 1.6 just turning debug=on used to work but cannot seem to find  
out why it is not doing it here.

Any help would be appreciated,

Thanks

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


RE: Compiling with sources

Posted by "Bishop, Michael W. CONTR J9C880" <Mi...@je.jfcom.mil>.
Glad you got it solved!

Michael 

> -----Original Message-----
> From: Tom McCallum [mailto:tom.mccallum@gulfstream-software.com] 
> Sent: Wednesday, January 23, 2008 10:51 AM
> To: batik-users@xmlgraphics.apache.org
> Subject: Re: Compiling with sources
> 
> Doh! Did not put sources in the correct tab!
> 
> Thanks for your help Michael.
> 
> Tom
> 
> On Wed, 23 Jan 2008 15:37:11 -0000, Bishop, Michael W. CONTR 
> J9C880 <Mi...@je.jfcom.mil> wrote:
> 
> > Under NetBeans 6, I make Batik a library in the Library Manager and 
> > mount JAR files, source trees, and JavaDocs.
> >
> > Michael Bishop
> >
> >> -----Original Message-----
> >> From: Tom McCallum [mailto:termcc@googlemail.com]
> >> Sent: Wednesday, January 23, 2008 9:54 AM
> >> To: batik-users@xmlgraphics.apache.org
> >> Subject: Compiling with sources
> >>
> >> Quick problem,  this is what I did to compile the sources 
> in the jar 
> >> file so that I can debug an exception I am getting from 
> within Batik 
> >> with Netbeans 6 Java debug mode:
> >>
> >> ./build.sh clean
> >> Edit build.xml and turn debug=on, optimise=on, deprecated=on 
> >> ./build.sh all-jars
> >>
> >> Builds but still no source information.  I am using Netbeans
> >> 6 as my IDE.
> >> I have also tried:
> >>
> >> ./build.sh clean
> >> Edit build.xml and turn debug=on, optimise=off, deprecated=off 
> >> ./build.sh all-jars
> >>
> >> ./build.sh clean
> >> Edit build.xml and turn debug=on, optimise=off, deprecated=on 
> >> ./build.sh all-jars
> >>
> >> ./build.sh clean
> >> Edit build.xml and turn debug=on, optimise=on, deprecated=on 
> >> ./build.sh compile ./build.sh jars
> >>
> >> With  Batik 1.6 just turning debug=on used to work but 
> cannot seem to 
> >> find out why it is not doing it here.
> >>
> >> Any help would be appreciated,
> >>
> >> Thanks
> >>
> >> Tom
> >>
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: 
> >> batik-users-unsubscribe@xmlgraphics.apache.org
> >> For additional commands, e-mail:
> >> batik-users-help@xmlgraphics.apache.org
> >>
> >>
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 
> batik-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: 
> > batik-users-help@xmlgraphics.apache.org
> >
> 
> 
> 
> --
> Thomas McCallum
> 
> Director
> Gulfstream Software,
> Hopeman,
> Moray
> 
> Email: tom.mccallum@gulfstream-software.com
> 
> Disclaimer
> 
> Gulfstream Software Ltd is a limited company incorporated in 
> Scotland. The contents of this e-mail are privileged and/or 
> confidential. If you are not the intended recipient, please 
> notify the sender and ensure this e-mail is deleted and not 
> read, copied or disclosed. It is your responsibility to scan 
> this e-mail and any attachments for computer viruses or other 
> defects. Gulfstream Software Ltd does not accept liability 
> for any loss or damage which may result from this e-mail or 
> any attachment.
> 
> E-mail is not secure and can be intercepted, corrupted or amended.  
> Gulfstream Software Ltd does not accept liability for errors 
> or omissions arising as a result of interrupted or defective 
> transmission. Any views, opinions, conclusions or other 
> information in this e-mail which do not relate to the 
> business of Gulfstream Software Ltd are not authorised by 
> Gulfstream Software Ltd.
> 
> Unless specifically stated and authorised by Gulfstream 
> Software Ltd, nothing in this e-mail shall be taken to be an 
> offer or acceptance of any contract of any nature. Under the 
> Regulation of Investigatory Powers Act 2000 Gulfstream 
> Software Ltd's e-mail and internet systems is subject to 
> random monitoring and recording by or on behalf of  
> Gulfstream Software Ltd.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: 
> batik-users-help@xmlgraphics.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Compiling with sources

Posted by Tom McCallum <to...@gulfstream-software.com>.
Doh! Did not put sources in the correct tab!

Thanks for your help Michael.

Tom

On Wed, 23 Jan 2008 15:37:11 -0000, Bishop, Michael W. CONTR J9C880  
<Mi...@je.jfcom.mil> wrote:

> Under NetBeans 6, I make Batik a library in the Library Manager and
> mount JAR files, source trees, and JavaDocs.
>
> Michael Bishop
>
>> -----Original Message-----
>> From: Tom McCallum [mailto:termcc@googlemail.com]
>> Sent: Wednesday, January 23, 2008 9:54 AM
>> To: batik-users@xmlgraphics.apache.org
>> Subject: Compiling with sources
>>
>> Quick problem,  this is what I did to compile the sources in
>> the jar file so that I can debug an exception I am getting
>> from within Batik with Netbeans 6 Java debug mode:
>>
>> ./build.sh clean
>> Edit build.xml and turn debug=on, optimise=on, deprecated=on
>> ./build.sh all-jars
>>
>> Builds but still no source information.  I am using Netbeans
>> 6 as my IDE.
>> I have also tried:
>>
>> ./build.sh clean
>> Edit build.xml and turn debug=on, optimise=off,
>> deprecated=off ./build.sh all-jars
>>
>> ./build.sh clean
>> Edit build.xml and turn debug=on, optimise=off, deprecated=on
>> ./build.sh all-jars
>>
>> ./build.sh clean
>> Edit build.xml and turn debug=on, optimise=on, deprecated=on
>> ./build.sh compile ./build.sh jars
>>
>> With  Batik 1.6 just turning debug=on used to work but cannot
>> seem to find out why it is not doing it here.
>>
>> Any help would be appreciated,
>>
>> Thanks
>>
>> Tom
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail:
>> batik-users-help@xmlgraphics.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>



-- 
Thomas McCallum

Director
Gulfstream Software,
Hopeman,
Moray

Email: tom.mccallum@gulfstream-software.com

Disclaimer

Gulfstream Software Ltd is a limited company incorporated in Scotland. The  
contents of this e-mail are privileged and/or confidential. If you are not  
the intended recipient, please notify the sender and ensure this e-mail is  
deleted and not read, copied or disclosed. It is your responsibility to  
scan this e-mail and any attachments for computer viruses or other  
defects. Gulfstream Software Ltd does not accept liability for any loss or  
damage which may result from this e-mail or any attachment.

E-mail is not secure and can be intercepted, corrupted or amended.  
Gulfstream Software Ltd does not accept liability for errors or omissions  
arising as a result of interrupted or defective transmission. Any views,  
opinions, conclusions or other information in this e-mail which do not  
relate to the business of Gulfstream Software Ltd are not authorised by  
Gulfstream Software Ltd.

Unless specifically stated and authorised by Gulfstream Software Ltd,  
nothing in this e-mail shall be taken to be an offer or acceptance of any  
contract of any nature. Under the Regulation of Investigatory Powers Act  
2000 Gulfstream Software Ltd's e-mail and internet systems is subject to  
random monitoring and recording by or on behalf of  Gulfstream Software  
Ltd.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Compiling with sources

Posted by Tom McCallum <to...@gulfstream-software.com>.
Thanks for your reply,  as you wrote I created a library in the Library  
Manager with batik-all.jar, sources, sources-1.3, sources-1.4 and  
documentation-sources.

To build the jars I did

./build.sh clean
./build.sh all-jars

When the exception occurs I still cannot set a break point in the relevant  
file for this exception:

java.lang.NullPointerException
         at  
org.apache.batik.bridge.svg12.DefaultXBLManager.stopProcessing(DefaultXBLManager.java:255)
         at  
org.apache.batik.dom.AbstractDocument.setXBLManager(AbstractDocument.java:1722)
         at  
org.apache.batik.bridge.UpdateManager.initializeScriptingEnvironment(UpdateManager.java:208)
         at  
org.apache.batik.bridge.UpdateManager.<init>(UpdateManager.java:167)
         at  
org.apache.batik.swing.svg.AbstractJSVGComponent.startSVGLoadEventDispatcher(AbstractJSVGComponent.java:878)
         at  
org.apache.batik.swing.svg.AbstractJSVGComponent$SVGListener.gvtBuildCompleted(AbstractJSVGComponent.java:1537)
         at  
org.apache.batik.swing.svg.GVTTreeBuilder$2.dispatch(GVTTreeBuilder.java:163)
         at  
org.apache.batik.util.EventDispatcher.dispatchEvent(EventDispatcher.java:103)
         at  
org.apache.batik.util.EventDispatcher.fireEvent(EventDispatcher.java:87)
         at  
org.apache.batik.util.EventDispatcher$1.run(EventDispatcher.java:46)
         at  
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)  <-- ***  
can see sources up to this point ****
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at  
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at  
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at  
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at  
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at  
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Anything I have missed out?

Tom


On Wed, 23 Jan 2008 15:37:11 -0000, Bishop, Michael W. CONTR J9C880  
<Mi...@je.jfcom.mil> wrote:

> Under NetBeans 6, I make Batik a library in the Library Manager and
> mount JAR files, source trees, and JavaDocs.
>
> Michael Bishop
>
>> -----Original Message-----
>> From: Tom McCallum [mailto:termcc@googlemail.com]
>> Sent: Wednesday, January 23, 2008 9:54 AM
>> To: batik-users@xmlgraphics.apache.org
>> Subject: Compiling with sources
>>
>> Quick problem,  this is what I did to compile the sources in
>> the jar file so that I can debug an exception I am getting
>> from within Batik with Netbeans 6 Java debug mode:
>>
>> ./build.sh clean
>> Edit build.xml and turn debug=on, optimise=on, deprecated=on
>> ./build.sh all-jars
>>
>> Builds but still no source information.  I am using Netbeans
>> 6 as my IDE.
>> I have also tried:
>>
>> ./build.sh clean
>> Edit build.xml and turn debug=on, optimise=off,
>> deprecated=off ./build.sh all-jars
>>
>> ./build.sh clean
>> Edit build.xml and turn debug=on, optimise=off, deprecated=on
>> ./build.sh all-jars
>>
>> ./build.sh clean
>> Edit build.xml and turn debug=on, optimise=on, deprecated=on
>> ./build.sh compile ./build.sh jars
>>
>> With  Batik 1.6 just turning debug=on used to work but cannot
>> seem to find out why it is not doing it here.
>>
>> Any help would be appreciated,
>>
>> Thanks
>>
>> Tom
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail:
>> batik-users-help@xmlgraphics.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>



-- 
Thomas McCallum

Director
Gulfstream Software,
Hopeman,
Moray

Email: tom.mccallum@gulfstream-software.com

Disclaimer

Gulfstream Software Ltd is a limited company incorporated in Scotland. The  
contents of this e-mail are privileged and/or confidential. If you are not  
the intended recipient, please notify the sender and ensure this e-mail is  
deleted and not read, copied or disclosed. It is your responsibility to  
scan this e-mail and any attachments for computer viruses or other  
defects. Gulfstream Software Ltd does not accept liability for any loss or  
damage which may result from this e-mail or any attachment.

E-mail is not secure and can be intercepted, corrupted or amended.  
Gulfstream Software Ltd does not accept liability for errors or omissions  
arising as a result of interrupted or defective transmission. Any views,  
opinions, conclusions or other information in this e-mail which do not  
relate to the business of Gulfstream Software Ltd are not authorised by  
Gulfstream Software Ltd.

Unless specifically stated and authorised by Gulfstream Software Ltd,  
nothing in this e-mail shall be taken to be an offer or acceptance of any  
contract of any nature. Under the Regulation of Investigatory Powers Act  
2000 Gulfstream Software Ltd's e-mail and internet systems is subject to  
random monitoring and recording by or on behalf of  Gulfstream Software  
Ltd.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


RE: Compiling with sources

Posted by "Bishop, Michael W. CONTR J9C880" <Mi...@je.jfcom.mil>.
Under NetBeans 6, I make Batik a library in the Library Manager and
mount JAR files, source trees, and JavaDocs.

Michael Bishop

> -----Original Message-----
> From: Tom McCallum [mailto:termcc@googlemail.com] 
> Sent: Wednesday, January 23, 2008 9:54 AM
> To: batik-users@xmlgraphics.apache.org
> Subject: Compiling with sources
> 
> Quick problem,  this is what I did to compile the sources in 
> the jar file so that I can debug an exception I am getting 
> from within Batik with Netbeans 6 Java debug mode:
> 
> ./build.sh clean
> Edit build.xml and turn debug=on, optimise=on, deprecated=on 
> ./build.sh all-jars
> 
> Builds but still no source information.  I am using Netbeans 
> 6 as my IDE.   
> I have also tried:
> 
> ./build.sh clean
> Edit build.xml and turn debug=on, optimise=off, 
> deprecated=off ./build.sh all-jars
> 
> ./build.sh clean
> Edit build.xml and turn debug=on, optimise=off, deprecated=on 
> ./build.sh all-jars
> 
> ./build.sh clean
> Edit build.xml and turn debug=on, optimise=on, deprecated=on 
> ./build.sh compile ./build.sh jars
> 
> With  Batik 1.6 just turning debug=on used to work but cannot 
> seem to find out why it is not doing it here.
> 
> Any help would be appreciated,
> 
> Thanks
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: 
> batik-users-help@xmlgraphics.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org