Cannot call method "register" of undefined

Questions and answers on developing, deploying and using plugins and JavaBeans

Cannot call method "register" of undefined

Postby Bernd.N » Thu Jul 12, 2018 8:04 am

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?
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 502
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Cannot call method "register" of undefined

Postby mboegem » Thu Jul 12, 2018 4:57 pm

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.
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1449
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands

Re: Cannot call method "register" of undefined

Postby Bernd.N » Thu Jul 12, 2018 5:44 pm

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.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 502
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Cannot call method "register" of undefined

Postby mboegem » Thu Jul 12, 2018 7:37 pm

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
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1449
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 3 guests