October 9, 201114 yr 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
October 10, 201114 yr Author 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
Create an account or sign in to comment