Hi friends,
I try to connect a java appliction to a sevlet in weblogic server.I used URL and URLConnection class in client appliction to connect to servlet.But in client side iam facing an exception saying,
Exception in thread "main" java.lang.IllegalAccessError: Already connected
        at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(HttpUR
LConnection.java:804)
        at client.main(client.java:22)

In server side my exceptoin is,

java.net.SocketException: Connection reset by peer: JVM_recv in socket input str
eam read
        at java.net.SocketInputStream.socketRead(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:90)
        at weblogic.socket.ResettableSocket.getPrefix(ResettableSocket.java, Com
piled Code)
        at weblogic.socket.JVMSocketT3.claimSocket(JVMSocketT3.java, Compiled Co
de)
        at weblogic.socket.JVMSocketT3.claimSocket(JVMSocketT3.java:97)
        at weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:379)
        at weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.
java:506)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

Any one can please help me to solve it.
Thanks in advance.