as the sextante binding source is in svn, let me have a try at that initialization. i think, i can simplify that somewhat and make sure it runs wherever it is placed. might take until the weekend though.
..ede On 06.12.2016 15:40, Giuseppe Aruta wrote: > Hi Ede, > can you check the new version? (OJ 5248) > a) added Logger.debug instead of System.out.println > b) checked all Stefan's path and rewrite according to his sintax > c) test on my local OJ setup to see if everything (old and new*) was working: > access to algorithms, access to plugins, access to help framework*, access to > advanced GUI for some algorithms* > It seems that everything is fine form my side. > > In order to trace back any possible mistakes, I also reused Stefan original > copy of file limiting to minimal substitutions. I added to this mail a copy > of the code (as PDF) of SextanteToolboxPlugin.class file with all the > (minimal) modifications: you can see the original Stefan's text in red - mine > in blue. > > I have some questions about: > a) if I move in my local copy of OJ all Sextante framework from lib/ext to > lib/plus, Sextante is not inizialized as startup files are pointing only to > lib/ext folder as plugin folder. Is it correct? > b) This is different on your OJ from Eclipse. As we need to keep separate > bindings (Base and Plus) when building OJ (excuse me again for my not "usual > " programming language) > c) If we don't find a solution for this problem, can we redefine the startup > files in order to have lib/ext AND lib/plus folders as plugin folders? > > thanks again > Let me know. I cannot work on this bug until tomorrow afternoon > > Peppe > > 2016-12-05 20:52 GMT+01:00 <edgar.sol...@web.de <mailto:edgar.sol...@web.de>>: > > Peppe also sextante does not seem to work, i suggest you simply detect if > the path's exist and set them properly. > > errors are : > > 1. for the help > > java.lang.NullPointerException > at > es.unex.sextante.gui.help.SextanteHelpWindow.fillTree(SextanteHelpWindow.java:274) > at > es.unex.sextante.gui.help.SextanteHelpWindow.initGUI(SextanteHelpWindow.java:135) > at > es.unex.sextante.gui.help.SextanteHelpWindow.<init>(SextanteHelpWindow.java:65) > at > es.unex.sextante.openjump.extensions.SextanteHelpPlugIn.execute(SextanteHelpPlugIn.java:42) > at > com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:339) > > 2. for the command line > > [INFO] 20:40:41.194 Executing Command line > Exception in thread "AWT-EventQueue-0" > java.lang.IllegalArgumentException: Logger: either message or throwable must > be given. > at com.vividsolutions.jump.workbench.Logger.log(Logger.java:136) > at com.vividsolutions.jump.workbench.Logger.warn(Logger.java:86) > at > com.vividsolutions.jump.workbench.ui.WorkbenchFrame.handleThrowable(WorkbenchFrame.java:1242) > at > com.vividsolutions.jump.workbench.ui.WorkbenchFrame.handleThrowable(WorkbenchFrame.java:1234) > at > com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:366) > at > javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) > at > javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) > at > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) > at > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) > at javax.swing.AbstractButton.doClick(AbstractButton.java:376) > at > javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833) > at > javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) > at java.awt.Component.processMouseEvent(Component.java:6535) > > simply replace every sysout/log statement with Logger.(that/should show > whats wrong at 2.) > > ..ede > > On 05.12.2016 20 <tel:05.12.2016%2020>:14, edgar.sol...@web.de > <mailto:edgar.sol...@web.de> wrote: > > Peppe, > > > > tried the latest, this is what shows when verbosity is '-v info' > > > > starting Sextante initialization >> > > Sextante not initialized! > > Check for problems with Sextante initialization, path for libs and > resources: E:\proj_oj-core_svn-4.4\lib\ext\sextante > > Check if image 'terminal.png' exist > > Check also for Sextante help classes path: > E:\proj_oj-core_svn-4.4\lib\ext\sextante/help > > => Will do 2nd try with OJ-IDE-Dev settings: > > => looking for algorithms and image in: > E:\proj_oj-core_svn-4.4\lib\ext\sextante > > No success with Sextante initialization - printing error log: > > java.lang.NullPointerException > > at > es.unex.sextante.core.AlgorithmsAndResources.addAlgorithmsAndPropertiesFromFolder(AlgorithmsAndResources.java:143) > > at es.unex.sextante.core.Sextante.initialize(Sextante.java:67) > > at > es.unex.sextante.openjump.extensions.SextanteToolboxPlugin.initialize(SextanteToolboxPlugin.java:106) > > at > es.unex.sextante.openjump.extensions.SextanteExtension.configure(SextanteExtension.java:49) > > at > com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:212) > > at > com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:192) > > at > com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:468) > > at > com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:397) > > [INFO] 20:10:35.536 Loading Config Sextante 1.0 OpenJUMP binding > 2016-11-28 took 0.34s > > > > can you use Logger.debug() so that the stack is only shown when '-v > debug' is on? > > > > thanks.. ede > > > > On 05.12.2016 15:45, Giuseppe Aruta wrote: > >> Hi Ede, > >> can you try on 5245 and let me know? > >> Thanks > >> Peppe > >> > >> 2016-12-05 15:26 GMT+01:00 Giuseppe Aruta <giuseppe.ar...@gmail.com > <mailto:giuseppe.ar...@gmail.com> <mailto:giuseppe.ar...@gmail.com > <mailto:giuseppe.ar...@gmail.com>>>: > >> > >> Ede, > >> OK, I uderstood > >> we need all the info back. It seems correct to control all the > loading process on ide > >> I will try to reenable it > >> > >> Peppe > >> > >> > >> > >> 2016-12-05 12:01 GMT+01:00 <edgar.sol...@web.de > <mailto:edgar.sol...@web.de> <mailto:edgar.sol...@web.de > <mailto:edgar.sol...@web.de>>>: > >> > >> Peppe, > >> > >> there was already a workaround to run sextante binding in > eclipse, that you seem to have deactivated. Stefan added it in the past, it's > output was > >> > >> starting Sextante initialization >> > >> Sextante jar folder: E:\proj_oj-core_svn-4.4/lib/ext/sextante > >> Sextante not initialized! > >> Check for problems with Sextante initialization, path for libs > and resources: E:\proj_oj-core_svn-4.4/lib/ext/sextante > >> Check if image 'terminal.png' exist > >> Sextante help path folder: > E:\proj_oj-core_svn-4.4/lib/ext/sextante_help > >> Check also for Sextante help classes path: > E:\proj_oj-core_svn-4.4/lib/ext/sextante_help > >> => Will do 2nd try with OJ-IDE-Dev settings: > >> => looking for algorithms and image in: > E:\proj_oj-core_svn-4.4/lib/plus/sextante > >> Success initializing Sextante at 2nd trial! > >> > >> check if you can find that routine an reenable that and you > should be fine.. ede > >> > >> On 05.12.2016 11 <tel:05.12.2016%2011>:07, Giuseppe Aruta > wrote: > >> > Hi Ede > >> > > >> > (SextanteToolboxPlugin.java:68) the NPE is on the line > vconnected to the > >> > method Sextante.initialize(String folder) and it is > responsable to > >> > inizialize Sextante. It has to point to the folder where > Sextante files are > >> > located, in this case* lib/ext/*<Sextante> for a fresh OJ > instalation. > >> > > >> > The NPE, I think, comes when you start OJ from SVN (I am not > familiar with > >> > running from Eclipse, sorry for my... uncertain syntax). > >> > in SVN tree all the <extra> plugins, included Sextante > files folder, are > >> > located into *lib/plus* folder. > >> > > >> > The solution I propone is to rewrite the method that checks > for sextante > >> > folder (on SextanteToolboxPlugin.class) > >> > from: > >> > > >> > private String getJarsFolder() { > >> > String sPath = > >> > System.getProperty("user.dir").concat(File.separator) > >> > > .concat("lib").concat(File.separator).concat("ext") > >> > > .concat(File.separator).concat("sextante"); > >> > > >> > LOGGER.info("Sextante jar folder: " + sPath); > >> > return sPath; > >> > > >> > } > >> > > >> > to: > >> > private String getJarsFolder() { > >> > String sPath; > >> > try { > >> > sPath = > System.getProperty("user.dir").concat(File.separator) > >> > > .concat("lib").concat(File.separator).concat("ext") > >> > > .concat(File.separator).concat("sextante"); > >> > } catch (Exception e) { > >> > sPath = > System.getProperty("user.dir").concat(File.separator) > >> > > .concat("lib").concat(File.separator).concat("plus") > >> > > .concat(File.separator).concat("sextante"); > >> > } > >> > LOGGER.info("Sextante jar folder: " + sPath); > >> > return sPath; > >> > } > >> > > >> > and you can check if there is still a NPE exception. I only > wonder if this > >> > will break some functions on Sextante (right now help and > Raster calculator > >> > seem not to be affected) > >> > > >> > What do you think? > >> > Peppe > >> > > >> > 2016-12-04 21:39 GMT+01:00 Giuseppe Aruta > <giuseppe.ar...@gmail.com <mailto:giuseppe.ar...@gmail.com> > <mailto:giuseppe.ar...@gmail.com <mailto:giuseppe.ar...@gmail.com>>>: > >> > > >> >> Hi Ede > >> >> I will give a look tomorrow > >> >> Peppe > >> >> > >> >> Il 04/Dic/2016 19:48, <edgar.sol...@web.de > <mailto:edgar.sol...@web.de> <mailto:edgar.sol...@web.de > <mailto:edgar.sol...@web.de>>> ha scritto: > >> >> > >> >>> hey Peppe, > >> >>> > >> >>> running OJ from eclipse gives me a NPE during startup now > >> >>> > >> >>> java.lang.NullPointerException > >> >>> at > es.unex.sextante.core.AlgorithmsAndResources.addAlgorithmsAn > >> >>> dPropertiesFromFolder(AlgorithmsAndResources.java:143) > >> >>> at > es.unex.sextante.core.Sextante.initialize(Sextante.java:67) > >> >>> at > es.unex.sextante.openjump.extensions.SextanteToolboxPlugin.i > >> >>> nitialize(SextanteToolboxPlugin.java:68) > >> >>> at > es.unex.sextante.openjump.extensions.SextanteExtension.confi > >> >>> gure(SextanteExtension.java:49) > >> >>> at > com.vividsolutions.jump.workbench.plugin.PlugInManager.loadC > >> >>> onfigurations(PlugInManager.java:212) > >> >>> at > com.vividsolutions.jump.workbench.plugin.PlugInManager.load( > >> >>> PlugInManager.java:192) > >> >>> at > com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWor > >> >>> kbench.java:468) > >> >>> at > com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWor > >> >>> kbench.java:397) > >> >>> > >> >>> as it is your construction site, any idea? ..ede > >> >>> > >> >>> On 04.12.2016 19 <tel:04.12.2016%2019> > <tel:04.12.2016%2019>:41, Michaël Michaud wrote: > >> >>>> Hi Peppe, > >> >>>> > >> >>>> You did a great work with Sextante. Getting the whole > documentation from > >> >>>> the menu is amazing. > >> >>>> > >> >>>> Hope it will encorage OpenJUMP users to play with it ;-) > >> >>>> > >> >>>> Michaël > >> >>>> > >> >>>> > >> >>>> > ------------------------------------------------------------ > >> >>> ------------------ > >> >>>> Check out the vibrant tech community on one of the > world's most > >> >>>> engaging tech sites, SlashDot.org! > http://sdm.link/slashdot > >> >>>> _______________________________________________ > >> >>>> Jump-pilot-devel mailing list > >> >>>> Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > <mailto:Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net>> > >> >>>> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel> > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>> > >> >>>> > >> >>> > >> >>> > ------------------------------------------------------------ > >> >>> ------------------ > >> >>> Check out the vibrant tech community on one of the world's > most > >> >>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot > >> >>> _______________________________________________ > >> >>> Jump-pilot-devel mailing list > >> >>> Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > <mailto:Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net>> > >> >>> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel> > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>> > >> >>> > >> >> > >> > > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > > >> > > >> > > >> > _______________________________________________ > >> > Jump-pilot-devel mailing list > >> > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > <mailto:Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net>> > >> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel> > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>> > >> > > >> > >> > ------------------------------------------------------------------------------ > >> _______________________________________________ > >> Jump-pilot-devel mailing list > >> Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > <mailto:Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net>> > >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel> > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> > >> > >> > >> _______________________________________________ > >> Jump-pilot-devel mailing list > >> Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel> > >> > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel> > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel> > > > > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today.http://sdm.link/xeonphi > > > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/xeonphi _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel