By: Steve Sobol user 07 Feb 2023 at 11:44 a.m. CST

2 Responses
Steve Sobol gravatar
Script is debugged and working with the following signature for the `init` method: ``` def init(self, configurationAttributes): ``` But I am seeing a warning in the script log: ``` 2023-02-07 17:37:24,401 WARN [oxAuthScheduler_Worker-2] [org.gluu.service.custom.script.CustomScriptManager] (CustomScriptManager.java:435) - Update the script's init method to init(self, customScript, configurationAttributes) ``` **Expected behavior:** If I update the signature and include `customScript`, the script should work. **Actual behavior:** ``` 2023-02-07 17:37:54,358 ERROR [oxAuthScheduler_Worker-1] [org.gluu.service.custom.script.CustomScriptManager] (CustomScriptManager.java:438) - Failed to initialize custom script: 'TypeError: init() takes exactly 3 arguments (2 given) ``` and if I navigate to the Person Authentication page and look at the script, I see this error: ``` java.lang.Exception: Using default external type class at org.gluu.service.custom.script.CustomScriptManager.createExternalType(CustomScriptManager.java:394) at org.gluu.service.custom.script.CustomScriptManager.reloadCustomScriptConfigurations(CustomScriptManager.java:293) at org.gluu.service.custom.script.CustomScriptManager.reloadImpl(CustomScriptManager.java:182) at org.gluu.service.custom.script.CustomScriptManager.reload(CustomScriptManager.java:152) at org.gluu.service.custom.script.CustomScriptManager.reloadTimerEvent(CustomScriptManager.java:128) at org.gluu.service.custom.script.CustomScriptManager$Proxy$_$$_WeldSubclass.reloadTimerEvent(Unknown Source) at jdk.internal.reflect.GeneratedMethodAccessor154.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95) at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:85) at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:168) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:330) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:308) at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:286) at javax.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:124) at org.jboss.weld.util.Observers.notify(Observers.java:166) at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:285) at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:273) at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:177) at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:159) at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:632) at org.jboss.weld.util.ForwardingBeanManager.fireEvent(ForwardingBeanManager.java:104) at org.gluu.service.timer.TimerJob.execute(TimerJob.java:37) at org.gluu.service.timer.JobExecutionDelegate.execute(JobExecutionDelegate.java:31) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) ==================Further details============================ Using default external type class ``` The script runs error-free if I don't include the `customScript` parameter in the signature for the `init` method. I would just prefer to not see those warnings in the logs.

By Mohib Zico staff 07 Feb 2023 at 8:54 p.m. CST

Mohib Zico gravatar
Customization is out of community support scope.

By Steve Sobol user 07 Feb 2023 at 9:37 p.m. CST

Steve Sobol gravatar
Fair enough. I have reached out to your sales team regarding a support contract. You should know that the auto-ack emailed to me after I posted this question points people at https://gluu.org/pricing - but that page does not exist. Thanks --Steve