cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Jens_Pott
Level 3

Plugin does not work

Hi All,

I have a custom code which works proberly if I use Execute Custom Code in the Pre-Install task. Then I create a plug-in with that code. I'm able to select the new action from the Plugin-Ins panel.
The plug-in is not working in the installer. I got an error in the Installer log.
I tried different class names, but with no luck.

Does anyone know what happens here?

Thanks,
Jens
Labels (1)
0 Kudos

(12) Replies
RobertDickau
Flexera Alumni

What do the contents of customcode.properties look like? Does a simpler example (not in the com.zerog.ia.customcode package) work?
0 Kudos
Jens_Pott
Level 3

Hi Robert,

I did use a different class name with no luck.
Here is the contents of my customcode.properties.
****
plugin.main.class=com.zerog.ia.customcode.action.CheckPort
plugin.name=HUA Check Port
plugin.type=action
plugin.available=preinstall,install,postinstall
property.HUA_CHECKPORT_PORT=
property.HUA_CHECKPORT_CMD=
****

Thx.
Jens
0 Kudos
RobertDickau
Flexera Alumni

To simplify, does it work if you remove the package com.zerog.ia.customcode.action; line from the Java code and then recompile, and change the plugin.main.class entry in customcode.properties to just CheckPort?
0 Kudos
Jens_Pott
Level 3

I did the changes, but the error is still there.

****
Custom Action: CheckPort
Status: ERROR
Additional Notes: ERROR - class CheckPort unavailable.
****

It still works as Execute Custom Code.

****
Custom Action: CheckPort
Status: SUCCESSFUL
****

Is there something missing?

Thx
Jens
0 Kudos
RobertDickau
Flexera Alumni

Hmmm... Does your custom plugin name (HUA Check Port) appear correctly in the Advanced Designer when you add the action? What are the contents of your plugin jar file?
0 Kudos
Jens_Pott
Level 3

The plugin name appears correctly. The contents of the plugin jar file is simple:
customcode.properties
CheckPort.class
Manifest.mf which is located in the sub folder meta-inf\

The plugin.main.class is currently CheckPort, but this give me the error:
class CheckPort unavailable.

I also did a test by changing the plugin.name to only CheckPort, but the problem is still the same.

Any thoughts?

Thx.
Jens
0 Kudos
purcellk24
Level 7

Can you post the code for your plugin and/or maybe the jar file? How about a sample project that can replicate your problem?

Does your plugin depend on a 3rd party library?
0 Kudos
Jens_Pott
Level 3

Please find the JAR file attached.
It's a simple test plugin which should check a given TCP port.

A 3rd party library is not required.

Thx,
Jens
0 Kudos
felixmat
Level 3

Is this a Virtual machine, I have seen similar issues while running the installer on a VM.
0 Kudos
Jens_Pott
Level 3

This is a interesting question! YES I try the installer in a Virtual Machine.
Ok, I will try it on a real Windows Server. Let's see what happens.

Thx,
Jens
0 Kudos
purcellk24
Level 7

It didn't work for me at first. I got the same error.

Make sure that in your customcode.properties file there are no trailing spaces or extra characters after the class name.
0 Kudos
Jens_Pott
Level 3

After cleaning up the customcode.properties my plugin is running fine.

Many Thanks,
Jens
0 Kudos