alex_dunn Report post Posted May 10, 2016 I am trying to set up a private export server using the java export handler for the user to download their exported charts. The svg exporting works and results in messages on the server (which means that the servlet is being used by the code). When I try to export as an image or pdf the error in Error 1 is thrown. I have used the command, replacing the null with a valid filename, and found that the inkscape command line creates the image correctly (therefore inkscape is correctly installed). Should the null be present after --export-png, or is that the problem? Using the debugger I know that the exportfilename and exportformat are in the exportdata object correctly. Is there any other information that would be needed to help? Error 1. 11:34:40,069 INFO [stdout] (default task-49) PRINTING PARAMETER 11:34:40,071 INFO [stdout] (default task-49) {meta_bgAlpha=[Ljava.lang.String;@6a6189d, stream=[Ljava.lang.String;@26e9e5c3, charttype=[Ljava.lang.String;@48db4777, meta_height=[Ljava.lang.String;@12066802, stream_type=[Ljava.lang.String;@24d2f82f, meta_bgColor=[Ljava.lang.String;@4d7cd68b, meta_width=[Ljava.lang.String;@5f0ed0ac, oi=[Ljava.lang.String;@7e69e537, meta_DOMId=[Ljava.lang.String;@4d497955, parameters=[Ljava.lang.String;@66aa36f9, encodedImgData=[Ljava.lang.String;@4f080130} 11:34:40,071 INFO [com.fusioncharts.exporter.servlet.FCExporter] (default task-49) action null 11:34:40,072 INFO [stdout] (default task-49) Mac OS X 11:34:40,072 INFO [stdout] (default task-49) Command Inkscape :inkscape --export-background=#ffffff --without-gui /usr/local/wildfly-8.2.0.Final/standalone/tmp/vfs/temp/tempca86385dad3232f2/02-os-adalyser.war-cacaaff3514d501efusioncharts_temp/fusioncahrts3753111507276111442.svg --export-png=null -w 250.0 -h 300.0 11:34:40,073 ERROR [io.undertow.request] (default task-49) UT005023: Exception handling request to /adalyser/FCExporter: java.lang.NullPointerException at java.io.File.<init>(File.java:277) [rt.jar:1.8.0_91] at com.fusioncharts.exporter.resources.FCExporter_SVG2ALL.exportProcessor(FCExporter_SVG2ALL.java:327) [fcexporter.jar:] at com.fusioncharts.exporter.servlet.FCExporter.doPost(FCExporter.java:162) [fcexporter.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at uk.co.onesoon.adalyser.web.filter.SecurityFilter.doFilter(SecurityFilter.java:44) [web.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at uk.co.onesoon.adalyser.web.filter.JaasLoginFilter.doFilter(JaasLoginFilter.java:56) [web.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_91] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_91] Share this post Link to post Share on other sites
Gagan Sikri Report post Posted May 18, 2016 (edited) Hi Can you tell us for which operating system you are facing this issue? Edited May 18, 2016 by Gagan Sikri Share this post Link to post Share on other sites
alex_dunn Report post Posted May 23, 2016 I was using Mac OS X and have since found an old forum post that states that it is not supported. Is this still the case? I have tested my setup on a windows machine, where it work correctly. Share this post Link to post Share on other sites