Jump to content
Changes to the Jaspersoft community edition download ×

tyson.decker

Members
  • Posts

    14
  • Joined

  • Last visited

tyson.decker's Achievements

  1. Visualize.js parameters must be strings. So in your case it would be "paramArray" : ['1','2','3'] The above example will send the parameter to the server properly. However, i'm not sure that you can have a parameter with type array list. I have never been able to run a report like that before.
  2. Wihtout the JasperReports Server war tomcat shuts down properly. With a clean install of 6.2.0 and no modifications or resources added tomcat will not shutdown. I'm installing it on CentOS using tomcat7. After trying to shutdown the memory errors are thrown and tomcat never quits. typing `ps aux` shows a tomcat process still running tomcat 15008 7.4 10.0 6931780 810292 ? Sl 12:32 3:09 /usr/bin/java -Djava.util.logging.config.file=/usr/share/tomcat7/conf/logging.properties.... Trying to startup tomcat again results in multiple instances of tomcat running so I need to manually kill the process everytime.
  3. I'm running jasperserver v6.0.1 and i'm having issues when trying to shutdown tomcat. I did not install the bundled tomcat, I installed using the js-install.sh script. Occasionally we need to shutdown tomcat to do some maintenance. It doesn't shutdown all the way and we end up having multiple zombie tomcat intances running. Looking in the logs I see several SEVERE warnings saying theres a probable memory leak. SEVERE: The web application [/jasperserver-pro] created a ThreadLocal with key of type [java.lang.InheritableThreadLocal] (value [java.lang.InheritableThreadLocal@21671cf3]) and a value of type [org.springframework.security.authentication.UsernamePasswordAuthenticationToken] (value [org.springframework.security.authentication.UsernamePasswordAuthenticationToken@8eb2e32c: Principal: MetadataUserDetails: hardy; Credentials: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: com.jaspersoft.jasperserver.api.metadata.user.domain.impl.client.TenantAwareGrantedAuthority@2a86d03 SEVERE: The web application [/jasperserver-pro] created a ThreadLocal with key of type [java.lang.InheritableThreadLocal] (value [java.lang.InheritableThreadLocal@789da6a6]) and a value of type [com.jaspersoft.jasperserver.multipleTenancy.TenantContext] (value [Multitenancy context: organization 373]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. SEVERE: The web application [/jasperserver-pro] created a ThreadLocal with key of type [java.lang.InheritableThreadLocal] (value [java.lang.InheritableThreadLocal@185d03dc]) and a value of type [org.springframework.security.core.context.SecurityContextImpl] (value [org.springframework.security.core.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. There are several other errors, they seem to mostly be related to authentication. This basically happens everytime I try to shutdown tomcat. I also tried a clean install of jasperserver-pro 6.2.0 without any configuration changes. The only thing I did was import my current reports. I ran into the same issue of tomcat not shutting down. I've exhausted all of my resources and can't figure out why this is happening. Has anybody else experienced a simmilar issue and might know how to solve this?
  4. Im using visualize.js to render a report on a page. I've built controlls for page navigation and zooming. The report is rendered in the center of the page and the window can be resized. The problem is that when I set the report scale it looks like the report becomes off center. This is becasue the transform origin for the report is set to the top left corner. Ideally the transform origin would be set to "center top 0px" instead of "left top 0px" Is there anyway to override this when rendering the report? I cant' just made a CSS rule because the transform origin property is set on the element and overrides any rule I add. I tried manually setting it with javascript which kind of works, except whenever visualize.js resizes (ex. when you resize the window) it automatially reset the transform origin property.
  5. Heres the full stack trace org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339) at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:198) at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy119.cancelExecution(Unknown Source) at com.jaspersoft.jasperserver.remote.services.impl.RunReportServiceImpl.cancelReportExecution(RunReportServiceImpl.java:536) at com.jaspersoft.jasperserver.remote.services.impl.RunReportServiceImpl.destroy(RunReportServiceImpl.java:549) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:239) at org.springframework.beans.factory.support.DisposableBeanAdapter.run(DisposableBeanAdapter.java:215) at org.springframework.web.context.request.DestructionCallbackBindingListener.valueUnbound(DestructionCallbackBindingListener.java:52) at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1816) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:880) at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:670) at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:533) at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:518) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1317) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1496) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1506) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1506) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1485) at java.lang.Thread.run(Thread.java:745)
  6. When running a report with visualize.js I get a stack trace when report execution runs. The stack trace occurs when the server is shutdown or the session times out. org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339) I'm using a custom filter that authenticates the user based off of a token passed in through the url. (ex. https://[jasperserverurl]/jasperserver-pro?ticket=eb802b8a-8f09-4301-9c3d-3799cd10cef5) Visualize.js is authenticating using a custom login function var jasperConfig = { auth: { loginFn: function (properties, request) { return request({ url: "//[jasperserverurl]/jasperserver-pro?ticket=eb802b8a-8f09-4301-9c3d-3799cd10cef5" }); } }}visualize.config(jasperConfig); After running a report using the setup above and waiting for the session to time out or shutting down tomcat the stack trace is produced. This is causing problems because tomcat doesn't shutdown all the way and the server ends up having multiple instances of tomcat running. If I browse to the url manually with the provided token and run reports in the jasper server no stack trace is produced. I can't figure out whats going on. I've spent a lot of time trying to track down the issue. Any help would be appreciated.
  7. I've tried authenticating using hooks, and just providing the username / password in the auth variable. Both produced the same stack trace.
  8. I'm also displaying a spinner where the report will be displayed and i'm using reportCompleted. It works for me. It executes when the report is fully completed. Can you clarify what problem you're having?
  9. After running a report using visualize.js and waiting for the users session to time out then the following stack trace is thrown. The stack trace is not thrown if running the report through the web interface. I'm using Jasper Reports Server 6.0.1. Not sure why this is happening. Does anybody have any help? Thanks 2015-05-12 15:40:52,217 ERROR RunReportServiceImpl,ContainerBackgroundProcessor[standardEngine[Catalina]]:555 - Report execution cleanup failed:org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339) at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:198) at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy119.cancelExecution(Unknown Source) at com.jaspersoft.jasperserver.remote.services.impl.RunReportServiceImpl.cancelReportExecution(RunReportServiceImpl.java:536) at com.jaspersoft.jasperserver.remote.services.impl.RunReportServiceImpl.destroy(RunReportServiceImpl.java:549) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:239) at org.springframework.beans.factory.support.DisposableBeanAdapter.run(DisposableBeanAdapter.java:215) at org.springframework.web.context.request.DestructionCallbackBindingListener.valueUnbound(DestructionCallbackBindingListener.java:52) at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1816) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:880) at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:670) at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:533) at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:518) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1317) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1496) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1506) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1506) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1485) at java.lang.Thread.run(Thread.java:745)
  10. Take a look at section 4.8 in the programming guide http://community.jaspersoft.com/documentation/v561-v560/jasperreports-server-programming-guide visualize({ auth: { ... }}, function (v) { var report = v.report({ resource: "/public/Samples/Reports/AllAccounts", container: "#container"});$("#previousPage").click(function() { var currentPage = report.pages() || 1; report .pages(--currentPage) .run() .fail(function(err) { alert(err); });});$("#nextPage").click(function() { var currentPage = report.pages() || 1; report .pages(++currentPage) .run() .fail(function(err) { alert(err); });});});
  11. I was able to solve this by looking in the result from calling v.inputControls() The validation object on the input control shows the pattern is "yyyy-MM-dd'T'HH:mm:ss" changing my parameter from endDate:['2015-03-20 23:59:59'] to endDate:['2015-03-20T23:59:59'] solved the problem.
  12. Checking the jasperserver_config.properties file, the datetime.format is yyyy-MM-dd HH:mm:ss and it hasn't changed since i upgraded Furthermore, validation.datetime.pattern=/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/ which correctly matches the format i'm using. If anybody can help i'd really appreciate it.
  13. I have a report that has a date/time input control, when I try to run the report using visualise.js I get an input control error. input.controls.validation.error : Input controls validation failure ["Specify a valid value for type Timestamp."] The value I pass follows the format 'year-month-day hours-minutes-seconds' (ex. '2015-03-20 23:59:59'). so my parameter looks like this var jasperParams = { ... endDate:['2015-03-20 23:59:59'], ...} I tried passing in a timestamp and got the same problem. If I change the input control to type Date it works fine, but I need it to be type date/time. Am I using the right format? I have only experienced this issue after upgrading from Jasper Reports Server 5.6 to Jasper Reports Server 6.0.1 so I assume I am using the correct format because it worked in version 5.6
×
×
  • Create New...