Re: [JPP-Devel] Fwd: Error on Sextante Raster Layer on OJ NB

2016-10-14 Thread edgar . soldin
it should not be missing. i used the more recent java bindings from 
gdal-2.1.0.jar instead. 
  
https://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/lib/imageio-ext/

but heck, we can of course roll that back to the original bindings released 
together w/ ImageIO-Ext. :)

..ede

On 14.10.2016 16:02, Giuseppe Aruta wrote:
> To be more accurate, on 5050 we substituted imageio-ext libraries.
> From version 5051 there is a file missing 
> (imageio-ext-gdal-bindings-1.9.2.jar) in OJ/LIB folder,
> Coping/pasting this file from 5048 to newer version apparently solves the bug
> Peppe
> 
> 2016-10-14 15:53 GMT+02:00 Giuseppe Aruta  >:
> 
> The problem came out from  5051. A former version (5048) is not affected.
> And it doesn't affect CORE versions, only  PLUS ones.
> Peppe
> 
> 
> 2016-10-13 19:58 GMT+02:00 Michaël Michaud  >:
> 
> Hi Peppe,
> 
> If you could find more precisely the OJ version where this regression 
> appreared, we could now if we introduced
> 
> this regression with a code modification or with a library update.
> 
> Michaël
> 
> 
> Le 13/10/2016 à 19:35, Giuseppe Aruta a écrit :
>>
>> How to reproduce it
>> - open an .asc file
>> - draw a fence on it to define a smaller area
>> - select "cut image by fence" on raster layer tree menu
>>
>> If I load a sex range layer, this is shown as icon on layer tree but 
>> not in the view.
>> Best regards
>> Peppe
>>
>> -- Messaggio inoltrato --
>> Da: "Giuseppe Aruta" > >
>> Data: 13/Ott/2016 18:50
>> Oggetto: Error on Sextante Raster Layer on OJ NB
>> A: "OpenJump develop and use" 
>> > >
>> Cc:
>>
>> Hi,
>> I have this error on loading  TIF file on OpenJUMP NB 5072 and 5973
>>
>> java.lang.ClassCastException: [B cannot be cast to 
>> [Ljava.lang.String;
>> at 
>> it.geosolutions.imageio.plugins.tiff.TIFFField.getAsString(TIFFField.java:1164)
>> at it.geosolutions.imageioimpl.pl 
>> ugins.tiff.TIFFImageReader.initializeFromMetadata(TIFFImageReader.java:1275)
>> at it.geosolutions.imageioimpl.pl 
>> ugins.tiff.TIFFImageReader.seekToImage(TIFFImageReader.java:820)
>> at it.geosolutions.imageioimpl.pl 
>> ugins.tiff.TIFFImageReader.seekToImage(TIFFImageReader.java:777)
>> at it.geosolutions.imageioimpl.pl 
>> ugins.tiff.TIFFImageReader.getWidth(TIFFImageReader.java:1035)
>> at 
>> org.openjump.core.rasterimage.OverviewsUtils.addOverviews(OverviewsUtils.java:65)
>> at 
>> org.openjump.core.rasterimage.OverviewsUtils.getOverviews(OverviewsUtils.java:45)
>> at 
>> org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
>> at org.openjump.core.ui.plugin.la 
>> yer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
>> at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.ac 
>> tionPerformed(AbstractPlugIn.java:340)
>> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown 
>> Source)
>> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown 
>> Source)
>> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>> at javax.swing.AbstractButton.doClick(Unknown Source)
>> at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
>> at 
>> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
>> at java.awt.Component.processMouseEvent(Unknown Source)
>> at javax.swing.JComponent.processMouseEvent(Unknown Source)
>> at java.awt.Component.processEvent(Unknown Source)
>> at java.awt.Container.processEvent(Unknown Source)
>> at java.awt.Component.dispatchEventImpl(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown 
>> Source)
>> at java.awt.LightweightDispatcher.processMouseEvent(Unknown 
>> Source)
>> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> 

Re: [JPP-Devel] Fwd: Error on Sextante Raster Layer on OJ NB

2016-10-14 Thread edgar . soldin
if you'd like to use your local GDAL you will have to run OJ with a 32bit java. 
you are right, it does not seem to detect GDAL.

