Hexagon Geospatial
MENU

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Frequent Contributor
Posts: 151
Registered: ‎11-17-2015

MAE desktop crashes when having "LIKE" thematic

Hello,

 

I try to create a thematic in MAE desktop.

 

It's OK when my filter is a "equal" filter:

([type_signa] = 'BALISE') AND ([realise] = 0)

 

But makes MAE desktop crash when the filter is a "LIKE" filter:

([type_signa] LIKE 'BORNE%') AND ([realise] = 0)

 

The JAVA exception:

12 juil. 2019 17:39:03 INFO: Application exited: Unexpected exception: java.lang.NullPointerException
at com.hexgeo.enterprise.ogc.filter.v1_1_0.expression.LiteralExpression.compute(LiteralExpression.java:39)
at com.hexgeo.enterprise.ogc.filter.v1_1_0.predicate.PropertyIsLikeBuilder.create(PropertyIsLikeBuilder.java:51)
at com.hexgeo.enterprise.ogc.filter.v1_1_0.predicate.ComparisonOpsBuilder.create(ComparisonOpsBuilder.java:63)
at com.hexgeo.enterprise.ogc.filter.v1_1_0.predicate.BinaryLogicOpBuilder.create(BinaryLogicOpBuilder.java:92)
at com.hexgeo.enterprise.ogc.filter.v1_1_0.predicate.BinaryLogicOpBuilder.create(BinaryLogicOpBuilder.java:58)
at com.hexgeo.enterprise.ogc.filter.v1_1_0.predicate.LogicOpsBuilder.create(LogicOpsBuilder.java:40)
at com.hexgeo.enterprise.ogc.filter.Filter_v1_1_0.createPredicate(Filter_v1_1_0.java:53)
at com.hexgeo.enterprise.ogc.filter.Filter.predicateOf(Filter.java:39)
at com.intergraph.web.viewer.map.style.symbolizers.FeatureTypeStyleFactory.createRuleType(FeatureTypeStyleFactory.java:1093)
at com.intergraph.web.viewer.map.style.symbolizers.FeatureTypeStyleFactory.createFeatureTypeStyle(FeatureTypeStyleFactory.java:1140)
at com.intergraph.web.viewer.map.style.SymbologyEncodingFactory.unmarshallSymbologyEncodingXML(SymbologyEncodingFactory.java:105)
at com.intergraph.web.viewer.map.style.SymbologyEncodingFactory.unmarshallXML(SymbologyEncodingFactory.java:146)
at com.intergraph.web.viewer.map.style.FeatureTypeStyleManager.readStyle(FeatureTypeStyleManager.java:469)
at com.intergraph.web.viewer.map.style.FeatureTypeStyleManager.lambda$createCache$8(FeatureTypeStyleManager.java:455)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at com.intergraph.web.viewer.map.style.FeatureTypeStyleManager.createCache(FeatureTypeStyleManager.java:456)
at com.intergraph.web.viewer.map.style.FeatureTypeStyleManager.lambda$new$0(FeatureTypeStyleManager.java:116)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
at com.intergraph.web.viewer.map.style.FeatureTypeStyleManager.<init>(FeatureTypeStyleManager.java:109)
at com.intergraph.web.viewer.map.style.FeatureTypeStyleManager.init(FeatureTypeStyleManager.java:435)
at com.intergraph.web.viewer.map.MapImpl.<init>(MapImpl.java:244)
at com.intergraph.web.viewer.map.MapImpl.<init>(MapImpl.java:203)
at com.hexgeo.enterprise.browser.BrowserImpl.<init>(BrowserImpl.java:91)
at com.hexgeo.enterprise.kernel.KernelHandlerImpl.createBrowser(KernelHandlerImpl.java:238)
at com.hexgeo.enterprise.kernel.Kernel.launch(Kernel.java:178)
at com.hexgeo.enterprise.kernel.Kernel.boot(Kernel.java:151)
at com.hexgeo.enterprise.Enterprise.create(Enterprise.java:87)
at com.hexgeo.enterprise.Enterprise.main(Enterprise.java:60)

 

The filter in MAE metadata:

<ogc:And>
<ogcSmiley TongueropertyIsLike wildCard="%" singleChar="_" escapeChar="!">
<ogcSmiley TongueropertyName>type_signa</ogcSmiley TongueropertyName>
<ogc:Literal>BORNE%</ogc:Literal>
</ogcSmiley TongueropertyIsLike>
<ogcSmiley TongueropertyIsEqualTo>
<ogcSmiley TongueropertyName>realise</ogcSmiley TongueropertyName>
<ogc:Literal>0</ogc:Literal>
</ogcSmiley TongueropertyIsEqualTo>
</ogc:And>

 

Database is PostGIS.

 

Thank you.

 

Staff
Posts: 589
Registered: ‎11-12-2015

Re: MAE desktop crashes when having "LIKE" thematic

Hi yly,

 

This looks like a bug as I encounter the same issue when using the 'LIKE' operator in the styleset filter.

The filter is essentially the 'where' clause of a SQL statement so 'LIKE' should be accepted here.

I need to investigate further, but my first tests show it is likely a bug.

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.