Jump to content

ScriptMaster function runs on client but not as server script


This topic is 3925 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi guys,

any idea why this function works perfectly on a FileMaker client but not on FileMaker Server (same computer).

All my other ScriptMaster modules work as expected in my server scripts, except this one.

RegisterGroovy( "SystemNanotime" ; "t = fmpro.evaluate(\"get(currenttime)\") ¶

return t[0..-4] + \",\" + System.nanoTime().toString()[10..-4] " ; "isGui=false" ) )

The client return something like 13:59,026579 (= 01:59.026 PM)

run via the server this return "ERROR".

It's not a problem of "," /"." (my server runs on a German system), already tried that.

Best,

Alexander

Link to comment
Share on other sites

this is the error from the Serverlogfile. Have no clue why it works on the client but not on the server on the same machine..

10.10.2011 18:15:36 com.prosc.fmkit.Plugin setLastError

SCHWERWIEGEND: PluginFunction PluginFunction{name='SystemNanotime'} got an error with converted args []

com.prosc.fmkit.FmCalculationException: 100

at com.prosc.fmkit.PluginContext.evaluateExpression(PluginContext.java:148)

at com.prosc.beanshell.FMPro.evaluate(FMPro.java:42)

at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)

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

at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)

at Script1.run(Script1.groovy:1)

at com.prosc.beanshell.GroovyFunction.invoke(GroovyFunction.java:111)

at com.prosc.fmkit.Plugin.invokeFunction(Plugin.java:337)

at com.prosc.fmkit.RegisterablePlugin.invokeFunction(RegisterablePlugin.java:79)

at com.prosc.fmkit.Plugin.invokeFunctionNoErrors(Plugin.java:318)

at com.prosc.fmkit.PluginBridge$3.run(PluginBridge.java:1041)

at com.prosc.fmkit.PluginBridge.runTask(PluginBridge.java:1250)

at com.prosc.fmkit.PluginBridge.doFunction(PluginBridge.java:1055)

10.10.2011 18:15:36 com.prosc.beanshell.BeanShellPlugin setLastError

Link to comment
Share on other sites

  • 1 year later...

This topic is 3925 days old. Please don't post here. Open a new topic instead.

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

Important Information

By using this site, you agree to our Terms of Use.