..ede

On 14.10.2016 17:06, Giuseppe Aruta wrote:
> Yes I do. I installed and defined class paths a day before. Currently my 
> machine works with  Gdal 1.11.4/32bit version.
> It looks like that OJ doesn't recognize that version, for instance, when I 
> open an ecw file, it shows only ecw 3.3 option and not gdal one.
> Peppe
> I attached a clean log file of OJ 5072 , if needed
> Peppe
> 
> 2016-10-14 16:28 GMT+02:00 >:
> 
> Peppe,
> 
> do you have GDAL installed on that machine? is it by any chance detected 
> by OJ Plus? you can see that during start in the log.
> 
> ..ede
> 
> On 14.10.2016 16:16, Giuseppe Aruta wrote:
> > Hi Ede
> >>maybe a bug in the updated ImageIO-Ext.. did you intend to use _this_ 
> reader?
> > Do you mean if I use ImageIO-Ext for extra reader? No. I only tested 
> thye bug on opening a GeoTIF image (one band) using Sextante Raster reader. I 
> attached the file at the end of this mail.
> >
> > Peppe
> >
> > 2016-10-14 16:06 GMT+02:00    >>:
> >
> > maybe a bug in the updated ImageIO-Ext.. did you intend to use 
> _this_ reader?
> >
> > i can't see that the class in the stack was changed recently though
> >   
> https://github.com/geosolutions-it/imageio-ext/tree/master/plugin/tiff/src/main/java/it/geosolutions/imageio/plugins/tiff
>  
> 
>  
>   
> >
> >
> > the ImageIO-Ext TIFF reader is packaged in Core, so the error 
> should be the same there. Can you send the triggering image?
> >
> > ..ede
> >
> > On 14.10.2016 15:53, Giuseppe Aruta wrote:
> > > The problem came out from  5051. A former version (5048) is not 
> affected.
> > > And it doesn't affect CORE versions, only  PLUS ones.
> > > Peppe
> > >
> > >
> > > 2016-10-13 19:58 GMT+02:00 Michaël Michaud 
>  
> > 
>  
>  > >
> > > Hi Peppe,
> > >
> > > If you could find more precisely the OJ version where this 
> regression appreared, we could now if we introduced
> > >
> > > this regression with a code modification or with a library 
> update.
> > >
> > > Michaël
> > >
> > >
> > > Le 13/10/2016 à 19:35, Giuseppe Aruta a écrit :
> > >>
> > >> How to reproduce it
> > >> - open an .asc file
> > >> - draw a fence on it to define a smaller area
> > >> - select "cut image by fence" on raster layer tree menu
> > >>
> > >> If I load a sex range layer, this is shown as icon on layer 
> tree but not in the view.
> > >> Best regards
> > >> Peppe
> > >>
> > >> -- Messaggio inoltrato --
> > >> Da: "Giuseppe Aruta"    >     > >> Data: 13/Ott/2016 18:50
> > >> Oggetto: Error on Sextante Raster Layer on OJ NB
> > >> A: "OpenJump develop and use" 
>   
>  > 
>   
>   > >> Cc:
> > >>
> > >> Hi,
> > >> I have this error on loading  TIF file on OpenJUMP NB 5072 
> and 5973
> > >>
> > >> java.lang.ClassCastException: [B cannot be cast to 
> [Ljava.lang.String;
> > >> at 
> it.geosolutions.imageio.plugins.tiff.TIFFField.getAsString(TIFFField.java:1164)
> 

Re: [JPP-Devel] Fwd: Error on Sextante Raster Layer on OJ NB

2016-10-14 Thread Edgar Soldin
then probably the GDAL jni libs are not in your path. ok, forget it. if you 
want try you should be able to use the GDAL provided and as described here
  
http://ojwiki.soldin.de/index.php?title=Working_with_Raster#GDAL_support_.28Windows.2C_Linux_only.29

..ede

On 14.10.2016 17:18, Giuseppe Aruta wrote:
> Hi Ede,
> yes. Java is 32 bit
> Peppe
> 
> 2016-10-14 17:16 GMT+02:00 >:
> 
> if you'd like to use your local GDAL you will have to run OJ with a 32bit 
> java. you are right, it does not seem to detect GDAL.
> 
> ..ede
> 
> On 14.10.2016 17:06, Giuseppe Aruta wrote:
> > Yes I do. I installed and defined class paths a day before. Currently 
> my machine works with  Gdal 1.11.4/32bit version.
> > It looks like that OJ doesn't recognize that version, for instance, 
> when I open an ecw file, it shows only ecw 3.3 option and not gdal one.
> > Peppe
> > I attached a clean log file of OJ 5072 , if needed
> > Peppe
> >
> > 2016-10-14 16:28 GMT+02:00    >>:
> >
> > Peppe,
> >
> > do you have GDAL installed on that machine? is it by any chance 
> detected by OJ Plus? you can see that during start in the log.
> >
> > ..ede
> >
> > On 14.10.2016 16:16, Giuseppe Aruta wrote:
> > > Hi Ede
> > >>maybe a bug in the updated ImageIO-Ext.. did you intend to use 
> _this_ reader?
> > > Do you mean if I use ImageIO-Ext for extra reader? No. I only 
> tested thye bug on opening a GeoTIF image (one band) using Sextante Raster 
> reader. I attached the file at the end of this mail.
> > >
> > > Peppe
> > >
> > > 2016-10-14 16:06 GMT+02:00    >     > >
> > > maybe a bug in the updated ImageIO-Ext.. did you intend to 
> use _this_ reader?
> > >
> > > i can't see that the class in the stack was changed recently 
> though
> > >   
> https://github.com/geosolutions-it/imageio-ext/tree/master/plugin/tiff/src/main/java/it/geosolutions/imageio/plugins/tiff
>  
> 
>  
>   
> >
>  
>   
> 
>  
>   
> >>
> > >
> > > the ImageIO-Ext TIFF reader is packaged in Core, so the error 
> should be the same there. Can you send the triggering image?
> > >
> > > ..ede
> > >
> > > On 14.10.2016 15:53, Giuseppe Aruta wrote:
> > > > The problem came out from  5051. A former version (5048) is 
> not affected.
> > > > And it doesn't affect CORE versions, only  PLUS ones.
> > > > Peppe
> > > >
> > > >
> > > > 2016-10-13 19:58 GMT+02:00 Michaël Michaud 
>  
> > 
>  
> >> 
>  
> > 
>  
> :
> > > >
> > > > Hi Peppe,
> > > >
> > > > If you could find more precisely the OJ version where 
> this regression appreared, we could now if we introduced
> > > >
> > > > this regression with a code modification or with a 
> library update.
> > > >
> > > > Michaël
> > > >
> > > >
> > > > Le 13/10/2016 à 

Re: [JPP-Devel] Fwd: Error on Sextante Raster Layer on OJ NB

2016-10-14 Thread Giuseppe Aruta
Hi Ede,
yes. Java is 32 bit
Peppe

2016-10-14 17:16 GMT+02:00 :

> if you'd like to use your local GDAL you will have to run OJ with a 32bit
> java. you are right, it does not seem to detect GDAL.
>
> ..ede
>
> On 14.10.2016 17:06, Giuseppe Aruta wrote:
> > Yes I do. I installed and defined class paths a day before. Currently my
> machine works with  Gdal 1.11.4/32bit version.
> > It looks like that OJ doesn't recognize that version, for instance, when
> I open an ecw file, it shows only ecw 3.3 option and not gdal one.
> > Peppe
> > I attached a clean log file of OJ 5072 , if needed
> > Peppe
> >
> > 2016-10-14 16:28 GMT+02:00 >:
> >
> > Peppe,
> >
> > do you have GDAL installed on that machine? is it by any chance
> detected by OJ Plus? you can see that during start in the log.
> >
> > ..ede
> >
> > On 14.10.2016 16:16, Giuseppe Aruta wrote:
> > > Hi Ede
> > >>maybe a bug in the updated ImageIO-Ext.. did you intend to use
> _this_ reader?
> > > Do you mean if I use ImageIO-Ext for extra reader? No. I only
> tested thye bug on opening a GeoTIF image (one band) using Sextante Raster
> reader. I attached the file at the end of this mail.
> > >
> > > Peppe
> > >
> > > 2016-10-14 16:06 GMT+02:00  >>:
> > >
> > > maybe a bug in the updated ImageIO-Ext.. did you intend to use
> _this_ reader?
> > >
> > > i can't see that the class in the stack was changed recently
> though
> > >   https://github.com/geosolutions-it/imageio-ext/
> tree/master/plugin/tiff/src/main/java/it/geosolutions/imageio/plugins/tiff
>  tree/master/plugin/tiff/src/main/java/it/geosolutions/imageio/plugins/tiff>
>  tree/master/plugin/tiff/src/main/java/it/geosolutions/imageio/plugins/tiff
>  tree/master/plugin/tiff/src/main/java/it/geosolutions/imageio/plugins/tiff
> >>
> > >
> > > the ImageIO-Ext TIFF reader is packaged in Core, so the error
> should be the same there. Can you send the triggering image?
> > >
> > > ..ede
> > >
> > > On 14.10.2016 15:53, Giuseppe Aruta wrote:
> > > > The problem came out from  5051. A former version (5048) is
> not affected.
> > > > And it doesn't affect CORE versions, only  PLUS ones.
> > > > Peppe
> > > >
> > > >
> > > > 2016-10-13 19:58 GMT+02:00 Michaël Michaud <
> m.michael.mich...@orange.fr   m.michael.mich...@orange.fr >  m.michael.mich...@orange.fr   m.michael.mich...@orange.fr  > > >
> > > > Hi Peppe,
> > > >
> > > > If you could find more precisely the OJ version where
> this regression appreared, we could now if we introduced
> > > >
> > > > this regression with a code modification or with a
> library update.
> > > >
> > > > Michaël
> > > >
> > > >
> > > > Le 13/10/2016 à 19:35, Giuseppe Aruta a écrit :
> > > >>
> > > >> How to reproduce it
> > > >> - open an .asc file
> > > >> - draw a fence on it to define a smaller area
> > > >> - select "cut image by fence" on raster layer tree menu
> > > >>
> > > >> If I load a sex range layer, this is shown as icon on
> layer tree but not in the view.
> > > >> Best regards
> > > >> Peppe
> > > >>
> > > >> -- Messaggio inoltrato --
> > > >> Da: "Giuseppe Aruta"  >   > > >> Data: 13/Ott/2016 18:50
> > > >> Oggetto: Error on Sextante Raster Layer on OJ NB
> > > >> A: "OpenJump develop and use"  sourceforge.net   jump-pilot-devel@lists.sourceforge.net  lists.sourceforge.net>>    lists.sourceforge.net  > > >> Cc:
> > > >>
> > > >> Hi,
> > > >> I have this error on loading  TIF file on OpenJUMP NB
> 5072 and 5973
> > > >>
> > > >> java.lang.ClassCastException: [B cannot be cast to
> [Ljava.lang.String;
> > >

Re: [JPP-Devel] Fwd: Error on Sextante Raster Layer on OJ NB

2016-10-14 Thread edgar . soldin
maybe a bug in the updated ImageIO-Ext.. did you intend to use _this_ reader?

i can't see that the class in the stack was changed recently though
  
https://github.com/geosolutions-it/imageio-ext/tree/master/plugin/tiff/src/main/java/it/geosolutions/imageio/plugins/tiff

the ImageIO-Ext TIFF reader is packaged in Core, so the error should be the 
same there. Can you send the triggering image?

..ede

On 14.10.2016 15:53, Giuseppe Aruta wrote:
> The problem came out from  5051. A former version (5048) is not affected.
> And it doesn't affect CORE versions, only  PLUS ones.
> Peppe
> 
> 
> 2016-10-13 19:58 GMT+02:00 Michaël Michaud  >:
> 
> Hi Peppe,
> 
> If you could find more precisely the OJ version where this regression 
> appreared, we could now if we introduced
> 
> this regression with a code modification or with a library update.
> 
> Michaël
> 
> 
> Le 13/10/2016 à 19:35, Giuseppe Aruta a écrit :
>>
>> How to reproduce it
>> - open an .asc file
>> - draw a fence on it to define a smaller area
>> - select "cut image by fence" on raster layer tree menu
>>
>> If I load a sex range layer, this is shown as icon on layer tree but not 
>> in the view.
>> Best regards
>> Peppe
>>
>> -- Messaggio inoltrato --
>> Da: "Giuseppe Aruta" > >
>> Data: 13/Ott/2016 18:50
>> Oggetto: Error on Sextante Raster Layer on OJ NB
>> A: "OpenJump develop and use" > >
>> Cc:
>>
>> Hi,
>> I have this error on loading  TIF file on OpenJUMP NB 5072 and 5973
>>
>> java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.String;
>> at 
>> it.geosolutions.imageio.plugins.tiff.TIFFField.getAsString(TIFFField.java:1164)
>> at it.geosolutions.imageioimpl.pl 
>> ugins.tiff.TIFFImageReader.initializeFromMetadata(TIFFImageReader.java:1275)
>> at it.geosolutions.imageioimpl.pl 
>> ugins.tiff.TIFFImageReader.seekToImage(TIFFImageReader.java:820)
>> at it.geosolutions.imageioimpl.pl 
>> ugins.tiff.TIFFImageReader.seekToImage(TIFFImageReader.java:777)
>> at it.geosolutions.imageioimpl.pl 
>> ugins.tiff.TIFFImageReader.getWidth(TIFFImageReader.java:1035)
>> at 
>> org.openjump.core.rasterimage.OverviewsUtils.addOverviews(OverviewsUtils.java:65)
>> at 
>> org.openjump.core.rasterimage.OverviewsUtils.getOverviews(OverviewsUtils.java:45)
>> at 
>> org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
>> at org.openjump.core.ui.plugin.la 
>> yer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
>> at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.ac 
>> tionPerformed(AbstractPlugIn.java:340)
>> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>> at javax.swing.AbstractButton.doClick(Unknown Source)
>> at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
>> at 
>> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
>> at java.awt.Component.processMouseEvent(Unknown Source)
>> at javax.swing.JComponent.processMouseEvent(Unknown Source)
>> at java.awt.Component.processEvent(Unknown Source)
>> at java.awt.Container.processEvent(Unknown Source)
>> at java.awt.Component.dispatchEventImpl(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Window.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
>> at java.awt.EventQueue.access$500(Unknown Source)
>> at java.awt.EventQueue$3.run(Unknown Source)
>> at java.awt.EventQueue$3.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at 
>> 

Re: [JPP-Devel] Fwd: Error on Sextante Raster Layer on OJ NB

2016-10-14 Thread Giuseppe Aruta
To be more accurate, on 5050 we substituted imageio-ext libraries.
>From version 5051 there is a file missing
(imageio-ext-gdal-bindings-1.9.2.jar) in OJ/LIB folder,
Coping/pasting this file from 5048 to newer version apparently solves the
bug
Peppe

2016-10-14 15:53 GMT+02:00 Giuseppe Aruta :

> The problem came out from  5051. A former version (5048) is not affected.
> And it doesn't affect CORE versions, only  PLUS ones.
> Peppe
>
>
> 2016-10-13 19:58 GMT+02:00 Michaël Michaud :
>
>> Hi Peppe,
>>
>> If you could find more precisely the OJ version where this regression
>> appreared, we could now if we introduced
>>
>> this regression with a code modification or with a library update.
>> Michaël
>>
>>
>> Le 13/10/2016 à 19:35, Giuseppe Aruta a écrit :
>>
>> How to reproduce it
>> - open an .asc file
>> - draw a fence on it to define a smaller area
>> - select "cut image by fence" on raster layer tree menu
>>
>> If I load a sex range layer, this is shown as icon on layer tree but not
>> in the view.
>> Best regards
>> Peppe
>> -- Messaggio inoltrato --
>> Da: "Giuseppe Aruta" 
>> Data: 13/Ott/2016 18:50
>> Oggetto: Error on Sextante Raster Layer on OJ NB
>> A: "OpenJump develop and use" 
>> Cc:
>>
>> Hi,
>> I have this error on loading  TIF file on OpenJUMP NB 5072 and 5973
>>
>> java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.String;
>> at it.geosolutions.imageio.plugins.tiff.TIFFField.getAsString(T
>> IFFField.java:1164)
>> at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.ini
>> tializeFromMetadata(TIFFImageReader.java:1275)
>> at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.see
>> kToImage(TIFFImageReader.java:820)
>> at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.see
>> kToImage(TIFFImageReader.java:777)
>> at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.get
>> Width(TIFFImageReader.java:1035)
>> at org.openjump.core.rasterimage.OverviewsUtils.addOverviews(Ov
>> erviewsUtils.java:65)
>> at org.openjump.core.rasterimage.OverviewsUtils.getOverviews(Ov
>> erviewsUtils.java:45)
>> at org.openjump.core.rasterimage.RasterImageIO.loadImage(Raster
>> ImageIO.java:143)
>> at org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelecte
>> dPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
>> at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.ac
>> tionPerformed(AbstractPlugIn.java:340)
>> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>> at javax.swing.AbstractButton.doClick(Unknown Source)
>> at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
>> at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
>> Source)
>> at java.awt.Component.processMouseEvent(Unknown Source)
>> at javax.swing.JComponent.processMouseEvent(Unknown Source)
>> at java.awt.Component.processEvent(Unknown Source)
>> at java.awt.Container.processEvent(Unknown Source)
>> at java.awt.Component.dispatchEventImpl(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Window.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
>> at java.awt.EventQueue.access$500(Unknown Source)
>> at java.awt.EventQueue$3.run(Unknown Source)
>> at java.awt.EventQueue$3.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at 
>> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>> Source)
>> at 
>> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>> Source)
>> at java.awt.EventQueue$4.run(Unknown Source)
>> at java.awt.EventQueue$4.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at 
>> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>> Source)
>> at java.awt.EventQueue.dispatchEvent(Unknown Source)
>> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
>> Source)
>> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>> at 

Re: [JPP-Devel] Fwd: Error on Sextante Raster Layer on OJ NB

2016-10-14 Thread Giuseppe Aruta
The problem came out from  5051. A former version (5048) is not affected.
And it doesn't affect CORE versions, only  PLUS ones.
Peppe


2016-10-13 19:58 GMT+02:00 Michaël Michaud :

> Hi Peppe,
>
> If you could find more precisely the OJ version where this regression
> appreared, we could now if we introduced
>
> this regression with a code modification or with a library update.
> Michaël
>
>
> Le 13/10/2016 à 19:35, Giuseppe Aruta a écrit :
>
> How to reproduce it
> - open an .asc file
> - draw a fence on it to define a smaller area
> - select "cut image by fence" on raster layer tree menu
>
> If I load a sex range layer, this is shown as icon on layer tree but not
> in the view.
> Best regards
> Peppe
> -- Messaggio inoltrato --
> Da: "Giuseppe Aruta" 
> Data: 13/Ott/2016 18:50
> Oggetto: Error on Sextante Raster Layer on OJ NB
> A: "OpenJump develop and use" 
> Cc:
>
> Hi,
> I have this error on loading  TIF file on OpenJUMP NB 5072 and 5973
>
> java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.String;
> at it.geosolutions.imageio.plugins.tiff.TIFFField.getAsString(
> TIFFField.java:1164)
> at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.ini
> tializeFromMetadata(TIFFImageReader.java:1275)
> at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.see
> kToImage(TIFFImageReader.java:820)
> at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.see
> kToImage(TIFFImageReader.java:777)
> at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.get
> Width(TIFFImageReader.java:1035)
> at org.openjump.core.rasterimage.OverviewsUtils.addOverviews(Ov
> erviewsUtils.java:65)
> at org.openjump.core.rasterimage.OverviewsUtils.getOverviews(Ov
> erviewsUtils.java:45)
> at org.openjump.core.rasterimage.RasterImageIO.loadImage(Raster
> ImageIO.java:143)
> at org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelecte
> dPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
> at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.ac
> tionPerformed(AbstractPlugIn.java:340)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.AbstractButton.doClick(Unknown Source)
> at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
> at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
> Source)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at javax.swing.JComponent.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
> at java.awt.EventQueue.access$500(Unknown Source)
> at java.awt.EventQueue$3.run(Unknown Source)
> at java.awt.EventQueue$3.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
> Source)
> at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
> Source)
> at java.awt.EventQueue$4.run(Unknown Source)
> at java.awt.EventQueue$4.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
> Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
> No problem on older OJ NB (like 4951)
>
> Peppe
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging