[
https://issues.apache.org/jira/browse/NIFI-6439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888093#comment-16888093
]
Andy LoPresto commented on NIFI-6439:
-------------------------------------
Given that the Stack Overflow responses also seem to indicate some issue of XSD
availability (whether due to network issues, etc.), I do not think this change
is the cause of the issue, but I suspect the reason so many people have
encountered it in the last 24 hours while it has not been reported in the 6
weeks prior since the change went into effect is something more ephemeral.
Perhaps that host was down or the provider was having trouble with their HTTPS
availability recently?
It appears that one solution is for us to update the XSD reference to use the
embedded file which is already present in the JAR, rather than rely on network
access to resolve a URL on-demand. However, I am hesitant to make this change
until we determine if there is an additional reason for the issue.
I just manually verified connectivity on my local machine to the remote host,
and using HTTPS vs. HTTP alone is unlikely to be the culprit here.
{code}
~W/scratch (master) 😉
🔒 0s @ 08:48:44 $ wget
https://www.springframework.org/schema/beans/spring-beans-3.1.xsd
--2019-07-18 08:48:50--
https://www.springframework.org/schema/beans/spring-beans-3.1.xsd
Resolving www.springframework.org (www.springframework.org)... 104.16.213.8,
104.16.212.8
Connecting to www.springframework.org
(www.springframework.org)|104.16.213.8|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43399 (42K) [text/xml]
Saving to: ‘spring-beans-3.1.xsd’
spring-beans-3.1.xsd
100%[===================================================================================================================================================================>]
42.38K --.-KB/s in 0.007s
2019-07-18 08:48:51 (5.77 MB/s) - ‘spring-beans-3.1.xsd’ saved [43399/43399]
~W/scratch (master) 😉
🔒 1s @ 08:48:51 $
{code}
> web.context.ContextLoader Context initialization failed
> -------------------------------------------------------
>
> Key: NIFI-6439
> URL: https://issues.apache.org/jira/browse/NIFI-6439
> Project: Apache NiFi
> Issue Type: Bug
> Components: Configuration, Tools and Build
> Environment: centos 7
> mvn 3.6.0
> java 1.8.0_212 openjdk
> Reporter: Zinan Ma
> Priority: Major
> Labels: build
> Attachments: image-2019-07-15-08-21-51-633.png,
> image-2019-07-16-09-09-36-005.png, image-2019-07-18-09-16-16-488.png
>
> Original Estimate: 96h
> Remaining Estimate: 96h
>
> Hi NIFI team,
> I have been trying to run NIFI in a local debugging environment by following
> this [tutorial|[https://nifi.apache.org/quickstart.html]]
> When I do mvn -T C2.0 clean install, The test cases failed.(some spring
> context test case) I then did a mvn clean and
> mvn install -DskipTests
> I successfully build it but then when I run ./nifi.sh start, Nifi could not
> start so I check the nifi-app.log and here is the first error:
> {color:#d04437}Â 2019-07-12 09:37:53,881 INFO [main]
> o.e.j.s.handler.ContextHandler._nifi_api Initializing Spring root
> WebApplicationContext{color}
> {color:#d04437}2019-07-12 09:40:01,659 ERROR [main]
> o.s.web.context.ContextLoader Context initialization failed{color}
> {color:#d04437}org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 19 in XML document from class path resource [nifi-context.xml] is
> invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 19;
> columnNumber: 139; cvc-elt.1: Cannot find the declaration of element
> 'beans'.{color}
> {color:#d04437} at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399){color}
> {color:#d04437} at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336){color}
> {color:#d04437} at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304){color}
> {color:#d04437} at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181){color}
> {color:#d04437} at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217){color}
> {color:#d04437} at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188){color}
> !image-2019-07-12-16-49-56-584.png!
> Â
> Now I am really stuck at this stage. Any help would be greatly appreciated!
> Please let me know if you need additional information!
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)