Unable to lookup local addresses error Running app from Studio

Unable to lookup local addresses error Running app from Studio

book

Article ID: KB0075981

calendar_today

Updated On:

Products Versions
TIBCO Live Datamart 7
TIBCO Streaming 10

Description

When launching a Live Datamart application from StreamBase Studio, an error like this is seen:
2015-03-26 11:17:24.921 ERROR ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liveViewServerAdminResource' defined in URL [jar:file:/Applications/TIBCO%20StreamBase%207.5.1/TIBCO%20StreamBase%207.5.1/liveview/server/lib/lv-server-rest.jar!/com/streambase/liveview/server/core/webapp/WEB-INF/classes/coreContext.xml] : Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException : Could not instantiate bean class [com.streambase.liveview.server.core.resource.LiveViewServerAdminResource] : Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to lookup local addresses

A similar error may occur when launching an EventFlow StreamBase application.

Issue/Introduction

Unable to lookup local addresses error Running app from Studio

Resolution

This occurs when an active VPN connection interferes with IP address lookup of 'localhost' or the machine's own hostname.

To resolve this, you may either:

A. Disable VPN and launch again.

B. Edit the OS's hosts file to include this line as the first setting:
127.0.0.1 localhost myHostName myHostName.company.com

...where myHostName and myHostName.company.com are replaced which correct values for your system.

On Linux and OS X, the hosts file is in found in directory /etc.

On Windows, the hosts file is found in directory C:\Windows\System32\drivers\etc.