« Return to Thread: MixedParamUrlCodingStrategy IllegalArgumentException: "Too many path parts" due to some javascript

MixedParamUrlCodingStrategy IllegalArgumentException: "Too many path parts" due to some javascript

by Daniele Dellafiore :: Rate this Message:

Reply to Author | View in Thread

Hi everyone. I have integrated highslide JS to my application (well,
the web designer did). Now I have a wicket Page with, in wicket:head

   <script type="text/javascript">
      hs.registerOverlay({
          overlayId: 'closebutton',
          position: 'top right',
          fade: 2 // fading the semi-transparent overlay looks bad in IE
      });


      hs.graphicsDir = 'highslide/graphics/';
      hs.wrapperClassName = 'borderless';
   </script>

now when I load the page I receive a

WARN  - DataRequestCycle           - Handling exception for request
[RequestCycle@15efa6a thread=3737059@qtp-18621578-3], exception:
java.lang.IllegalArgumentException: 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:178)


debugging the decodeParameters method, I get that the two parameters
have these values:

urlFragment
         (java.lang.String) /highslide/graphics/outlines/drop-shadow.png
urlParameters
         (java.util.HashMap<K,V>) {}

Now, I do not understand perfectly how this stuff works, I just did
not expect any javascript to interfer with my URL strategy but it
does.
You have any suggestion?

Ah, everything works perfectly, I just I have this exception.

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

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

 « Return to Thread: MixedParamUrlCodingStrategy IllegalArgumentException: "Too many path parts" due to some javascript