Hi Stefan,

 >>was that fixed? Just got it again when calling the attribute view for 
a new layer from the toolbar

I committed a fix about 2 hours ago (svn 2569)

Michaël
>
> stefan
>
> java.lang.NullPointerException
>       at
> com.vividsolutions.jump.workbench.ui.AttributeTablePanel.initColumnWidths(AttributeTablePanel.java:432)
>       at
> com.vividsolutions.jump.workbench.ui.AttributeTablePanel.<init>(AttributeTablePanel.java:316)
>       at
> com.vividsolutions.jump.workbench.ui.AttributePanel.addTablePanel(AttributePanel.java:165)
>       at
> com.vividsolutions.jump.workbench.ui.AttributePanel.layerAdded(AttributePanel.java:136)
>       at
> com.vividsolutions.jump.workbench.ui.AttributeTab$5.layerAdded(AttributeTab.java:150)
>       at com.vividsolutions.jump.workbench.ui.InfoModel.add(InfoModel.java:88)
>       at
> com.vividsolutions.jump.workbench.ui.OneLayerAttributeTab.setLayer(OneLayerAttributeTab.java:47)
>       at
> com.vividsolutions.jump.workbench.ui.plugin.ViewAttributesPlugIn$ViewAttributesFrame.<init>(ViewAttributesPlugIn.java:97)
>       at
> com.vividsolutions.jump.workbench.ui.plugin.ViewAttributesPlugIn.execute(ViewAttributesPlugIn.java:55)
>       at
> com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:130)
>       at 
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
>       at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
>       at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
>       at 
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
>       at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
>       at 
> java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
>       at java.awt.Component.processMouseEvent(Component.java:6373)
>       at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
>       at java.awt.Component.processEvent(Component.java:6138)
>       at java.awt.Container.processEvent(Container.java:2085)
>       at java.awt.Component.dispatchEventImpl(Component.java:4735)
>       at java.awt.Container.dispatchEventImpl(Container.java:2143)
>       at java.awt.Component.dispatchEvent(Component.java:4565)
>       at 
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
>       at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
>       at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
>       at java.awt.Container.dispatchEventImpl(Container.java:2129)
>       at java.awt.Window.dispatchEventImpl(Window.java:2478)
>       at java.awt.Component.dispatchEvent(Component.java:4565)
>       at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
>       at java.awt.EventQueue.access$000(EventQueue.java:85)
>       at java.awt.EventQueue$1.run(EventQueue.java:638)
>       at java.awt.EventQueue$1.run(EventQueue.java:636)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at
> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
>       at
> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
>       at java.awt.EventQueue$2.run(EventQueue.java:652)
>       at java.awt.EventQueue$2.run(EventQueue.java:650)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at
> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
>       at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
>       at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
>       at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
>       at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
>       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
>       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
>       at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
>
>
> Am 31.12.11 12:15, schrieb Michaël Michaud:
>> Hi ,
>>
>> Sorry for the noise. I think the bug I'm talking about is related to the
>> recent modification to make column width persistent, not from the new
>> tools in attribute toolbar.
>>
>> If I load a file from disk, I don't get this NPE
>> If I create a new (in-memory) Layer, I get a NPE with the following
>> stacktrace :
>>
>> java.lang.NullPointerException
>>        at
>> com.vividsolutions.jump.workbench.ui.AttributeTablePanel.initColumnWidths(AttributeTablePanel.java:432)
>>        at
>> com.vividsolutions.jump.workbench.ui.AttributeTablePanel.<init>(AttributeTablePanel.java:316)
>>        at
>> com.vividsolutions.jump.workbench.ui.AttributePanel.addTablePanel(AttributePanel.java:164)
>>        at
>> com.vividsolutions.jump.workbench.ui.AttributePanel.layerAdded(AttributePanel.java:136)
>>        at
>> com.vividsolutions.jump.workbench.ui.AttributeTab$5.layerAdded(AttributeTab.java:150)
>>        at
>> com.vividsolutions.jump.workbench.ui.InfoModel.add(InfoModel.java:88)
>>
>> PS : There is also an NPE already reported by Matthias on statistic tool
>> if several layers are visible in the attribute view (info panel)
>>
>> Michaël
>>
>> Le 31/12/2011 11:54, Stefan Steiniger a écrit :
>>> mhm true,
>>>
>>> I just checked with Mac and if I open the attribute view and click on
>>> view schema, everything works - no NPE.
>>>
>>> stefan
>>>
>>> Am 31.12.11 11:17, schrieb Michaël Michaud:
>>>> Hi Giuseppe,
>>>>
>>>>> Finally I tested with another computer (with win7) and see this NPE.
>>>> Oh, I see. Maybe this is a bug related to a specific java version or a
>>>> specific OS. I observed it on Windows Vista + java 1.6.0_26.
>>>> Os-dependant bugs are generally more difficult to find and to fix (or to
>>>> workaround).
>>>>> When I changed the position of the attribute panel toolbar and added
>>>>> these tools here I didn't have any NPE error, honestly I tested only
>>>>> on Ubuntu (I have to reinstall windows). I wonder if I did a mistake
>>>>> not to verify on Window.
>>>> I'll try to have a look today. Currently, I only use windows. By chance,
>>>> Ede have a good experience on both linux and windows, and stefan uses a
>>>> mac, so that we have good opportunities to track bugs on any of these
>>>> platforms, but it supposes that all of us extensively test any 
>>>> modification.
>>>>
>>>> Michaël
>>>>> Peppe
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>> *Da:* Michaël Michaud<michael.mich...@free.fr>
>>>>> *A:* jump-pilot-devel@lists.sourceforge.net
>>>>> *Inviato:* Venerdì 30 Dicembre 2011 19:11
>>>>> *Oggetto:* Re: [JPP-Devel] Feature Info Tool and Layer Attributes
>>>>> Statistics
>>>>>
>>>>> Hi,
>>>>>
>>>>> Thanks for explanation. Hope we'll get some other feedback on this
>>>>> subject.
>>>>>
>>>>>> *Save datasets* : I see no particular reason to have this button here
>>>>>> as it will save "any" modification, not just attribute modifications
>>>>>> and not just modifications made on active AttributePanel
>>>>>> *Undo/redo* : same remark. Moreover, currently, if you delete
>>>>>> features from the AttributePanel then click undo, features will be
>>>>>> restored in the LayerViewPanel but not in AttributePanel.
>>>>>>
>>>>>> - I can reverse these modifications. The idea is to use
>>>>>> AttributePanel for tables with no datasource (we still don't have
>>>>>> something similar, I wanted to test Dante Fuster Import Excel file
>>>>>> for that). As Stefan mentioned it is possible to duplicate the
>>>>>> classes. I follow this way.
>>>>> I think you mean tables with no "geometry". This feature has to be
>>>>> discussed. I don't know what is the best approach, creating a specific
>>>>> FeatureCollections, or using normal FeatureCollections with empty
>>>>> geometries.
>>>>> Anyhow, savedatasets saves modified FeatureCollections having a
>>>>> datasource (linked to a file). So currently, it is not specific to
>>>>> pure attribute table, and its action is not restricted to tables
>>>>> visible in the attribute panel.
>>>>>> - undo/redo works. If you delete a feature from Attribute Panel and
>>>>>> click undu, the attribute is restored at the bottom of the table)
>>>>> You're right, the behaviour I described is for Info Panel, not
>>>>> Attribute Panel. I still think undo/redo is not necessary at this
>>>>> place, but it is OK for Attribute Panel if other users think it's
>>>>> useful. But it is not adapted to Info Panel.
>>>>> If I remember correctly, it may not be easy to have different
>>>>> behaviours in Attribute Panel and in Info Panel.
>>>>>
>>>>> Most important thing now is to fix the NPE, and to see if we can
>>>>> define behaviours fitting exactly what we want for attribute panel
>>>>> (only one layer) and for info panel (where several layers can be
>>>>> displayed).
>>>>>
>>>>> Michaël
>>>>>> *View/Edit schema* : very useful for ViewAttribute plugin, not
>>>>>> working (NPE) for InfoPanel if several layers are displayed (should
>>>>>> not be available for InfoPanel IMHO)
>>>>>> - View/Edit schema is also activated using right click on View
>>>>>> Attribute panel. I think that a view/edit schema button on the
>>>>>> toolbar is more visible.
>>>>>>
>>>>>> *Statistics *: very good idea for ViewAttribute plugin, not working
>>>>>> (NPE) for InfoPanel if several layers are displayed (should not be
>>>>>> available for InfoPanel IMHO)
>>>>>> - I like the idea to add Attribute plugins as button on the Attribute
>>>>>> panel toolbar. I did some tests on OJ jufre (add area/perimeter or
>>>>>> calculator plugins). But there are still some problems to solve
>>>>>> (values not correctly displayed, etc).
>>>>>>
>>>>>> Peppe
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>>>>>> infrastructure or vast IT resources to deliver seamless, secure access to
>>>>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>>>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>>>>>> costs. Try it free!http://p.sf.net/sfu/Citrix-VDIinabox
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>> ------------------------------------------------------------------------------
>>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>>>>> infrastructure or vast IT resources to deliver seamless, secure access to
>>>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>>>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>>>>> infrastructure or vast IT resources to deliver seamless, secure access to
>>>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>>>>> costs. Try it free!http://p.sf.net/sfu/Citrix-VDIinabox
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Jump-pilot-devel mailing list
>>>>> Jump-pilot-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>>>> infrastructure or vast IT resources to deliver seamless, secure access to
>>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Jump-pilot-devel mailing list
>>>> Jump-pilot-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>> ------------------------------------------------------------------------------
>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>>> infrastructure or vast IT resources to deliver seamless, secure access to
>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>>> _______________________________________________
>>> Jump-pilot-devel mailing list
>>> Jump-pilot-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>> infrastructure or vast IT resources to deliver seamless, secure access to
>> virtual desktops. With this all-in-one solution, easily deploy virtual
>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to