Bean specs definne that getIP1() method should return String
Does it ? Where did you read this ? If your ip1 variable is an int, it's getter should be :
By the way,
you should avoid mixing upper/lower case that way, or you'll get troubles with beans. You'd better rename your instance variable to "ip1", and declare setIp1 and getIp1.