You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Yi Pan (Data Infrastructure) (JIRA)" <ji...@apache.org> on 2016/02/22 18:42:18 UTC
[jira] [Commented] (SAMZA-609) Properties not encoded properly
[ https://issues.apache.org/jira/browse/SAMZA-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157367#comment-15157367 ]
Yi Pan (Data Infrastructure) commented on SAMZA-609:
----------------------------------------------------
[~naveenatceg], is this fixed w/ the coordinator stream as well? It will only be a problem if the config is passed via command line args, right?
> Properties not encoded properly
> -------------------------------
>
> Key: SAMZA-609
> URL: https://issues.apache.org/jira/browse/SAMZA-609
> Project: Samza
> Issue Type: Bug
> Components: container
> Affects Versions: 0.8.0
> Reporter: Naveen Somasundaram
>
> Passing a complex configuration:
> {noformat}
> filter.map.filter1.property=xpath("name") in ("uiBrowseStartup.ended",
> "subscription.ended", "uiStartup.ended") or xpath("category") =
> "uiIntent"
> {noformat}
>
> This property is understood by Java properties (Verified), however when used in Samza, it breaks with the following error:
> {noformat}
> Exception in thread "main" org.codehaus.jackson.JsonParseException: Unrecognized character escape ')' (code 41)
> at [Source: java.io.StringReader@409bf450; line: 1, column: 46]
> at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1291)
> at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:385)
> at org.codehaus.jackson.impl.JsonParserMinimalBase._handleUnrecognizedCharacterEscape(JsonParserMinimalBase.java:360)
> at org.codehaus.jackson.impl.ReaderBasedParser._decodeEscaped(ReaderBasedParser.java:1062)
> at org.codehaus.jackson.impl.ReaderBasedParser._finishString2(ReaderBasedParser.java:783)
> at org.codehaus.jackson.impl.ReaderBasedParser._finishString(ReaderBasedParser.java:760)
> at org.codehaus.jackson.impl.ReaderBasedParser.getText(ReaderBasedParser.java:85)
> at org.codehaus.jackson.map.deser.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:39)
> at org.codehaus.jackson.map.deser.MapDeserializer._readAndBind(MapDeserializer.java:235)
> at org.codehaus.jackson.map.deser.MapDeserializer.deserialize(MapDeserializer.java:165)
> at org.codehaus.jackson.map.deser.MapDeserializer.deserialize(MapDeserializer.java:25)
> at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2395)
> at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1595)
> at org.apache.samza.config.serializers.JsonConfigSerializer$.fromJson(JsonConfigSerializer.scala:34)
> at org.apache.samza.job.yarn.SamzaAppMaster$.main(SamzaAppMaster.scala:72)
> at org.apache.samza.job.yarn.SamzaAppMaster.main(SamzaAppMaster.scala)
> {noformat}
> To reproduce, just paste the config in hello-samza as a property.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)