[Mapbender-users] Adding WMS Layer causes Symfony Routing Exception

Christian Jacobs christian.jacobs at hs-bochum.de
Wed May 17 05:00:34 PDT 2017




Hello,

I installed Mapbender3-3.0.6.0 on Windows and the Configuration seems to be OK.
I can create new Applications, add new Sources etc.

Also adding one of the preconfigured WMS (osm, osm2, ...) to an Application is no problem. But when adding a own Geoserver WMS to a Layerset of any kind, I got an Exception in Symfony. 

Exception:
Parameter "instanceId" for route "mapbender_core_application_instancetunnel" must match "[^/]++" ("" given) to generate a corresponding URL.
500 Internal Server Error - InvalidParameterException

 
 
Hole Stack Trace

[1] Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "instanceId" for route "mapbender_core_application_instancetunnel" must match "[^/]++" ("" given) to generate a corresponding URL. at n/a in C:\mapbender3\app\cache\dev\classes.php line 926 at Symfony\Component\Routing\Generator\UrlGenerator->doGenerate(array('slug', 'instanceId'), array('_controller' => 'Mapbender\CoreBundle\Controller\ApplicationController::instanceTunnelAction'), array(), array(array('text', '/tunnel'), array('variable', '/', '[^/]++', 'instanceId'), array('text', '/instance'), array('variable', '/', '[^/]++', 'slug'), array('text', '/application')), array('slug' => 'Baum_FS', 'instanceId' => null, 'legendurl' => 'http://localhost:8080/geoserver/Botrange/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=Arbres_shp'), 'mapbender_core_application_instancetunnel', '0', array(), array()) in C:\mapbender3\app\cache\dev\appDevDebugProjectContainerUrlGenerator.php line 156 at appDevDebugProjectContainerUrlGenerator->generate('mapbender_core_application_instancetunnel', array('slug' => 'Baum_FS', 'instanceId' => null, 'legendurl' => 'http://localhost:8080/geoserver/Botrange/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=Arbres_shp'), '0') in C:\mapbender3\app\cache\dev\classes.php line 1291 at Symfony\Component\Routing\Router->generate('mapbender_core_application_instancetunnel', array('slug' => 'Baum_FS', 'instanceId' => null, 'legendurl' => 'http://localhost:8080/geoserver/Botrange/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=Arbres_shp'), '0') in C:\mapbender3\mapbender\src\Mapbender\WmsBundle\Component\WmsInstanceLayerEntityHandler.php line 318 at Mapbender\WmsBundle\Component\WmsInstanceLayerEntityHandler->checkLegendViaTunnel('http://localhost:8080/geoserver/Botrange/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=Arbres_shp') in C:\mapbender3\mapbender\src\Mapbender\WmsBundle\Component\WmsInstanceLayerEntityHandler.php line 255 at Mapbender\WmsBundle\Component\WmsInstanceLayerEntityHandler->getConfiguration() in C:\mapbender3\mapbender\src\Mapbender\WmsBundle\Component\WmsInstanceLayerEntityHandler.php line 198 at Mapbender\WmsBundle\Component\WmsInstanceLayerEntityHandler->generateConfiguration() in C:\mapbender3\mapbender\src\Mapbender\WmsBundle\Component\WmsInstanceLayerEntityHandler.php line 192 at Mapbender\WmsBundle\Component\WmsInstanceLayerEntityHandler->generateConfiguration() in C:\mapbender3\mapbender\src\Mapbender\WmsBundle\Component\WmsInstanceEntityHandler.php line 361 at Mapbender\WmsBundle\Component\WmsInstanceEntityHandler->generateConfiguration() in C:\mapbender3\mapbender\src\Mapbender\WmsBundle\Component\WmsSourceEntityHandler.php line 72 at Mapbender\WmsBundle\Component\WmsSourceEntityHandler->createInstance(object(Layerset)) in C:\mapbender3\mapbender\src\Mapbender\ManagerBundle\Controller\ApplicationController.php line 738 at Mapbender\ManagerBundle\Controller\ApplicationController->addInstanceAction('Baum_FS', '6', '6', object(Request)) in line at call_user_func_array(array(object(ApplicationController), 'addInstanceAction'), array('Baum_FS', '6', '6', object(Request))) in C:\mapbender3\app\bootstrap.php.cache line 3247 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in C:\mapbender3\app\bootstrap.php.cache line 3206 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in C:\mapbender3\app\bootstrap.php.cache line 3360 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in C:\mapbender3\app\bootstrap.php.cache line 2562 at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) in C:\mapbender3\web\app_dev.php line 28
Apparently it has something to do with the Database but I can not find the 
"mapbender_core_application_instancetunnel" field. Any thoughts on that?

Furthermore I can only find those preinstalled .yml files in the app/config/applications directory. Also additional added .yml files don't appear automatically in the Application Interface. What am I doing wrong or where are the .yml files for self created Applications stored? 

Thank you in advance
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20170517/b503fb35/attachment.html>


More information about the Mapbender_users mailing list