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

Brand new style template throws error on style property


regmar.hanemann

Recommended Posts

I’m running Jasper Studio 6.1.0 and trying to create a style template for a series of reports my colleagues and I have to write - (File/New/Style Template File).  The popup shows.  I enter the name. The new template appears in the editor with one entry called “SimpleStyle”  SimpleStyle contains no attributes.  When I select it (click on it), then in the “Properties” panel select “Style” Jasper Reports throws an error:

 

 

An error has occurred.  See log file for more details.

 

java.lang.NullPointerException

 

 

 

A look into the error log shows :

 

eclipse.buildId=unknown

java.version=1.7.0_80

java.vendor=Oracle Corporation

BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US

Framework arguments:  -keyring /Users/bill.melater/.eclipse_keyring -showlocation

Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -data @noDefault -keyring /Users/bill.melater/.eclipse_keyring -showlocation

 

Error

Thu May 28 15:35:15 CDT 2015

Problems occurred when invoking code from plug-in: "com.jaspersoft.studio.properties".

 

java.lang.NullPointerException

at com.jaspersoft.studio.property.section.report.util.PHolderUtil.getUnit(PHolderUtil.java:24)

at com.jaspersoft.studio.model.MReport.getMeasureUnit(MReport.java:1041)

at com.jaspersoft.studio.property.section.widgets.SPPixel.setData(SPPixel.java:850)

at com.jaspersoft.studio.property.section.AbstractRealValueSection.refresh(AbstractRealValueSection.java:32)

at com.jaspersoft.studio.properties.view.TabContents$7.run(TabContents.java:249)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)

at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)

at com.jaspersoft.studio.properties.view.TabContents.refresh(TabContents.java:252)

at com.jaspersoft.studio.properties.view.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:156)

at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)

at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)

at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)

at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)

at com.jaspersoft.studio.properties.internal.TabbedPropertyViewer.access$0(TabbedPropertyViewer.java:1)

at com.jaspersoft.studio.properties.internal.TabbedPropertyViewer.updateSelection(TabbedPropertyViewer.java:209)

at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)

at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)

at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)

at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)

at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)

at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)

at com.jaspersoft.studio.properties.internal.TabbedPropertyList.select(TabbedPropertyList.java:214)

at com.jaspersoft.studio.properties.internal.TabbedPropertyList$TabAction.run(TabbedPropertyList.java:240)

at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)

at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)

at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3982)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)

at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:96)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

 

 

Is there a known solution to this issue?  Ultimately I’d like to create a series of styles that inherit attributes from each other, so that we can speed up development.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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