Quickstart instructions - notes

4 messages Options
Embed this post
Permalink
Tom Williamson

Quickstart instructions - notes

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
I tried the new Quickstart instructions and they look great!   Two really simple, newbie-type things (me being the newbie) and a stack trace from an error inside the Quickstart app:
 
I did a cut-and-paste to get the text from the pom.xml file in the PDF doc into my Netbeans pom.xml.   Since the document had the text split across two pages, I accidentally picked up the page footer and date and pasted them into my pom.xml file.
 
I suggest adding something like this to the section about changing the pom.xml file:
"If, after editing the pom.xml file, your project name changes from "Example" to "Badly formed Maven project", this means you have changed the pom.xml to something Maven doesn't understand.   If you were cutting and pasting text, you most likely pasted the text in the wrong place and this threw Maven off.   Carefully examine the pom.xml file and make sure all the tags line up.  Using the Source/Format menu option will auto-format your pom.xml file for you and should help you find the missing, extra or out-of-place tags."
 
I ran the Quickstart.java from the PDF, and it did load and display the .shp file (this is further than I've gotten before!  I'm excited!)   However, when I tried to click the "+" and zoom in on the map I got this error:
 
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at org.geotools.swing.JMapPane.clearBaseImage(JMapPane.java:790)
        at org.geotools.swing.JMapPane.paintComponent(JMapPane.java:658)
        at javax.swing.JComponent.paint(JComponent.java:1029)
        at javax.swing.JComponent.paintChildren(JComponent.java:864)
        at javax.swing.JComponent.paint(JComponent.java:1038)
        at javax.swing.JComponent.paintChildren(JComponent.java:864)
        at javax.swing.JComponent.paint(JComponent.java:1038)
        at javax.swing.JComponent.paintChildren(JComponent.java:864)
        at javax.swing.JComponent.paint(JComponent.java:1038)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
        at javax.swing.JComponent.paintChildren(JComponent.java:864)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5131)
        at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1475)
        at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1406)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1220)
        at javax.swing.JComponent.paint(JComponent.java:1015)
        at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
        at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
        at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
        at java.awt.Container.paint(Container.java:1780)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
        at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:694)
        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
 
 

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Jody Garnett-2

Re: Quickstart instructions - notes

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

On 27/09/2009, at 4:23 AM, Tom Williamson wrote:

I tried the new Quickstart instructions and they look great!   Two really simple, newbie-type things (me being the newbie) and a stack trace from an error inside the Quickstart app:
 
I did a cut-and-paste to get the text from the pom.xml file in the PDF doc into my Netbeans pom.xml.   Since the document had the text split across two pages, I accidentally picked up the page footer and date and pasted them into my pom.xml file.

Thanks - sorted that out :-) 
I suggest adding something like this to the section about changing the pom.xml file:
"If, after editing the pom.xml file, your project name changes from "Example" to "Badly formed Maven project", this means you have changed the pom.xml to something Maven doesn't understand.   If you were cutting and pasting text, you most likely pasted the text in the wrong place and this threw Maven off.   Carefully examine the pom.xml file and make sure all the tags line up.  Using the Source/Format menu option will auto-format your pom.xml file for you and should help you find the missing, extra or out-of-place tags."

Good suggestion - I spent some time stuck there myself (since I am new to netbeans).
 
I ran the Quickstart.java from the PDF, and it did load and display the .shp file (this is further than I've gotten before!  I'm excited!)   However, when I tried to click the "+" and zoom in on the map I got this error:

I was not able to reproduce this problem. One thing I have not been able to get to work is the zoom out button.
 
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at org.geotools.swing.JMapPane.clearBaseImage(JMapPane.java:790)
        at org.geotools.swing.JMapPane.paintComponent(JMapPane.java:658)
        at javax.swing.JComponent.paint(JComponent.java:1029)

Based on your stack trace I have added a couple null checks - which I hope Michael can review next time he updates.

Thanks for your help Tom! I have made a note thanking you on the welcome page. If you are keen for more I will send email to the user list when the next workbook is ready later today.

If anyone else would like to have a go, or if there is a volunteer to try the eclipse quickstart that needs a sanity check;, drop me an email and I can send you a PDF.

Jody

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: Quickstart instructions - notes

Reply Threaded More More options
Print post
Permalink
> I was not able to reproduce this problem. One thing I have not been able to
> get to work is the zoom out button.
>

Click on the map and it zooms out one step, centred where you clicked.
 Is this not working for you ?

> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
>         at org.geotools.swing.JMapPane.clearBaseImage(JMapPane.java:790)
>         at org.geotools.swing.JMapPane.paintComponent(JMapPane.java:658)
>         at javax.swing.JComponent.paint(JComponent.java:1029)
>
> Based on your stack trace I have added a couple null checks - which I hope
> Michael can review next time he updates.

I think Tom might have been unlucky enough to get a work-in-progress
jar when I was working on fixes to the map pane status bar yesterday
with Nenad.  I can't reproduce the problem now either.

Thanks again Tom !

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Jody Garnett-2

Re: Quickstart instructions - notes

Reply Threaded More More options
Print post
Permalink
On 27/09/2009, at 1:23 PM, Michael Bedward wrote:

>> I was not able to reproduce this problem. One thing I have not been  
>> able to
>> get to work is the zoom out button.
>>
> Click on the map and it zooms out one step, centred where you clicked.
> Is this not working for you ?

I was drawing a box with the right button :-)

>
>> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
>>         at org.geotools.swing.JMapPane.clearBaseImage(JMapPane.java:
>> 790)
>>         at org.geotools.swing.JMapPane.paintComponent(JMapPane.java:
>> 658)
>>         at javax.swing.JComponent.paint(JComponent.java:1029)
>>
>> Based on your stack trace I have added a couple null checks - which  
>> I hope
>> Michael can review next time he updates.
>
> I think Tom might have been unlucky enough to get a work-in-progress
> jar when I was working on fixes to the map pane status bar yesterday
> with Nenad.  I can't reproduce the problem now either.

I will email you the changes I made; if you get a chance jump on IRC  
this afternoon.

Jody

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users