Java-Oracle The Network Adapter could not establish the connection Exception

Problem Statement: Java / Oracle Exception

logExceptions, Io exception: The Network Adapter could not establish the connection

Test cases are working fine in dev environment. Same tests are failed in unix environment and caused the above exception.

Solution: In config file database host name is abcd. From Unix environment, it failed to resolve this name to ip address.

Replaced host name with ip address. Now it is working in windows and unix too.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s