mca.amitrami Posted July 6, 2018 Share Posted July 6, 2018 Hi,I getting error when try to create custom visualization component using jasper studio JasperReports 6.4.31 commercial version.Error is: Could not initialize Velocity.java.lang.NullPointerException at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1198) at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1181) at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1297) at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1265) at org.apache.velocity.app.Velocity.evaluate(Velocity.java:180) at com.jaspersoft.studio.components.customvisualization.creation.wizard.CustomVisualizationComponentWizard.generateJsResource(CustomVisualizationComponentWizard.java:472) at com.jaspersoft.studio.components.customvisualization.creation.wizard.CustomVisualizationComponentWizard.generateRender(CustomVisualizationComponentWizard.java:460) at com.jaspersoft.studio.components.customvisualization.creation.wizard.CustomVisualizationComponentWizard.access$3(CustomVisualizationComponentWizard.java:456) at com.jaspersoft.studio.components.customvisualization.creation.wizard.CustomVisualizationComponentWizard$1.run(CustomVisualizationComponentWizard.java:152) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119) Thanks,Amit Rami Link to comment Share on other sites More sharing options...
p.neuser Posted October 10, 2018 Share Posted October 10, 2018 Hi!is there any news in this case? We are facing the same issue in Jasper Studio Professional 7.1.0 and 6.3.1. I'm tasked with evaluating how custom components can help us with a couple of problems we are facing and got stuck just in the beginning?Kind regards,Philipp Neuser Link to comment Share on other sites More sharing options...
p.neuser Posted October 11, 2018 Share Posted October 11, 2018 Ok, I've put some further investigation into this. When creating your custom component velocity tries to write its logfile to current working directory, which is not writeable as long as you don't start Jasper Studio as an Administrator.A workaround is to make your installation directory writeable to all users. This should be definitely fixed in Jasper Studio in the long run as this is not good practice.Regards,Philipp Neuser Link to comment Share on other sites More sharing options...
lumibres Posted October 17, 2018 Share Posted October 17, 2018 Philipp Neuser is right.If you faced like this problem...you must execute the jasper studio by "Administrator mode" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now