uDIG

Multiple UdigTransaction seen in the wild

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: UDIG 1.2.M0
  • Fix Version/s: UDIG 1.2.M4
  • Component/s: framework
  • Labels:
    None

Description

This one is preventing development and debugging of our ArcSDE support. We can step through in the debugger and see:

  • the ArcSDE FeatureSource (used by the renderer) use one UdigTransaction; while
  • the ArcSDE FeatureStore (used by edit tools) use another UdigTransaction!

I am going to apply the following hack to BasicFeatureRenderer in order to mask this problem; long term solution needed:

FeatureSource featureSource;
		featureSource = layer.getResource(
				FeatureStore.class, new SubProgressMonitor(monitor, 0));
		if( featureSource == null ){
		    featureSource = layer.getResource(
	                FeatureSource.class, new SubProgressMonitor(monitor, 0));
		}

The above code forces the renderer to try asking for a FeatureStore first, this should not be needed it is a HACK and can be removed when we have verified that the "interceptors" are only making a single UdigTransaction.

Activity

Hide
Jody Garnett added a comment -
I have been unable to think of a better fix then what is outlined above.
Show
Jody Garnett added a comment - I have been unable to think of a better fix then what is outlined above.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: