geoserver and geomajas working sample

Can some one provide working sample of xml configuration files?

geoserver has the sf:roads layer.

 

Thanks

What exactly are you trying

What exactly are you trying to accomplish?

Do you want to use Geoserver to provide you with a WFS or a WMS layer? Do you want to get the roads shapefile to work directly into Geomajas?

I'm afraid I will need some more information....

Hi, Basically I want to

Hi,

Basically I want to display mxd(Arcgis) files on the website. The mxd file contains shapefiles and mrsid raster files.

And I am going to upload mrsid and shapefile to Geoserver and then display it using Geomajas.

*.sld (style) files also will be upploaded into Geomajas.

So I want to use Geoserver as WFS(shapefiles) and WMS(*.sid raster image using plugin).

I need working sample configuration to work with shapefiles from Geoserver and display it in Geomajas. I have tried but no success(GeoTools).

Also is it possible work with Layer Group located in Geoserver? 

What do you think about this solution displaying mxd files on the website?

No success

I have tried using these documentations but no success.

Please, provide sample work with Geoserver shapefile layer.

 

Thanks

Can you show the

Can you show the configuration you tried and indicate what was going wrong with them?

Which version of Geomajas are you using?

 

Kind regards,

Joachim

Configuration

Hi, Joachim

I have tried use Geoserver sample vector map sf:roads. Geoserver runs in localhost. (http://localhost:8080/geoserver)

Thank you your help.

 

Configurations are:

applicationContext.xml:

    <bean name="simpleDatastore" class="org.geomajas.layer.geotools.DataStoreFactory" factory-method="create">
        <constructor-arg>
            <map>
           
                <entry key="WFSDataStoreFactory:GET_CAPABILITIES_URL" value="http://localhost:8080/geoserver/wfs?REQUEST=GetCapabilities&amp;version=1.0.0"/>
                <entry key="WFSDataStoreFactory:TIMEOUT" value="3000" />
                <entry key="WFSDataStoreFactory:VERSION" value="1.0.0" />
            </map>
        </constructor-arg>
    </bean>

    <tx:annotation-driven proxy-target-class="true" transaction-manager="transactionManager" />

    <bean id="transactionManager" class="org.geomajas.layer.geotools.GeoToolsTransactionManager">
    </bean>

 

mapLegend.xml:

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd">

    <bean name="legendMap" class="org.geomajas.configuration.client.ClientMapInfo">
        <property name="backgroundColor" value="#FFFFFF" />
        <property name="lineSelectStyle">
            <bean class="org.geomajas.configuration.FeatureStyleInfo">
            </bean>
        </property>
        <property name="pointSelectStyle">
            <bean class="org.geomajas.configuration.FeatureStyleInfo">
            </bean>
        </property>
        <property name="polygonSelectStyle">
            <bean class="org.geomajas.configuration.FeatureStyleInfo">
            </bean>
        </property>
        <property name="crs" value="EPSG:900913" />
        <property name="scaleBarEnabled" value="true" />
        <property name="panButtonsEnabled" value="true" />
        <property name="maximumScale" value="50000" />
        <property name="initialBounds">
            <bean class="org.geomajas.geometry.Bbox">
                <property name="x" value="-5000000" />
                <property name="y" value="-6000000" />
                <property name="width" value="12000000" />
                <property name="height" value="12000000" />
            </bean>
        </property>
        <property name="layers">
            <list>
                <!--
                <ref bean="osmLayer" />
                <ref bean="riversLayer" />
                <ref bean="lakesLayer" />
                -->
                <ref bean="roads2Layer" />
               
            </list>
        </property>
        <property name="layerTree">
            <bean name="legendMapTree"
                class="org.geomajas.configuration.client.ClientLayerTreeInfo">
                <property name="tools">
                    <list>
                        <ref bean="LayerVisibleTool" />
                        <ref bean="LayerLabeledTool" />
                        <ref bean="ShowTableAction" />
                        <ref bean="LayerRefreshAction" />
                    </list>
                </property>
                <property name="treeNode">
                    <bean class="org.geomajas.configuration.client.ClientLayerTreeNodeInfo">
                        <property name="label" value="Layers" />
                        <property name="layers">
                            <list>
                                <!--
                                <ref bean="osmLayer" />
                                <ref bean="riversLayer" />
                                <ref bean="lakesLayer" />
                                -->
                                <ref bean="roads2Layer" />
                               
                            </list>
                        </property>
                        <property name="expanded" value="true" />
                    </bean>
                </property>
            </bean>
        </property>
        <property name="toolbar">
            <ref bean="mainMapToolbar"/>
        </property>
    </bean>

    <bean class="org.geomajas.configuration.client.ClientVectorLayerInfo" id="riversLayer">
        <property name="serverLayerId" value="rivers" />
        <property name="label" value="Rivers (linestring)" />
        <property name="visible" value="true" />
        <property name="viewScaleMin" value="0" />
        <property name="viewScaleMax" value="100000" />
        <property name="namedStyleInfo" ref="riversStyleInfo" />
    </bean>

    <bean class="org.geomajas.configuration.client.ClientVectorLayerInfo" id="lakesLayer">
        <property name="serverLayerId" value="lakes" />
        <property name="label" value="Lakes (polygon)" />
        <property name="visible" value="true" />
        <property name="viewScaleMin" value="0" />
        <property name="viewScaleMax" value="100000" />
        <property name="namedStyleInfo" ref="lakesStyleInfo" />
    </bean>
<!--
    <bean class="org.geomajas.configuration.client.ClientVectorLayerInfo" id="citiesLayer">
        <property name="serverLayerId" value="cities" />
        <property name="label" value="Cities (point)" />
        <property name="visible" value="true" />
        <property name="viewScaleMin" value="0" />
        <property name="viewScaleMax" value="100000" />
        <property name="namedStyleInfo" ref="citiesStyleInfo" />
    </bean>
    -->
    <bean class="org.geomajas.configuration.client.ClientVectorLayerInfo" id="roads2Layer">
        <property name="serverLayerId" value="roads2" />
        <property name="label" value="roads2" />
        <property name="visible" value="true" />
        <property name="viewScaleMin" value="0" />
        <property name="viewScaleMax" value="100000" />
        <property name="namedStyleInfo" ref="riversStyleInfo" />
    </bean>
   
</beans>

 

layerRoads2.xml:

 

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"

    xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">

    <bean name="roads2Info" class="org.geomajas.configuration.VectorLayerInfo">
        <!-- <property name="id" value="roads2" /> -->
        <property name="layerType" value="MULTIPOLYGON" />
        <property name="crs" value="EPSG:32647" />
        <property name="maxExtent">
            <bean class="org.geomajas.geometry.Bbox">
                <property name="x" value="87.736" />
                <property name="y" value="41.581" />
                <property name="width" value="2000" />
                <property name="height" value="2000" />
            </bean>
        </property>
        <property name="featureInfo" ref="roads2FeatureInfo" />
        <property name="namedStyleInfos">
            <list>
                <bean class="org.geomajas.configuration.NamedStyleInfo" name="roads2StyleInfo">
                    <property name="featureStyles">
                        <list>
                            <bean class="org.geomajas.configuration.FeatureStyleInfo">
                                <!-- <property name="id" value="1" /> -->
                                <property name="name" value="Roads" />
                                <property name="fillColor" value="#FFFFFF" />
                                <property name="fillOpacity" value="0" />
                                <property name="strokeColor" value="#998811" />
                                <property name="strokeOpacity" value="1" />
                                <property name="strokeWidth" value="4" />
                            </bean>
                        </list>
                    </property>
                    <property name="labelStyle">
                        <bean class="org.geomajas.configuration.LabelStyleInfo">
                            <property name="labelAttributeName" value="id" />
                            <property name="fontStyle">
                                <bean class="org.geomajas.configuration.FontStyleInfo">
                                    <property name="color" value="#998811" />
                                    <property name="opacity" value="1" />
                                </bean>
                            </property>
                            <property name="backgroundStyle">
                                <bean class="org.geomajas.configuration.FeatureStyleInfo">
                                    <property name="fillColor" value="#000000" />
                                    <property name="fillOpacity" value=".7" />
                                    <property name="strokeColor" value="#998811" />
                                    <property name="strokeOpacity" value="1" />
                                    <property name="strokeWidth" value="1" />
                                </bean>
                            </property>
                        </bean>
                    </property>
                </bean>
            </list>
        </property>
    </bean>

    <bean class="org.geomajas.configuration.FeatureInfo" name="roads2FeatureInfo">
        <property name="dataSourceName" value="sf:roads" />
        <property name="identifier">
            <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                <property name="label" value="gid" />
                <property name="name" value="gid" />
                <property name="type" value="LONG" />
            </bean>
        </property>
        <property name="geometryType">
            <bean class="org.geomajas.configuration.GeometryAttributeInfo">
                <property name="name" value="the_geom" />
                <property name="editable" value="true" />
            </bean>
        </property>
        <property name="attributes">
            <list>
                <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                    <property name="label" value="area_ha" />
                    <property name="name" value="area_ha" />
                    <property name="type" value="LONG" />
                </bean>
               
                <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                    <property name="label" value="SOURCE" />
                    <property name="name" value="SOURCE" />
                    <property name="editable" value="true" />
                    <property name="identifying" value="true" />
                    <property name="type" value="STRING" />
                </bean>
               
            </list>
        </property>
    </bean>

    <bean name="simpleDateFormat" class="java.text.SimpleDateFormat">
        <constructor-arg type="java.lang.String" value="dd/MM/yyyy" />
    </bean>

**********************there are 2 options I have tried:************************

1:   

<bean name="roads2" class="org.geomajas.layer.geotools.GeoToolsLayer">
        <property name="layerInfo" ref="roads2Info" />
        <property name="dataStore" ref="simpleDatastore" />
    </bean>

    <!--
2:

   <bean name="roads2" class="org.geomajas.layer.geotools.GeoToolsLayer">
        <property name="parameters">
            <list>
                <bean class="org.geomajas.configuration.Parameter">
                <property name="name" value="WFSDataStoreFactory:GET_CAPABILITIES_URL">
                <property name="value" value="http://localhost:8080/geoserver/wfs?REQUEST=GetCapabilities" />
                </bean>
                <bean class="org.geomajas.configuration.Parameter">
                <property name="name" value="WFSDataStoreFactory:TIMEOUT" />
                <property name="value" value="3000" />
                </bean>
            </list>
        </property>
        <property name="layerInfo" ref="roads2Info" />
    </bean>
-->
</beans>

thanks but when i try to

thanks but when i try to browse my app it warn me: "An error occurred on the server.: Unexpected problem., root cause org/geotools/filter/visitor/FixBBOXFilterVisitor"  and after closing the warning-dialogs the layer is not on map, also after each zooming or moving on map the warned message popup again, where is the fucking problem please?

Please give more details

No need to swear.

 

If you want to get help, it is probably best to show as much detail of what you are doing and as much detail of what is going wrong as makes sense.

In this particular case, details about the Geomajas back-end and WMS layer versions, your WMS layer configuration and the stack trace seem like minimal information to allow us to help you.

 

Kind regards,
Joachim

tank you Joachim, i want to

tank you Joachim, i want to fetch a wfs layer from geoserver via geotools, i have followed above instruction and also used http://files.geomajas.org/maven/trunk/geomajas/geomajas-layer-geotools-documentation/html/master.html#geotools that says add gt-wfs dependency.

here is my code:

map.xml

 

<bean name="mapMain" class="org.geomajas.configuration.client.ClientMapInfo">

        <property name="backgroundColor" value="#FFFFFF" />

        <property name="lineSelectStyle">

            <bean class="org.geomajas.configuration.FeatureStyleInfo">

                <property name="fillOpacity" value="0" />

                <property name="strokeColor" value="#FF6600" />

                <property name="strokeOpacity" value="1" />

            </bean>

        </property>

        <property name="pointSelectStyle">

            <bean class="org.geomajas.configuration.FeatureStyleInfo">

                <property name="fillColor" value="#FFFF00" />

            </bean>

        </property>

        <property name="polygonSelectStyle">

            <bean class="org.geomajas.configuration.FeatureStyleInfo">

                <property name="fillColor" value="#FFFF00" />

                <property name="fillOpacity" value=".5" />

            </bean>

        </property>

        <property name="crs" value="EPSG:4326" />

        <property name="scaleBarEnabled" value="true" />

        <property name="panButtonsEnabled" value="true" />

        <property name="scaleConfiguration">

            <bean class="org.geomajas.configuration.client.ScaleConfigurationInfo">

                <property name="maximumScale" value="1:10000" />

                <property name="zoomLevels">

                    <list>

                        <value>0.5</value>

                        <value>0.25</value>

                        <value>0.125</value>

                        <value>0.0625</value>

                        <value>0.03125</value>

                        <value>0.015625</value>

                        <value>0.0078125</value>

                        <value>0.00390625</value>

                        <value>0.001953125</value>

                        <value>0.0009765625</value>

                        <value>0.00048828125</value>

                        <value>0.000244140625</value>

                        <value>0.000122070312</value>

                    </list>

                </property>

            </bean>

        </property>

        <property name="initialBounds">

            <bean class="org.geomajas.geometry.Bbox">

                <property name="x" value="-180"/>

                <property name="y" value="-90"/>

                <property name="width" value="360"/>

                <property name="height" value="180"/>

            </bean>

        </property>

        <property name="layers">

            <list>

                <ref bean="gheshm" />

            </list>

        </property>

        <property name="toolbar">

            <bean class="org.geomajas.configuration.client.ClientToolbarInfo">

                <property name="tools">

                    <list>

                        <ref bean="ZoomToRectangleMode" />

                        <ref bean="PanMode" />

                        <ref bean="ToolbarSeparator" />

                        <ref bean="ZoomPrevious" />

                        <ref bean="ZoomNext" />

                        <ref bean="ToolbarSeparator" />

                        <ref bean="EditMode" />

                        <ref bean="MeasureDistanceMode" />

                        <ref bean="SelectionMode" />

                        <ref bean="FeatureInfoMode" />

                    </list>

                </property>

            </bean>

        </property>

        <property name="layerTree">

            <bean class="org.geomajas.configuration.client.ClientLayerTreeInfo">

                <property name="tools">

                    <list>

                        <ref bean="LayerVisibleTool" />

                        <ref bean="LayerLabeledTool" />

                        <ref bean="LayerRefreshAction" />

                    </list>

                </property>

                <property name="treeNode">

                    <bean class="org.geomajas.configuration.client.ClientLayerTreeNodeInfo">

                        <property name="label" value="Layers" />

                        <property name="layers">

                            <list>

                                <ref bean="gheshm" />

                            </list>

                        </property>

                        <property name="expanded" value="true" />

                    </bean>

                </property>

            </bean>

        </property>

    </bean>

</beans>

clientLayerGheshm.xml

 

   <bean class="org.geomajas.configuration.client.ClientVectorLayerInfo" id="iranGheshm">

        <property name="serverLayerId" value="layerWmsIranGheshm" />

        <property name="label" value="cities" />

        <property name="visible" value="true" />

        <property name="maximumScale" value="1:1000" />

        <property name="minimumScale" value="1:500000000" />

        <property name="namedStyleInfo" ref="iranGheshmStyleInfo" />

    </bean>

    <bean name="layerWmsIranGheshm" class="org.geomajas.layer.geotools.GeoToolsLayer">

        <property name="parameters">

            <list>

                <bean class="org.geomajas.configuration.Parameter">

                    <property name="name" value="WFSDataStoreFactory:GET_CAPABILITIES_URL" />

                    <property name="value" value="http://localhost:8082/geoserver/ows?service=WFS&amp;VERSION=1.0.0&amp;request=GetCapabilities" />

                </bean>

                <bean class="org.geomajas.configuration.Parameter">

                    <property name="name" value="WFSDataStoreFactory:TIMEOUT" />

                    <property name="value" value="5000" />

                </bean>

            </list>

        </property>

        <property name="layerInfo" ref="layerWmsIranGheshmInfo" />

    </bean>

 

    

 

 

    <bean name="layerWmsIranGheshmInfo" class="org.geomajas.configuration.VectorLayerInfo">

        <property name="layerType" value="POINT"/>

        <property name="crs" value="EPSG:4326"/>

        <property name="maxExtent">

            <bean class="org.geomajas.geometry.Bbox">

                <property name="x" value="-165.27"/>

                <property name="y" value="-53.15"/>

                <property name="width" value="177.13"/>

                <property name="height" value="78.2"/>

            </bean>

        </property>

        <property name="featureInfo" ref="iranGheshmFeatureInfo" />

        <property name="namedStyleInfos">

            <list>

                <ref bean="iranGheshmStyleInfo" />

            </list>

        </property>

    </bean>

    <bean class="org.geomajas.configuration.FeatureInfo" name="iranGheshmFeatureInfo">

        <property name="dataSourceName" value="a:cities"/>

        <property name="identifier">

            <bean class="org.geomajas.configuration.PrimitiveAttributeInfo"><!--i have got this attributes in geoserver. is they correct? maybe the problem is here-->

                <property name="label" value="fid"/>

                <property name="name" value="fid"/>

                <property name="type" value="LONG"/>

            </bean>

        </property>

        <property name="geometryType">

            <bean class="org.geomajas.configuration.GeometryAttributeInfo">

                <property name="name" value="the_geom"/>

                <property name="editable" value="false"/>

            </bean>

        </property>

        <property name="attributes">

            <list>

                <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">

                    <property name="label" value="Name"/>

                    <property name="name" value="NAME"/>

                    <property name="editable" value="true"/>

                    <property name="identifying" value="false"/>

                    <property name="type" value="STRING"/>

                </bean>

                <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">

                    <property name="label" value="COUNTRY"/>

                    <property name="name" value="COUNTRY"/>

                    <property name="editable" value="true"/>

                    <property name="identifying" value="false"/>

                    <property name="type" value="STRING"/>

                </bean>

            </list>

        </property>

    </bean>

 

 

    <bean class="org.geomajas.configuration.NamedStyleInfo" name="iranGheshmStyleInfo">

 

 

        <property name="featureStyles">

            <list>

                <bean class="org.geomajas.configuration.FeatureStyleInfo">

                    <property name="name" value="roads"/>

                    <property name="fillColor" value="#3333FF"/>

                    <property name="fillOpacity" value=".5"/>

                    <property name="strokeColor" value="#000033"/>

                    <property name="strokeOpacity" value=".8"/>

                    <property name="strokeWidth" value="1"/>

                </bean>

            </list>

        </property>

        <property name="labelStyle">

            <bean class="org.geomajas.configuration.LabelStyleInfo">

                <property name="labelAttributeName" value="NAME"/>

                <property name="fontStyle">

                    <bean class="org.geomajas.configuration.FontStyleInfo">

                        <property name="color" value="#000000" />

                        <property name="opacity" value="1" />

                    </bean>

                </property>

                <property name="backgroundStyle">

                    <bean class="org.geomajas.configuration.FeatureStyleInfo">

                        <property name="fillColor" value="#FFFFFF"/>

                        <property name="fillOpacity" value=".7"/>

                        <property name="strokeColor" value="#000099"/>

                        <property name="strokeOpacity" value="1"/>

                        <property name="strokeWidth" value="1"/>

                    </bean>

                </property>

            </bean>

        </property>

    </bean>

</beans>

after running the app i got a warning message in bowser saying: 

"An error occurred on the server.: Unexpected problem., root cause org/geotools/filter/visitor/FixBBOXFilterVisitor"


 and in netbeans tomcat console "

12:40:06.453 [http-bio-8085-exec-10] INFO  o.g.i.service.CommandDispatcherImpl - 11 execute command.general.Log for user token null in locale null

 

12:40:06.500 [http-bio-8085-exec-10] WARN  o.g.command.general.LogCommand - An error occurred on the server.:

Unexpected problem., root cause org/geotools/filter/visitor/FixBBOXFilterVisitor

"


 

 

after i closing warning-dialogs in browser the layer is not showing on the map, and with each zooming or moving on the map , the warned dialog poping up, any answer will help me, if you want more information on my app just put a comment, i will give it.thank.

 

 

 

Which version of

Which version of Geomajas?

When using 1.10 (geomajas-dep 1.12.8) you should grab the details from the error screen and post those.

 

Kind regards,
Joachim

thank you Joachim , i'm using

thank you Joachim ,

i'm using geomajas 1.10.0

i got this warning in tomcat consol:

"15:05:10.718 [http-bio-8085-exec-11] WARN  o.g.command.general.LogCommand - An error occurred on the server.:

Unexpected problem., root cause org/geotools/filter/visitor/FixBBOXFilterVisitor

15:09:17.906 [http-bio-8085-exec-15] INFO  o.g.i.service.CommandDispatcherImpl - 35 execute command.general.Copyright for user token null in locale null"

and this in browser dialog message:

"Unexpected problem., root cause org/geotools/filter/visitor/FixBBOXFilterVisitor"

this dialog box has a "show details" button that show this details:

org.geomajas.layer.LayerException (38)
org.geomajas.layer.geotools.GeoToolsLayer.getElements(GeoToolsLayer.java:446)
org.geomajas.layer.geotools.GeoToolsLayer$$FastClassByCGLIB$$813b096d.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.layer.geotools.GeoToolsLayer$$EnhancerByCGLIB$$ea4dba8c.getElements(<generated>)
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:99)
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:51)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:87)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:62)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:139)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:114)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:146)
org.geomajas.internal.layer.VectorLayerServiceImpl$$FastClassByCGLIB$$a536c9a8.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$4c10efe5.getFeatures(<generated>)
org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:54)
org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:33)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:87)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:62)
org.geomajas.internal.layer.VectorLayerServiceImpl.getTile(VectorLayerServiceImpl.java:187)
org.geomajas.internal.layer.VectorLayerServiceImpl$$FastClassByCGLIB$$a536c9a8.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$4c10efe5.getTile(<generated>)
org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:61)
org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:34)
org.geomajas.command.render.GetVectorTileCommand$$FastClassByCGLIB$$a4dabfcc.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.command.render.GetVectorTileCommand$$EnhancerByCGLIB$$989d7f31.execute(<generated>)
org.geomajas.internal.service.CommandDispatcherImpl.execute(CommandDispatcherImpl.java:114)
org.geomajas.gwt.server.mvc.GeomajasController.execute(GeomajasController.java:117)
sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
org.geomajas.gwt.server.mvc.GeomajasController.handleRequest(GeomajasController.java:65)
sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.geomajas.servlet.CacheFilter.doFilter(CacheFilter.java:201)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
java.lang.NoClassDefFoundError
org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.correctFilterForServer(NonStrictWFSStrategy.java:215)
org.geotools.data.wfs.v1_0_0.NonStrictWFSStrategy.getFeatureReader(NonStrictWFSStrategy.java:72)
org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore.getFeatureReader(WFS_1_0_0_DataStore.java:823)
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:213)
org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:229)
org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:197)
org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:186)
org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:77)
org.geomajas.layer.geotools.GeoToolsLayer.getElements(GeoToolsLayer.java:440)
org.geomajas.layer.geotools.GeoToolsLayer$$FastClassByCGLIB$$813b096d.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.layer.geotools.GeoToolsLayer$$EnhancerByCGLIB$$ea4dba8c.getElements(<generated>)
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:99)
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:51)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:87)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:62)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:139)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:114)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:146)
org.geomajas.internal.layer.VectorLayerServiceImpl$$FastClassByCGLIB$$a536c9a8.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$4c10efe5.getFeatures(<generated>)
org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:54)
org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:33)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:87)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:62)
org.geomajas.internal.layer.VectorLayerServiceImpl.getTile(VectorLayerServiceImpl.java:187)
org.geomajas.internal.layer.VectorLayerServiceImpl$$FastClassByCGLIB$$a536c9a8.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$4c10efe5.getTile(<generated>)
org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:61)
org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:34)
org.geomajas.command.render.GetVectorTileCommand$$FastClassByCGLIB$$a4dabfcc.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.command.render.GetVectorTileCommand$$EnhancerByCGLIB$$989d7f31.execute(<generated>)
org.geomajas.internal.service.CommandDispatcherImpl.execute(CommandDispatcherImpl.java:114)
org.geomajas.gwt.server.mvc.GeomajasController.execute(GeomajasController.java:117)
sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
org.geomajas.gwt.server.mvc.GeomajasController.handleRequest(GeomajasController.java:65)
sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.geomajas.servlet.CacheFilter.doFilter(CacheFilter.java:201)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
thank you Joachim , do you want any other detail ? isn't this problem because of the setting wrong attribute to featureInfo object?

Sounds like a missing

Sounds like a missing dependency.

When declaring your gt-wfs module, which version did you use? You probably should use 2.7.4.

If that does not help, check whethere there are conflicting versions. Either look at the files in your lib or run "mvn dependency:tree"

 

Kind regards,
Joachim

  thank you joachim. here is

 

thank you joachim. here is my dependency declaration

<dependency>

            <groupId>org.geotools</groupId>

            <artifactId>gt-wfs</artifactId>

            <version>LATEST</version>

</dependency>

in the lib gt-wfs version is 8-snapshot. i changed it to 2.7.4 so my pom is:

<dependency>

            <groupId>org.geotools</groupId>

            <artifactId>gt-wfs</artifactId>

           <version>2.7.4</version>

</dependency>

now when i run my app the warning message says:"Feature model problem. (Cannot find feature source ayat:cities), root cause null"

and  show details button: org.geomajas.layer.LayerException (34)

org.geomajas.layer.shapeinmem.FeatureSourceRetriever.getFeatureSource(FeatureSourceRetriever.java:105)
org.geomajas.layer.geotools.GeoToolsLayer.getFeatureSource(GeoToolsLayer.java:518)
org.geomajas.layer.geotools.GeoToolsLayer.getElements(GeoToolsLayer.java:431)
org.geomajas.layer.geotools.GeoToolsLayer$$FastClassByCGLIB$$813b096d.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.layer.geotools.GeoToolsLayer$$EnhancerByCGLIB$$800a4fd7.getElements(<generated>)
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:99)
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:51)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:87)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:62)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:139)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:114)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:146)
org.geomajas.internal.layer.VectorLayerServiceImpl$$FastClassByCGLIB$$a536c9a8.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$e1cd8530.getFeatures(<generated>)
org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:54)
org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:33)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:87)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:62)
org.geomajas.internal.layer.VectorLayerServiceImpl.getTile(VectorLayerServiceImpl.java:187)
org.geomajas.internal.layer.VectorLayerServiceImpl$$FastClassByCGLIB$$a536c9a8.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$e1cd8530.getTile(<generated>)
org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:61)
org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:34)
org.geomajas.command.render.GetVectorTileCommand$$FastClassByCGLIB$$a4dabfcc.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.command.render.GetVectorTileCommand$$EnhancerByCGLIB$$2e5a147c.execute(<generated>)
org.geomajas.internal.service.CommandDispatcherImpl.execute(CommandDispatcherImpl.java:114)
org.geomajas.gwt.server.mvc.GeomajasController.execute(GeomajasController.java:117)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
org.geomajas.gwt.server.mvc.GeomajasController.handleRequest(GeomajasController.java:65)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.geomajas.servlet.CacheFilter.doFilter(CacheFilter.java:201)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
java.lang.NullPointerException
org.geomajas.layer.shapeinmem.FeatureSourceRetriever.getFeatureSource(FeatureSourceRetriever.java:100)
org.geomajas.layer.geotools.GeoToolsLayer.getFeatureSource(GeoToolsLayer.java:518)
org.geomajas.layer.geotools.GeoToolsLayer.getElements(GeoToolsLayer.java:431)
org.geomajas.layer.geotools.GeoToolsLayer$$FastClassByCGLIB$$813b096d.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.layer.geotools.GeoToolsLayer$$EnhancerByCGLIB$$800a4fd7.getElements(<generated>)
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:99)
org.geomajas.internal.layer.vector.GetFeaturesEachStep.execute(GetFeaturesEachStep.java:51)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:87)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:62)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:139)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:114)
org.geomajas.internal.layer.VectorLayerServiceImpl.getFeatures(VectorLayerServiceImpl.java:146)
org.geomajas.internal.layer.VectorLayerServiceImpl$$FastClassByCGLIB$$a536c9a8.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$e1cd8530.getFeatures(<generated>)
org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:54)
org.geomajas.internal.layer.vector.GetTileGetFeaturesStep.execute(GetTileGetFeaturesStep.java:33)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:87)
org.geomajas.internal.service.pipeline.PipelineServiceImpl.execute(PipelineServiceImpl.java:62)
org.geomajas.internal.layer.VectorLayerServiceImpl.getTile(VectorLayerServiceImpl.java:187)
org.geomajas.internal.layer.VectorLayerServiceImpl$$FastClassByCGLIB$$a536c9a8.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.internal.layer.VectorLayerServiceImpl$$EnhancerByCGLIB$$e1cd8530.getTile(<generated>)
org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:61)
org.geomajas.command.render.GetVectorTileCommand.execute(GetVectorTileCommand.java:34)
org.geomajas.command.render.GetVectorTileCommand$$FastClassByCGLIB$$a4dabfcc.invoke(<generated>)
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
org.geomajas.command.render.GetVectorTileCommand$$EnhancerByCGLIB$$2e5a147c.execute(<generated>)
org.geomajas.internal.service.CommandDispatcherImpl.execute(CommandDispatcherImpl.java:114)
org.geomajas.gwt.server.mvc.GeomajasController.execute(GeomajasController.java:117)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
org.geomajas.gwt.server.mvc.GeomajasController.handleRequest(GeomajasController.java:65)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.geomajas.servlet.CacheFilter.doFilter(CacheFilter.java:201)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
what should i do now?(thanks)

 

