Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing a chat applet

 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i want to test my chat applet, if i run my chat server and run the chat applet from applet viewer it is working fine(localhost chat server and client are in same syatem). if i deploy my chat applet in tomcat server and run then this is showing some security error like.


the thread code is

192.168.0.106:54555 is local ip and port number where Chat server is running
 
Andrew Thompson
Ranch Hand
Posts: 77
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mallikarjun dontamsetti wrote:
192.168.0.106:54555 is local ip and port number where Chat server is running


A sand-boxed applet can 'phone home' to the server it came from, but it seems this JVM is confused that it is coming from the same server. What is the copy/pasted URL from the browser address bar when the applet fails?
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
 
Andrew Thompson
Ranch Hand
Posts: 77
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Huh. That URL destroys my theory. I expected it to be a File based URI. If I think of anything else, I'll get back to you.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dug my code and found something.
Server starts on a system which has Ip adress example 210.123.1.xxx on a port. Client has to connect to this TCP but the it is not (this may be due to applet can communicate to host only). The applet is connecting to Tomcat IP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic