AW: [Gvsig_english] Error on point label features

Johannes Metzler johannes.metzler at stadtwerke-bregenz.at
Mon Sep 11 17:11:38 CEST 2006


Sorry Francisco,

I checked again and found that it was a bloody german umlaut in an
attribute name...

I dont know whether you consider this as a bug 

hannes

-----Ursprüngliche Nachricht-----
Von: gvsig_internacional-bounces at runas.cap.gva.es
[mailto:gvsig_internacional-bounces at runas.cap.gva.es] Im Auftrag von
Francisco José
Gesendet: Montag, 11. September 2006 16:26
An: Users and Developers mailing list
Betreff: Re: [Gvsig_english] Error on point label features


Hi.

It seems there is a Null Value in height field. Line 182 from FLyrText:

                            NumericValue height = (NumericValue) 
ds.getFieldValue(i, idFieldHeightText);

May be we shoud catch this kind of exceptions in the future.

Until then, you can check your point data and make sure that the height 
text field has rigth values.

Thanks for the appointment!!.

Have fun.



Johannes Metzler escribió:
> Hi,
>
> The following error occours on labelling point features with a 
> textheigth from attribute:
>
> java.lang.ClassCastException: 
> com.hardcode.gdbms.engine.values.NullValue
>
> java.lang.ClassCastException
> java.lang.ClassCastException: null
>  
> com.iver.cit.gvsig.fmap.layers.FLyrText.createLabels(FLyrText.java:182
> )
>  
> com.iver.cit.gvsig.fmap.layers.FLyrVect.createLabelLayer(FLyrVect.java
> :4
> 07)
>
com.iver.cit.gvsig.fmap.layers.FLyrVect.setLegend(FLyrVect.java:672)
>  
> com.iver.cit.gvsig.gui.thememanager.FThemeManagerWindow.btnApply_actio
> nP
> erformed(FThemeManagerWindow.java:306) 
>  
> com.iver.cit.gvsig.gui.thememanager.FThemeManagerWindow.access$1(FThem
> eM
> anagerWindow.java:243) 
>  
> com.iver.cit.gvsig.gui.thememanager.FThemeManagerWindow$ComandosListen
> er
> .actionPerformed(FThemeManagerWindow.java:457) 
>     javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>  
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
> Source)
>     javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>     javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>     javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
> Source)
>     java.awt.Component.processMouseEvent(Unknown Source)
>     java.awt.Component.processEvent(Unknown Source)
>     java.awt.Container.processEvent(Unknown Source)
>     java.awt.Component.dispatchEventImpl(Unknown Source)
>     java.awt.Container.dispatchEventImpl(Unknown Source)
>     java.awt.Component.dispatchEvent(Unknown Source)
>     java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>     java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>     java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>     java.awt.Container.dispatchEventImpl(Unknown Source)
>     java.awt.Window.dispatchEventImpl(Unknown Source)
>     java.awt.Component.dispatchEvent(Unknown Source)
>     java.awt.EventQueue.dispatchEvent(Unknown Source)
>  
> com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.jav
> a:
> 58) 
>     java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> Source)
>     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.run(Unknown Source) 
>
>
>
> Greets
> hannes
>
>
> _______________________________________________
> Gvsig_internacional mailing list Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>   


-- 
Francisco José Peñarrubia
Equipo gvSIG

IVER T.I. S.A.
c/Salamanca 50
46005 Valencia
Spain


_______________________________________________
Gvsig_internacional mailing list Gvsig_internacional at runas.cap.gva.es
http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional





More information about the Gvsig_internacional mailing list