Unabe to connect,session expire,server is too busy to respond,
dear exparts,
i work for visa appointment date from a website.....
i use some add ons such as imacros for recording form,reload every,multifox,js switch, i work for a visa form appointment date and time.. but the server i work for is too jam and busy..when its time for submit the form for appt. date and time i can't load the page and css on account of server business.. for that i need some tips and mozilla add ons for reloading the pages most strongly that business and jamming of server can"t effect on my pages...i need to keep the pages alive with temporary file id of the form for long time before submitting it for date and time. but, if i don't reload the pages after 5-10 mins the page session get expired.Bcause the server got a heavy load from the users. but when tkere have no times for appointment and date, the pages session do not expire within 1 hour if i reload it in the meantime the page can't reload at once. sir if there have any solution through mojilla addons, about config or any editing with the sites css or html or tr or anything else please help me.. i m in huge problem. the sites name is"http://indianvisa-bangladesh.nic.in/visa/ i need a add ons which can help me to keep the web pages alive for a long time if the server is reset,too busy,session expire or so jam..and a reload add ons which can reload a . reset,too busy,session expire or so jam server at once and quickly
Maybe Fire cookie [https://addons.mozilla.org/en-US/firefox/addon/firecookie/]
However if you are the developer, the best place to ask for help would be stackoverflow.com
[https://support.mozilla.org/en-US/kb/where-go-developer-support Where to go for developer support]
Similar Messages
-
I have a user who is trying to email a distribution group with approximately 185 recipients, 183 internal, and 2 external.
The user is recieving message delayed/pending for some (but not all) of the recipients. Approximately 15 recipients have recieved the mail including the external recipients and did so shortly after the mail was sent, however, 168 recipients have not recieved
the email and when I search for the mail in Message Tracking on the server, the pending recipients have the following error:
Submitted
04/12/2013 11:56 BTSDCAEXCMDB02.one.local
The message was submitted to btsdcaexccas02.one.local.
Group Expanded
04/12/2013 11:56 btsdcaexccas02.one.local
The list of members of the group "All TCP Users" was expanded so that the message can be delivered to each recipient.
Pending
04/12/2013 11:56 btsdcaexccas02.one.local
The message has been queued on server 'btsdcaexccas02.one.local' since 04/12/2013 11:56:48 (UTC) Dublin, Edinburgh, Lisbon, London. The last attempt to send the message was at 05/12/2013 12:08:22 (UTC) Dublin, Edinburgh, Lisbon, London and generated the error
'432-4.3.2 STOREDRV; mailbox server is too busy 432 4.3.2 STOREDRV.Deliver.Exception:StorageTransientException.MapiExceptionNotEnoughMemory; Failed to process message due to a transient exception with message Cannot set search criteria in SearchFolder. Try
using fewer keywords at the same time, reducing the number of users in the From, To, Cc, and Bcc fields, and reducing the number of mailboxes that are searched at the same time. 16.55847:42000000, 17.43559:0000000090020000000000000000000000000000, 255.23226:2B0A0000,
255.27962:30000000, 255.17082:F0030000, 0.27745:80030400, 4.21921:F0030000, 255.27962:FA000000, 255.1494:00000000, 255.1238:31000000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000,
4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000,
4.7155:F0030000, 4.7155:F0030000, 4.7155:F0030000, 4.6131:F0030000, 4.7728:F0030000, 0.59311:F0030000, 4.8112:F0030000, 255.1750:00000000, 0.26849:00000000, 255.21817:F0030000, 0.30353:00000000, 4.19089:F0030000, 0.18065:0E000000, 4.26257:F0030000'.
05/12/2013 12:08 btsdcaexccas02.one.local
Message delivery is taking longer than expected. There may be system delays. For more information, contact your helpdesk.
Can anyone help as to what is going on here? This only seems to be affecting a single user, and it is intermittent as some recipients received the email, whilst others have not.Hi Leo,
From your description, I recommend you refer to the following blog to set the values of MaxMailboxDeliveryPerMdbConnections and RecipientThreadLimit.
Store Driver Fault Isolation Improvements in Exchange 2010 SP1
http://blogs.technet.com/b/exchange/archive/2011/04/11/store-driver-fault-isolation-improvements-in-exchange-2010-sp1.aspx
What's more, here is a thread for your reference.
4.3.2 432 STOREDRV.Deliver; recipient thread limit exceeded
http://social.technet.microsoft.com/Forums/exchange/en-US/3b097117-6eb7-4368-b45a-62a4cddf871b/432-432-storedrvdeliver-recipient-thread-limit-exceeded?forum=exchange2010
Hope it helps.
If there are any problems, please feel free to let me know.
Best regards,
Amy
Amy Wang
TechNet Community Support -
Error connecting to Essbase Server when running business rules
We recently migrated from v9.3 to v11.1.1.3. I have two users with Administrative access who need to run business rules on a native Essbase application, but cannot. They get the message 'Error connecting to Essbase Server'. They get this message when trying to set this execution database. They can't even expand the server to see the list of applications. I have tried deprovisioning them in Shared Services, refreshing security, then adding it all back in and refreshing again, but it doesn't work. My own id has identical access to that which I'm granting them, and I have no problems. I even created a native user with the same access and it works as well. No matter what I do, I cannot get these two users to be able to run their business rules in EAS.
We also have a Planning application, and the Planning Administrative user has the same issue. However, this user is able to get around it by running rules using the Planning connection rather than the Essbase connection. She has the same issue of not seeing anything under the Essbase Servers when trying to set the execution database though.
In version 9, we were not using Shared Services for Essbase security. Unfortunately our consultant chose to set it up using Shared Services security when migrating, and according to the documentation, one cannot go back to using Native Essbase security.
I also tried running the Externalize Users wizard and the three users with issues failed to externalize. My own id did, and the native user I created succeeded.
Has anyone experienced an issue like this or have any ideas on how to resolve?
Thanks,
SabrinaFollow up - Oracle has finally resolved this. It's so simple, yet no one thought to check until now. The three users with problems all have mixed case user id's in ldap. They have always logged into EAS with all lower case ids. In version 9, on native security, this was never a problem. But in version 11 using Shared Services (not sure which factor changed it), it doesn't work. The simple solution is to log in with their exact mixed case user ids. It only took Oracle three months and the creation of a bug issue to figure this out for us.
Sabrina -
I am new to Mac...How do I get connected to a server on my network via a hyper link IP address path? When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?
Some of the following is going to use some technical terms — this area is inherently somewhat technical.
If you don't understand some part of the following reply, please ask.
Is this your own OS X Server system on your own network, or is this some other server within some larger organization?
You're posting this in the OS X Server forum, which is a software package that allows OS X systems to provide web-based and many other services; to become servers.
If it's your OS X Server on your network, then the network and DNS configurations are suspect, or the server is somehow malfunctioning or misconfigured. This is unfortunately fairly common, as some folks do try to avoid setting up DNS services.
If it's a larger organization and somebody else is managing the server and the network, then you'll probably need to contact the IT folks for assistance; to learn the network setup and DNS requirements, and if there's a problem with the server itself.
The basic web URL "hyper link IP address path" — without using DNS — usually looks something the following, where you'll need to replace 10.20.30.40 with the IP address of your server:
http://10.20.30.40
UptimeJeff has posted a URL that specifies the AFP file system; an OS X file share. That's used if you're connecting to an Apple storage service somewhere on your network. You might alternatively need to specify smb://10.20.30.40 or such, if it's a Windows file server. (There can be additional requirements for connecting to Windows Server systems, too.)
If there's local IT staff available here, please contact them for assistance. If these are your own local systems and your own local OS X Server system, then some information on the server will be needed. (If you're on a NAT'd network, you'll also need to get DNS services configured and working on your local OS X Server system and your network — you'll not be able to skip this step and reference ISP DNS servers here — or things can and usually will get weird.) -
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 -
Session expired connection to MEW0
1. When I connect to the IAC MEW0 from EP, I see the first screen which gives me an option to create a new requisition. When I click on the create hyperlink, a new window with 3 frames in it pops up and in each of the frames I see a message that says "Session Expired". I changed the hyperlink target from _top to _self. Now the page loads in the same window but instead of the session expired message, I get the Invalid Frame error message.
2. I copied the program SAPMMWE0 to ZSAPMMWE0 and also made a copy of the internet service MEW0 to ZMEW0. When I connect to ZMEW0 from EP, I get the SAP GUI instead of the web GUI, ie., I do not get the HTML screen. The page looks similar to the one that I get when I create a requisition from SAP GUI; not the HTML version. The HTML templates are not being called I suppose.
Any suggestions? Thanks in advance.Sorry for the delayed reply. Your answer helped. Now I have come across one more problem. The error message is:
Interpreter Failed
The Internet Transaction Server failed to generate the response for current request.
Please contact the system administrator.
Internal error code: 0x2101
I referred to one of the threads in the forum that suggested the following:
-Start the IACOR Admin program
-Locate your instance, select, and click "edit"
-This brings up the Modify Site Connection dialog
-You will notice in the bottom there is an entry for "server root file destination path" that will probably contain that inexplicable "config\<instance>" path. Change it to the correct path ie. delete the "config\" segment from it and save.
-Restart your ITS server
I have sent the suggestion to my SAP developers. Do you have any other suggestion to resolve the problem?
Thanks for your help
Sriram -
new iphone 6 with ios 8.0 crushed and didnt open again. call center told me that use itunes to update 8.0.2 but server is too slow and didnt let me download it. it stopts in the middle of the session. how can i download it from another link or server. by the way i try to dowload from turkey.
anyone help me there? )=
-
Hello, we have a Mac and an ipad, the Mac is working and wifi is on and the ipad's wifi is on too, but Ipad Safari can not open the page because it could not connect to the server, does any one know that?
Some things to try first:
1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
4. Go into your router security settings and change from WEP to WPA with AES.
5. Renew IP Address: (especially if you are drooping internet connection)
• Launch Settings app
• Tap on Wi-Fi
• Tap on the blue arrow of the Wi-Fi network that you connect to from the list
• In the window that opens, tap on the Renew Lease button
6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
~~~~~~~~~~~~~~~~~~~~~~~~~
Fix WiFi Issue for iOS 7
http://ipadnerds.com/fix-wifi-issue-ios-7/
iOS 6 Wifi Problems/Fixes
Wi-Fi Fix for iOS 6
https://discussions.apple.com/thread/4823738?tstart=240
How To: Workaround iPad Wi-Fi Issues
http://www.theipadfan.com/workaround-ipad-wifi-issues/
Another Fix For iOS 6 WiFi Problems
http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
Fix For iOS 6 WiFi Problems?
http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
iOS 6 iPad 3 wi-fi "connection fix" for netgear router
http://www.youtube.com/watch?v=XsWS4ha-dn0
Apple's iOS 6 Wi-Fi problems
http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
~~~~~~~~~~~~~~~~~~~~~~~
iPad: Issues connecting to Wi-Fi networks
http://support.apple.com/kb/ts3304
How to Boost Your Wi-Fi Signal
http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
Troubleshooting a Weak Wi-Fi Signal
http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
How to Fix a Poor Wi-Fi Signal on Your iPad
http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
How to Fix: My iPad Won't Connect to WiFi
http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Connect iPad to Wi-Fi (with troubleshooting info)
http://thehowto.wikidot.com/wifi-connect-ipad
10 Ways to Boost Your Wireless Signal
http://www.pcmag.com/article2/0,2817,2372811,00.asp
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
Unable to Connect After iOS Update - saw this solution on another post.
https://discussions.apple.com/thread/4010130
Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
Some Wi-Fi losses may stem from a problematic interaction between Wi-Fi and cellular data connections. Numerous users have found that turning off Cellular Data in Settings gets their Wi-Fi working again.
You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
Wi-Fi or Bluetooth settings grayed out or dim
http://support.apple.com/kb/TS1559
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
Greetings,
I have been having some issues with various areas in a SharePoint 2013 farm. While working my way through a bazillion errors in the event logs, I have found the following error. It looks to be happening every hour; almost exactly 5 minutes after
every hour.
"Cannot connect to SQL Server. A_PROD_SP01 not found. Additional error information from SQL Server is included below.
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."
I also find, a health analyzer rule that is failing at the same time:
Availability: One or more servers is not responding.
However, there isn't any server listed in the Failing Servers section.
Any thoughts?
Thank you,
BobHi Bob,
For your issue, it can be caused by that the SharePoint database access account might not have the necessary permissions to communicate with the SQL Server. Please grant correct permissions to the database access account:
You must be a member of the Farm Administrators group to perform this task.
Assign the database access account:
On the Central Administration home page, click Security and in the
General Security section click Configure service accounts.
On the Service Accounts page, in the Credential Management section, in the upper drop-down list click the correct Web application pool for your Web application.
In the Select an account for this component drop-down list, click the domain account that you want to associate with this Web application pool, or click
Register new managed account to associate a new domain account with this application pool.
Click OK to save changes.
Reference:
https://technet.microsoft.com/en-in/library/ee513066(v=office.14).aspx
http://blogs.technet.com/b/wbaer/archive/2009/10/06/intermittent-database-server-connectivity-and-microsoft-sharepoint-products-and-technologies.aspx
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
iTunes tells me there is an iOS update (5.1) but it never gets any further than trying to connect to the iPad server. I've tried updating directly from my iPad and it too times out saying it cannot connect to any server. My regular Apple updates work fine.
I haven't updated yet. Apple's download servers have been too busy. Did you know you can update via wifi instead of connection to your computer?
Here's a description of the update. Not a lot of changes for iPad 1/2.
iOS 5.1 Software Update
http://support.apple.com/kb/DL1504
You can wait a while & update at your convenience.
Cheers, Tom -
Connection to Server is too slow!
Ok, I have a bit of a problem here. I have a server set up with 4 users connected. It takes forever to even load all the folder icons when you connect to the server and open the window. I looked at the AFP information pane in the Server Admin program and it reads that we are getting less than 1MB/Sec. Is there another way for us to connect directly to the server so we can get better speeds or is something not set up correctly?
For what it's worth, I seem to be having the same problem. I don't have any detailed troubleshooting info to relay yet (forgot to enable error logging, ooops). I've just brought a 10.5.1 AFP only file server (XServe quad Xeon via Gigabit) online this morning for 20-30 users following a week of testing with a limited user base (3-5). The server is hosting 12 share points from four SCSI RAID arrays via Apple's SCSI card. CPU usage is at about 10%, spiking at 40-50% on occasion. Throughput has averaged around 12MB/s. Didn't have any issues while I was in testing (save the Kerberos ticket expiration problem, which I fixed by disabling Kerberos login).
For what it's worth the 10.4.10 Server (G4, 1.4GHz) sharing the same volumes never had a hiccup like this. -
Hello,
I am using BC on a site bt the session expire very quickly. i think its cookie because when i hit save after filling items it take me to login screen. can i extend the time of user logged in?Hi
If you are referring to secure zone expiry then unfortunately at current stage we cannot modify this from site backend , but if customers check "Remember Me" checkbox then the cookie is saved for a long time.
Thanks,
Sanjit -
ISE 1.2 CWA with Multiple PSNs - SessionID Replication / Session Expired
Hi all.
I have a (2) Policy Services Nodes (PSNs) in an ISE 1.2 deployment running patch 1. We are using Wireless MAB and CWA on 5760 Wireless LAN Controllers running v3.3.3.
We are hitting an issue wherein a client first passes MAB and then gets redirected to a CWA custom portal. The client then receives a Session Expired message. This seems to be related to the fact that CWA is technically a 2-stage authentication (MAB by the WLC and then CWA by the client). Specifically, it seems to happen when the WLC makes its MAB RADIUS access-request to PSN-1 and then the client comes in to PSN-2 to complete the CWA. This issue does not happen when only one PSN is in use and all authentication traffic (both MAB RADIUS and CWA) is directed at a single PSN.
Clients resolve the FQDN in the redirect URL using public DNS and a public DNS zone file (call it cwa-portal.example.com). cwa-portal.example.com has two A records for the two PSN nodes. DNS is responding to queries using DNS round-robin.
I have the PSNs configured in a Node Group for session information replication between PSNs, but this doesn't seem to make a difference in behavior.
So I ask:
What is the recommended architecture for CWA when using more than one PSN? It seems that you would need to keep the two authentication flows pinned together so that they both hit the same PSN when using more than one PSN in a deployment. A load balancer balancing on the SessionID string comes to mind (both the RADIUS MAB request and the CWA URL contain this unique per-client SessionID), but that seems terribly overbuilt for a seemingly simple problem. On the other hand, it also seems like using a Node Group setup should easily be able to replicate client SessionIDs to all nodes in the deployment so that this isn't an issue. I.e., if the WLC authenticates MAB on PSN-1, then PSN-1 should tell the Node Group about it such that when the client CWA's on PSN-2, PSN-2 doesn't respond with a Session Expired message.
Is there any Cisco documentation that talks about this?
Possibly related:
https://supportforums.cisco.com/discussion/12131531/ise-12-guest-access-session-expired
JustinTim,
Thanks for your reply and confirming my suspicion. Hopefully a future version of ISE will provide automated SessionID synchronization among PSNs so that front-end finagling in a multi-PSN environment won't be necessary.
For anyone else with this issue who for whatever reason can't implement a load balancer(s), I built an automated EEM applet running on a "watchdog" switch (3750 running 12.2(55)SEE9) using IPSLA tracking that senses when PSN1 is down and then
modifies an ASA to change its client-facing NAT statement for PSN1 to PSN2
modifies the primary and HA wireless LAN controllers to change its MAB RADIUS aaa server group to use PSN2
reverts the ASA and WLCs to using PSN1 when PSN1 is detected up and running again
The applet ensures the SessionID authentications stay "glued" together so that both WLCs and the client hit the same PSN for both stages of authentication. It's failover only, not a load balancing solution, but it meets our current project's need for an automated HA environment.
PM me if you want the code. I'm have a little too much going on ATM to sanitize and post it. :)
Justin -
How to make the client connect to the server at the command prompt?
I found this code on IBM's website, it was a training session on servers and clients using java.
The code compiles fine and the server seems to start up properly when I use java Server 5000. I think whats happening is the server is running and listening for a connection on port 5000.
When I try to run the client I get the following error.
Exception in thread "main" java.lang.NoSuchMethodError: main
I see a start() method but no main. As far as I know, applications should all have main, it seems as if the person who wrote this kinda confused applets with application. Not that I would really know what happened.
If you have time, could you tell me if there's an easy fix for this? I would love to have this client/server working if it isn't too much trouble. As I have looked all over the net for a free client/server applet that will actually let me see the java code and none of the free ones do allow getting to their source.
Most of them allow you to customize them somewhat but also have built in advertising that can't be removed.
This is the closest I have come to finding one that lets me look under the hood. But alas it doesn't work out of the box and I don't know what to do to fix it.
Heres the code: Server:
import java.io.*;
import java.net.*;
import java.util.*;
public class Server
// The ServerSocket we'll use for accepting new connections
private ServerSocket ss;
// A mapping from sockets to DataOutputStreams. This will
// help us avoid having to create a DataOutputStream each time
// we want to write to a stream.
private Hashtable outputStreams = new Hashtable();
// Constructor and while-accept loop all in one.
public Server( int port ) throws IOException {
// All we have to do is listen
listen( port );
private void listen( int port ) throws IOException {
// Create the ServerSocket
ss = new ServerSocket( port );
// Tell the world we're ready to go
System.out.println( "Listening on "+ss );
// Keep accepting connections forever
while (true) {
// Grab the next incoming connection
Socket s = ss.accept();
// Tell the world we've got it
System.out.println( "Connection from "+s );
// Create a DataOutputStream for writing data to the
// other side
DataOutputStream dout = new DataOutputStream( s.getOutputStream() );
// Save this stream so we don't need to make it again
outputStreams.put( s, dout );
// Create a new thread for this connection, and then forget
// about it
new ServerThread( this, s );
// Get an enumeration of all the OutputStreams, one for each client
// connected to us
Enumeration getOutputStreams() {
return outputStreams.elements();
// Send a message to all clients (utility routine)
void sendToAll( String message ) {
// We synchronize on this because another thread might be
// calling removeConnection() and this would screw us up
// as we tried to walk through the list
synchronized( outputStreams ) {
// For each client ...
for (Enumeration e = getOutputStreams(); e.hasMoreElements(); ) {
// ... get the output stream ...
DataOutputStream dout = (DataOutputStream)e.nextElement();
// ... and send the message
try {
dout.writeUTF( message );
} catch( IOException ie ) { System.out.println( ie ); }
// Remove a socket, and it's corresponding output stream, from our
// list. This is usually called by a connection thread that has
// discovered that the connectin to the client is dead.
void removeConnection( Socket s ) {
// Synchronize so we don't mess up sendToAll() while it walks
// down the list of all output streamsa
synchronized( outputStreams ) {
// Tell the world
System.out.println( "Removing connection to "+s );
// Remove it from our hashtable/list
outputStreams.remove( s );
// Make sure it's closed
try {
s.close();
} catch( IOException ie ) {
System.out.println( "Error closing "+s );
ie.printStackTrace();
// Main routine
// Usage: java Server <port>
static public void main( String args[] ) throws Exception {
// Get the port # from the command line
int port = Integer.parseInt( args[0] );
// Create a Server object, which will automatically begin
// accepting connections.
new Server( port );
}CLIENT:
import java.io.*;
import java.net.*;
public class ServerThread extends Thread
// The Server that spawned us
private Server server;
// The Socket connected to our client
private Socket socket;
// Constructor.
public ServerThread( Server server, Socket socket ) {
// Save the parameters
this.server = server;
this.socket = socket;
// Start up the thread
start();
// This runs in a separate thread when start() is called in the
// constructor.
public void run() {
try {
// Create a DataInputStream for communication; the client
// is using a DataOutputStream to write to us
DataInputStream din = new DataInputStream( socket.getInputStream() );
// Over and over, forever ...
while (true) {
// ... read the next message ...
String message = din.readUTF();
// ... tell the world ...
System.out.println( "Sending "+message );
// ... and have the server send it to all clients
server.sendToAll( message );
} catch( EOFException ie ) {
// This doesn't need an error message
} catch( IOException ie ) {
// This does; tell the world!
ie.printStackTrace();
} finally {
// The connection is closed for one reason or another,
// so have the server dealing with it
server.removeConnection( socket );
}Thanks for your time.CLIENT:
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
public class Client extends Panel implements Runnable
// Components for the visual display of the chat windows
private TextField tf = new TextField();
private TextArea ta = new TextArea();
// The socket connecting us to the server
private Socket socket;
// The streams we communicate to the server; these come
// from the socket
private DataOutputStream dout;
private DataInputStream din;
// Constructor
public Client( String host, int port ) {
// Set up the screen
setLayout( new BorderLayout() );
add( "North", tf );
add( "Center", ta );
// We want to receive messages when someone types a line
// and hits return, using an anonymous class as
// a callback
tf.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent e ) {
processMessage( e.getActionCommand() );
// Connect to the server
try {
// Initiate the connection
socket = new Socket( host, port );
// We got a connection! Tell the world
System.out.println( "connected to "+socket );
// Let's grab the streams and create DataInput/Output streams
// from them
din = new DataInputStream( socket.getInputStream() );
dout = new DataOutputStream( socket.getOutputStream() );
// Start a background thread for receiving messages
new Thread( this ).start();
} catch( IOException ie ) { System.out.println( ie ); }
// Gets called when the user types something
private void processMessage( String message ) {
try {
// Send it to the server
dout.writeUTF( message );
// Clear out text input field
tf.setText( "" );
} catch( IOException ie ) { System.out.println( ie ); }
// Background thread runs this: show messages from other window
public void run() {
try {
// Receive messages one-by-one, forever
while (true) {
// Get the next message
String message = din.readUTF();
// Print it to our text window
ta.append( message+"\n" );
} catch( IOException ie ) { System.out.println( ie ); }
import java.applet.*;
import java.awt.*;
import java.io.*;
import java.net.*;
public class ClientApplet extends Applet
public void init() {
String host = getParameter( "192.168.1.47" );
int port = Integer.parseInt( getParameter( "5000" ) );
setLayout( new BorderLayout() );
add( "Center", new Client( host, port ) );
}Sorry about that. Now when I run an html file with this applet I just get the x in the corner.
Thanks for looking. -
Error while connecting to SAP Server from Windows XP Client.
Hi,
I am facing the problem while i am trying to connect my Windows XP Clients( With Service Pack 3, DI-API Installed and Microsoft SQL Server Native Client Installed) to SAP server i got follwoing Error.
Connection Failed :
SQL State : '08001'
SQL Server Error : 233
[Microsoft][SQL Native Client]Named Pipe Provider Could not open the connection SQL Server [233].
Connection Failed :
SQL State : "HYT00"
SQL Server Error : 0
[Microsoft][SQL Native Client]Login Timeout Expired
Connection Failed:
SQL State :'08001'
SQL Server Error : 233
[Microsoft][SQL Native Client]An Error has occured while establishing new connection to the server.
When connecting SQL Server 2005, this failure may caused by the fact that under the default setting SQL Server does not allow remote connection.
Regards,
Arpit ShahHi Arpit,
Solution of Error in starting B1 after installation should help here too.
Kind regards
Mario
SAP Business One Forums team
Maybe you are looking for
-
How Do you Make your Own Font so you Can Use It in Preview
Hi. I'm filling up a form that needs my signature. I can't annotate my signature (because it doesn't annotate graphics) in a PDF using Preview. I plan to just create a font of my signature so I can annotate my signature as text ( I just key in letter
-
HT1766 How do I back up onto an external Hard drive?
I am trying to back up my iphone 4 but my computer does not have enough space. I need to back up onto an external hard drive. How do I do that?
-
How to restore file associations in Bridge CS5?
Hi Some time ago I somehow lost file associations in Adobe Bridge CS5. Now when I doubleclick a RAW file (Canon .CR2 file) I get Firefox, when I doubleclick a JPG I get FastStone and when I doubleclick a PSD file nothing happens at all. Also Photosho
-
Can I burn purchased TV programs I have bought through the iTunes Store onto DVD either to backup or to play on a DVD player?
-
Where we should implement inbound abap proxy?
I have to implement Inbound abap proxy, there i need to call two BAPI s to create reservation and purchase requisition based on material number coming from input. my doubt is all this code where should i implement and also please give me some sample