Can it be that your

Can it be that your datasource name is not set?

I am puwwled that is refers to the shapeinmem featuresource. It should not be using that one.

 

Joachim

datasource name has been set

datasource name has been set in FeatureInfo section of clientLayerGheshm.xml and i have post it in 2nd comment.

  you saed: "I am puwwled that is refers to the shapeinmem featuresource. It should not be using that one."  what is your mean? i didn't undrestand  .

thank you joachim.

datasource in what you posted

datasource in what you posted is sf:roads and a:cities, not ayat:cities.

Can that be the problem?

no it's not the problem, i

no it's not the problem, i changed it to a:cities becaue of a test.

1) but i'm not sure abute  attributes that i have set in featureInfo. maybe they are wrong, is it cause the error?

2) gt-wfs is 2.7.4. is it the correct version ?

thank you.

That is the corect WFS

That is the corect WFS version.

If you doubt attributes, you can remove all except id and geometry. Name needs and type need to be correct. Do compare with the result of the GetCapabilities.

Is there a warning in the system logs somewhere? Should be from app initializsation, probably with the text "The layer could not be correctly initialized:" Details thereof should help.

It seems that the data store cannot be initialized.

 

Kind regards,
Joachim

hello joachim, thank for your

hello joachim, thank for your helping, today my app seems to work, but i have an error still, the vector layer has been fetched from geoserver and now is on the map, "featureInfo" is working, and also "selectFeature" ,  everything is okey now but when i create ,edit or delete a feature and click on "save" to save my changes, this error is poping up in browser: "java.lang.NullPointerException"

