Do you get this error in firefox? Can you try with IE? This looks like a problem I usually have with wicket ajax functionality in gecko based browsers..


Doug Leeper wrote:
I am trying to get the latest GMap2 in wicketstuff to work with Wicket 1.3.4
(can't upgrade to 1.4 just yet)

As the mvn repository only is applicable to 1.4, I downloaded the sources
and adjusted the two places that would not compile (both specifically
dealing with generics)

However, when I run my application, I am trying to pop up a Modal window
with a GMap2 instance in it. When I click the AjaxLink and show the window,
I get the following error in my console:

java.io.IOException: The filename, directory name, or volume label syntax is
incorrect
        at java.io.WinNTFileSystem.canonicalize0(Native Method)
        at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:395)
        at java.io.File.getCanonicalPath(File.java:531)
        at org.mortbay.resource.FileResource.getAlias(FileResource.java:184)
        at
org.mortbay.jetty.servlet.DefaultServlet.getResource(DefaultServlet.java:275)
        at 
org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:375)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
        at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:246)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
        at
com.positiontech.hib.HibernateFilter$$M$1a2d7b4a.doFilter(HibernateFilter.java:67)
        at 
com.positiontech.hib.HibernateFilter$$A$1a2d7b4a.doFilter(<generated>)
        at com.positiontech.hib.HibernateFilter.doFilter(<generated>)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:295)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

When I view the Ajax Debug Console, it contains the following information:


