[#11881] - Building Jasper server pro 7.2.0 doesnt work

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Trying to build from source Jasper server v7.2.0 (with ./js-ant build-src-all), ji-gyroscope ends with a lot of xml errors that I can not explain. It happens all the time.

[code]
A lot of stack trace here...
[...]
[java] Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 433 in XML document from class path resource [applicationContext-el.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 433; columnNumber: 121; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'lang:groovy'.
[java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
[java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
[java] at org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader.loadBeanDefinitions(GroovyBeanDefinitionReader.java:236)
[java] at org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader.loadBeanDefinitions(GroovyBeanDefinitionReader.java:220)
[java] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
[java] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
[java] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
[java] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:252)
[java] at org.springframework.test.context.support.GenericGroovyXmlContextLoader.loadBeanDefinitions(GenericGroovyXmlContextLoader.java:48)
[java] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:124)
[java] at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
[java] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:281)
[java] at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:249)
[java] at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
[java] at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
[java] ... 36 more
[java] Caused by: org.xml.sax.SAXParseException; lineNumber: 433; columnNumber: 121; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'lang:groovy'.
[java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
[java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
[java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[java] at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
[java] at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
[java] at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
[java] at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
[java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
[java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[java] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
[java] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
[java] at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
[java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429)
[java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
[java] ... 50 more

[...]
[java] PathConverterTest.shouldTransformToClientZone_TimeWithHourCategorizer_WhenServerInNewYorkClientInLosAngeles_returnShiftedHour ▒ IllegalState
[java] PathConverterTest.shouldTransformToClientZone_TimestampWithHourCategorizer_WhenClientAndServerZoneAreEquals_returnTheSameValue ▒ IllegalState
[java] PathConverterTest.shouldTransformToClientZone_TimestampWithHourCategorizer_WhenServerInLosAngelesClientInKiev_returnShiftedHour ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_DateWithYearCategorizer_WhenClientAndServerZoneAreEquals_returnTheSameValue ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_EmptyAllAndOtherNodesWithHourCategorizer_returnTheSameValue ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_StringWithAllCategorizer_returnTheSameValue ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_StringWithDefaultCategorizer_returnTheSameValue ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_TimeWithHourCategorizer_WhenClientAndServerZoneAreEquals_returnTheSameValue ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_TimeWithHourCategorizer_WhenClientInLondon_returnShiftedHour ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_TimeWithHourCategorizer_WhenServerInBerlinClientInMoscow_returnShiftedHour ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_TimeWithHourCategorizer_WhenServerInLondonClientInDefault_returnShiftedHour ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_TimeWithHourCategorizer_WhenServerInNewYorkClientInKiev_returnShiftedHour ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_TimeWithHourCategorizer_WhenServerInNewYorkClientInLosAngeles_returnShiftedHour ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_TimestampWithHourCategorizer_WhenClientAndServerZoneAreEquals_returnTheSameValue ▒ IllegalState
[java] PathConverterTest.shouldTransformToServerZone_TimestampWithHourCategorizer_WhenServerInLosAngelesClientInKiev_returnShiftedHour ▒ IllegalState
[java]
[java] Tests run: 725, Failures: 0, *Errors: 288*, Skipped: 2
[java]
[java] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project ji-gyroscope: There are test failures.
[java] [ERROR]
[java] [ERROR] Please refer to D:\jasperreports-server-v7.2.0\jasperserver-pro\gyroscope\target\surefire-reports for the individual test results.
[java] [ERROR] -> [Help 1]
[java] [ERROR]
[java] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[java] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[java] [ERROR]
[java] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[java] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[java] [ERROR]
[java] [ERROR] After correcting the problems, you can resume the build with the command
[java] [ERROR] mvn <goals> -rf :ji-gyroscope

BUILD FAILED
D:\jasperreports-server-v7.2.0\jasperserver\buildomatic\bin\dev.xml:567: The following error occurred while executing this line:
D:\jasperreports-server-v7.2.0\jasperserver\buildomatic\bin\dev.xml:141: Java returned: 1

Total time: 8 minutes 9 seconds

[/code]

The java/maven config:

[code]
build-ce:
[echo] remoteDebugArg: ${remoteDebugArg}
[echo] VERBOSE_LOGGING parameter set to: ${VERBOSE_LOGGING}
[echo] MAVEN LOGGING: quiet
[java] Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00)
[java] Maven home: D:\soft\maven-3.5.0-x86
[java] Java version: 1.8.0_131, vendor: Oracle Corporation
[java] Java home: D:\soft\jdk-1.8.0_131-x64\jre
[java] Default locale: en_US, platform encoding: Cp1252
[java] OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
[/code]

Any idea ? Is it known ?

v7.2
pills83's picture
17
Joined: May 13 2008 - 11:38pm
Last seen: 2 years 11 months ago

2 Comments:

#1

There must be a problem with environment or configuration.

I just downloaded and built JRS 7.2 with Java 8 and Maven 3.5. Although, my platform of choice is CentOS.

[echo] VERBOSE_LOGGING parameter set to: ${VERBOSE_LOGGING}
[echo] MAVEN LOGGING: quiet
[java] Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T12:39:06-07:00)
[java] Maven home: /opt/apache-maven-3.5.0
[java] Java version: 1.8.0_212, vendor: Oracle Corporation
[java] Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre
[java] Default locale: en_US, platform encoding: UTF-8
[java] OS name: "linux", version: "4.4.180-2.el7.elrepo.x86_64", arch: "amd64", family: "unix"

build-src-all:

BUILD SUCCESSFUL
Total time: 14 minutes 18 seconds

#2

I doubt there is an issue with my machine (possible, but highly improbable...). I used to build Jasper v7.1.1 locally without any issue. I build something like 30 different Java projects on this machine without any issue since 3 years.

Unfortunately, Linux is not an option for me (stuck on Windows 7 as per corporate policy...) and I have to build from source (corporate policy...).

Disabling the tests for gyroscope did the trick, but this is hacky...

Feedback