Hi Nicolae,

I have tried to reproduce this but could not so far. Judging from the source code this scenario could only happen if the selected spl:predicate is null, but the dialog doesn't allow this to happen. I tried it also with TopBraid 4.4 on Mac. If you have any more details on the exact steps, then I would appreciate it. I will in any case wrap this place with another if statement to make it safer.

The wizard is just a convenience feature, so if you can't make it work you can still "manually" create new functions and web services. Look at other examples on how this is done - essentially like with SPIN functions.

Thanks
Holger


On 4/17/2014 0:51, Nicolae Marasoiu wrote:
Hi,

I try to create a new function with TBC 4.4.

Scenario:
Open Scripts/ create function/web service.
On adding an argument, I select an URI/IRI to an existing Property type resource with range xsd:string, already used in other functions.
Click Ok in add-arg popup.

Result:
First attempt, NPE. Second attempt, it worked. Thrid, NPE.

Pls help,
Thanks


Stack:

java.lang.NullPointerException

at org.topbraid.core.labels.DisplayLabels.getLabel(DisplayLabels.java:156)

at org.topbraid.core.labels.DisplayLabels.getLabel(DisplayLabels.java:139)

at org.topbraidcomposer.spin.createfunction.ArgumentsTableViewer$MyLabelProvider.getColumnText(ArgumentsTableViewer.java:175)

at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)

at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:152)

at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:400)

at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:485)

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.StructuredViewer.updateItem(StructuredViewer.java:2167)

at org.eclipse.jface.viewers.AbstractTableViewer.createItem(AbstractTableViewer.java:278)

at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:758)

at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:650)

at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:637)

at org.eclipse.jface.viewers.AbstractTableViewer$2.run(AbstractTableViewer.java:593)

at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)

at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)

at org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:591)

at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)

at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)

at org.topbraidcomposer.spin.createfunction.ArgumentsTableViewer$2.okPressed(ArgumentsTableViewer.java:133)

at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:476)

at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)

at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)

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

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

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

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

at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)

at org.eclipse.jface.window.Window.open(Window.java:802)

at org.topbraidcomposer.spin.createfunction.ArgumentsTableViewer.addArgument(ArgumentsTableViewer.java:144)

at org.topbraidcomposer.spin.createfunction.CreateFunctionDialog$1.widgetSelected(CreateFunctionDialog.java:129)

at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)

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

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

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

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

at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)

at org.eclipse.jface.window.Window.open(Window.java:802)

at org.topbraidcomposer.sparqlmotion.actions.CreateFunctionAction.doRun(CreateFunctionAction.java:40)

at org.topbraidcomposer.sparqlmotion.actions.AbstractCreateSPARQLMotionAction.run(AbstractCreateSPARQLMotionAction.java:41)

at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)

at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)

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$5.handleEvent(ActionContributionItem.java:411)

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

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

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

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

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)

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

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)

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

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

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

at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)

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:354)

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

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:636)

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

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

at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL 
Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
--- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to