You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Bas Vroling <bv...@cmbi.ru.nl> on 2009/07/02 10:36:19 UTC

Too many path parts in page parameters

I have a page which takes one parameter ('id') and build itself from  
there. In the debugger it shows that only one parameter is passed, and  
the constructor of the page runs without problems. Somewhere further  
down the line however an exception is thrown:

ERROR - RequestCycle               - Too many path parts, please  
provide sufficient number of path parameter names
java.lang.IllegalArgumentException: Too many path parts, please  
provide sufficient number of path parameter names
	at  
org 
.apache 
.wicket 
.request 
.target 
.coding 
.MixedParamUrlCodingStrategy 
.decodeParameters(MixedParamUrlCodingStrategy.java:167)

The page is loaded ok, although the markup is changed (references to  
css files are prepended with '../' for some weird reason) and all  
panels are there and working.

Any ideas?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Too many path parts in page parameters

Posted by Daniele Dellafiore <il...@gmail.com>.
hi.

I have not tried yet cause is not high priority form me now, but as
long as Igor is right, I expect that the Strategy does not play well
with non absolute URL so you can just change the img src URL.

On Fri, Jul 3, 2009 at 9:19 AM, Bas Vroling<bv...@cmbi.ru.nl> wrote:
> After removing all the highslide code, that is not the only thing that goes
> wrong. In my html file I have a panel containing this:
>
> <h3>Data<a href="#" wicket:id="toggleDataPanel"><img
> src="img/plus01.gif"/></a></h3>
>
> the mixedParamUrlCodingStrategy trips on that too, and I can't see why this
> doesn't work...
>
> On 2 Jul, at 17:54, Igor Vaynberg wrote:
>
>> your highslide js is making those requests, you may have to change it
>> to request images via absolute urls
>>
>> -igor
>>
>> On Thu, Jul 2, 2009 at 7:22 AM, Bas Vroling<bv...@cmbi.ru.nl> wrote:
>>>
>>> I ran the debugger, and the urlPath the mixedParamUrlCodingStrategy gets
>>> served is "/img/info01.gif", which does not make sense. This is just an
>>> image and nowhere is there a request to open up a new page... After that,
>>> it
>>> goes to parse "/highslide/graphics/outlines/rounded-white.png" , then one
>>> more and then it renders.
>>>
>>> Any ideas?
>>>
>>>
>>> On 2 Jul, at 14:42, Daniele Dellafiore wrote:
>>>
>>>> as you can see I posted a similar issue.
>>>>
>>>> you can start debugging the strategy to see the values of parameters.
>>>>
>>>> On Thu, Jul 2, 2009 at 10:36 AM, Bas Vroling<bv...@cmbi.ru.nl> wrote:
>>>>>
>>>>> I have a page which takes one parameter ('id') and build itself from
>>>>> there.
>>>>> In the debugger it shows that only one parameter is passed, and the
>>>>> constructor of the page runs without problems. Somewhere further down
>>>>> the
>>>>> line however an exception is thrown:
>>>>>
>>>>> ERROR - RequestCycle               - Too many path parts, please
>>>>> provide
>>>>> sufficient number of path parameter names
>>>>> java.lang.IllegalArgumentException: Too many path parts, please provide
>>>>> sufficient number of path parameter names
>>>>>      at
>>>>>
>>>>>
>>>>> org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:167)
>>>>>
>>>>> The page is loaded ok, although the markup is changed (references to
>>>>> css
>>>>> files are prepended with '../' for some weird reason) and all panels
>>>>> are
>>>>> there and working.
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Daniele Dellafiore
>>>> http://blog.ildella.net
>>>> http://twitter.com/ildella
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Too many path parts in page parameters

Posted by Bas Vroling <bv...@cmbi.ru.nl>.
After removing all the highslide code, that is not the only thing that  
goes wrong. In my html file I have a panel containing this:

<h3>Data<a href="#" wicket:id="toggleDataPanel"><img src="img/ 
plus01.gif"/></a></h3>

the mixedParamUrlCodingStrategy trips on that too, and I can't see why  
this doesn't work...

On 2 Jul, at 17:54, Igor Vaynberg wrote:

> your highslide js is making those requests, you may have to change it
> to request images via absolute urls
>
> -igor
>
> On Thu, Jul 2, 2009 at 7:22 AM, Bas Vroling<bv...@cmbi.ru.nl>  
> wrote:
>> I ran the debugger, and the urlPath the mixedParamUrlCodingStrategy  
>> gets
>> served is "/img/info01.gif", which does not make sense. This is  
>> just an
>> image and nowhere is there a request to open up a new page... After  
>> that, it
>> goes to parse "/highslide/graphics/outlines/rounded-white.png" ,  
>> then one
>> more and then it renders.
>>
>> Any ideas?
>>
>>
>> On 2 Jul, at 14:42, Daniele Dellafiore wrote:
>>
>>> as you can see I posted a similar issue.
>>>
>>> you can start debugging the strategy to see the values of  
>>> parameters.
>>>
>>> On Thu, Jul 2, 2009 at 10:36 AM, Bas Vroling<bv...@cmbi.ru.nl>  
>>> wrote:
>>>>
>>>> I have a page which takes one parameter ('id') and build itself  
>>>> from
>>>> there.
>>>> In the debugger it shows that only one parameter is passed, and the
>>>> constructor of the page runs without problems. Somewhere further  
>>>> down the
>>>> line however an exception is thrown:
>>>>
>>>> ERROR - RequestCycle               - Too many path parts, please  
>>>> provide
>>>> sufficient number of path parameter names
>>>> java.lang.IllegalArgumentException: Too many path parts, please  
>>>> provide
>>>> sufficient number of path parameter names
>>>>       at
>>>>
>>>> org 
>>>> .apache 
>>>> .wicket 
>>>> .request 
>>>> .target 
>>>> .coding 
>>>> .MixedParamUrlCodingStrategy 
>>>> .decodeParameters(MixedParamUrlCodingStrategy.java:167)
>>>>
>>>> The page is loaded ok, although the markup is changed (references  
>>>> to css
>>>> files are prepended with '../' for some weird reason) and all  
>>>> panels are
>>>> there and working.
>>>>
>>>> Any ideas?
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Daniele Dellafiore
>>> http://blog.ildella.net
>>> http://twitter.com/ildella
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Too many path parts in page parameters

