[
https://issues.apache.org/jira/browse/NIFI-8417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17408218#comment-17408218
]
Juan C. Sequeiros commented on NIFI-8417:
-----------------------------------------
If folks hit this and dont / cant upgrade they can remove the emojis by
replacing them once you find the line number on the flow.xml.gz
grep -n -P
"[\x\{1f300}-\x\{1f5ff}\x\{1f900}-\x\{1f9ff}\x\{1f600}-\x\{1f64f}\x\{1f680}-\x\{1f6ff}\x\{2600}-\x\{26ff}\x\{2700}-\x\{27bf}\x\{1f1e6}-\x\{1f1ff}\x\{1f191}-\x\{1f251}\x\{1f004}\x\{1f0cf}\x\{1f170}-\x\{1f171}\x\{1f17e}-\x\{1f17f}\x\{1f18e}\x\{3030}\x\{2b50}\x\{2b55}\x\{2934}-\x\{2935}\x\{2b05}-\x\{2b07}\x\{2b1b}-\x\{2b1c}\x\{3297}\x\{3299}\x\{303d}\x\{00a9}\x\{00ae}\x\{2122}\x\{23f3}\x\{24c2}\x\{23e9}-\x\{23ef}\x\{25b6}\x\{23f8}-\x\{23fa}]"
THE-NAME-OF-FILE
> emoji in processor group name cause nifi to not start up
> --------------------------------------------------------
>
> Key: NIFI-8417
> URL: https://issues.apache.org/jira/browse/NIFI-8417
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.13.0, 1.13.1, 1.13.2
> Environment: RHEL 7, jdk8
> Reporter: Adam Turley
> Assignee: Hsin-Ying Lee
> Priority: Blocker
> Fix For: 1.14.0
>
> Attachments: Screen Shot 2021-04-12 at 9.17.29 AM.png
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> if a processor group includes an emoji in the name, nifi will work normally
> until restart. Once restarted nifi will endlessly crash with the following
> error message:
> 2021-04-12 16:06:56,100 ERROR [main] org.apache.nifi.web.server.JettyServer
> Unable to load flow due to:
> org.apache.nifi.controller.serialization.FlowSerializationException:
> org.xml.sax.SAXParseException; lineNumber: 341336; columnNumber: 21;
> Character reference "�" is an invalid XML character.
> org.apache.nifi.controller.serialization.FlowSerializationException:
> org.xml.sax.SAXParseException; lineNumber: 341336; columnNumber: 21;
> Character reference "�" is an invalid XML character.
> at
> org.apache.nifi.cluster.protocol.StandardDataFlow.parseFlowBytes(StandardDataFlow.java:136)
> at
> org.apache.nifi.cluster.protocol.StandardDataFlow.getFlowDocument(StandardDataFlow.java:96)
> at
> org.apache.nifi.controller.StandardFlowSynchronizer.sync(StandardFlowSynchronizer.java:185)
> at
> org.apache.nifi.controller.FlowController.synchronize(FlowController.java:1413)
> at
> org.apache.nifi.persistence.StandardXMLFlowConfigurationDAO.load(StandardXMLFlowConfigurationDAO.java:89)
> at
> org.apache.nifi.controller.StandardFlowService.loadFromBytes(StandardFlowService.java:810)
> at
> org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:458)
> at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:1133)
> at org.apache.nifi.NiFi.<init>(NiFi.java:159)
> at org.apache.nifi.NiFi.<init>(NiFi.java:71)
> at org.apache.nifi.NiFi.main(NiFi.java:303)
> Caused by: org.xml.sax.SAXParseException: Character reference "�" is
> an invalid XML character.
> at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
> at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
> at org.apache.xerces.impl.XMLScanner.scanCharReferenceValue(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCharReference(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
> at
> org.apache.nifi.cluster.protocol.StandardDataFlow.parseFlowBytes(StandardDataFlow.java:134)
> ... 10 common frames omitted
--
This message was sent by Atlassian Jira
(v8.3.4#803005)