Hello Ludji, I've just tried running the Quickstart application with that change, as well as various other combinations, but I still don't see the error that you are getting.
Please post your entire pom.xml file to the list so we can double check for any problems lurking in there. Michael On 28 July 2011 01:37, Ludji ATHENES <[email protected]> wrote: > Hi Jody, > > I've tried the tutorial Quickstart in a new project and it's work fine if i > had this lines instead of JMapFrame.showMap(map) i've got the same > Exception. > here the code i add > > > //JMapFrame.showMap(map); > > JMapFrame mapFrame = new JMapFrame(map); > mapFrame.enableToolBar(true); > mapFrame.enableStatusBar(true); > mapFrame.setVisible(true); > > Regards > Ludji > > -------------------------------------------------- > From: "Jody Garnett" <[email protected]> > Sent: Wednesday, July 27, 2011 4:47 PM > To: "Ludji ATHENES" <[email protected]> > Cc: "Michael Bedward" <[email protected]>; > <[email protected]> > Subject: Re: [Geotools-gt2-users] problem using JMapFrame and ToolBar > >> They are different projects. Can you try the basic QuickStart tutorial as >> a new project in eclipse please. >> >> >> >> On 27/07/2011, at 11:35 PM, "Ludji ATHENES" <[email protected]> >> wrote: >> >>> >>> Hi Michael, >>> With CRSLab tutorial there's the same problem. >>> >>> My OS is Windows XP pro >>> Java version : JDK_1.6.024 >>> IDE : Eclipse version Indigo >>> >>> There's something that remind me : before downloading Geotools for >>> testing, >>> I have tested Geotoolkit library perhaps there are some files that are in >>> conflict with Geotools. Both library use the same tools "opengis". >>> Perhaps >>> that will help you. I think i have drop any files from geotoolkit but i'm >>> sure for that. Can you tell me if you have already hear something about >>> incompatibility beetween geotools and geotoolkit. >>> >>> Regards >>> Ludji >>> >>> >>> -------------------------------------------------- >>> From: "Michael Bedward" <[email protected]> >>> Sent: Wednesday, July 27, 2011 3:11 PM >>> To: "Ludji ATHENES" <[email protected]> >>> Cc: <[email protected]> >>> Subject: Re: [Geotools-gt2-users] problem using JMapFrame and ToolBar >>> >>>> Hi Ludji, >>>> >>>> Thanks for checking. >>>> >>>> Looking at the error trace, it seems that the map pane is trying to >>>> process a mouse event, via the MapToolManager class which looks after >>>> cursor tools, but can't convert the mouse window position to world >>>> position because no AffineTransform has been set in the MapViewport >>>> class. I'm afraid I'm at a loss to understand what's going on here. >>>> The GeoTools example apps all follow much the same use of JMapFrame / >>>> JMapPane and MapContent classes. Also I would have expected such a >>>> problem to affect everyone, but no one else has reported this error >>>> (yet) and I still can't reproduce it here. >>>> >>>> I guess it could be a platform-specific problem. Could you let me know >>>> what OS and Java version you are working with please. >>>> >>>> Also, if you haven't already, please try the CRSLab example and see if >>>> that displays the same problem. This is one of the example which >>>> hasn't changed recently. >>>> >>>> Michael >>>> >>>> >>>> On 27 July 2011 22:02, Ludji ATHENES <[email protected]> wrote: >>>>> >>>>> here's a part of my pom.xml file. >>>>> <properties> >>>>> >>>>> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> >>>>> <geotools.version>8-SNAPSHOT</geotools.version> >>>>> </properties> >>>>> as you can see i use the snapshot version ! >>>>> In debug mode there's no exception. >>>>> In normal mode everything work fine except this exception when the App >>>>> start. >>>>> >>>>> Regards >>>>> Ludji >>>>> >>>>> -------------------------------------------------- >>>>> From: "Michael Bedward" <[email protected]> >>>>> Sent: Wednesday, July 27, 2011 1:33 PM >>>>> To: "Ludji ATHENES" <[email protected]> >>>>> Cc: <[email protected]> >>>>> Subject: Re: [Geotools-gt2-users] problem using JMapFrame and ToolBar >>>>> >>>>>> Hi Ludji, >>>>>> >>>>>> I just tried SelectionLab and it works fine for me. I wonder what is >>>>>> going >>>>>> on ? >>>>>> >>>>>> Can I just ask you to check your pom.xml file and make sure that you >>>>>> are using version 8.0-SNAPSHOT (and not version 8.0-M1) for all >>>>>> GeoTools dependencies, and that you have the snapshot repository >>>>>> defined as described here: >>>>>> >>>>>> >>>>>> >>>>>> http://docs.geotools.org/latest/userguide/faq.html#q-what-is-a-snapshot-version-and-how-do-i-use-it >>>>>> >>>>>> Michael >>>>>> >>>>>> >>>>>> On 27 July 2011 18:33, Ludji ATHENES <[email protected]> >>>>>> wrote: >>>>>>> >>>>>>> Hello Michael thanks for answer me. >>>>>>> >>>>>>> I'm running and application that hold the Toolbar on JMapFrame like >>>>>>> SelectionLab.java and the problem happens with any shapefile. My own >>>>>>> shapefile and all shapeFile I've dowloaded from your site for the >>>>>>> tutorial >>>>>>> for example countries.shp references on ImageLab tutorial for Udig >>>>>>> sample >>>>>>> dataset. >>>>>>> >>>>>>> I think it's happens when i use this lines in my code : >>>>>>> >>>>>>> map.addLayer(layer); >>>>>>> mapFrame = new JMapFrame(map); >>>>>>> mapFrame.enableToolBar(true); <----- the line that produce the >>>>>>> problem >>>>>>> (in >>>>>>> my opinion) >>>>>>> mapFrame.enableStatusBar(true); >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>> Ludji >>>>>>> >>>>>> >>>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Got Input? Slashdot Needs You. >>> Take our quick survey online. Come on, we don't ask for help often. >>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >>> http://p.sf.net/sfu/slashdot-survey >>> _______________________________________________ >>> Geotools-gt2-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