Posted by Igor Vaynberg <ig...@gmail.com>.
your highslide js is making those requests, you may have to change it
to request images via absolute urls

-igor

On Thu, Jul 2, 2009 at 7:22 AM, Bas Vroling<bv...@cmbi.ru.nl> wrote:
> I ran the debugger, and the urlPath the mixedParamUrlCodingStrategy gets
> served is "/img/info01.gif", which does not make sense. This is just an
> image and nowhere is there a request to open up a new page... After that, it
> goes to parse "/highslide/graphics/outlines/rounded-white.png" , then one
> more and then it renders.
>
> Any ideas?
>
>
> On 2 Jul, at 14:42, Daniele Dellafiore wrote:
>
>> as you can see I posted a similar issue.
>>
>> you can start debugging the strategy to see the values of parameters.
>>
>> On Thu, Jul 2, 2009 at 10:36 AM, Bas Vroling<bv...@cmbi.ru.nl> wrote:
>>>
>>> I have a page which takes one parameter ('id') and build itself from
>>> there.
>>> In the debugger it shows that only one parameter is passed, and the
>>> constructor of the page runs without problems. Somewhere further down the
>>> line however an exception is thrown:
>>>
>>> ERROR - RequestCycle               - Too many path parts, please provide
>>> sufficient number of path parameter names
>>> java.lang.IllegalArgumentException: Too many path parts, please provide
>>> sufficient number of path parameter names
>>>       at
>>>
>>> org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:167)
>>>
>>> The page is loaded ok, although the markup is changed (references to css
>>> files are prepended with '../' for some weird reason) and all panels are
>>> there and working.
>>>
>>> Any ideas?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Daniele Dellafiore
>> http://blog.ildella.net
>> http://twitter.com/ildella
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Too many path parts in page parameters

Posted by Bas Vroling <bv...@cmbi.ru.nl>.
I ran the debugger, and the urlPath the mixedParamUrlCodingStrategy  
gets served is "/img/info01.gif", which does not make sense. This is  
just an image and nowhere is there a request to open up a new page...  
After that, it goes to parse "/highslide/graphics/outlines/rounded- 
white.png" , then one more and then it renders.

Any ideas?


On 2 Jul, at 14:42, Daniele Dellafiore wrote:

> as you can see I posted a similar issue.
>
> you can start debugging the strategy to see the values of parameters.
>
> On Thu, Jul 2, 2009 at 10:36 AM, Bas Vroling<bv...@cmbi.ru.nl>  
> wrote:
>> I have a page which takes one parameter ('id') and build itself  
>> from there.
>> In the debugger it shows that only one parameter is passed, and the
>> constructor of the page runs without problems. Somewhere further  
>> down the
>> line however an exception is thrown:
>>
>> ERROR - RequestCycle               - Too many path parts, please  
>> provide
>> sufficient number of path parameter names
>> java.lang.IllegalArgumentException: Too many path parts, please  
>> provide
>> sufficient number of path parameter names
>>        at
>> org 
>> .apache 
>> .wicket 
>> .request 
>> .target 
>> .coding 
>> .MixedParamUrlCodingStrategy 
>> .decodeParameters(MixedParamUrlCodingStrategy.java:167)
>>
>> The page is loaded ok, although the markup is changed (references  
>> to css
>> files are prepended with '../' for some weird reason) and all  
>> panels are
>> there and working.
>>
>> Any ideas?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
>
> -- 
> Daniele Dellafiore
> http://blog.ildella.net
> http://twitter.com/ildella
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Too many path parts in page parameters

Posted by Daniele Dellafiore <il...@gmail.com>.
as you can see I posted a similar issue.

you can start debugging the strategy to see the values of parameters.

On Thu, Jul 2, 2009 at 10:36 AM, Bas Vroling<bv...@cmbi.ru.nl> wrote:
> I have a page which takes one parameter ('id') and build itself from there.
> In the debugger it shows that only one parameter is passed, and the
> constructor of the page runs without problems. Somewhere further down the
> line however an exception is thrown:
>
> ERROR - RequestCycle               - Too many path parts, please provide
> sufficient number of path parameter names
> java.lang.IllegalArgumentException: Too many path parts, please provide
> sufficient number of path parameter names
>        at
> org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:167)
>
> The page is loaded ok, although the markup is changed (references to css
> files are prepended with '../' for some weird reason) and all panels are
> there and working.
>
> Any ideas?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org