Hi.

The problems seems to be related to this extension:

org.gvsig.copypastegeom.CopyFeaturesExtension  (enable method)

You can try to disable it in order to skip this error. To disable, go to "Window | Preferences", then "General" -> "Extensions" and search for org.gvsig.copypastegeom.CopyFeaturesExtension. Uncheck "Active Extension", close, and test again.

I guess the problem is related to a layer that cannot be open, so, is not "Available". This patch may correct the problem, in case you can apply it and recompile the extension.

Hope it helps.

Fran.

El 15/12/2011 22:19, Lucie Prunarová escribió:
Hi,
I have unexpected error when launching existing project after changing folder with layers. When I launche it, I have to change all the paths, but when I don't have the layer in the computer anymore or I don't want to import it and don't change the path, but only push cancel, the unexpected error appears. Sometimes at the moment, sometimes after open the project. I attach log file with the error. I use gvSIG 1.11, Windows 7, 32bit. The project was made in the same.

Do somebody know where could be the problem?

Thanks,
Lucie


_______________________________________________
Gvsig_internacional mailing list
[email protected]

To see the archives, edit your preferences or unsubscribe from this mailing 
list, please access this url:

http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional

--
Fran Peñarrubia
Scolab
www.scolab.es

Asociación gvSIG
www.gvsig.com

Index: build.number
===================================================================
--- build.number	(revision 10)
+++ build.number	(working copy)
@@ -1,3 +1,3 @@
 #Build Number for ANT. Do not edit!
-#Mon Nov 15 17:38:58 CET 2010
-build.number=2
+#Thu Jan 20 15:39:30 CET 2011
+build.number=4
Index: src/main/java/org/gvsig/copypastegeom/CopyFeaturesExtension.java
===================================================================
--- src/main/java/org/gvsig/copypastegeom/CopyFeaturesExtension.java	(revision 11)
+++ src/main/java/org/gvsig/copypastegeom/CopyFeaturesExtension.java	(working copy)
@@ -100,20 +100,22 @@
 			if (layer instanceof FLyrVect){
 				FLyrVect lyrVect = (FLyrVect)layer;
 				SelectableDataSource rs;
-			try {
-				rs = lyrVect.getRecordset();
-				if (rs != null) {
-					FBitSet selection = rs.getSelection();
-					if (!selection.isEmpty()) {
-						this.layer = (FLyrVect) layer;
-						return true;
+				try {
+					if (!lyrVect.isAvailable())
+						return false;
+					rs = lyrVect.getRecordset();
+					if (rs != null) {					
+						FBitSet selection = rs.getSelection();
+						if (!selection.isEmpty()){
+							this.layer = (FLyrVect) layer;
+							return true;
+						}
 					}
+				} catch (ReadDriverException e) {
+					NotificationManager.addWarning(
+							PluginServices.getText(this, "no_se_ha_podido_habilitar_la_herramienta"), e);
 				}
-			} catch (ReadDriverException e) {
-				NotificationManager.addWarning(PluginServices.getText(this,
-						"no_se_ha_podido_habilitar_la_herramienta"), e);
 			}
-			}
 		return false;
 	}
 
_______________________________________________
Gvsig_internacional mailing list
[email protected]

To see the archives, edit your preferences or unsubscribe from this mailing 
list, please access this url:

http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional

Reply via email to