plugin not working the proxy

I am working on a swing applet using the current version of the java plugin. Now everything seems to work when I run locally. But when I run of a client, the plugin is never loaded. Even the demos on the sun site do not load the plugin. We are on a intranet behind a firewall. All of the clients have the plugin installed and have converted the html page using the html converter.

Please advise

[415 byte] By [dave23] at [2007-9-26 3:49:03]
# 1

I;m experiencing similar problems with my swing based plugin based treeview applet.

My applet is loaded quickly however when it tries to contact the web server (through a proxy and a firewall) then it takes app. 7 minutes to reach the server and receive the result. When I enter the query into Internet Explorer the page is returned within a jiffy.

I've given my applet allPermission on the client side but still nothing. From what I read this should be a security problem but then why does a fully authorized applet still posts this problem.

Below is some of the code I use to connect to the server:

PrintWriter aWriter;

int i;

Vector theResponse;

String sResponseLine;

URLConnection aConnection;

theResponse = new Vector();

try

{

System.out.println("Opening URL: '" + anURL.toString() + "'");

aConnection = anURL.openConnection();

aConnection.setDoOutput(true);

aWriter = new PrintWriter(aConnection.getOutputStream());

aWriter.println("sTransaction=" + sCommand);

System.out.println("sTransaction=" + sCommand);

aWriter.println("&sClass=" + URLEncoder.encode(sSBClass));

System.out.println("&sClass=" + URLEncoder.encode(sSBClass));

aWriter.println("&lObjectId=" + URLEncoder.encode(sSBObjectId));

System.out.println("&lObjectId=" + URLEncoder.encode(sSBObjectId));

if(sCustomParameter != null)

if(sCustomParameter != "")

{

aWriter.println("&sCustomParameter=" + URLEncoder.encode(sCustomParameter));

System.out.println("&sCustomParameter=" + URLEncoder.encode(sCustomParameter));

}

aWriter.close();

System.out.println("aWriter.close();");

BufferedReader aBuffer;

aBuffer = new BufferedReader(new InputStreamReader(aConnection.getInputStream()));

System.out.println("new BufferedReader(new InputStreamReader(aConnection.getInputStream()));");

while((sResponseLine = aBuffer.readLine()) != null)

{

theResponse.addElement(sResponseLine);

System.out.println(sResponseLine);

}

aBuffer.close();

System.out.println("aBuffer.close();");

}

catch(IOException e) { System.out.println(e.getMessage());}

return theResponse;

}

The code hangs after theaWriter.close(); command

and continues 7 minutes later with the

System.out.println("aWriter.close();");

BufferedReader aBuffer;

commands.

Does anybody recognizes this problem?

svdhorst at 2007-6-29 12:33:11 > top of Java-index,Desktop,Deploying...