Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have previously had no problems with fmpro.evaluate working, but just recently it started to generate errors. I have upgraded to Lion (when it first came out) and updated to 10.7.1. I have also updated to FM Adv v11.4. It seemed to be working fine with those upgrades, but I'm not positive of when the issue started. Not sure if any of this matters, but I thought I'd point it out up front.

I have tested a simple script in ScriptMaster: return fmpro.evaluate ( "Get ( UserCount )"); - which in the past would work with no problem. However, I am getting an error: "java.lang.IllegalStateException: FileMaker called plugin on thread: Thread[AWT-AppKit,5,main]; but plugin is trying to call back to FileMaker on a different thread: Thread[AWT-EventQueue-0,6,main]. This is not allowed." Below is the full description from the plugin log from running a similar script (has a few more evaluate calls, but both produce the same error).

I'm not sure what the problem is here, if I'm doing something wrong or what. I'm using SM 4.124 as I have been since it came out. Thanks in advance for your help!

Aug 29, 2011 7:40:10 AM com.prosc.fmkit.PluginBridge$3 run

CONFIG: === Executing plugin function EvaluateGroovy on thread AWT-EventQueue-0 ===

Aug 29, 2011 7:40:11 AM com.prosc.fmkit.PluginContext evaluateExpression

WARNING: evaluateExpression called from non-FileMaker thread: Thread[AWT-EventQueue-0,6,main]

Aug 29, 2011 7:40:11 AM com.prosc.fmkit.Plugin setLastError

SEVERE: PluginFunction PluginFunction{name='EvaluateGroovy', functionID=28121, minArgs=null, maxArgs=1} got an error with converted args [string fname = fmpro.evaluate ( "Get ( FileName )" );

String aversion = fmpro.evaluate ( "Get ( ApplicationVersion )" );

String alanguage = fmpro.evaluate ( "Get ( ApplicationLanguage )" );

String ucount = fmpro.evaluate ( "Get ( UserCount )" );

String[] test = [fname,aversion,alanguage,ucount];

return test;]

java.lang.IllegalStateException: FileMaker called plugin on thread: Thread[AWT-AppKit,5,main]; but plugin is trying to call back to FileMaker on a different thread: Thread[AWT-EventQueue-0,6,main]. This is not allowed.

at com.prosc.fmkit.types.FMData.assertFileMakerThread(FMData.java:93)

at com.prosc.fmkit.types.FMData.getStringData(FMData.java:87)

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

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.CallSiteArray.defaultCall(CallSiteArray.java:40)

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

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

at Script1.run(Script1.groovy:1)

at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580)

at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)

at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)

at com.prosc.beanshell.BeanShellModel.evaluateGroovy(BeanShellModel.java:162)

at com.prosc.beanshell.BeanShellPlugin.EvaluateGroovy(BeanShellPlugin.java:594)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

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

at com.prosc.fmkit.StaticFunction.invoke(StaticFunction.java:230)

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

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

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

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

at com.prosc.fmkit.PluginBridge$5.run(PluginBridge.java:1141)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)

at java.awt.EventQueue.access$000(EventQueue.java:85)

at java.awt.EventQueue$1.run(EventQueue.java:638)

at java.awt.EventQueue$1.run(EventQueue.java:636)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Aug 29, 2011 7:40:11 AM com.prosc.beanshell.BeanShellPlugin setLastError

SEVERE: ScriptMaster bound variables: Parameters:

{}

Aug 29, 2011 7:40:11 AM com.prosc.fmkit.PluginBridge$3 run

CONFIG: === Executing plugin function SMLastError on thread AWT-AppKit ===

Aug 29, 2011 7:40:11 AM com.prosc.fmkit.PluginBridge$3 run

CONFIG: === Executing plugin function SMLastError on thread AWT-AppKit ===

Posted

ScriptMaster is a www.360works.com product.. you should seek help from them.

Oh wait.. this is a 360works section.. my bad.. >> insert humble appology

Posted

So I redownloaded and installed the same version of the ScriptMaster plugin and Bingo! now it works. Something must have gotten corrupted in the version I was using - it was 4.124 and i've got the fresh version of 4.124 and it's working again. Anyhow, we're all good here!

This topic is 4901 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.