summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2011-01-10 03:53:11 (EST)
committerCaspar De Groot2011-01-10 03:53:11 (EST)
commitf21e8ae2c58c7f32c40079cb22809095bd466dd4 (patch)
tree8c11b3b88e28782a998d0817abd12081957c4750
parent225efbd0aaae25da24ad2040ddd20b59aacb63e4 (diff)
downloadcdo-f21e8ae2c58c7f32c40079cb22809095bd466dd4.zip
cdo-f21e8ae2c58c7f32c40079cb22809095bd466dd4.tar.gz
cdo-f21e8ae2c58c7f32c40079cb22809095bd466dd4.tar.bz2
[333838] [CDO] URI of the resource ... does not match the nsURI ... of the top-level package
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333838
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/model/CDOModelUtil.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/model/CDOModelUtil.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/model/CDOModelUtil.java
index 79182d7..835c042 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/model/CDOModelUtil.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/model/CDOModelUtil.java
@@ -514,7 +514,10 @@ public final class CDOModelUtil
String resourceURI = refTarget.eResource().getURI().toString();
if (!resourceURI.toString().equals(pkg.getNsURI()))
{
- String msg = "URI of the resource (%s) does not match the nsURI (%s) of the top-level package";
+ String msg = "URI of the resource (%s) does not match the nsURI (%s) of the top-level package;\n"
+ + "this can be fixed by calling Resource.setURI(URI) after loading the packages,\n"
+ + "or by configuring a URI mapping from nsURI's to location URI's before loading the packages,\n"
+ + "and then loading them with their nsURI's";
msg = String.format(msg, resourceURI, pkg.getNsURI());
throw new IllegalStateException(msg);
}