Get Unknownhost exception for the local computer's IP
I'm new to the network API in Java and get a weird error. I do the following with UDP sockets:client application sends a string to the xxx.xxx.xxx.xxx%someText format as a byte [] where xxx.xxx.xxx.xxx represents a valid IPv4 address (in this case, the IP address of my machine... later wants to IP of a server)
application staging server converts byte [] to string, splits based on the '%' character and the first string of the split then transforms an InetAddress via InetAddress.getByName
It is to launch a java.net.UnknownHostException exception and I cannot understand why. If I hard code the IP address in the program, it works fine, but this isn't an option. There is obviously something different on the chain of the staging server is to receive, but I can't understand what it is, when the output that is displayed as the expected data. Any help would be appreciated, I pasted only the relevant excerpts of my code below for brevity:
-customer-
Encode
Byte [] data;
String surlabasedesdonneesdufabricantduballast = servAddress.concat("%"); " package = xxx.xxx.xxx.xxx%text delimiter used for xxx not guaranteed to be triple
Surlabasedesdonneesdufabricantduballast = Sdata.concat (text); Add text to the data
out.writeChars (Sdata); write data to the stream of bytes
out. Flush();
data = byteStream.toByteArray ();
DatagramPacket message = new DatagramPacket (data, data.length);
Sock.Send (message);
-Intermediate Server-
ByteArrayInputStream input = new ByteArrayInputStream (encodedData);
In DataInputStream = new DataInputStream (input);
String data = new String (encodedData);
String [] info = data.split("%"); "
Address of string = info [0] .trim ();
... failed code
serverAddress = InetAddress.getByName (address); It's the line that fails
Published by: 805856 on October 27, 2010 20:36
Your e/s is asymmetric. You are using DataOutputStream.writeChars () to write the data, so you must use DataInputStream.readChar () to read each individual character back and build your channel out of these characters.
Tags: Java
Similar Questions
-
"Impossible to get hardware information for the selected computer." OV V2V conversion error
Hello
I'm trying to convert Windows 2008 32 bit VM of VServer to ESXi 5.1 s. He always of errors with the message above. I tried to use VmWare Converter 5.1, 5.01 and 4.3. 4.3 using I get another (I get a "a general error has occurred: failure" when I click on the Finish button.) I got the converter 5.1 work with s 2003 32-bit OS I had.
Some things I've tried:
-Changed type VM from 2008 to 2003
-Powered the machine up, then shut down cleanly
-Do of course, there is nothing wrong with configuration that could hang up the conversion as the map NETWORK configurations, etc.
I have really no idea what to do at this point. I tried all the solutions and workaround that I found through Google and nothing seems to work. Not really sure where to go from here. Anyone out there have anything that has worked for them?
Thank you
Adam
The error is:
2013 06-13 T 21: 00:17.676 - 04:00 [02940 info "Default"] analysis \\stam-vm01\Virtual Machines\stam-wsus03.janus\Windows Server 2008 Enterprise.vmx
2013 06-13 T 21: 00:19.348 - 04:00 [02940 info "Default"] Sysimgbase_DiskLib_OpenWithPassPhrase failed with "the specified virtual disk must be repaired" (error code: 14)
2013 06-13 T 21: 00:19.348 - 04:00 [02940 info "Default"] error 14 opening disk \\stam-vm01\Virtual Machines\stam-wsus03.janus\Windows Server 2008 Enterprise.vmdk.
As I recall there is a problem with Server2 with clean shutdown. As you say that you did a clean shutdown, try to delete additional files (lock) from the folder of the virtual computer.
The VDDK tools or download invoke vmware - vdiskmanager.exe with the - R option.
HTH
-
Hello everyone!
I wanted to reduce my DC scores (of 2 used only TB ~ 150 GB) with the help of the stand-alone converter, but when I select 'source machine' (my off DC), then click on next, I get the error "Unable to get material information for selected machine" (which runs the converter as admin doesn't help). Also i ' v tried to convert other machines on this host and succeed.
Cannot understand what is wrong with my DC.
ESXi 5.1.0
Converter 5.5.3
Newspapers of my 3 attempts as an attachment.
Seems that the problem is the size of the disk, possibly existing snapshots. Try to convert the virtual machine as a machine (on) physical.
HTH
-
Impossible to get hardware information for the selected computer
Hello world
I need to convert a .vmx ESXi 5.5 machine. I use VMware vCenter Converter Standalone 5.1.1.
I have this error: failed to get the hardware to the computer information selected
Before copying the files (VMs), I stopped the VM and I did not include snapshots.
Thanks for your help!
Specific error should be found in the converter-worker newspaper, could you upload log-bundle?
Also, you should make sure that the user running the user interface that has sufficient rights on your VM.
HTH
-
Original title: Print printer printing
I can't get the print spooler to turn on, get error 1053-service cannot be answered on the local computer. I tried password admin and services, but it will not turn on. Any suggestions?
Hi, DUBOIS,.
This error occurs when you do not have the latest service pack for Microsoft .NET Framework 1.1.
Please answer the following questions.
- What operating system do you use?
- What is the brand and model of your printer?
- Did you of recent changes made to your computer?
While your answer above information, refer to the suggestions for the following link.
FIX: You receive an "error 1053: the service has failed to demand launch or control in a timely" error message when you stop or pause a managed Windows service
http://support.Microsoft.com/kb/839174
Hope the above information helps.
-
Original title: Journal of spooler
I have a Dell Dimension 3000 CPU and I try to re - install a Dell 720 printer. I get the message. "Failed to start spooler log on the local computer. Error 1075: The dependency service does not exist or has been marked for deletion. I tried this diagnosticTo start print spooler service and also long-term arer services set it to automatic, follow these steps. a. Click Start, right click on my computer and select manage. b. in the console that opens, expand the menu Services and applications. c. click Services. d. click the button twice to spool print. e. in the 'Général' tab, go to Startup Type. f. the Automatic value. g. click on the Start button. h. click on apply and Ok. Click the Dependencies tab, and not all the dependency services and repeat the steps above to set automatic and start the service. Restart the computer after you start the services above. After restarting the computer check if you can install the printer. And a few others. Someone at - it suggestions? This printer has been operational on this computer at any given time. Windows XP Home / Firefox. .:
Hello
1. don't you make changes on the computer before this problem?
2. when exactly you get this error message?Step 1: Run the fix it tool using the article below and check out them.
Problems printing and printing errors
http://support.Microsoft.com/mats/printing_problems/Step 2: Try the steps from the article below and check out them.
Error message when you try to start the spooler service for printing on a Windows XP-based computer: "error 1075.
http://support.Microsoft.com/kb/915168/en-GB -
I get the error code that microsoft.jet.oledb.4.0 provider is not registered on the local computer
I have the 64 bit vista edition and can't find a way to get this program to run. Can someone help me please. I need this program for school
http://social.msdn.Microsoft.com/forums/en/SQLDataAccess/thread/ded16d08-b98c-4130-a6af-d3df4061494c
Read the information on the link above; and the link to the answer.
See you soon. Mick Murphy - Microsoft partner
-
Hi, I'm trying start the IKE and AUTHOP service from the SERVICES screen but I get this error:
Windows could not start the IKE and Authip IPsec keying service modules on the local computer. Error 1075 the dependency service does not exist or has been marked for deletion.
original title: ike and authip error 1075 the dependency service does not exist or has been marked for deletion
Hello
Remember to make changes to the computer before the show?
You can follow the below methods:
Method 1: Restart Windows and try to start the Security Center service.
If you still receive the same error, make sure that the WMI service is launched and running:
(a) click Start, run , and then type Services.msc
(b) double-click Windows Management Instrumentation
(c) set its startup type to Automatic
(d) click Start to start the service, and then click OK
(e) restart Windows.
Method 2: Restart the service
Windows logs an error if the service IKE and AuthIP IPsec Keying Modules or the driver does not start, or suddenly, they end.
To restart the IKE and AuthIP IPsec Keying Modules service:
To perform this procedure, you must have membership in the local Administrators group, or must you have been delegated the appropriate authority.
(a) restart the service. You can do this from a command prompt or in the snap-snap-in Services Microsoft Management Console (MMC). Do one of the following:
· Start an administrative command prompt. Click Start, click principally made programs, Accessories, right-click guest, and then click run as administrator. At the command prompt, run the command net start ikeext.
· Click Start, type services.msc in the Search box and press ENTER. In the column name of the Services snap-in, right-click on IKE and AuthIP IPsec Keying Modulesand then click Start.
(b) if the attempt to restart the service fails, restart the computer. This forces all related and dependent services to restart.
(c) if the error persists after restarting the computer, then the executable files for the driver or service may be damaged, and the operating system must be reinstalled.
Note:
You can check that the IKE and AuthIP IPsec Keying Modules (IKEEXT) service runs by using the Component Services Microsoft Management Console (MMC) or the net start command line tool.
You can check the link: http://technet.microsoft.com/en-us/library/cc733299 (WS.10) .aspx
Method 3: Run a scan of the System File Checker.
http://support.Microsoft.com/kb/929833
It will be useful.
-
P2V to the local computer - error failed to get hardware information
Hello
I get an error using vCenter Converter Standalone 5.1.0. I'm trying to convert a local computer to an image on a hard drive external. The local computer is Windows 7.
The error I get is impossible to get the hardware information for the selected computer.
Here are the steps I am following
Select the source type: slot machine tension
specify the machine: this local machine
Thanks for any help
It seems that there is a problem with your volume K:. What is it? Is there a chance to detach or make offline and try again?
-
How can I get the COMPLETE serial number to display? This number shows except for the 4 last digits.
Hi Infogoddess,
Thank you for using communities Support from Apple! If you try to find the serial number of your iPod touch or another Apple product, you can find information and the steps in the following articles useful:
iPod: how to find the serial number - Apple Support
Find the serial number of your Apple - Apple Support product
See you soon
-
This summer, I bought a computer with Vista. Will I get a refund for the upgrade to Windows 7?
See: Frequently asked questions - Upgrade Options
http://www.Microsoft.com/Australia/Windows/buy/offers/upgrade-FAQ.aspx TaurArian [MVP] 2005-2010 - Update Services -
When I try to start the event log service can I have on my server (Windows 2008 R2), I get the following error:
"Windows didn't start the service on the Local computer Windows event log."
Error 2: the system cannot find the specified file. »
Hello
Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the below link: http://social.technet.microsoft.com/Forums/en/category/windowsserver/
-
I'm running Vista 64 to connect to a remote computer that has Windows Server 2008. When the remote desktop connection via, under the options for sound local computer that I "Make to this computer" activated. However I still get all the sounds, and the volume in the lower right corner icon has a red x on it. Under the heading reading devices, it says "no audio device is installed". In Device Manager, I don't see anything for sound and audio devices.
I found an article that mentioned the sounds and Audio devices in Control Panel, however I have only 'His' option - which opens the same as right click on the volume with mute icon and choosing of reading devices. I don't see anything on the RDP Audio Driver settings.
Here's a screenshot of my desktop remotely, with the Control Panel, Device Manager, and open windows of his:
http://img27.imageshack.us/img27/959/screenshotxqp.jpg
How to activate the sound remote desktop?
Hi Tsaton,Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums, since it is linked to the issue in Windows Server 2008 machine. Appropriate in instances of Windows Server.
Please post your question in the Forums of Windows Server.
-
I use Windows 7 Home PremiumMy windows Security Center cannot be started. I spent to the Microsoft Management Console and tried to launch security through Services Center, but when I do I get the following message is displayed:"Windows failed to start the service on the Local Computer Security Center."Error 1068: the dependency service or group could not start"Help, please.Thank you.
Hi Rohit Chettri ,
(I am not good in English)I am trying no operation troubleshooting you mentioned. I have it set for myself.I clicked on something related to the denfence in the heart of the action and when I restarted my computer is off almost all services. I couldn't even connect to the internetI went to the Configuration System (msconfig)-> services-> active tab all services and restart. After that my computer works normally.In any case thanks a lot Rohit Chettri. -
Windows search Windows failed to start the service on the Local computer
OK, so it's a big, dirty and convoluted issue, so please bear with me. Any help is greatly appreciated! I start tearing my hair out on this one...
I'm on Windows 7 Professional 64 bit
UAC is set to the lowest level 2The other day I have problems with the search box in the start bar. It is more was to find excel or other office applications and also he wouldn't orders base as cmd or Notepad. Whenever I run a command it returns an error like this (not exact because I have the exact error message):
Windows cannot find ': search query = cmd'
I searched a little and tried to rebuild the index in Control Panel > Indexing Options. It does not work so I uninstalled Windows Search and reinstalled. What I found now, is that the indexing service would not start and if I tried manually start from services.msc I would get the following error:Windows search Windows failed to start the service on the Local computer
Error 161: the specified path is not validThe event log showed me this Application error:
Cannot initialize the Gatherer service.
Details:
The Temp folder is on a drive that is full or inaccessible. Free space on the drive or verify that you have permission write to the Temp folder. (HRESULT: 0 X 80070660) (0 x 80070660)
Help!
Thanks Samhrutha.
Your proposed solution of editing the registry is the only solution I found to this day and still work.
The only drawback that I want to emphasize is that this fix causes completely reset to its default settings of windows search. Customizations to search what have been done by the user (e.g., windows search indexing user customizations options) will be lost.I am running Windows 7 Pro 64-bit and occasionally experienced the same error message ( windows cannot find ': search query = XXX ", where XXX corresponds to my search query) try to search through windows when start menu search box.
Only recently, however, discovered one other cause possible/fix to this problem.
Specifically, I discovered that the error of windows search resulting from the ADDITION of a NETWORK LOCATION on the local computer (for example, via the menu option "Add a network location" that appears when you click the file menu in a window of windows Explorer displays the contents of the local computer (corresponding to the "COMPUTER" icon). The CENTER of my computer SYNC settings have been defined to disable the synchronization of network or file 'offline' and I suspect that this setting is also part the cause of the error of research.To resolve this problem, simply tell windows search not to include the 'network' location in the search index. To do this, one needs to access the settings of the windows search INDEX LOCATIONS (via Indexing Options-> change), then uncheck the box next to the network location (which on my computer starts as follows: oneindex: / / {s-1-5-21...)
After unchecking this box, click on the OK button and then CLOSE the button to exit the Options of Index window. After that the error message should hopefully not return. If so, try restarting the computer and research to test again.
Hope this helps!
:)
~ rx
Maybe you are looking for
-
How to go back to the single-user music of family ahared
Help, please! I want more have Apple music shared with the family. I want to go back to single user.
-
iPad 2 is stuck on update checking
My 2A ipade was slain on "update check" for 2 days. I can't disable or stop the updates. Any suggestions
-
Lost after Rocovery Windows desktop
My computer crashed and I had to make a full recovery. When the recovery was made, I tried to upgrade my Office programs. I bought two different programs to upgrade and none works. How can I get Office programs original return to get my updates of
-
How can I stop the stream of come into my email?
OK - I feel stupid, but I subscribed to some foods that have become very prolific and are overwhelming my e-mail space. And I can't understand how to unsubscribe to them. I tried to delete the folders, but they come back. I use Outlook 2007 as an RSS
-
Access restriction configuration network devices with the level of the ACS 5.0 user
Hi Experts, I have some configuration tasks TACAC with level of different user for all routers and switches, To further develop, I engineer, analyst and site engineers, so I want to configure centralized authentication with Annie tacac different leve