Page 1 of 1

Cannot call method "register" of undefined

PostPosted: Thu Jul 12, 2018 8:04 am
by Bernd.N
When trying to register a plugin, we get "Cannot call method "register" of undefined" -
but only on one specific server, while on another server it works fine.

The message comes from the following line:
Code: Select all
bSuccess = plugins.Plugin-Name.register(....)


The plugin certainly exists in the plugin folder, and it is also properly signed.

Did anybody experience this problem in plugin registering, and knows a solution?

Re: Cannot call method "register" of undefined

PostPosted: Thu Jul 12, 2018 4:57 pm
by mboegem
Bernd.N wrote:The plugin certainly exists in the plugin folder, and it is also properly signed.

But maybe it doesn't load because of conflicting jar dependencies.

Bernd.N wrote:Did anybody experience this problem in plugin registering, and knows a solution?

Experienced this more than I'd like, but the only solution is to find out why it isn't loading.
It could help if you'd post the name of the plugin, I don't see why you hide that.

Re: Cannot call method "register" of undefined

PostPosted: Thu Jul 12, 2018 5:44 pm
by Bernd.N
Hi Marc,

thanks for the tip, we actually have a lot of plugins installed, it might even be that we use only 50% of them.

I will get a new version of the plugin next week (protools plugin) and hope this will solve it.
If not I could check which other plugins are not needed, and take them out, as you say there might be conflicting plugins.

What we found out so far is that the automatic download of chilkat_win64.dll to users\user-name\.servoy is not working sometimes, and that DLL is important in our case.

What I did read somewhere was that deletion of Java Cache and the .servoy folder in the users folder might help, however it seems not in our case.

Re: Cannot call method "register" of undefined

PostPosted: Thu Jul 12, 2018 7:37 pm
by mboegem
Bernd.N wrote:What I did read somewhere was that deletion of Java Cache and the .servoy folder in the users folder might help

true

also open up java console at startup of the solution, that might give some valuable output