Jump to content
JasperReports Library 7.0 is now available ×

Unable to run JasperServer 6.4.0 build on 64bit GNU/Linux


jason.irwin

Recommended Posts

I am attempting to build the JasperServer 6.4.0 build and am encountering a problem on GNU/Linux. The same JasperServer source works on Windows without issue.

When I attempt to run "./js-ant build-ce" I get the following exception:

[java] Running TestSuite[java] Configuring TestNG with: TestNG652Configurator[java] [JPivot] 05 Oct 2017 13:50:08,771 ERROR [session ] com.jaspersoft.jasperserver.api.metadata.user.service.impl.ProfileAttributesResolverImpl#merge: Some message Some message[java] [JPivot] 05 Oct 2017 13:50:08,780 ERROR [session ] com.jaspersoft.jasperserver.api.metadata.user.service.impl.ProfileAttributesResolverImpl#merge: Some message Some message[java] [JPivot] 05 Oct 2017 13:50:08,785 ERROR [session ] com.jaspersoft.jasperserver.api.metadata.user.service.impl.ProfileAttributesResolverImpl#merge: Some message Some message[java] Configuring TestNG with: TestNG652Configurator[java] [JPivot] 05 Oct 2017 13:50:09,559 ERROR [session ] com.jaspersoft.jasperserver.api.security.validators.Validator#validateSQL: Invalid SQL:An error has occurred. Please contact your system administrator. (56632), SQL: SeLeCt * from blah where a = 'ololo';create table test (col blob)[java] [JPivot] 05 Oct 2017 13:50:09,561 ERROR [session ] com.jaspersoft.jasperserver.api.security.validators.Validator#validateSQL: Invalid SQL:An error has occurred. Please contact your system administrator. (56632), SQL: SeLeCt * from blah where a = 'ololo';create table test (col blob)[java] [JPivot] 05 Oct 2017 13:50:10,280 ERROR [session ] com.jaspersoft.jasperserver.api.security.JSCsrfLogger#log: potential cross-site request forgery (CSRF) attack thwarted (user:<anonymous>, ip:, method:POST, uri:testCSRF.html, error:required token is missing from the request)[java] [JPivot] 05 Oct 2017 13:50:10,330 ERROR [session ] com.jaspersoft.jasperserver.api.security.JSCsrfLogger#log: potential cross-site request forgery (CSRF) attack thwarted (user:<anonymous>, ip:, method:POST, uri:testCSRF.html, error:required token is missing from the request)[java] Tests run: 138, Failures: 12, Errors: 0, Skipped: 2, Time elapsed: 3.064 sec <<< FAILURE! - in TestSuite[java] getDiagnosticDataTest on getDiagnosticDataTest(com.jaspersoft.jasperserver.api.logging.diagnostic.service.impl.SessionRegistryDiagnosticServiceTest)(com.jaspersoft.jasperserver.api.logging.diagnostic.service.impl.SessionRegistryDiagnosticServiceTest)  Time elapsed: 0.123 sec  <<< FAILURE![java] org.unitils.core.UnitilsException: Trying to make a method return a value who's type is not compatible with the return type. Value type: class [Ljava.lang.Object;, return type: interface java.util.List[java]     at org.unitils.mock.mockbehavior.impl.ValueReturningMockBehavior.assertCanExecute(ValueReturningMockBehavior.java:59)[java]     at org.unitils.mock.core.BehaviorDefiningInvocation.<init>(BehaviorDefiningInvocation.java:74)[java]     at org.unitils.mock.core.MockObject.createBehaviorDefiningInvocation(MockObject.java:527)[java]     at org.unitils.mock.core.MockObject.handleAlwaysMatchingMockBehaviorInvocation(MockObject.java:425)[java]     at org.unitils.mock.core.MockObject$AlwaysMatchingMockBehaviorInvocationHandler.handleInvocation(MockObject.java:584)[java]     at org.unitils.mock.proxy.ProxyUtil$ProxyMethodInterceptor.intercept(ProxyUtil.java:145)[java]     at org.springframework.security.core.session.SessionRegistry$$EnhancerByCGLIB$$41424d08.getAllPrincipals(<generated>)[java]     at com.jaspersoft.jasperserver.api.logging.diagnostic.service.impl.SessionRegistryDiagnosticServiceTest.setUp(SessionRegistryDiagnosticServiceTest.java:68)[/code]

There are also a slew of NullPointerExceptions being thrown from within the unit tests as well.

Has anyone run the build on GNU/Linux and maybe has an idea of what I've done wrong?

ItemFailingWorking
OS64bit KDE Neon (based off Ubuntu)64bi Windows 10 Enterprise
JDKOracle, 1.8.0_144Oracle, 1.8.0_131
DatabaseMySQL

MySQL

PhantomJS2.1.12.1.1
Link to comment
Share on other sites

  • 5 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...