Jump to content
We've recently updated our Privacy Statement, available here ×

Error Creating Custom Visualization Component Using Jasper Studio


mca.amitrami

Recommended Posts

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

  • 3 months later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

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

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

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...