LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-23-2017, 08:53 AM   #1
iftekhar09
LQ Newbie
 
Registered: Mar 2017
Posts: 1

Rep: Reputation: Disabled
Getting the Error - Failed to determine peer security context: Protocol not available


I have a service named 'dataService' when i am starting/stopping/restarting this service from the CLI it works absolutely fine but when i execute the service from my java code it gives the errorStream - "Failed to determine peer security context: Protocol not available".

Java Code :-

Process process = Runtime.getRuntime().exec(cmd.getCommandLine());
BufferedReader datainput = new BufferedReader(new InputStreamReader(process.getErrorStream()));
String inputLine;
StringBuffer buf = new StringBuffer();

while ((inputLine = datainput.readLine()) != null){
buf.append(inputLine).append("\n");
}

//Wait for Process to complete.
int returnCode = process.waitFor();
process.destroy();


This issue is only happening in RHEL7.X and CentOS 7.X or other 7.X architecture. Any help will be highly appreciated.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
amanda-server, selfcheck request failed: recv error: Connection reset by peer malayo Linux - Server 3 02-25-2011 05:30 AM
httpd restart FAILED error: Could not determine the server's fqdn mcbaind Linux - Networking 8 10-06-2006 08:21 AM
Peer-to-peer protocol in C++ lucky6969b Programming 0 02-08-2006 07:07 PM
HotSync via bluetooth MSDUN failed. Protocol error(71) xbaez Linux - Wireless Networking 1 12-09-2005 09:23 AM
Wierd error with ping WARNING: failed to install socket filter: Protocol not availabl abefroman Linux - Networking 4 03-25-2004 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration