Skip to content

Commit

Permalink
Merge pull request #2672 from Cousjava/PAYARA-2700-commands-admincons…
Browse files Browse the repository at this point in the history
…ole-to-micro

PAYARA-2700 Fix sending commands to micro instance from admin console
  • Loading branch information
arjantijms committed Apr 25, 2018
2 parents 8253e2b + 4d6d110 commit c72d462
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import com.sun.jsftemplating.annotation.HandlerInput;
import com.sun.jsftemplating.annotation.HandlerOutput;
import com.sun.jsftemplating.layout.descriptors.handler.HandlerContext;
import java.math.BigDecimal;

import org.glassfish.admingui.common.util.GuiUtil;
import org.glassfish.admingui.common.util.RestUtil;
Expand Down Expand Up @@ -176,7 +177,7 @@ public static void sendAsadminCommandToSelectedInstances(HandlerContext handlerC
// Get the parameters from each row, and send the asadmin command
for (Map row : selectedRows) {
String instanceName = (String) row.get("instanceName");
String hazelcastPort = Long.toString((Long) row.get("hazelcastPort"));
String hazelcastPort = ((BigDecimal) row.get("hazelcastPort")).toString();
String hostName = (String) row.get("hostName");
String ipAddress = hostName.split("/")[1];

Expand Down

0 comments on commit c72d462

Please sign in to comment.