Skip to content

Commit

Permalink
PAYARA-1501-Illegal-non-String-type-errors-when-JMX-accessed (payara#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mulderbaba authored and Cousjava committed Apr 3, 2017
1 parent 807b0dd commit 0fe298c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0fe298c

Please sign in to comment.