Error When Creating SPIN template from sml:updateQuery

4 views
Skip to first unread message

Catrina

unread,
May 25, 2011, 9:49:08 AM5/25/11
to TopBraid Suite Users
I get an error when trying to convert a sml:updateQuery from one of my
sml:PerformUpdate modules. Is it possible to create a template for
update query and use this template within a SPARQLMotion script?

Thanks,
Catrina

STACK TRACE:

java.lang.reflect.InvocationTargetException
at
org.topbraid.core.change.AbstractChangeEngine.execute(AbstractChangeEngine.java:
287)
at
org.topbraidcomposer.core.change.TBCChangeEngine.execute(TBCChangeEngine.java:
172)
at org.topbraidcomposer.core.change.TBCChangeEngine
$1.run(TBCChangeEngine.java:142)
at org.eclipse.jface.operation.ModalContext
$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.commands.ExecutionException: While
executing the operation, an exception occurred
at
org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:
519)
at
org.topbraid.core.change.AbstractChangeEngine.execute(AbstractChangeEngine.java:
273)
... 3 more
Caused by: java.lang.NullPointerException
at org.topbraidcomposer.spin.actions.ConvertToTemplateStatementAction
$1.execute(ConvertToTemplateStatementAction.java:68)
at
org.topbraid.core.change.ChangeOperation.execute(ChangeOperation.java:
105)
at
org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:
511)
... 4 more

Holger Knublauch

unread,
May 25, 2011, 5:39:40 PM5/25/11
to topbrai...@googlegroups.com
Yes you are right. This feature was introduced while SPIN templates only supported queries, not updates. I have generalized it now to also support update commands (for 3.5.0).

Thanks,
Holger

> --
> You received this message because you are subscribed to the Google
> Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
> TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
> To post to this group, send email to
> topbrai...@googlegroups.com
> To unsubscribe from this group, send email to
> topbraid-user...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/topbraid-users?hl=en

Reply all
Reply to author
Forward
0 new messages