Wierd socket disconnects on __weblogic_admin_rmi_queue
We are running WLS 7.0 SP2 and I need to upgrade the JVM to 1.4.2 to get around a stability problem. When doing so, saw the following error from the admin server every 5 seconds:
####<Oct 11, 2006 11:15:45 AM EDT> <Error> <socket> <spdevapp1> <pmapp1> <ExecuteThread: '5' for queue: '__weblogic_admin_rmi_queue'> <kernel identity> <> <000424> <IOException on socket: weblogic.servlet.internal.MuxableSocketHTTP@ec972 - idle timeout: '30000' ms, socket timeout: '5000' ms, fd: 79
java.net.SocketException: Connection reset>
java.net.SocketException: Connection reset
Start server side stack trace:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at weblogic.socket.PosixSocketMuxer.readBytesProblem(PosixSocketMuxer.java:889)
at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:774)
at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:700)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
End server side stack trace
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at weblogic.socket.PosixSocketMuxer.readBytesProblem(PosixSocketMuxer.java:889)
at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:774)
at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:700)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
####<Oct 11, 2006 11:15:45 AM EDT> <Error> <HTTP> <spdevapp1> <pmapp1> <ExecuteThread: '5' for queue: '__weblogic_admin_rmi_queue'> <kernel identity> <> <101083> <Connection failure>
java.net.SocketException: Connection reset
Start server side stack trace:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at weblogic.socket.PosixSocketMuxer.readBytesProblem(PosixSocketMuxer.java:889)
at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:774)
at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:700)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
End server side stack trace
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at weblogic.socket.PosixSocketMuxer.readBytesProblem(PosixSocketMuxer.java:889)
at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:774)
at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:700)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
but this only came from <pmapp1>, which is a managed server running on the same host. <pmapp2> running on a separate host in the same cluster does not exhibit this problem.
Also the same errors are not seen if <pmapp1> is started with JDK1.3.1. The following table summarizes the scenarios I tested:
admin VM: 1.3.1 1.4.2
pmapp1 VM:
1.3.1 ok ok
1.4.2 error error
All other managed server instances, including <pmapp2>, seems to be impervious to the JVM versions.
Any thoughts on this?
Hi,
Check this link :
Re: myrealm error when start through node manager
Similar Messages
-
How to handle unexcepted socket disconnection?
I have created a queue in server, and allow multiple clients to access the queue. Those clients who try to access empty queue are blocked using wait( ) method.
They worked well, however, when I terminate a waitting client, there is an exception information in server:
"java.net.SocketException:Connection reset by peer: socket wirte error"
I want to shut down the waitting thread normally, who can I do this?
Thanks a lot!Thanks a lot.
When some client trying to get item from an empty
queue, the queue instance invoke wait( ) method to
block the client, until other client put something
into the queue invoking notify( ) method. I wander if
this is clear enough?
The problem is, server don't know when some client
disconnect,Server will know in the next time that it going to read / write to the socket stream
then you will have to do something about it.
maybe I can use a loop to test if the thread is alive.I dont think so. Even if the client is disconnected from the server the Client thread in the server will be alive since it is in the run method.
Make your clients sends some sort of a signel to the server whn they disconnect.
ex:- "CLIENT_CLOSING"
once the server receives that the serve should close the client connection -
Socket disconnection event not being reveived java.nio
Hi All
My question is as below
i am using java.nio package + win 2K + jdk1.4.1_02
I have a Server accepting socket connection and is configured
in Nonblocking mode.
-The server receives (selector) events (accept event)
when a client requests for a connection .
-The server is getting read and write events when
client wants to read and write
-The server gets a read event when the client disconnects
My only problem is that the Server is not getting any events
when the client disconnect due to network break down
for EX when the network connection breaks the client disconnects
but the server selector is not getting any events
I am storing the client Socket objects in a Hash Table and
if i execute the .isConnected() method it returns true
even though the the client is down
The only work around is to try to read and write on the socket
i get an IO exception and am able to make out that the
client is disconnected
But this is not desirable for my client
as client modification to give any kind of echo is not possible and
a read /write event will cause problem.
Can any one tell how to detect client side disconnection
with out Read and Write on the client socket
I get an socket Exception when the socket is in Blocking IO and is blocked on read/ write but I am facing this problem in NonBlockingIO
Regards
Avinashint ct = read.selectNow();
if (ct > 0)
Set readyKeys = read.selectedKeys();
Iterator i = readyKeys.iterator();
while (i.hasNext())
SelectionKey key = (SelectionKey) i.next();
i.remove();
if (key.isReadable())
SelectableChannel nextReady = (SelectableChannel) key.channel();
SocketChannel sc = (SocketChannel) key.channel();
int rd = sc.read(buffer);
// Link is dead
if (rd == -1)
key.cancel();
key.attach(null);
nextReady.close();
continue;
// Process your data
catch (Exception e)
e.printStackTrace(); -
36 dukes dollars !!!! : socket disconnects itself on the internet
Hi all,
It's not very nice, but I have all these dukes to give to the persons that want to help me. I have a problem I'm working on for weeks, making me mad.
Here are the dukes I'll distibute (I swear I will if responses that help me, even a little).
http://forum.java.sun.com/thread.jsp?forum=4&thread=302722
http://forum.java.sun.com/thread.jsp?forum=31&thread=269487
http://forum.java.sun.com/thread.jsp?forum=57&thread=291727
Now, here is my problem :
I have created a server using the nio package. Each client connects to the server, and the socket isn't closed until the client asks for it. The connection could exist for ages.
On my local network, this works perfect. But, when I install my server on the internet (on a professionnal computer with fix IP), and that I connect one or more clients, the connections never stay alive more than 30mn. They disconnect by themselves. I have watched the packets received and sent by the client. The client doesn't send or receive any packet (as he is connected to the server), and still doesn't receive or send any packet as the server has already seen that the socket was closed (The server received a -1. Notice that I don't know where this -1 comes from, and that it is what I want to know).
On my local network, my server is installed on a red-hat 7.3.
On the internet, my server is installed on a Slackware 7.
If you have any idea, thank you very much for helping. I'm not shure it is a java problem, but anyway, I post my question here ! If it is a basic network problem, socket configuration on the server, security problem on Linux, or else, help is still accepted and rewarded.
Thank you.
Greg.Your observation regarding Timeouts and socket connections
being open (outside your intranet) is correct.
As another person has pointed out you may extend this time
limit by setting the SO timeout value - but this needs
to be done at both client and server sides.
Do you think it would be reasonable to expect your client
software users to tinker with their IP param values on
their server - in order to use your software?
You might want to look into an alternate approach - like
opening another socket connection from the client if the
present connection is already closed. Just so you can
circumvent the timeout issue.
George -
Detecting socket disconnections
Hi!
Im using a ServerSocket to enable clients to connect to my
application. The communication over the returned Socket works
fine, but I cannot detect when the client disconnects. The
socket is put on a CLOSE_WAIT state, and according to socket
sources this means that the client is expecting the final last
ack (LAST_ACK) from me. The LAST_ACK is sent if I close() the
socket.
The problem is that I cannot detect disconnection in my app without
actually trying to send some "garbage" data on the socket.
I then get an exception, of course. Is there any clean way
to implement this?
Thanks!
Regards,
Lars Ove ClaessonHi!
Im using a ServerSocket to enable clients to connect to my
application. The communication over the returned Socket works
fine, but I cannot detect when the client disconnects.
The socket is put on a CLOSE_WAIT state, and according to
socket sources this means that the client is expecting the
final last ack (LAST_ACK) from me. The LAST_ACK is sent if I
close() the socket.Not exactly although the result is the same.
The server is in the CLOSE_WAIT state. That means that the application is supposed to close the socket. Once it does it sends a FIN to the client and then moves to the LAST_ACK state (waiting for the client to ACK the FIN.) The client of course would be waiting for the FIN.
>
The problem is that I cannot detect disconnection in
my app without
actually trying to send some "garbage" data on the socket.
I then get an exception, of course. Is there any clean
way to implement this?As mentioned the blocking read should do this.
Myself I always prefer to explicitly send a "end" message from the client (or server.) That way I handle it explicitly rather that relying on something else. -
Server socket disconnection in a client-server setup.
Hi all,
is there any way of knowing when server side of the socket connection goes away?
The scenario is like this, I have a client-server environment with sockets connection. The server can detect when the client socket closes or just goes away but, it is not happening the other way. The client socket remains unaware that the server has gone down and could still send messages across a PrintWriter stream. I guess I am missing something here.
Any help is appreciated.
Thanks in advance,
CyrusFundamental lesson in Sockets:
1) A socket is nothing more than an address and port to the programmer.
2) When you create the socket, data flies then.
3) If you cannot create the socket, your exception tells you the reason.
4) If you are open and go to send data, you will can tell by exceptions whether it flew or not.
5) If you are open and go to read data, you have a time out option which will allow you to go into error recovery mode. For example:
read_data_and_wait_45_seconds
if ( exception) then (See if port is still up do error checking) else (received the data) -
Premature socket disconnect with Tomcat
I'm seeing an intermittent problem with Java servlets, which I'm having real trouble tracking down... I wonder if anyone has seen something similar?
I am POSTing a request to the servlet, with about 1Kb of data in the request. The servlet sends a response by calling sendRedirect(new URL). In some circumstances, however, tomcat appears to be aborting the TCP connection prematurely... causing the browser (IE6.0) to first resubmit the POST request, and then give up and say "The page cannot be displayed".
The frequency of occurance seems to vary according to the network latency and the content length of the POST request. I also tried setting tomcat 3.3.1a's "socketCloseDelay" parameter on the Http10Connector - which does make the problem occur less, but doesn't make it go away completely. Using Coyote didn't help, either.
I suspect that there's something wrong with my code! But I'm not sure how to track it down. I wonder if there is something that I should be flushing, perhaps?
Any ideas very much appreciated!!
Thanks
CharlieAha! I've discovered my problem (see previous post). Don't do this...
public void doPost(HttpServletRequest aRequest,
HttpServletResponse aResponse)
PrintWriter lOutStream=aResponse.getWriter();
aResponse.sendRedirect(some URL);
It'll work most of the time, but if you get a request with about 1Kb of data, and a network latency of about 40ms, it'll confuse IE6.0 by untidily closing the TCP connection. Obviously.
The answer, of course, is only to call getWriter if you're genuinely intending to write to it (in which case, you won't be allowed to call sendRedirect).
I'll try and raise a bug somewhere.
Charlie -
IsClosed() and isConnected() in socket ?
//SocketTest.java
//============
import java.net.*;
public class SocketTest {
public static void main(String [] args) {
try {
ServerSocket ssocket = new ServerSocket(5000);
System.out.println("Socket listening on port 5000...");
Socket socket = ssocket.accept();
System.out.println("Socket accepted...");
while (socket.isConnected() && !socket.isClosed()) {
socket.read();
System.out.println("Socket disconnected...");
socket.close();
ssocket.close();
} catch (Exception ex) {
System.out.println(ex);
//ClientTest.java
//============
import java.net.*;
public class ClientTest {
public static void main(String [] args) {
try {
Socket socket = new Socket("127.0.0.1", 5000);
System.out.println("Connected...");
socket.close();
System.out.println("Disconnected...");
} catch (Exception ex) {
System.out.println(ex);
}Consider the example at above... It's seem that server wouldn't know the client was closed/disconnected unless the server tried to write something to it outputstream. So, how can i know if my client socket is closed or disconnect ? What is the usage of isConnected() and isClosed() ?Sorry... 1 more question here...
So, I can't check whether a socket was disconnected
unless checking of it inputstream or outputstream ?The method Socket#isConnected() returns true if the socket successfuly connected to a server. With that in mind, check out the following:
http://java.sun.com/docs/books/tutorial/networking/sockets/definition.html
Normally, a server runs on a specific computer and has a socket that is bound to a specific port number. The server just waits, listening to the socket for a client to make a connection request.
On the client-side: The client knows the hostname of the machine on which the server is running and the port number to which the server is connected. To make a connection request, the client tries to rendezvous with the server on the server's machine and port.
If everything goes well, the server accepts the connection. Upon acceptance, the server gets a new socket bound to a different port. It needs a new socket (and consequently a different port number) so that it can continue to listen to the original socket for connection requests while tending to the needs of the connected client.
On the client side, if the connection is accepted, a socket is successfully created and the client can use the socket to communicate with the server. Note that the socket on the client side is not bound to the port number used to rendezvous with the server. Rather, the client is assigned a port number local to the machine on which the client is running.
The client and server can now communicate by writing to or reading from their sockets.
Definition: A socket is one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port number so that the TCP layer can identify the application that data is destined to be sent. -
CSS command (socket) execution failed
I have a CSS reporting script problems when I am using build-in script ap-kal-httptag, here my exact command and CSS failure response:
script play ap-kal-httptag "192.168.8.22 content/corp/main/en/group.html?noCache=true Sika"
brgsikalb01#
Error in script playback line:37
>>>socket waitfor ${SOCKET} "200 OK" 2000
brgsikalb01#
Script Playback cancelled.
Waitfor: Failed
The CSS build in script ap-kal-httptag failes during execution!
Failure is on line 37 which contains this command [ socket waitfor ${SOCKET} "200 OK" 2000 ]
CSS commits this failure string [
Error in script playback line:37
>>> socket waitfor ${SOCKET} "200 OK" 2000
Was there a command syntax change and Cisco forgot to reprogram the build-in scripts?
Here I copy the full script taken from CSS in question directly:
show script ap-kal-httptag
!no echo
! Filename: ap-kal-httptag
! Parameters: HostName WebPage HostTag
! Description:
! This script will connect to the remote host and do an HTTP
! GET method upon the web page that the user has asked for.
! This script also adds a host tag to the GET request.
! Failure Upon:
! 1. Not establishing a connection with the host.
! 2. Not receiving an HTTP status "200 OK"
if ${ARGS}[#] "NEQ" "3"
echo "Usage: ap-kal-httptag \'Hostname WebPage HostTag\'"
exit script 1
endbranch
! Defines:
set HostName "${ARGS}[1]"
set WebPage "${ARGS}[2]"
set HostTag "${ARGS}[3]"
! Connect to the remote Host
set EXIT_MSG "Connection Failure"
socket connect host ${HostName} port 80 tcp 2000
! Send the GET request for the web page
set EXIT_MSG "Send: Failed"
socket send ${SOCKET} "GET ${WebPage} HTTP/1.0\nHost: ${HostTag}\n\n"
! Wait for a good status code
set EXIT_MSG "Waitfor: Failed"
socket waitfor ${SOCKET} "200 OK" 2000
no set EXIT_MSG
socket disconnect ${SOCKET}
exit script 0
I can not see any broken limitation on this command [ socket waitfor ${SOCKET} "200 OK" 2000 ]
Thanks for advise and / or correctionThe failure just means the server did not respond with an HTTP 200 OK response.
For example, it could be a 302 Redirect or a 404 Unauthorised.
Check with a sniffer trace what is the response from the server.
Gilles. -
Clean way to disconnect from server?
I can't find any socket.disconnect() method (just a socket.isConnected()). What's the cleanest way to disconnect from a server? I just do a socket.close, but then i get this exception on the server:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Sour
ce)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)You can send a bye message.
Once the server has that it knows that it can close the socket on its end (and it can safely ignore a reset error.) -
How do I monitor two service ports in a server ?
The web service is alive when tcp port 80 and 8080 are both alive. How do I use script to monitor both ports at the same time ? Any example for this case ? Thanks.
Here is a script I have written for this - you can test as many ports as you want on one server with this script.
To run just add under the service as:
service test
keepalive type script socket-test.txt "172.17.10.10 8080 80 443"
Hope this helps,
Regards,
Darren.
-------------- Begin Script -----------------------------
!======================================================
! Filename: socket-test.txt
! Parameters: Host port1 port2 port3
! This script does the following:
! Connects to a remote host on a specified tcp sockets,
! waits for X seconds and then disconnects.
! Failure Upon:
! Not establishing a connection with the host. If one connection
! fails, the script fails.
! Usage to run manually:
! script play socket-test.txt
! Useage to run automaticlly:
! cmd-sched
! cmd-sched record 1 * * * * * "script play socket-test.txt"
! Written by Darren Page, Dimension Data
!======================================================
!no echo
! Make sure the user has a qualified number of arguments
if ${ARGS}[#] "LT" "2"
echo "Usage: socket-test.txt \'host socket1 socket2 socket3 ...'"
exit script 1
endbranch
set host "${ARGS}[1]"
! get the first tcp port ready from the ARGS array
var-shift ARGS
while ${ARGS}[#] "GT" "0"
set EXIT_MSG "Connect: Failed to connect to ${host}"
! Connect to remote host on specified port
socket connect host ${host} port ${ARGS}[1] tcp 2000
! Wait one second
pause 1
! disconnect from remote host with a TCP FIN
socket disconnect ${SOCKET} graceful
! Wait one second
pause 1
!get the next port from the array
var-shift ARGS
no set EXIT_MSG
! Demarcation of the end of the loop
endbranch
exit script 0
-------------End of Script ------------------ -
Cisco css http keepalive is not working with GET command
Dear all
i have Cisco Css connected to Dell Server (via switch)
Cisco CSS - 192.168.1.3 and Dell Server - 192.168.1.5
Dell server is setup with windows 2009R2 and Apache HTTPD is version 2.2
This server is dedicated to host multiple doamins with Apache lik
www.abc.co.uk
www.xyz.co.uk
Now the clinet wants to setup the http keepalive with specfic web page like /testpage.html for all these domains. i have teseed with single URI. it is working the comamnds are
config)# service serv1
(config-service[serv1])# ip address 192.168.1.5
(config-service[serv1])# keepalive type http
(config-service[serv1])# keepalive method head ( get i have not used due to hash mismatch with apche server, if i use GET it is not working)
(config-service[serv1])# keepalive uri "/testpage.html"
(config-service[serv1])# active
It is working with single URI. but how can i do the same thing for multiple doamins ?
for multiple doamins do i need use script ? or can i use with commands ?
if i need to use script the script is
!no echo
! Filename: httptag-test
! Parameters: HostName WebPage HostTag
! Description:
! This script will connect to the remote host and do an HTTP
! GET method upon the web page that the user has asked for.
! This script also adds a host tag to the GET request.
! Failure Upon:
! 1. Not establishing a connection with the host.
! 2. Not receiving an HTTP status "200 OK"
if ${ARGS}[#] "NEQ" "3"
echo "Usage: httptag-test \'Hostname WebPage HostTag\'"
exit script 1
endbranch
! Defines:
set HostName "${ARGS}[1]"
set WebPage "${ARGS}[2]"
set HostTag "${ARGS}[3]"
! Connect to the remote Host
set EXIT_MSG "Connection Failure"
socket connect host ${HostName} port 80 tcp
! Send the GET request for the web page
set EXIT_MSG "Send: Failed"
socket send ${SOCKET} "GET ${WebPage} HTTP/1.1\nHost: ${HostTag}\n\n"
! Send the HEAD request for the web page
set EXIT_MSG "Send: Failed"
socket send ${SOCKET} "HEAD ${WebPage} HTTP/1.1\nHost: ${HostTag}\n\n"
! Wait for a good status code
set EXIT_MSG "Waitfor: Failed"
socket waitfor ${SOCKET} "200 OK"
no set EXIT_MSG
socket disconnect ${SOCKET}sh w
exit script 0
in the script i have not used GET becasue, when CSS send GET request to apache it use hash, but apache is not able to respond with same hash and it shows that website is down. more information- click below url
http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v7.40/command/reference/CmdKeepC.html#wp1139668
(config-keepalive) method
I have uploaded in CSS with httptag-test file and applied these commands
service comp.brit.co.uk-80
keepalive port 80
ip address 192.168.1.5
keepalive frequency 10
keepalive maxfailure 2
keepalive retryperiod 10
keepalive type script httptag-test "192.168.1.5 /testpage.html www.abc.co.uk
keepalive type script httptag-test "192.168.1.5 /testpage.html www.xyz.co.uk
but this script is not working
my question is:
1.do i need use script only to setup http keepalvie with webpage for multiple domains ?
2.with out using script is there any solution like CICSCO CSS commands to setup http uril for multiple domains which are on 1 singl server.
please help me asapHello Muhammad,
If you wish to use multiple domains for a URI keep-alive check, and perform a HEAD request what Daniel mentioned is correct. You have to use a scripted keep-alive check on the service. However, you should not use the default "ap-kal-httptag" script to do so as it's limited to only 1 website (unless you modify the script). You're best bet would be using the "ap-kal-httplist" script on the CSS as it allows the checking of 2 different websites along with a webpage to check for each site using HTTP HEAD method.
!no echo
! Filename: ap-kal-httplist
! Parameters: Site1 WebPage1 Site2 WebPage2 [...]
! Description:
! This script will connect a list of sites/webpage pairs. The
! user must simply supply the site, and then the webpage and
! we'll attempt to do an HTTP HEAD on that page.
! Failure Upon:
! 1. Not establishing a connection with the host.
! 2. Not receiving a status code 200 on the HEAD request on any
! one site. If one fails, the script fails.
! Make sure the user has a qualified number of arguments
if ${ARGS}[#] "LT" "2"
echo "Usage: ap-kal-httplist \'WebSite1 WebPage1 WebSite2 WebPage2 ...'"
exit script 1
endbranch
while ${ARGS}[#] "GT" "0"
set Site "${ARGS}[1]"
var-shift ARGS
if ${ARGS}[#] "==" "0"
set EXIT_MSG "Parameter mismatch: hostname present but webpage was not"
exit script 1
endbranch
set Page "${ARGS}[1]"
var-shift ARGS
no set EXIT_MSG
function HeadUrl call "${Site} ${Page}"
endbranch
exit script 0
function HeadUrl begin
! Connect to the remote Host
set EXIT_MSG "Connect: Failed to connect to ${ARGS}[1]"
socket connect host ${ARGS}[1] port 80 tcp 2000
! Send the head request
set EXIT_MSG "Send: Failed to send to ${ARGS}[1]"
socket send ${SOCKET} "HEAD ${ARGS}[2] HTTP/1.0\n\n"
! Wait for the status code 200 to be given to us
set EXIT_MSG "Waitfor: Failed to wait for '200' on ${ARGS}[1]"
socket waitfor ${SOCKET} " 200 " 2000
no set EXIT_MSG
socket disconnect ${SOCKET}
function HeadUrl end
Rather then modify the default "ap-kal-httplist" script on the CSS I would simply define the arguments within the service configuration itself. Something like the following (using your service example):
service dell-192.168.1.5
ip address 192.168.1.5
keepalive type script ap-kal-httplist "www.abc.co.uk /testpage.html www.xyz.co.uk /testpage.html"
active
As long as the server is configured to reply to host headers, and the page is configured to retuen a "200 OK" the above service configuration should work. If there are any errors simply run "show service " to view why there was a failure. If there is a failure, and the output from the command specified shows a line number run the following command against the script to view at what point (line) did the failure occur:
show script ap-kal-httplist line-numbers
Hope this helps!
- Jason Espino -
Hi
I have installed coheI have installed coherence server "fmw_12.1.3.0.0_coherence_Disk1_1of1.zip" along with Examples on windows machine and C++ client coherence-cpp-12.1.3.0.0b51709-windows-x86-vs2012.zip on the same machine.
I have built the "contacts" C++ Example successfully and while I execute this "contacts" using run I am facing TcpAcceptor error.
On my coherence server the TcpAcceptor is listening on port 8088, so I have modified the extend-cache-config.xml file with values "ip address of my windows machine" and port as "8088".
All the time I am getting below error,
coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {10.242.152.242/10.242.152.242:8088}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor
at class coherence::lang::TypedHandle<class coherence::component::net::extend::PofConnection> __thiscall coherence::component::util::TcpInitiator::openConne
ction(void)(TcpInitiator.cpp:307)
at coherence::component::util::TcpInitiator::openConnection
at coherence::component::util::Initiator::ensureConnection
at coherence::component::net::extend::RemoteCacheService::openChannel
at coherence::component::net::extend::RemoteService::doStart
at coherence::component::net::extend::RemoteService::start
at coherence::component::util::SafeService::startService
at coherence::component::util::SafeService::restartService
at coherence::component::util::SafeService::ensureRunningServiceInternal
at coherence::component::util::SafeService::start
at coherence::net::DefaultConfigurableCacheFactory::configureService
at coherence::net::DefaultConfigurableCacheFactory::ensureService
at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache
at coherence::net::DefaultConfigurableCacheFactory::configureCache
at coherence::net::DefaultConfigurableCacheFactory::ensureCache
at coherence::net::CacheFactory::getCache
at unsigned __int64 coherence::lang::class_spec<class coherence::lang::Managed<class ContactId>,class coherence::lang::extends<class coherence::lang::Object,class coherence::lang::Void<class coherence::lang::Object> >,class coherence::lang::implements<void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void> >::sizeOf(bool)
at _onexit
at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
at BaseThreadInitThunk
at RtlInitializeExceptionChain
at RtlInitializeExceptionChain
on thread "main"
Caused by: coherence::net::messaging::ConnectionException: coherence::component::util::TcpInitiator::TcpConnection@029EAD78{Id=NULL, Open=1, LocalAddress=NULL,
RemoteAddress=10.242.152.242/10.242.152.242:8088}: socket disconnect
at class coherence::lang::TypedHandle<class coherence::net::messaging::Response> __thiscall coherence::component::net::extend::AbstractPofRequest::Status::g
etResponse(void)(AbstractPofRequest.cpp:203)
at coherence::component::net::extend::AbstractPofRequest::Status::getResponse
at coherence::component::net::extend::AbstractPofRequest::Status::waitForResponse
at coherence::component::util::Initiator::openConnection
at coherence::component::net::extend::PofConnection::open
at coherence::component::util::TcpInitiator::openConnection
at coherence::component::util::Initiator::ensureConnection
at coherence::component::net::extend::RemoteCacheService::openChannel
at coherence::component::net::extend::RemoteService::doStart
at coherence::component::net::extend::RemoteService::start
at coherence::component::util::SafeService::startService
at coherence::component::util::SafeService::restartService
at coherence::component::util::SafeService::ensureRunningServiceInternal
at coherence::component::util::SafeService::start
at coherence::net::DefaultConfigurableCacheFactory::configureService
at coherence::net::DefaultConfigurableCacheFactory::ensureService
at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache
at coherence::net::DefaultConfigurableCacheFactory::configureCache
at coherence::net::DefaultConfigurableCacheFactory::ensureCache
at coherence::net::CacheFactory::getCache
at unsigned __int64 coherence::lang::class_spec<class coherence::lang::Managed<class ContactId>,class coherence::lang::extends<class coherence::lang::Object
,class coherence::lang::Void<class coherence::lang::Object> >,class coherence::lang::implements<void,void,void,void,void,void,void,void,void,void,void,void,void
,void,void,void> >::sizeOf(bool)
at _onexit
at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
at BaseThreadInitThunk
at RtlInitializeExceptionChain
at RtlInitializeExceptionChain
on thread "main"
Caused by: coherence::io::IOException: socket disconnect
at unsigned int __thiscall coherence::net::Socket::readInternal(unsigned char *,unsigned int)(Socket.cpp:333)
at coherence::net::Socket::readInternal
at coherence::net::Socket::SocketInput::read
at coherence::io::BufferedInputStream::fillBuffer
at coherence::io::BufferedInputStream::read
at coherence::component::util::TcpInitiator::readMessageLength
at coherence::component::util::TcpInitiator::TcpConnection::TcpReader::onNotify
at coherence::component::util::Daemon::run
at coherence::lang::Thread::run
on thread "ExtendTcpCacheService:coherence::component::util::TcpInitiator:coherence::component::util::TcpInitiator::TcpConnection::TcpReader"We are facing same issue. Could you please provide us any working .Net sample code for the version 12.1.2.0.
<ssl>
<protocol>Tls</protocol>
<local-certificates>
<certificate>
<url>c:\Cert\</url>
<password>password</password>
<flags>DefaultKeySet</flags>
</certificate>
</local-certificates>
</ssl>
thanks
Bala -
In a less than perfect world !!!!
I read the BB forums regularly and have had reason to use them in the past myself.
Here is a ray of sunshine on an rainy horizon for BT
I upgraded my BB from ADSL2 to 21CN on 5/5/11. I got a text on my mobile at work telling me that the the upgrade was complete.
I arrived home to check things out and had a bit of a disappointment when I saw that the H/Hub had not upgraded to the ITU-T G 992.5.
Remembering all that I had read on the Forums I left well alone and told my Errant 17yr old daughter not to touch the H/Hub on pain of Death. It was worth it as at 6pm ping the H/Hub reset itself to the desired ITU-T G 992.5.
One BT speed test later confirmed all was well on the connection but the Bras (IP line profile) was set to 7000kbps. No matter we are in the line training mode for a few days I thought.
So all was left alone still and I completed speed tests morning and evening and nothing moved for a day or two.
This morning I carried out the speed test and Bingo. Connection speed now up to 17139kbps down and 1197kbps up and achieving speeds in exess of 1500kbps down and 850kbps up.
The moral of the tale is
A: Read the forums and act on the advice given ( Its usually pretty sound and well informed) and
B: BT sometimes get it right so thank you to all ( IMJolly in particular for his constant advice on the forums) for a smooth transition to 21CNI feel your pain. Initially on joining BT onADSL2 I had the usual phone calls to India / engineer visits etc for a good few weeks to get things sorted.
My problem was eventually sorted by an Engineer who fitted a new socket, disconnected the bell wire then fitted some sort of plate at the master socket that stopped thebroadband at that socket, thus eliminating and wiring / noise from the rest of the house. Result was a steady 6500kbps at any time of day for the last year. mind you it does help living only a couple of hundred yards from the exchange. -
Entity EJB deployment on Oracle through JDeveloper 3.2
I have a project which is using Oracle 9iAS as the for the web server. There were intial plans to use the 8i database within the 9iAS machine as the place where the EJBs would be stored. There was a comment from the Oracle support people that the EJBs would be better off stored on the backend. We are trying to do the same.
We have experienced mainly two problems
1) While trying to deploy the container managed beans through JDeveloper, just after creating the deployment profile, an error ORA - 00904 comes up. (no columns). Then there is a prompt to install BC4J. On doing that the error comes up again and while it goes further, it says 'Exhausted ResultSet'. But the BMP entity beans are working OK.
2) We had a bug report from the Oracle people on entity bean support through JDeveloper on non-NT machines. But we have been trying to deploy beans on the Solaris DB using JDeveloper and we keep getting 'peer socket disconnected errors'. I'll try the workaround which was suggestesd by the Oracle people to solve the problem and get back on this.
I don't know how Oracle will measure up to the performance when EJBs are running. But the problems mentioned above would have to be solved first.
Can anyone help out?
Thanks in advance.
Aby PhilipI can't resist a comment here. Oracle folks seem to always recommend putting the EJBs in back-end database. How many real-world enterprise-scale applications (i.e., one's that would need EJBs at all) have a non-shared back-end database? And in those cases, who in their right mind would accept running application code in the back-end database? I guess Oracle just hasn't really bought in to the concept of multi-tiered applications. The whole reason for separating the business logic tier from the EIS tier is to insulate the EIS services from the demands of the business logic code.
So from that perspective, I would highly recommend running an 8.1.7 instance in your middle tier to house your EJBs. Then you can hook up to your EIS tier either with database links, or (for better performance) by caching data in the EJB database from the EIS tier.
As for your specific issues, I can't help with the first. On issue 2, I am installing the 8.1.7.1 patch set today and I'll let you know if it fixes the JDeveloper --> Solaris deployment problem.
John H.
Maybe you are looking for
-
After burning a slide show, I get a skip in audio
After burning a slide show, II get a skip in the audio about every 5 min. of run time. I imported the pictures from i photo and the music from an itunes play list. When I play the entire thing in preview it runs fine with no problems, but after burn
-
Is this the product I should get?
I'm a student who's starting video production next year, and I wanted a software like adobe after effects to add special effects to film. But after effects is expensive. I'm wondering if final cut express offers the same sort of technology? Also, con
-
Hello, I have a problem since I improved my version of Flash (CS3 to CS5). I created a component in which there are several parameters. My problem concerns parameters which are "Number" type. It appears to no longer be managed the same way since CS5.
-
Question about exceptions in function module GUI_DOWNLOAD
To all, I add the function module 'GUI_DOWNLOAD' in the ABAP report program. After the user download the data to excel, the program also displays a report on the screen for print output. If the user keep the excel file open and tries to replace the f
-
DateTrans Error: Unparseable date: ""
hello, I've a source field datesource type date and a target field datetarget type string datesource = yyyymmdd and i need in datetarget = ddmmyyyy. i'm using the function dateTtrans, however the follow error occurs: Runtime exception during pr