Hi Michael,<div>thanks a lot, I found the error, there was really an item twice. I removed it, and it works again.</div><div><br></div><div>Cheers</div><div>Balz<br><br><div title="signature"> </div><div class="gmail_quote">
On Sun, Nov 20, 2011 at 12:52 PM, Michael Wechner <span dir="ltr"><<a href="mailto:michael.wechner@wyona.com">michael.wechner@wyona.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000">
Hi Balz<br>
<br>
Am 19.11.11 08:59, schrieb basZero:<div class="im"><br>
<blockquote type="cite">
<h4 style="font-family:'lucida grande',tahoma,verdana,arial,sans-serif;font-size:13px;text-align:left;background-color:rgb(255,255,255)">Stacktrace</h4>
<span>java.lang.Exception: Due
to an exception the request has been canceled. Exception
message: Item with the name already exists at </span></blockquote>
<br>
<br></div>
It seems that you use the an item name twice when you create the
ResourceInput inside the modify method.<br>
<br>
You might want to apply the following patch<br>
<br>
diff --git
a/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/ResourceInputImpl.java
b/resources/creatable-modifiable-deleta<br>
index 747b96c..c557e6d 100644<br>
---
a/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/ResourceInputImpl.java<br>
+++
b/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/ResourceInputImpl.java<br>
@@ -126,7 +126,7 @@ public class ResourceInputImpl implements
ResourceInput {<br>
for (Iterator i = items.iterator(); i.hasNext();) {<br>
ResourceInputItem toCheck = (ResourceInputItem)
i.next();<br>
if (toCheck.getName().equals(item.getName())) {<br>
- throw new IllegalArgumentException("Item with the
name already exists");<br>
+ throw new IllegalArgumentException("Item with the
name '" + item.getName() + "' already exists");<br>
}<br>
}<br>
<br>
inside <a href="mailto:git@github.com:wyona/yanel-contributions.git" target="_blank">git@github.com:wyona/yanel-contributions.git</a><br>
<br>
in order to find out which item name is causing this conflict.<br>
<br>
HTH<span class="HOEnZb"><font color="#888888"><br>
<br>
Michael</font></span><div class="im"><br>
<br>
<br>
<br>
<blockquote type="cite"><span style="font-family:'lucida grande',tahoma,verdana,arial,sans-serif;font-size:12px;background-color:rgb(255,255,255)">org.wyona.yanel.impl.resources.jellyadapterofcmdv3.JellyAdapterForCUDResource.getView(JellyAdapterForCUDResource.java:148)
at
org.wyona.yanel.servlet.YanelServlet.getContent(YanelServlet.java:599)
at
org.wyona.yanel.servlet.YanelServlet.doGet(YanelServlet.java:429)
at
org.wyona.yanel.servlet.YanelServlet.service(YanelServlet.java:333)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.wyona.yanel.servlet.communication.YanelFilter.doFilter(YanelFilter.java:37)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619) Caused by:
java.lang.IllegalArgumentException: Item with the name already
exists at
org.wyona.yanel.impl.jelly.ResourceInputImpl.add(ResourceInputImpl.java:109)
at
com.zwischengas.contentnode.ContentNodeResource.setUpTextFieldInputItem(ContentNodeResource.java:912)
at
com.zwischengas.editedarticle.EditedArticleResource.setUpAssetFields(EditedArticleResource.java:295)
at
com.zwischengas.editedarticle.EditedArticleResource.setUpEditionForm(EditedArticleResource.java:204)
at
com.zwischengas.contentnode.ContentNodeResource.getResourceInputForModification(ContentNodeResource.java:520)
at
org.wyona.yanel.impl.resources.jellyadapterofcmdv3.JellyAdapterForCUDResource.init(JellyAdapterForCUDResource.java:315)
at
org.wyona.yanel.impl.resources.jellyadapterofcmdv3.JellyAdapterForCUDResource.getView(JellyAdapterForCUDResource.java:76)
... 19 more</span>
<br>
<fieldset></fieldset>
<br>
</blockquote>
<br>
</div></div>
<br>--<br>
Yanel-development mailing list <a href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a><br>
<a href="http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development" target="_blank">http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development</a><br></blockquote></div><br></div>