How the client to detect the server has closed the socket?
if the server closed the socket by an unnormal way, for example, closing the socket compulsively. Then the client will show the "IOException:java.net.SocketException: Connection reset" message,
how the client to avoid such an error message to the user/customer, I mean , what the client can deal with such a message?
where to put the dealing code?
try{ int receivedLength=in.read(receivedBytes);
}catch(SocketException e){
// put the code here? }
catch(IOException e){
}
Do you know how to prove it---"a socket read should
always always always have a timeout";As ejp said (IMHO ...) it's his opinion and doesn't need proof. I respect his opinion, but I often write code that doesn't set this.
Instead I use 2 threads per connection, and don't care if the read thread goes to sleep, since I can still write. If you only have one thread per connection, you better ensure that the read will end in a relatively short amount of time, even if your partner decides it's time to go for lunch.
how the length of this timeout will be? That is a business decision, it all depends on the expected time between received messages and is application dependent.
is it a field of the socket?If you are using blocking mode sockets you set this with setSoTimeout. If you are using non blocking mode NIO you specify it on the select call, although the soTimeout should also work there, although I've never tried that.
Similar Messages
-
the solution what i got from this from is to Depromote and promote it again to DC, my question when i depromote, will the OU , object will remain as it is or it will be lost. And what precautions do i need to take?
Adding to the above points, my Domain has only 2 DC, should both the DC be demoted and promotedUnder NO curcumstances you demote both of your DCs. You must always have one or 2DCs running, otherwise you will loose your entire AD. Only 1 DC should be demoted. you should wait couple of hours prior to promoting it back to DC role again.
Ideally your primary DC will continue maintaining the OUs, GPOs, and user accounts.
I would suggest brining in a new, 3rd DC intro play, leave it for a day or 2 to replicate everything properly, confirm that its propagating properly with the primary DC, and only then demote and remove the offending DC.
There are actually ways for recovering from tombstone lifetime much painlessly than DC demotion/promotion. Depending on what is your AD running on, Windows 2003 or 2012 R2 servers:
here a few links that might help you understand how it works:
Primary link :http://blogs.technet.com/b/askpfeplat/archive/2012/11/23/fixing-when-your-domain-traveled-back-in-time-the-great-system-time-rollback-to-the-year-2000.aspx
http://community.spiceworks.com/topic/343609-ad-replication-can-t-because-exceeded-tombstone-life
https://support.microsoft.com/en-us/kb/2020053?wa=wsignin1.0
http://shebangme.blogspot.com/2011/01/active-directory-time-since-last.html -
if possible??? how do we configure the mac mini to allow the clients to access both partitions...the client will only see the one we are logged into at the server???
You have to explicitly share directories on external/secondary volumes.
Use the Server admin app to configure file sharing, and select which directory/directories on the second drive you want to share, then they'll be available to clients. -
The grace period for the Remote Desktop Session Host server has expired
<p>I'm running Windows Server 2012, we only have 1 server and it's a DC. I'm trying to RD to the server from my Windows 7 laptop. It was working fine on Friday but when I came in on Monday I got message saying that 'The remote session was disconnnected
because there are no Remote Desktop License Servers available to provide a license'
So after a bit of digging I found out my 'grace period' had expired, so ordered a new license which I got today, installed this all ok but still i cannot connect via RD I get the same message....went into the RD License Diagnoser and it said the problem
was as follows
'The grace period for the Remote Desktop Session Host server has expired, but the RD Session Host server has not been configured with any license servers. Connections to the RD Session Host server will be denied unless a license server is configured for
the RD Session Host server.'
Suggested Resolution as follows
Configure a license server for the Remote Desktop Session Host server. If you have an existing license server, specify that license server for the RD Session Host Server. Otherwise, install RD Licensing on a computer on your network and Configure RD Session
Host Server to use it.'
I cannot figure out how to do this as I cannot find the RD Session Host Server tool.
Can any of you lovely people help me pleaseHello,
Best option would be to assign the license server by using AD GPO. Youl will need to configure the following:
Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing
and define the settings for:
Use the specified Remote Desktop License Server
Set the Remote Desktop Licensing mode
Then assign the policy tho your server.
regards Robert Maijen -
Finding the clients connected to a server
Hai Friends,
I am doing a project in grid computing. I have developed a socket program for the client and server side using java and multithreading.
I want to know the number of clirnts connected at a particular period of time and also the IP addresses of the client.
Can anyone please suggest us the code for doing that.Create an object that describes each client. Something like:
public class Client
private Socket socket;
private WhatEver whatEverDataYouNeed;
...whatever methods you need...
}When a client connects create one of those objects and store it in a suitable data structure, e.g. LinkedList. When a client disconnects remove from list.
There should be a method in Socket that gives you the IP address, see the javadoc for Socket. -
The client timed out waiting to connect to the Essbase Server using TCP/IP
Hi,All
When I deploy the HPCM application to essbase, i received the following message below in the log file hpm.log
2009-02-20 13:34:50,389 [Thread-115] ERROR com.hyperion.profitability.business.mdb.deployment.cubegeneration.CubeGenerator: error setting measures dimension member properties
com.hyperion.profitability.data.mdb.essbase.MDBException: Error setting member property share option to store_data for member: D0900SB
at com.hyperion.profitability.data.mdb.essbase.MDBMember.setShareOption(MDBMember.java:413)
at com.hyperion.profitability.business.mdb.deployment.cubegeneration.CubeGenerator.setMemberProperties(CubeGenerator.java:1232)
Caused by: com.essbase.api.base.EssException: (1290001): Network Error [10061]: Unable To Connect To [hypeion:32776]. The client timed out waiting to connect to the Essbase Server using TCP/IP. Check your network connections. Also please make sure that Server and Port values are correct
at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
at com.essbase.server.framework.EssOlapMetaDataService.ex_olap(Unknown Source)
And the Essbase service is up.
Pls help!
Shen.If you are installing on Windows, there is a limitation in the default configuration of TCPIP. I wrote about it, and included the steps to fix it, on my blog at http://timtows-hyperion-blog.blogspot.com/2007/12/essbase-api-error-fix-geeky.html.
Note the error number you reported is slightly different than what I write about in the blog, but I believe I have seen this error fixed by the blog steps..
Tim Tow
Applied OLAP, Inc -
my ipod will damage the lock key and now serves this happened the day yesterday, I have not been dropped and has not suffered damage so far nungún that happens, also when I'm using some applications crashes and throws me of the application
I want to know that I can do, plus I have an ipod shuffle first generation and I have not been able to use itunes because I required an update and this does not allow updateIs English you native language? If so please clarify your question. Otherwise post in our native language since your translation does not make sense.
-
how do i deauthorize a computer that has had the hard drive lock up and can not get it working
You can only deauthorise individual computers directly on them. Otherwise if you've reached the 5 computer limit, then you should be able to log into your iTunes account and 'deauthorise all' (which you can only do once every 12 months) and you can then (re-)authorise up to 5 computers : authorising and deauthorising.
-
The sheet I am working on has lost the ability for me to scroll to the first few columns. I can't see the columns A & B but if I cut and paste the table to a new sheet, the columns I am missing will travel to the new sheet. I have charts and other stuff related the the original table so I need to figure out why I can only see from column C forward. I tried to "UNHIDE" the columns but the function doesn't seem to recognise that there are columns missing. Has this happened to others and how did you fix it?
I've seen it happen before, or at least it sounds something like what I've seen before. The table somehow gets into the margins of the page and the app doesn't know how to deal with it. Go into Print View and try moving the table away from the left side ofthe page. You might have to change content size or resize the table to get it to correct (then put you can put them back the way you like).
-
When I open a link for another website Firefox opens a new tab but puts a line on the top of the new page saying that Firefox has blocked the website from transferring me to another page.
I have to press ALLOW before Firefox will open the new page.
How can I solve this problem.
Many thanks in advance.hello betth007, in order to get effective help, please open a new question at https://support.mozilla.org/en-US/questions/new instead and include a bit more details about your issue (what kind of error message are you getting, etc.). thank you!
-
. What is the client concept in SAP? What is the meaning of client independ
hi,
send me replayHi ,
since u r maintaining different clients in da same server ,
so ,
tables needs to have diff data for diff client.....
now if u dont make tables client dependent then , same table data will be used by all clients ...
But all clients have their own diff data ,
So making a table client depedent , u r using same database table, to store data of different clients.
for more information:
A client is a logical division of data within an SAP system. Some things, like application data are mostly client-dependent, meaning that for example, a G/L account defined in client 123 of system ABC is only visible in that client. Therefore if you logon to client 456 of system ABC you will not be seeing the same database entity (if it is defined at all).
At a technical level, client dependent data simply resides in database tables that have the client number as a key field (typically the first key field).
Multiple clients within an SAP system are often used in development, testing and training systems - so that individuals can work in the same system (on the same codeset) but in isolation of each other.
Very rarely will a production system have multiples clients (ignoring the internal SAP clients like 000 and 066). -
HI my sons iPod touch has disappeared from my find my iPhone account and it can't be located in the house is it possible someone has stolen the ipod and reset it? Please help a confused mum...
Could be. The battery could also have died or it is no longer connected to the internet
lost/stolen
No app on the iPod is required.
- If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected, on a computer browser go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up or continue to show off-line.
- You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
iCloud: Erase your device
iCloud: Use Lost Mode
- If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
- Change the passwords for all accounts used on the iPod and report to police
- There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
- Apple will do nothing without a court order
Reporting a lost or stolen Apple product
- iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number -
How do I close a numbers document without closing the entire app?
Can anyone tell me how I can close a numbers document without closing the entire app? i.e. go back to the folders display page - is this even possible?
It is not a bug, but a new feature.<br />
Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).
You can see the difference if you use Alt+F to open the File menu or other menus like the Edit menu (Alt+E) and Bookmarks menu (Alt+B) and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
*[https://bugzilla.mozilla.org/show_bug.cgi?id=626825 bug 626825] - Hide redundant menu commands unless the user invokes the menu using the keyboard (make use of the openedWithKey attribute)
''(please do not comment in bug reports; you can vote instead)''
See also:
* [[/questions/799856#answer-155765]] -
Backend BSP session not closing on server after closing the window
Hi All,
We have SAP EP (7.0 SP21) and there is a BSP transaction ivew (Interaction Center ) intergrated in the portal. The issue is when the user performs any transactions inside the BSP and then closes the browser, session remains on the server till the timeout. Is there a way to end those sessions on server after closing the browser immediately?
Portal domain : xx.mycomp.com
ABAP system domain :mycom.com
Should the domains be same for the DSM of Portal to work or is there any solution that can be considered.
regards
UdayHi Uday,
These are the main issues that can cause issues with DSM:
JavaScript Origin Policy:
Scripting
between different domains is not allowed because of “JavaScript origin policy”.
Also
communication between mixed protocols (http\https) is forbidden.
Therefore
the portal server and the content server must be on the same domain and must
use the same protocol.
For
detailed explanation see:
http://mozilla.org/projects/security/components/same-origin.html
Popup Blocker:
•Popup blockers may cause troubles
in relation with SRA feature.
•Terminator handles notifications in
new window when current window is being destroyed (logoff, closing browser
window) – popup blocker prevents the opening of new window, hence no session
handling performed.
please also check SAP Note #596698 for more information typical problems and troubleshooting.
In general, the 2 domains should be the same.
xxx.mycomp.com, meaning that first part of the url can change but what comes after should be the same domain.
Best regards,
Etay -
Know if user has closed the Applet?
I mad this chat without socket connection, so now I want to know if a user has closed the applet where the chat is..... Is this possible ? Can I somehow registre that a user doesnt have the applet running in his computer anymore?
I assume that the destroy() method of the Applet class will run when the user terminates the applet (however this might take a while after the user navigates from the applet page). Otherwise, the start() and stop() methods could be used for this purpose. Run a test to see when these methods are invoked for your applet (navigating to and fro, shutting down the browser etc.) and figure whether these can do the work for you.
Maybe you are looking for
-
Getting one character at a certain position from a string array
Hi, i'm new at learning java, but have strong experience at C++ and asm. How would i get one character at a certain positon from a string array. for example: String Phrases[] = {"To be or not to be, that is the question","The Simpsons","The Mole","Te
-
Apple Support: I have tried to purchase albums by Muse dated 2003 and earlier from the iTunes Store in Denmark. For all of these I am getting the response: "Purchase of this item is currently not available. This item is being modified. Please try ag
-
Can't install mac os x on macbook pro because of kernel panic: IO-APIC
Hello guys, i have a macbook pro, that i formated with a windows 7 dvd, now i ONLY have a windows 7 on my macbook pro.(I wanted a clean install with os x before i puted windows 7, but i coudnt because each time i tried to boot from os x dvd i got a k
-
Stacks that randomly rearrange themselves!?
I've been getting jiggy with smart folders, creating all kinds of wonderous filtrations, however, I'm beginning to notice some of my stacks of images randomly reversing, or 'auto-rearranging' themselves. It becomes apparent when you go to back to adm
-
I'm relatively new to FCP 7... I have a question about this part...if you look at the bottom right section...there was a file that i had to compress in order to get vimeo video up... but it was done compressing...it came out "failed." I was still abl