Hei again, Uh... I just mixed you up with a second Nils that wrote me yesterday on OJ use. So, you did do something different.
It would be actually wise to post those developing stuff rather to the developer list (there may be also more people that could answer - so I cc) Now my question if I understood right: a) you used openjump 1.3 and it did not work b) you used JUMP 1.2 and it did work? ok.. if so, then the reason is probably(?!) that we did some changes to the rendering framework in OJ 1.2/1.3 to allow it to work with custom renderers. For instance the raster image plugin from Pirol defines such a custom renderer (for example see: org.openjump.core.rasterimage). Not sure, but maybe this page gives some more infos(?): http://www.openjump.org/wiki/show/Notes+On+OpenJUMP%27s+Rendering+System Do you think you will find the time to get it to run with OJ 1.3? Anyway, thank you for informing us that this examples doesn't work in OJ 1.3 (I was believing that). Can you also tell what you are actually trying to do (i.e. use it for web stuff or embedding it in a different software)? thank you, stefan PS: there have been commits on 18 Dec. 2007 that may be related (see our change log file in the svn - or direct link from the openjump wiki frontpage) 2007-12-18 Paul Austin <paul.aus...@revolsys.com * Migrated the Layer and WMSLayer to use the new RendererFactory implementation 2007-12-18 Paul Austin <paul.aus...@revolsys.com * Added a new RendererFactory implementation which accepts the LayerViewPanel as an argument. nilsw wrote: > Hi Stefan, > > I was trying to load and display a shapefile, according to this > example: > > http://groups.google.com/group/openjump-users/msg/9af5e7ac58ef9a71 > > The stack trace is (w/o awt stuff): > > java.lang.IllegalArgumentException: No renderer defined for layerable: > Layer Name > at > com.vividsolutions.jump.workbench.ui.renderer.RenderingManager.createRenderer > (RenderingManager.java:285) > at > com.vividsolutions.jump.workbench.ui.renderer.RenderingManager.render > (RenderingManager.java:193) > at > com.vividsolutions.jump.workbench.ui.renderer.RenderingManager.render > (RenderingManager.java:187) > at com.vividsolutions.jump.workbench.ui.LayerViewPanel.layerChanged > (LayerViewPanel.java:388) > at com.vividsolutions.jump.workbench.model.LayerManager$3.run > (LayerManager.java:433) > > In the meantime, I managed to run this using the 1.2 version from the > vividsolutions website, works perfectly. > > Thanks for looking into this! > > Best > Nils > > On May 29, 6:26 pm, Stefan Steiniger <sst...@geo.uzh.ch> wrote: >> Hei Nils, >> >> can you describe what you exactly did (i.e. the steps, what was you goal?). >> >> and can you also post the full stack trace/error message? >> >> what is in the shape file (datatype?) >> >> stefan >> >> nilsw schrieb: >> >>> Hi all, >>> I'm getting an >>> java.lang.IllegalArgumentException: No renderer defined for layerable: >>> Layer Name >>> when trying to render a shapefile using >>> Layer layer = view.getLayerManager().addLayer("Category Name", "Layer >>> Name", features); >>> This code is taken from an earlier post in this group, so I assume it >>> did work some time ago. I tried both openjump 1.3 and 1.2, with the >>> same result. >>> Your help would be much appreciated! >>> Best, >>> Nils > > ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel