Jump to content

Recommended Posts

Posted

I am using Jaspersoft Studio 6.1.0. My reports use a MySQL DataSource (com.mysql.jdbc.Driver). The reports were originally generated in an older iReport version (Jasper Reports 5.5.0). The DataSource works without problems in all my reports or when testing it in the Data Adapter Wizard. But every click on the "DataSet and Query editor dialog" button causes this error:


exception.jpg.4a3a22efcee63a95fcf25b6bc825cf9c.jpg

 

This is the stack trace:

java.lang.NullPointerException
    at com.jaspersoft.studio.utils.ModelUtils.getQueryLanguagesOnly(ModelUtils.java:1074)
    at com.jaspersoft.studio.utils.ModelUtils.getQueryLanguages(ModelUtils.java:1044)
    at com.jaspersoft.studio.property.dataset.dialog.DataQueryAdapters.createQuery(DataQueryAdapters.java:153)
    at com.jaspersoft.studio.property.dataset.dialog.DataQueryAdapters.createTop(DataQueryAdapters.java:129)
    at com.jaspersoft.studio.property.dataset.dialog.DatasetDialog.createFormContent(DatasetDialog.java:237)
    at org.eclipse.ui.forms.FormDialog.createDialogArea(FormDialog.java:92)
    at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at org.eclipse.jface.window.Window.open(Window.java:790)
    at com.jaspersoft.studio.property.dataset.dialog.DatasetAction.run(DatasetAction.java:82)
    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.Widget.sendEvent(Widget.java:1276)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3562)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3186)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
 

I could not find this problem mentioned elsewhere, so it seems I am doing something very wrong. But as said: All reports work without problems with this DataSource. I just cannot open this dialog.

Any ideas what I can do?

Thanks in advance

Andrej

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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