Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

The Application works fine on the localhost, but weirdly from remote  RSS feed

 
Sergio Trevino
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a really weird problem.
I have quite an old application, it uses a lot of different technologies.

1. Vaadin
2. GWT
3. Icepush
....

So basically this the web application, but everything happens on the server side.

In this case this not so important what the server side does, consider an abstract experiment.

The problem is that everything works find when running on from the localhost and doesn't work (works not as expected) when accessing via remote url.

Let's consider I have a server with OS Windows installed, GUI available (so I can control the OS as I was using it locally, TeamViewer).

I start Tomcat Servlet Container.

This Tomcat is available via localhost:8080/my_app and 12.12.12.12:8080/my_app (where 12 is my external IP)

So I try to carry out an experiment via localocalhost:8080/my_app - works fine.

First time I try to carry out an via 12.12.12.12:8080/my_app - works fine.

Second time 12.12.12.12:8080/my_app - doesn't work. Produces incorrect results.

Anytime using localhost:8080/my_app - works fine.

NOTE. The tomcat instance is still the same, when using external url to perform an experiment it fails all time except the first one, but locally (localhost) it works perfectly all the time on the same tomcat instance.

But if I reboot the server or simply restart a tomcat instance first time from the external world works all other fails.

It is really weird problem, seems that something is going wrong with a part of shared memory, global variables or session.

I have spent a week trying to find the problem, but still no luck. 

Using different operating systems, Java versions, Jetty instead of a Tomcat server ...

Could you please suggest something taking into the account used technologies, maybe there is some specific stuff happens for remote request like forking, using new instance ....

I would be grateful for any help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!