Category: | Bug report |
Priority: | Urgent |
Status: | New |
Project: | Severity: | Block |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
When creating or editing an input control with a single or multi select query I get following error:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing Offending resource: ServletContext resource [/WEB-INF/flows/queryBeans.xml] Bean 'editQueryAction'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: <property> element for property 'queryLanguages' is only allowed to contain either 'ref' attribute OR 'value' attribute OR sub-element Offending resource: ServletContext resource [/WEB-INF/flows/queryBeans.xml] Bean 'editQueryAction' -> Property 'queryLanguages'
Error Trace
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing Offending resource: ServletContext resource [/WEB-INF/flows/queryBeans.xml] Bean 'editQueryAction'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: <property> element for property 'queryLanguages' is only allowed to contain either 'ref' attribute OR 'value' attribute OR sub-element Offending resource: ServletContext resource [/WEB-INF/flows/queryBeans.xml] Bean 'editQueryAction' -> Property 'queryLanguages' at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) at
I checked the queryBeans.xml file but I don't see any unusual code in here, I checked this with another server we have running with version 6.4.3 and this one has exactly the file same structure with no errors given when creating or editing input controls with single or multi select query
Below the above mentioned structure of the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<beans xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd" xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans">
<!-- Backing action for edit query flow -->
<!-- README README README -->
<!-- This file is overwritten by the pro version -->
<!-- README README README -->
<bean class="com.jaspersoft.jasperserver.war.action.EditQueryAction" id="editQueryAction">
<property name="repository">
<ref bean="${bean.repositoryService}"/>
</property>
<property name="queryLanguages" ref="queryLanguages"/>
<property name="queryLanguagesRequestAttrName" value="queryLanguages"/>
<property name="validator" ref="queryValidator"/>
<property name="dataSourceTreeDataProvider" ref="dsTreeDataProvider"/>
<property name="messages" ref="messageSource"/>
<property name="configuration" ref="configurationBean"/>
<property name="customDataSourceFactory" ref="customDataSourceServiceFactory"/>
</bean>
<bean class="com.jaspersoft.jasperserver.war.validation.QueryValidator" id="queryValidator">
<property name="repository">
<ref bean="${bean.repositoryService}"/>
</property>
</bean>
<import resource="repositoryExplorerBean.xml"/>
</beans>