and in  details section:

java.lang.NullPointerException

java.net.URI$Parser.parse(URI.java:3003)

java.net.URI.<init>(URI.java:578)

org.geotools.data.wfs.v1_0_0.WFSTransactionState.commitPost(WFSTransactionState.java:261)

org.geotools.data.wfs.v1_0_0.WFSTransactionState.commit(WFSTransactionState.java:152)

org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:182)

org.geomajas.layer.geotools.GeoToolsTransactionManager.doCommit(GeoToolsTransactionManager.java:135)

org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)

org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)

org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)

org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)

org.geomajas.command.feature.PersistTransactionCommand$$EnhancerByCGLIB$$7795fe89.execute(<generated>)

org.geomajas.internal.service.CommandDispatcherImpl.execute(CommandDispatcherImpl.java:114)

org.geomajas.gwt.server.mvc.GeomajasController.execute(GeomajasController.java:117)

sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

java.lang.reflect.Method.invoke(Method.java:597)

com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)

com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)

com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)

com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)

org.geomajas.gwt.server.mvc.GeomajasController.handleRequest(GeomajasController.java:65)

sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

java.lang.reflect.Method.invoke(Method.java:597)

org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)

org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)

org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)

org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)

javax.servlet.http.HttpServlet.service(HttpServlet.java:641)

javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

org.geomajas.servlet.CacheFilter.doFilter(CacheFilter.java:201)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)

org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)

org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)

org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)

java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

java.lang.Thread.run(Thread.java:662)

and tomcat log:

13:59:16.625 [http-bio-8084-exec-20] WARN  o.g.command.general.LogCommand - An error occurred on the server.:

java.lang.NullPointerException

thanks in advance.

i have post my question 4

i have post my question 4 days ago but has not been answered yet, (ofcourse dear joachim answered some of my question and helped to solve them). what should i do to solve this one? isn't this error because of geotools ? or... plz put a comment. any idea will help me. 

I don't have many clues

I don't have many clues now.

Best I can suggest at this moment is debugging to see what exactly is happening and what the problematic URL looks like.

 

Joachim

ofcourse when i

ofcourse when i open GetCapabilities url via browser the ayat:cities layer is there.

<FeatureType>
<Name>ayat:cities</Name>
<Title>world-cities</Title>
<Abstract/>
<Keywords/>
<SRS>EPSG:4326</SRS>
<LatLongBoundingBox minx="-165.27" miny="-53.15" maxx="177.13" maxy="78.2"/>
</FeatureType>

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.