From: Jody G. <jod...@gm...> - 2009-09-27 03:10:12
|
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 |