[Yanel-dev] Strange Jelly v3 Error
Michael Wechner
michael.wechner at wyona.com
Tue Nov 22 23:07:13 CET 2011
Am 22.11.11 16:11, schrieb basZero:
> Hi Michael,
> thanks a lot, I found the error, there was really an item twice. I
> removed it, and it works again.
cool, good to know :-)
Michael
>
> Cheers
> Balz
>
> On Sun, Nov 20, 2011 at 12:52 PM, Michael Wechner
> <michael.wechner at wyona.com <mailto:michael.wechner at wyona.com>> wrote:
>
> Hi Balz
>
> Am 19.11.11 08:59, schrieb basZero:
>
>>
>> Stacktrace
>>
>> java.lang.Exception: Due to an exception the request has been
>> canceled. Exception message: Item with the name already exists at
>
>
> It seems that you use the an item name twice when you create the
> ResourceInput inside the modify method.
>
> You might want to apply the following patch
>
> diff --git
> a/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/ResourceInputImpl.java
> b/resources/creatable-modifiable-deleta
> index 747b96c..c557e6d 100644
> ---
> a/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/ResourceInputImpl.java
> +++
> b/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/ResourceInputImpl.java
> @@ -126,7 +126,7 @@ public class ResourceInputImpl implements
> ResourceInput {
> for (Iterator i = items.iterator(); i.hasNext();) {
> ResourceInputItem toCheck = (ResourceInputItem) i.next();
> if (toCheck.getName().equals(item.getName())) {
> - throw new IllegalArgumentException("Item with the
> name already exists");
> + throw new IllegalArgumentException("Item with the
> name '" + item.getName() + "' already exists");
> }
> }
>
> inside git at github.com:wyona/yanel-contributions.git
> <mailto:git at github.com:wyona/yanel-contributions.git>
>
> in order to find out which item name is causing this conflict.
>
> HTH
>
> Michael
>
>
>
>
>> 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
>>
>>
>
>
> --
> Yanel-development mailing list Yanel-development at wyona.com
> <mailto:Yanel-development at wyona.com>
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20111122/8e10c6d9/attachment-0001.html>
More information about the Yanel-development
mailing list