INFO: focus set on INFO: focus removed from INFO: focus set on setTargets15
INFO: Using XMLHttpRequest transport
INFO:
INFO: Initiating Ajax GET request on
?wicket:interface=:4:contractForm:advertising:setTargets::IBehaviorListener:0:&random=0.5156089011856273
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (4665 characters)
INFO:
<?xml version="1.0" encoding="UTF-8"?><ajax-response><header-contribution
encoding="wicket1" ><![CDATA[<head
xmlns:wicket="http://wicket.apache.org";><script type="text/javascript"
src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"></script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js"></script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
<script type="text/javascript"
id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true;
/*-->]^]^>*/</script>

<script type="text/javascript"
src="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js"></script>
<link rel="stylesheet" type="text/css"
href="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css"
/>
<script type="text/javascript"
src="http://www.google.com/jsapi?key=ABQIAAAAzaZpf6nHOd9w1PfLaM9u2xQRS2YPSd8S9D1NKPBvdB1fr18_CxR-svEYj6URCf5QDFq3i03mqrDlbA";></script>
<script type="text/javascript"
id="wicket.contrib.gmap.GMapHeaderContributor_googleload"><!--/*--><![CDATA[/*><!--*/
google.load("maps", "2.x");
/*-->]^]^>*/</script>

<script type="text/javascript"
src="resources/wicket.contrib.gmap.GMap2/wicket-gmap.js"></script>
<script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "onUnload", function() { google.maps.Unload();;});
/*-->]^]^>*/</script>

</head>]]></header-contribution><component id="modalWindow16" ><![CDATA[<div
style="display:none" id="modalWindow16">
    <div id="content1b">
    <center>
    <div class="errors" id="feedback1d">
</div>
    <div>

    <table width="100%">
        <tr valign="top">
            <td>
            <div></div>
            <div></div>
            </td>
            <td>
            <div>
    <table>
        <tr>
            <td>
            <div style="width: 500px; height: 350px;" id="map1e">
    <div style="display:none" id="infoWindow1f">
&nbsp;
    </div>
    <div class="gmap" style="width: 100%; height: 100%; position: relative;"
id="map1c"></div>
</div>
            </td>
            <td id="repeaterParent20">
</td>
        </tr>
    </table>
</div>
            </td>
        </tr>
    </table>

</div>
    <div class="goButtonBox"><input value="Done" type="button" onclick="var
wcall=wicketAjaxGet('?wicket:interface=:4:contractForm:advertising:modalWindow:content:done::IBehaviorListener:0:-1',null,null,
function() {return Wicket.$('done21') != null;}.bind(this));return !wcall;"
id="done21"> <input value="Cancel" type="button" onclick="var
wcall=wicketAjaxGet('?wicket:interface=:4:contractForm:advertising:modalWindow:content:cancel::IBehaviorListener:0:-1',null,null,
function() {return Wicket.$('cancel22') != null;}.bind(this));return
!wcall;" id="cancel22"></div>
    </center>
</div>
</div>]]></component><evaluate encoding="wicket1"><![CDATA[new
WicketMap2('map1c');
Wicket.maps['map1c']^.overlayListenerCallbackUrl =
'?wicket:interface=:4:contractForm:advertising:modalWindow:content:location:mapContainer:map::IActivePageBehaviorListener:2:-1&amp;wicket:ignoreIfNotActive=true';
Wicket.maps['map1c']^.setCenter(new GLatLng(37.4419, -122.1419, false));
Wicket.maps['map1c']^.setZoom(13);
Wicket.maps['map1c']^.setDraggingEnabled(true);
Wicket.maps['map1c']^.setDoubleClickZoomEnabled(false);
Wicket.maps['map1c']^.setScrollWheelZoomEnabled(false);
Wicket.maps['map1c']^.setMapType(G_NORMAL_MAP);
Wicket.maps['map1c']^.addControl('GLargeMapControl', new
GLargeMapControl());
Wicket.maps['map1c']^.addListener('click',
'?wicket:interface=:4:contractForm:advertising:modalWindow:content:location:mapContainer:map::IActivePageBehaviorListener:3:-1&amp;wicket:ignoreIfNotActive=true');
]]></evaluate><evaluate><![CDATA[var element =
document.getElementById("content1b");
var settings = new Object();
settings.minWidth=200;
settings.minHeight=200;
settings.className="w_silver";
settings.width="700";
settings.height="400";
settings.resizable=false;
settings.widthUnit="px";
settings.heightUnit="px";
settings.element = element;
settings.title="Change Location Targets";
settings.mask="semi-transparent";
settings.onClose = function() { var
wcall=wicketAjaxGet('?wicket:interface=:4:contractForm:advertising:modalWindow::IBehaviorListener:1:-1',null,null,
function() {return Wicket.$('modalWindow16') != null;}.bind(this)); };
settings.onCloseButton = function() { var
wcall=wicketAjaxGet('?wicket:interface=:4:contractForm:advertising:modalWindow::IBehaviorListener:0:-1',null,null,
function() {return Wicket.$('modalWindow16') != null;}.bind(this));return
!wcall;};
Wicket.Window.create(settings).show();
]]></evaluate></ajax-response>
INFO: Response parsed. Now invoking steps...
INFO:
INFO: Initiating Ajax GET request on
http://www.google.com/jsapi?key=ABQIAAAAzaZpf6nHOd9w1PfLaM9u2xQRS2YPSd8S9D1NKPBvdB1fr18_CxR-svEYj6URCf5QDFq3i03mqrDlbA
INFO: Invoking pre-call handler(s)...
ERROR: Received Ajax response with code: 404
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
INFO: focus removed from setTargets15

I appears that
http://www.google.com/jsapi?key=ABQIAAAAzaZpf6nHOd9w1PfLaM9u2xQRS2YPSd8S9D1NKPBvdB1fr18_CxR-svEYj6URCf5QDFq3i03mqrDlbA
is returning a 404 in the Ajax call.  However, when I copy paste the code
into a browser...it works.

I then stepped through the Debugger to see what the real request was and I
believe I am seeing

/local/http://www.google.com/jsapi?key=ABQIAAAAzaZpf6nHOd9w1PfLaM9u2xQRS2YPSd8S9D1NKPBvdB1fr18_CxR-svEYj6URCf5QDFq3i03mqrDlbA

which is invalid.  I paste that in the browser and I do get the offending
error message when I see in the console.

So I am not sure if this is a GMap2 issue or is it a Wicket Ajax issue.

I guess my real question is...does anyone know how to fix this? or where I
should look to fix this?

Thanks
- Doug






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to