Issue Details (XML | Word | Printable)

Key: UDIG-1412
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Unassigned
Reporter: Andrea Antonello
Votes: 0
Watchers: 0
Available Workflow Actions

Verify Issue
Operations

If you were logged in you would be able to see more operations.
uDIG

IllegalArgumentException on new layer creation

Created: 22/Aug/08 06:51 AM   Updated: 22/May/09 06:22 PM
Component/s: framework
Affects Version/s: UDIG 1.2.M0
Fix Version/s: UDIG 1.2.M5, UDIG 1.1.2

Environment: linux ubuntu


 Description  « Hide
I found a problem creating a new shapefile in uDig-trunk.
Simply go in the menu -> layer -> create nothing happens and returns the attached error.

Just to report it...

Is here the right place where to report the uDig-trunk bugs? or should I do something else Thanks in advance - Silvia

java.lang.IllegalArgumentException: null is not an existing attribute descriptor in this builder
at org.geotools.feature.simple.SimpleFeatureTypeBuilder.remove(SimpleFeatureTypeBuilder.java:685)
at net.refractions.udig.project.ui.internal.actions.NewLayerAction.setDefaultGeomType(NewLayerAction.java:124)
at net.refractions.udig.project.ui.internal.actions.NewLayerAction.runWithEvent(NewLayerAction.java:78)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Jody Garnett added a comment - 02/Sep/08 03:10 PM
Here is fine; I will have a look.

Andrea Antonello added a comment - 02/Sep/08 04:25 PM
I have the problem also on macosx.
Select a layer from the loaded ones and hit layer->create:

java.lang.IllegalArgumentException: null is not an existing attribute descriptor in this builder etc etc

Instead if no layer is selected, the dialog opens. But, try to change the type of name to double. I get:

java.lang.ClassCastException: java.lang.String
at net.refractions.udig.ui.FeatureTypeEditor$AttributeCellModifier.createNewAttributeType(FeatureTypeEditor.java:680)
at net.refractions.udig.ui.FeatureTypeEditor$AttributeCellModifier.modify(FeatureTypeEditor.java:659)
at org.eclipse.jface.viewers.ColumnViewer$2.setValue(ColumnViewer.java:274)
at org.eclipse.jface.viewers.EditingSupport.saveCellEditorValue(EditingSupport.java:109)
at org.eclipse.jface.viewers.ColumnViewerEditor.saveEditorValue(ColumnViewerEditor.java:454)
at org.eclipse.jface.viewers.ColumnViewerEditor.applyEditorValue(ColumnViewerEditor.java:311)
at org.eclipse.jface.viewers.ColumnViewerEditor$3.focusLost(ColumnViewerEditor.java:215)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:137)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
at org.eclipse.swt.custom.CCombo.handleFocus(CCombo.java:816)
at org.eclipse.swt.custom.CCombo$3.handleEvent(CCombo.java:135)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1130)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1560)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1566)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2938)
at org.eclipse.swt.widgets.Control.kEventControlSetFocusPart(Control.java:2061)
at org.eclipse.swt.widgets.Composite.kEventControlSetFocusPart(Composite.java:533)
at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:374)
at org.eclipse.swt.widgets.Display.controlProc(Display.java:862)
at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method)
at org.eclipse.swt.widgets.Tree.kEventMouseDown(Tree.java:2599)
at org.eclipse.swt.widgets.Widget.mouseProc(Widget.java:1326)
at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2925)
at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3047)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at net.refractions.udig.ui.FeatureTypeEditorDialog.open(FeatureTypeEditorDialog.java:184)
at net.refractions.udig.project.ui.internal.actions.NewLayerAction.runWithEvent(NewLayerAction.java:81)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3474)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3064)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at net.refractions.udig.internal.ui.UDIGApplication.start(UDIGApplication.java:82)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Jody Garnett added a comment - 04/Sep/08 11:01 AM
From email:

still have problem with the Layer -> create:
- nothing will appear if it is selected an existing layer
- if you have selected in the layer view a non shapefile layer the tool works except for that it has the default projection WGS84

Jody Garnett added a comment - 04/Sep/08 11:02 AM
I was able to fix the handling of java Bindings; now only the add/remove attribute buttons fail for me.

Jody Garnett added a comment - 14/Mar/09 10:36 PM
bug brought forward to UDIG1.2.M4 visibility