Intellij 8.0 M1 and Spring Webflow 2.0.3 - getting exception

I am seeing that the following stacktrace is being shown:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element
Offending resource: resource loaded from byte array
at com.intellij.spring.model.xml.custom.LenientProblemReporter.fatal(LenientProblemReporter.java:9)
at org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:55)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.findParserForElement(NamespaceHandlerSupport.java:79)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1253)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1243)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:141)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)

This is happening when I mouse over the line:
<webflow:flow-executor id="flowExecutor"/>

A small popup with a light bulb comes up and when I click on it it opens a new window to show the full stacktrace and thats what I get. Since i am new to SWF and since I am using a Milestone version of Intellij, I was wondering if this is a bug in Intellij or whether I am doing something wrong.

Thanks in advance.

3 comments
Comment actions Permalink

Spring WebFlow is implemented through Spring custom namespace handlers.
IDEA tries to run custom bean parsers on the fly, and in this case it
didn't succeed. BTW since the next EAP this will be completely
different, parsing will have to be invoked explicitly, maybe something
will change about this stacktrace, too. The problem depends on your
module libraries configuration. Does your module have WebFlow in
classpath? Does this library have META-INF/spring.handlers file inside?

I am seeing that the following stacktrace is being shown:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element
Offending resource: resource loaded from byte array
at com.intellij.spring.model.xml.custom.LenientProblemReporter.fatal(LenientProblemReporter.java:9)
at org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:68)
at org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:55)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.findParserForElement(NamespaceHandlerSupport.java:79)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1253)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1243)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:141)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)

This is happening when I mouse over the line:
<webflow:flow-executor id="flowExecutor"/>

A small popup with a light bulb comes up and when I click on it it opens a new window to show the full stacktrace and thats what I get. Since i am new to SWF and since I am using a Milestone version of Intellij, I was wondering if this is a bug in Intellij or whether I am doing something wrong.

Thanks in advance.

0
Comment actions Permalink

Thanks much for the reply Peter. Well the configuration was created by running the mvn idea command. I have the SWF dependencies added in the pom.xml. That's about it. There are no META-INF/spring.handlers files anywhere that I can see.

0
Comment actions Permalink

Thanks much for the reply Peter. Well the configuration was created by running the mvn idea command. I have the SWF dependencies added in the pom.xml. That's about it. There are no META-INF/spring.handlers files anywhere that I can see.

Then you can disable parsing for WebFlow namespace for now, not to see
this warning. It can be done in Spring facet configuration.

0

Please sign in to leave a comment.