Hi Chiran,
From the log file I can see your application url is http://localhost:8080/testapp
However if you have followed the Java library document (https://gluu.org/docs/oxd/libraries/java/#configure-the-client-application)the document says , application will not work if it is not https and a valid host name.
The client host name should be a valid hostname(FQDN), not localhost or an IP Address. You can configure the host name by adding the following entry in your host file.
Linux
Host file location /etc/host :
127.0.0.1 client.example.com
Please try to make the url something like https://hostname and you should not get any error.
Thanks,
Jajati