[topbraid-users] URI <www.someurito#jsfunction> has no registered function factory...

56 views
Skip to first unread message

Gerrick Bivins

unread,
May 10, 2010, 5:31:12 PM5/10/10
to topbrai...@googlegroups.com
Hello all,
I have a SM script which defines an inline javascript function. When I try to access it in my script, I'm getting the following error:
 
[TopBraid Warning] org.topbraid.eclipsex:  WARN [pool-1-thread-3-TBL] (ALog.java:48) - URI <http://www.someurito#jsfunction> has no registered function factory
 (Dummy to give stack trace.)
java.lang.Exception: Dummy to give stack trace.
...
 
Any ideas what the cause of this could be?
Thanks in advance,
Gerrick

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

Scott Henninger

unread,
May 10, 2010, 6:05:35 PM5/10/10
to TopBraid Suite Users
Gerrick; The general error means that function name you're calling
isn't defined at <http://www.someurito/#jsfunction>. Make sure the
name of your SPIN function URI and the function call line up.

My best guess is that you defined a function in an inline call and are
trying to use that name? Defining a function inline is pretty limited
and you can't define a named function. In general, the name of the
function is always the SPIN function name (URI). If you want to call
a named JavaScript function, you need to define it in a text file (.js
is the convention) and use the same name to define a SPIN function
that names the file in spinx:javaScriptFile.

There are a couple of examples on using JavaScript at Help > SPIN>
Using JavaScript to define SPIN/SPARQL Functions.

-- Scott

On May 10, 4:31 pm, Gerrick Bivins <gbivi...@gmail.com> wrote:
> Hello all,
> I have a SM script which defines an inline javascript function. When I try
> to access it in my script, I'm getting the following error:
>
> *[TopBraid Warning] org.topbraid.eclipsex:  WARN [pool-1-thread-3-TBL]
> (ALog.java:48) - URI
> <**http://www.someurito#jsfunction*<http://www.someurito/#jsfunction>
> *> has no registered function factory
>  (Dummy to give stack trace.)
> java.lang.Exception: Dummy to give stack trace.*
Reply all
Reply to author
Forward
0 new messages