diff --git a/appserver/payara-appserver-modules/notification-snmp-core/src/main/java/fish/payara/notification/snmp/SnmpNotifierConfiguration.java b/appserver/payara-appserver-modules/notification-snmp-core/src/main/java/fish/payara/notification/snmp/SnmpNotifierConfiguration.java index ae184c1cd49..bf2c6fb8542 100644 --- a/appserver/payara-appserver-modules/notification-snmp-core/src/main/java/fish/payara/notification/snmp/SnmpNotifierConfiguration.java +++ b/appserver/payara-appserver-modules/notification-snmp-core/src/main/java/fish/payara/notification/snmp/SnmpNotifierConfiguration.java @@ -73,7 +73,7 @@ public interface SnmpNotifierConfiguration extends NotifierConfiguration { String getHost(); void setHost(String value) throws PropertyVetoException; - @Attribute(defaultValue = "162") - Integer getPort(); + @Attribute(defaultValue = "162", dataType = Integer.class) + String getPort(); void setPort(String value) throws PropertyVetoException; } \ No newline at end of file diff --git a/appserver/payara-appserver-modules/notification-snmp-core/src/main/java/fish/payara/notification/snmp/SnmpNotifierConfigurationExecutionOptionsFactory.java b/appserver/payara-appserver-modules/notification-snmp-core/src/main/java/fish/payara/notification/snmp/SnmpNotifierConfigurationExecutionOptionsFactory.java index f889e2c4916..e9c4e5fa7e3 100644 --- a/appserver/payara-appserver-modules/notification-snmp-core/src/main/java/fish/payara/notification/snmp/SnmpNotifierConfigurationExecutionOptionsFactory.java +++ b/appserver/payara-appserver-modules/notification-snmp-core/src/main/java/fish/payara/notification/snmp/SnmpNotifierConfigurationExecutionOptionsFactory.java @@ -68,7 +68,7 @@ public SnmpNotifierConfigurationExecutionOptions build(SnmpNotifierConfiguration executionOptions.setOid(notifierConfiguration.getOid()); executionOptions.setVersion(notifierConfiguration.getVersion()); executionOptions.setHost(notifierConfiguration.getHost()); - executionOptions.setPort(notifierConfiguration.getPort()); + executionOptions.setPort(Integer.parseInt(notifierConfiguration.getPort())); return executionOptions; } diff --git a/appserver/payara-appserver-modules/notification-xmpp-core/src/main/java/fish/payara/notification/xmpp/XmppNotifierConfiguration.java b/appserver/payara-appserver-modules/notification-xmpp-core/src/main/java/fish/payara/notification/xmpp/XmppNotifierConfiguration.java index f3acd570d93..c23d8992279 100644 --- a/appserver/payara-appserver-modules/notification-xmpp-core/src/main/java/fish/payara/notification/xmpp/XmppNotifierConfiguration.java +++ b/appserver/payara-appserver-modules/notification-xmpp-core/src/main/java/fish/payara/notification/xmpp/XmppNotifierConfiguration.java @@ -61,7 +61,7 @@ public interface XmppNotifierConfiguration extends NotifierConfiguration { void host(String host) throws PropertyVetoException; @Attribute(dataType = Integer.class, defaultValue = "5222") - Integer getPort(); + String getPort(); void port(String port) throws PropertyVetoException; @Attribute(required = true) @@ -77,7 +77,7 @@ public interface XmppNotifierConfiguration extends NotifierConfiguration { void password(String password) throws PropertyVetoException; @Attribute(defaultValue = "false") - Boolean getSecurityDisabled(); + String getSecurityDisabled(); void securityDisabled(String securityDisabled) throws PropertyVetoException; @Attribute(required = true) diff --git a/appserver/payara-appserver-modules/notification-xmpp-core/src/main/java/fish/payara/notification/xmpp/XmppNotifierConfigurationExecutionOptionsFactory.java b/appserver/payara-appserver-modules/notification-xmpp-core/src/main/java/fish/payara/notification/xmpp/XmppNotifierConfigurationExecutionOptionsFactory.java index 84ddb999de7..33ac30c9159 100644 --- a/appserver/payara-appserver-modules/notification-xmpp-core/src/main/java/fish/payara/notification/xmpp/XmppNotifierConfigurationExecutionOptionsFactory.java +++ b/appserver/payara-appserver-modules/notification-xmpp-core/src/main/java/fish/payara/notification/xmpp/XmppNotifierConfigurationExecutionOptionsFactory.java @@ -67,11 +67,11 @@ public XmppNotifierConfigurationExecutionOptions build(XmppNotifierConfiguration executionOptions.setEnabled(Boolean.parseBoolean(notifierConfiguration.getEnabled())); executionOptions.setHost(notifierConfiguration.getHost()); - executionOptions.setPort(notifierConfiguration.getPort()); + executionOptions.setPort(Integer.parseInt(notifierConfiguration.getPort())); executionOptions.setServiceName(notifierConfiguration.getServiceName()); executionOptions.setUsername(notifierConfiguration.getUsername()); executionOptions.setPassword(notifierConfiguration.getPassword()); - executionOptions.setSecurityDisabled(notifierConfiguration.getSecurityDisabled()); + executionOptions.setSecurityDisabled(Boolean.valueOf(notifierConfiguration.getSecurityDisabled())); executionOptions.setRoomId(notifierConfiguration.getRoomId()); return executionOptions;