Sockets Problem / sort of Echoing Server
Hey all, basically the problem i got is related to sockets, client program freezes up once i press the button 'send', Mainly all im trying to do right now is have a client send text to the server, then the server sends back whatever the client sent and this is then shown on the clients screen..
The code i got is
public class Server {
public static void main(String[] args){
try {
ServerSocket sSocket = new ServerSocket(3000);
Socket clientSocket = sSocket.accept();
BufferedReader fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
PrintWriter toClient = new PrintWriter(clientSocket.getOutputStream(), true);
String fClient;
while((fClient = fromClient.readLine())!= null){
toClient.println(fClient);
}catch(IOException e) {
System.err.println(e);
}And for the client class
public class Client extends JFrame implements ActionListener {
JTextArea result;
JTextField text;
Socket socket;
public Client(){
super("Client");
try{
socket = new Socket("localhost", 3000);
} catch (UnknownHostException e){
System.err.println("Unknown Host");
} catch (IOException e) {
System.err.println("Exception");
JPanel panel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
result = new JTextArea(13,10);
JButton send = new JButton("Send");
text = new JTextField(19);
send.addActionListener(this);
panel.add(text);
panel.add(send);
add(new JScrollPane(result), BorderLayout.NORTH);
add(panel, BorderLayout.SOUTH);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(300,300);
setVisible(true);
public void actionPerformed(ActionEvent e) {
String fServer = null;
BufferedReader fromServer = null;
PrintWriter toServer = null;
String aCommand = e.getActionCommand();
if(e.getSource() instanceof JButton){
if(aCommand.endsWith("Send")) {
try {
fromServer = new BufferedReader(new InputStreamReader(socket.getInputStream()));
toServer = new PrintWriter(socket.getOutputStream());
}catch(IOException e1){
System.err.println("Exception occured");
toServer.println(text.getText());
try{
fServer = fromServer.readLine();
}catch (IOException e1) {
System.err.println("Error Recievieng Result");
result.append(fServer);
}However after debugging the application, i think the main problem comes from the server side, mainly the while loop which keeps looping to see if the input recieved is null, i think the problem why the client freezes up is because nothing is being sent therefore the loops keeps going on in circles, hence not supplying the client with any text..
I would appreciate if someone could give me some help how to fix this problem
Thanks
What else could the server do? There's no problem there. The problem is that you're calling network code inside an actionPerformed method. This freezes your GUI because the method is invoked within the AWT thread, which handles all the events on the GUI. As your code is blocked in network operations, no GUI events can be processed.
Do the network operations in a separate thread.
Similar Messages
-
Noice problem with the echo server
Hi All,
I have been trying to do a program in which the data captured from a microphone is sent to a UDP server, which in-turn will echo the voice data back to the client. On some of the machines this works fine, but on some other machines I get a lot of noise. Can you please tell me what the problem might be ?
While sending the data to the server, I use the byteArray obtained from the mic and then generate a Datagram packet, which is then sent to the server.
The sample code to capture the data is
private AudioFormat getAudioFormat() {
float sampleRate = 8000.0F;
//8000,11025,16000,22050,44100
int sampleSizeInBits = 8;
//8,16
int channels = 1;
//1,2
boolean signed = true;
//true,false
boolean bigEndian = true;
//true,false
return new AudioFormat(sampleRate, sampleSizeInBits, channels, signed, bigEndian);
public void captureAudio() {
audioFormat = getAudioFormat();
DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);
targetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);
targetDataLine.open(audioFormat);
targetDataLine.start();
}The part of the code to receive the data is
public AudioPlayback() {
try {
audioFormat = getAudioFormat();
DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, audioFormat);
sourceDataLine = (SourceDataLine) AudioSystem.getLine(dataLineInfo);
sourceDataLine.open(audioFormat);
sourceDataLine.start();
} catch(Exception e) { e.printStackTrace(); }
// This is called by the thread that receives data from the server
public void playAudio(byte [] audioData) {
try {
System.out.println("Playing Received Data ");
sourceDataLine.write(audioData, 0, audioData.length);
} catch(Exception e) { e.printStackTrace(); }
}Thanks and Regards,
AnilKarthikeyan_R wrote:
Delayed or out of ordert packets will introduce noise, if the receiver is not taking care of the timestamp. In my application I'm discarding the out of order in 'some scenarios' to avoid noise.Exactly. That's how the RTP protocol works, and is necessary to prevent noise.
My original point was, if you're not handling out of order packets, which I assume you aren't because you didn't mention it, then you're just asking for noise.
If you're getting noise on some machines and not others, it may be because you'll get noisier audio on higher-traffic networks, or between two computers that are father apart logically on the network. -
Socket problem with reading/writing - server app does not respond.
Hello everyone,
I'm having a strange problem with my application. In short: the goal of the program is to communicate between client and server (which includes exchange of messages and a binary file). The problem is, when I'm beginning to write to a stream on client side, server acts, like it's not listening. I'd appreciate your help and advice. Here I'm including the source:
The server:
import java.io.IOException;
import java.net.ServerSocket;
public class Server
public static void main(String[] args)
ServerSocket serwer;
try
serwer = new ServerSocket(4443);
System.out.println("Server is running.");
while(true)
ClientThread klient = new ClientThread(serwer.accept());
System.out.println("Received client request.");
Thread t = new Thread(klient);
t.start();
catch(IOException e)
System.out.print("An I/O exception occured: ");
e.printStackTrace();
}ClientThread:
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.net.SocketException;
public class ClientThread implements Runnable
private Socket socket;
private BufferedInputStream streamIn;
private BufferedOutputStream streamOut;
private StringBuffer filePath;
ClientThread(Socket socket)
this.socket = socket;
public void run()
try
this.streamIn = new BufferedInputStream(socket.getInputStream());
this.streamOut = new BufferedOutputStream(socket.getOutputStream());
int input;
filePath = new StringBuffer();
System.out.println("I'm reading...");
while((input = streamIn.read()) != -1)
System.out.println((char)input);
filePath.append((char)input);
this.streamOut.write("Given timestamp".toString().getBytes());
ByteArrayOutputStream bufferingArray = new ByteArrayOutputStream();
while((input = streamIn.read()) != -1)
bufferingArray.write(input);
bufferingArray.close();
OutputStream outputFileStream1 = new FileOutputStream("file_copy2.wav");
outputFileStream1.write(bufferingArray.toByteArray(), 0, bufferingArray.toByteArray().length);
outputFileStream1.close();
this.CloseStream();
catch (SocketException e)
System.out.println("Client is disconnected.");
catch (IOException e)
System.out.print("An I/O exception occured:");
e.printStackTrace();
public void CloseStream()
try
this.streamOut.close();
this.streamIn.close();
this.socket.close();
catch (IOException e)
System.out.print("An I/O exception occured:");
e.printStackTrace();
}The client:
import java.io.*;
public class Client
public static void main(String[] args) throws IOException
int size;
int input;
//File, that I'm going to send
StringBuffer filePath = new StringBuffer("C:\\WINDOWS\\Media\\chord.wav");
StringBuffer fileName;
InputStream fileStream = new FileInputStream(filePath.toString());
Connect connection = new Connect("127.0.0.1", 4443);
String response = new String();
System.out.println("Client is running.");
size = fileStream.available();
System.out.println("Size of the file: " + size);
fileName = new StringBuffer(filePath.substring(filePath.lastIndexOf("\\") + 1));
System.out.println("Name of the file: " + fileName);
connection.SendMessage(fileName.toString());
response = connection.ReceiveMessage();
System.out.println("Server responded -> " + response);
ByteArrayOutputStream bufferingArray = new ByteArrayOutputStream();
while((input = fileStream.read()) != -1)
bufferingArray.write(input);
bufferingArray.close();
FileOutputStream outputFileStream1 = new FileOutputStream("file_copy1.wav");
outputFileStream1.write(bufferingArray.toByteArray(), 0, bufferingArray.toByteArray().length);
outputFileStream1.close();
byte[] array = bufferingArray.toByteArray();
for (int i = 0; i < array.length; ++i)
connection.streamOut.write(array);
response = connection.ReceiveMessage();
System.out.println("Server responded -> " + response);
connection.CloseStream();
Connect class:import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;
public class Connect
public Socket socket;
public BufferedInputStream streamIn;
public BufferedOutputStream streamOut;
Connect(String host, Integer port)
try
this.socket = new Socket(host, port);
this.streamIn = new BufferedInputStream(this.socket.getInputStream());
this.streamOut = new BufferedOutputStream(this.socket.getOutputStream());
catch (UnknownHostException e)
System.err.print("The Host you have specified is not valid.");
e.getStackTrace();
System.exit(1);
catch (IOException e)
System.err.print("An I/O exception occured.");
e.getStackTrace();
System.exit(1);
public void SendMessage(String text) throws IOException
this.streamOut.write(text.getBytes());
System.out.println("Message send.");
public void SendBytes(byte[] array) throws IOException
this.streamOut.write(array, 0, array.length);
public String ReceiveMessage() throws IOException
StringBuffer elo = new StringBuffer();
int input;
while((input = streamIn.read()) != -1)
elo.append((char)input);
return elo.toString();
public void CloseStream()
try
this.streamOut.close();
this.streamIn.close();
this.socket.close();
catch (IOException e)
System.err.print("An I/O exception occured: ");
e.printStackTrace();The problem that was solved here was a different problem actually, concerning different source code, in which the solution I offered above doesn't arise. The solution I offered here applied to the source code you posted here.
-
The message ~There was a problem connecting to the server “your-447023ae6b”.appears when I try to play music transferred from my PC to my iMac. Files were transferred from my PC by a Genius. How do I sort it? Next appointment with genius is 5 days away!
Hi
Thanks this has helped me solve the problem.
I used the Outlook Anywhere connectivity tester you suggested. Selected Outlook autodiscover.
It told me that it could not resolve things on any of the 4 tests.
I saw that using the last test "Attempting to contact the Autodiscover service using the DNS SRV redirect method", was the only one likely to work in my case.
I had already changed 3 entries in dns to point at my DDNS address but this had not worked, from the errors I could see that it was just the certificate name not matching so I changed the DNS entries for Autodiscover, autoconfig and _autodiscover._tcp
to be webmail.domain.com which is a CNAME to my ddns address for the broadband router, which in turn forwards ports 80 and 443 to the exchange server for owa and activesync access. I got an error message saying that I had an illegal entry in my SRV record
as a CNAME is not allowed, but it saved the change anyway.
I reran the test and it worked.I can now make new outlook clients attach teo exchange.
Thank you, after 8 hours yesterday of trying to reolve this I suddnely got it to work on one laptop but the other still would not and had lost track of what I could have changed so had no idea what actually made it work.
Thank you for your suggestion. -
Thread problem in JavaNIO client server application
**Dear experts,**
I have problem with server which is nonblocking nio server, after registering one client the server is not registering other clients can some body told me, what is going on why sever is not showing any activity*
this is Tour proxy class which is at client site and dealing with server and updating GUI on client site:*
public void run() {
connect(host);
running = true;
while (running) {
readIncomingMessages();
// nap for a bit
try {
Thread.sleep(50);
catch (InterruptedException ie) {
} this is GUI which is dealing with Tourproxy
class WrapNetTour3D
void createSceneGraph(String userName, String tourFnm,
double xPosn, double zPosn)
// initialize the scene
sceneBG = new BranchGroup();
bounds = new BoundingSphere(new Point3d(0,0,0), BOUNDSIZE);
// to allow clients to be added/removed from the world at run time
sceneBG.setCapability(Group.ALLOW_CHILDREN_READ);
sceneBG.setCapability(Group.ALLOW_CHILDREN_WRITE);
sceneBG.setCapability(Group.ALLOW_CHILDREN_EXTEND);
lightScene(); // add the lights
addBackground(); // add the sky
sceneBG.addChild( new CheckerFloor().getBG() ); // add the floor
makeScenery(tourFnm); // add scenery and obstacles
TP = new TourProxy("localhost",this,obs);
makeContact(); // contact server (after Obstacles object created)
addTourist(userName, xPosn, zPosn);
// add the user-controlled 3D sprite
sceneBG.compile(); // fix the scene
} // end of createSceneGraph()
private void makeContact()
/* Contact the server, and set up a TourProxy to monitor the
server. */
try {
TP.start();
catch(Exception e)
{ System.out.println("No contact with server");
System.exit(0);
} // end of makeContact()
....} this is class which is initializing the above class WrapNetTour3D:
public NetTour3D(String args[])
super("3D NetTour");
processArgs(args);
setTitle( getTitle() + " for " + userName);
Container c = getContentPane();
c.setLayout( new BorderLayout() );
w3d = new WrapNetTour3D(userName, tourFnm, xPosn, zPosn);
c.add(w3d, BorderLayout.CENTER);
addWindowListener( new WindowAdapter() {
public void windowClosing(WindowEvent e)
{ w3d.closeLink(); }
pack();
setResizable(false); // fixed size display
setVisible(true);
} // end of NetTour3D() and this is server:
public NIOTourServer( String string, int port) throws IOException {
this.addr = string;
this.port = port;
writeBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
dataMap = new HashMap<SocketChannel, List<byte[]>>();
clients = new LinkedList();
userName = "?";
startServer();
private void startServer() throws IOException {
// create selector and channel
this.selector = Selector.open();
ServerSocketChannel serverChannel = ServerSocketChannel.open();
serverChannel.configureBlocking(false);
// bind to port
InetSocketAddress listenAddr = new InetSocketAddress(this.addr,
this.port);
serverChannel.socket().bind(listenAddr);
serverChannel.register(this.selector, SelectionKey.OP_ACCEPT);
log("Echo server ready. Ctrl-C to stop.");
// processing
while (true) {
// wait for events
this.selector.select();
// wakeup to work on selected keys
Iterator keys = this.selector.selectedKeys().iterator();
while (keys.hasNext()) {
SelectionKey key = (SelectionKey) keys.next();
// this is necessary to prevent the same key from coming up
// again the next time around.
keys.remove();
if (!key.isValid()) {
continue;
if (key.isAcceptable()) {
this.accept(key);
} else if (key.isReadable()) {
this.read(key);
} else if (key.isWritable()) {
//this.write(key);
private void accept(SelectionKey key) throws IOException {
ServerSocketChannel serverChannel = (ServerSocketChannel) key.channel();
SocketChannel channel = serverChannel.accept();
clients.add(channel);
log.info("got connection from: " + channel.socket().getInetAddress());
channel.configureBlocking(false);
// write welcome message
channel.write(ByteBuffer.wrap("Welcome, this is the Tour server\r\n"
.getBytes("US-ASCII")));
Socket socket = channel.socket();
SocketAddress remoteAddr = socket.getRemoteSocketAddress();
log.info("Connected to: " + remoteAddr);
// register channel with selector for further IO
dataMap.put(channel, new ArrayList<byte[]>());
channel.register(this.selector, SelectionKey.OP_READ);
private void sendMessage(SocketChannel channel, String mesg) {
prepWriteBuffer(mesg);
channelWrite(channel, writeBuffer);
private void read(SelectionKey key) throws IOException {
try {
SocketChannel channel = (SocketChannel) key.channel();
ByteBuffer buffer = ByteBuffer.allocate(4192);
int numRead = -1;
// read from the channel into our buffer
numRead = channel.read(buffer);
// check for end-of-stream
if (numRead == -1) {
log.info("disconnect: " + channel.socket().getInetAddress()
+ ", end-of-stream");
channel.close();
clients.remove(channel);
sendBroadcastMessage("logout: "
+ channel.socket().getInetAddress(), channel);
} else {
byte[] data = new byte[numRead];
System.arraycopy(buffer.array(), 0, data, 0, numRead);
String dataReturn = new String(data, "US-ASCII");
log("Got: " + dataReturn);
processClient(dataReturn,channel);
} catch (IOException ioe) {
log.warn("error during select(): ", ioe);
} catch (Exception e) {
log.error("exception in run()", e);
private void processClient(String line,SocketChannel from)
/* Stop when the input stream closes (is null) or "bye" is sent
Otherwise pass the input to doRequest(). */
//String line;
boolean done = false;
while (!done) {
// if((line = in.readLine()) == null)
if(line == null)
done = true;
else {
// System.out.println(userName + " received msg: " + line);
if (line.trim().equals("bye"))
done = true;
else
doRequest(line.trim(), from);
} // end of processClient()
...} i thought there is some problem with threads
can somebody tell me how can i deal with it, as i m new newbie and how could i avoid problems in such design and complex application so that i am able to complete this application
please help,
thanks a lot
jibbylala
Edited by: 805185 on Nov 23, 2010 10:43 AM
Edited by: 805185 on Nov 23, 2010 11:36 AMejp:Here you are assuming that the socket is readable. Check it. You also need to check for isConnectable(), and if true, try finishConnect(), and if that succeeds deregister OP_CONNECT and register OP_READ.
where i do this or it should be done in connect method() or in readIncomingMessages() .
the current problem is connecting 2nd client.
i thought the other steps came later
i changed the connect method like this :
private void connect(String hostname) {
try {
InetAddress addr = InetAddress.getByName(hostname);
int mnInterestOps = 0;
try
channel = SocketChannel.open();
channel.configureBlocking(false);
InetSocketAddress mxRemoteAddress = new InetSocketAddress(addr, PORT);
boolean t_connect = channel.connect(mxRemoteAddress);
if (t_connect)
System.out.println("connected");
mnInterestOps = SelectionKey.OP_WRITE | SelectionKey.OP_READ ;
else
mnInterestOps = SelectionKey.OP_CONNECT;
//create the selector
readSelector= SelectorProviderImpl.provider().openSelector();
//register the channel with the selector indicating an interest
SelectionKey x_key = channel.register(readSelector, mnInterestOps);
//select loop
while(true)
//block until connect response is received
int selectReturn = readSelector.select(0);
if (selectReturn == 0)
System.out.println("select returned 0");
Set myKeys = readSelector.selectedKeys();
if (!myKeys.isEmpty())
Iterator x_readyKeysIterator = myKeys.iterator();
// Iterate over the set of keys for which events are available
while (x_readyKeysIterator.hasNext())
SelectionKey x_selectionKey = (SelectionKey) x_readyKeysIterator.next();
// Remove selected key
x_readyKeysIterator.remove();
if (x_selectionKey.isValid())
if (x_selectionKey.isConnectable()) {
channel.finishConnect();
System.out.println("connection 2 accepted");
else if (x_selectionKey.isWritable()) {
System.out.println("writable channel, select return =" + selectReturn);
x_selectionKey.cancel();
else if (x_selectionKey.isReadable()) {
System.out.println("readable channel" + selectReturn);
else
//cancel the channel registration with this selector
x_selectionKey.cancel();
System.out.println("key not valid");
} //end while(true)
} //end try block
catch (Exception ex)
System.out.println("exception " + ex);
catch (UnknownHostException uhe) {
uhe.printStackTrace();
catch (Exception e) {e.printStackTrace();
} but now i m getting NPE HERE in tourproxy class.
this is method which is calling channelWrite() and this method sendMessage() i m calling from different other gui classes and i don't think so that i need to pass the channel from there:
void sendMessage(String mesg) {
prepWriteBuffer(mesg);
channelWrite(channel, writeBuffer);
private void channelWrite(SocketChannel channel, ByteBuffer writeBuffer) {
nbytes += channel.write(writeBuffer); *//channel is null here*
} *can you just tell me why it is null as i m populating it in connect method or what should i do?
PS: i already created chat application with javaNIO....
The output of this application is nothing but a sprite which has to move simultaneously on two clients but it is not because server can't register more than one client. -
Please help, URGENT, socket problem
my program got a server socket for listening for connection
Socket socket = serverSocket.accept()
after the remote client has close the connection,
the socket on my server program cannot detect the connection closed.
When i call socket.isClosed or isConnected, they return false and true respectively,
also there is no IOException being thrown when I use available() ,
what are the possible methods to detect a connection closed by the remote side?
thanksI'm not sure why ejp has not yelled at the both of you yet... hope he's okay.
Anyway.. as you've discovered none of those methods are of any use in discovering if the client closed the connection (or it was otherwise aborted/interrupted).
Generally speaking in a protocol there is an agreed upon time/situations where you disconnect. Otherwise the way to detect the socket has been closed is when you catch the exception when you attempt to read from or write to the socket.
So yslee4 if you want to see if a client is still alive you could build some sort of echo message into your proctocol. And I have no idea what the other poster is on about. -
Communication problem between external web server and SAP WebAS
Hello Experts,
We are having a serious problem over here where we had one external server is pushing XML string using a HTTP-POST request to our SAP WebAS server (a BSP application is handling this request). We are not able to see the request coming to SAP i.e. SAP-BSP is not receiving XML.
Also we found that, if request is routed through another proxy server (apache tomcat server redireting the request) connected through VPN to our network, it works but if the the same server is inside our network it doesn't. Rather in that case it never hits the Apache-Tomcat server itself.
We tried to identify the network issue but it seems it is not the network or any firewall issue. When we had a small Echo server (itu2019s a small Java server) running on our SAP machine, we could see the request coming in. So it is definitely reaching the SAP server but the SAP Web AS is not picking up. Rather what we found that if the URL is simple e.g. http://<hostname>:<port> it works but if the URL is complex like something generated by SAP incase of BSP application it doesn't.
Any idea what is causing this issue?
I tried to look at SMICM trace files but got nothing. Any idea where would find the trace of incoming HTTP requests to SAP WebAS?
Thanks in advance.
regards
rajeevHi Rajeev,
Pelase find the below link. i am not sure this is the exactly one for you. But i hope it'll help you.
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0350917650DB11174011760851503410End?blog=/pub/wlg/10285
http://www.sap-img.com/basis/basis-faq.htm
Regards,
CSK. -
There was a problem connecting to the server "192.168.1.3
'There was a problem connecting to the server 192.168.1.3 Check the server name or IP address, and then try again. If you continue to have problems, contact your system administrator.' - How to sort this out so I can connect to my NAS Drive via wifi?
I am running OS X Yosemite all though I had this problem also with the prevues OS.. I can't seem to connect to my NAS Drive any more via wifi at home. I keep on getting this message error. I have tried different things like trashing some of the Library Preferences suggested on other discussions and updated everything I can. I have also re started Finder (as previously that sometime worked) but this no longer a solution.
The server is working fine I can connect to it via remote website. I also I can see the server/drive and even wake it up but that is as far as it goes, soon after it is 'connected/woken up' I get this error messgae and I can't see any of the files etc. Please help, this is extremely annoying, I feel helpless, this is beyond my technical know how..I have same problem. It started after i replaced my router (which was on 192.168.1.1) to new air port time capsule, which has different IP address. When i start chrome i have to wait half a minute to get this message. Then i click ok and after that everything is working. Until next time you restart the browser. What is happening here?
-
Problem while running SOA Server
Hi, i'm trying to starting SOA server. I started Admin Server successfully but I have problems while starting SOA server. When i'm trying to do that i get many errors, last three lines in console are following:
12 mismatched character '<EOF>' expecting '"'
tform is running and accepting requests
12 mismatched character '<EOF>' expecting '"'
When i'm trying to do start SOA server by administration console (settings of soa_server1 -> Control -> Start/Stop -> check soa_server1 and click Start) I get: Certificate chain received from localhost - 127.0.0.1 failed hostname verification check. Certificate contained Pawe?-Komputer but check expected localhost
Could you help me? If it will be necessary I will write more info.
Thanks in advance
Edited by: 948093 on 2012-07-23 06:07Thank you for your post.
I tried to set listen address of SOA server to localhost and then to *127.0.0.1*, i copied cacert and restart Admin server and then tried to start SOA server. Unfortunately still the same error. Does exist another way to solve this problem?
If it might be helpful i paste end of log (i tried start SOA server also by command startManagedWebLogic soa_server1 "http://127.0.0.1:7001" )
Caused By: java.net.ConnectException: connect: Address is invalid on local machi
ne, or port is not valid on remote machine
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at com.sun.jndi.ldap.Connection.createSocket(Connection.java:352)
at com.sun.jndi.ldap.Connection.<init>(Connection.java:187)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2652)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:293)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193
+)+
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
va:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
a:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
+67)+
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288
+)+
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:1
+34)+
at oracle.security.idm.providers.stdldap.TestConnectionPool.run(LDIdenti
tyStoreFactory.java:998)
+>+
line 3:12 mismatched character '<EOF>' expecting '"'
SOA Platform is running and accepting requests -
Connectivity problem with MS BizTalk Server 2010
Hi colleagues,
I have a connectivity problem between MS BizTalk Server 2010 and SAP.
There are two virtual machines (VMs on VMWare), the first one is SAP ERP6 Ehp6 (IDES), and second one is MS BizTalk Server 2010 (BT). On BT side I have deployed a package which sends ORDERS05 document to SAP and has to receive a reverse call. The bottom line is that SAP can receive a call from BT but cannot send a reverse call. Gateway monotor shows the connection:
In the trace file I can't see anything suspicious:
trc file: "dev_rd", trc level: 1, release: "721"
Tue Apr 01 20:14:28 2014
***LOG S00=> GwInitReader, gateway started ( 5060) [gwxxrd.c 1759]
systemid 562 (PC with Windows NT)
relno 7210
patchlevel 0
patchno 136
intno 20020600
make multithreaded, Unicode, 64 bit, optimized
pid 5060
gateway runs with dp version 138000(ext=120000) (@(#) DPLIB-INT-VERSION-138000-UC)
gateway (version=721.2013.09.02)
gw/reg_no_conn_info = 1
gw/local_addr : 0.0.0.0
gw/sim_mode : set to 0
***LOG S1I=> GwSetSimMode, Simulation Mode deactivated () [gwxxprf.c 4020]
* SWITCH TRC-RESOLUTION from 1 TO 1
CCMS: initialize CCMS Monitoring for ABAP instance with J2EE addin.
CCMS: SemInMgt: Semaphore Management initialized by AlAttachShm_Doublestack.
CCMS: SemInit: Semaphore 38 initialized by AlAttachShm_Doublestack.
Tue Apr 01 20:14:29 2014
Bind service sapgw00 (socket) to port 3300
GwIInitSecInfo: secinfo version = 2
GwIRegInitRegInfo: reginfo version = 2
Tue Apr 01 20:14:30 2014
GwPrintMyHostAddr: my host addresses are :
1 : [192.168.1.127] WIN2008R2 (HOSTNAME)
2 : [127.0.0.1] WIN2008R2 (LOCALHOST)
Full qualified hostname = WIN2008R2
DpSysAdmExtCreate: ABAP is active
DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
DpIPCInit2: read dp-profile-values from sys_adm_ext
DpShMCreate: sizeof(wp_adm) 42864 (2256)
DpShMCreate: sizeof(tm_adm) 5517056 (27448)
DpShMCreate: sizeof(wp_ca_adm) 64000 (64)
DpShMCreate: sizeof(appc_ca_adm) 64000 (64)
DpCommTableSize: max/headSize/ftSize/tableSize=500/16/1384064/1384080
DpShMCreate: sizeof(comm_adm) 1384080 (2744)
DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
DpShMCreate: sizeof(slock_adm) 0 (296)
DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
DpShMCreate: sizeof(file_adm) 0 (80)
DpShMCreate: sizeof(vmc_adm) 0 (2160)
DpShMCreate: sizeof(wall_adm) (41664/42896/64/192)
DpShMCreate: sizeof(gw_adm) 48
DpShMCreate: sizeof(j2ee_adm) 3952
DpShMCreate: SHM_DP_ADM_KEY (addr: 0000000011A40050, size: 7174832)
DpShMCreate: allocated sys_adm at 0000000011A40060
DpShMCreate: allocated wp_adm_list at 0000000011A430B0
DpShMCreate: allocated wp_adm at 0000000011A432A0
DpShMCreate: allocated tm_adm_list at 0000000011A4DA20
DpShMCreate: allocated tm_adm at 0000000011A4DA70
DpShMCreate: allocated appc_ca_adm at 0000000011FA0390
DpShMCreate: allocated comm_adm at 0000000011FAFDA0
DpShMCreate: system runs without slock table
DpShMCreate: system runs without file table
DpShMCreate: allocated vmc_adm_list at 0000000012101C40
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated gw_adm at 0000000012101CF0
DpShMCreate: allocated j2ee_adm at 0000000012101D30
DpShMCreate: allocated ca_info at 0000000012102CB0
DpCommAttachTable: attached comm table (header=0000000011FAFDA0/ft=0000000011FAFDB0)
MtxInit: -2 0 0
DpRqQInit: use protect_queue / slots_per_queue 0 / 2001 from sys_adm
Tue Apr 01 20:14:45 2014
GwDpInit: attached to gw_adm at 0000000012101CF0
Tue Apr 01 20:16:21 2014
Prxy Trace = 0Hi Deepak,
Thanks for the answer, but this is not the case I'm afraid. I've received an error message for BizTalk instance:
"Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: The segment name is not valid for the IDOCTYP, Release, or CIMTYP. Segment name: E2EDP01006GRP IDOCTYP: ORDERS05 Release: 620 CIMTYP: . Ensure that your message xml validates against the operation schema.
Don't really understood what does it want from me... -
I have a Mac Mini (early 2009) running OSX 10.8.1 on a Windows network that is driving me nuts.
Background
Typically, 6 or 7 computers are running (Windows 7, OSX 10.8.1 and Linux) on the network at any given point in time. Network printers and hand helds (iphones, PlayBooks, etc.) are also connected.
The problem
If one specific Windows 7 desktop is running, a pop-up error message comes up frequently. The eror message is:
There was a problem connecting to the server "[Server name or IP]". You do not have permission to access this server.
The pop-up sometimes refers to the device name and sometimes refers to the IP address of the desktop.
Oddities:
This does not occur on a MacBook Pro also running 10.8.1
The error message does not occur for other Windows computers on the network. I have laptops running Windows 7 Professional that have never shown up on the error message..
Files on the problem desktop are easily accessible through [Finder].
Things I've tried to resolve the problem:
Ran software update - multiple times
Changed the destination drive for [Time Machine] and completed a backup
Cleared the "Recent Server" list from the [Finder][Go][Connect to Server] screen
Attempted to demount the desktop in [Finder]. The option was not available
Disconnected from the desktop in [Finder]. This did not resolve the problem and the desktop was automatically showing on the [Shared] list in [Finder] after the next reboot.
Booted in SAFE mode to see if the problem re-occurred in SAFE mode. It did not.
Any suggestions would be appreciated.Thank you. It wasn't in there directly, but CISCO's "Network Magic" was there. Removing it appears to have solved the problem.
Thanks again and have a good weekend.
Bob -
Problems with AOL IMAP server connection on my BlackBerry Z10 STL100-3, and BB PlayBook 64GB WiFi
Thursday 4:20am EST, 02-19-2015
Hi, My connection to the AOL IMAP server has suddenly failed - Says "Not Connected" on Accounts page
I haven't changed anything and this just started failing this morning.
I've saw same issue on my Blackberry PlayBook 64GB.
Is anyone else recently experiencing AOL IMAP Errors?
Solved!
Go to Solution.Yes! Same thing happened suddenly to my Z10 this morning. No AOL.
-
I can send but cannot recieve email
This is the messege I am gewtting:
There may be a problem with the mail server or network. Verify the settings for account “MobileMe” or try again.
The server returned the error: Mail was unable to log in to the IMAP server “p02-imap.mail.me.com” using “Password” authentication. Verify that your account settings are correct.
The server returned the error: Service temporarily unavailableAlso if I go to system preferences accounts and re-enter the password it fixes the glitch sometimes.
-
I just bought a 3rd generation ipod touch. It was professionally refurbished. I'm trying to set it up, and everything seems to be working fine, until we get to the wifi. I live on campus and our wifi is username and password protected. I signed in and everything seemed to work fine, and in the top left hand corner I have all the bars for wifi. However, when I go to sign in with an apple ID it says 'Could no sign in: there was a problem connecting to the server'. I've tried turning it on and off again, tried signing on to our wifi again, but it all isn't working. What can I do?
I also encountered the same problem. Try using a different email address or try signing in later.
-
Problem with the new server UCS C220 for set IP to CIMC
Hi
We’ve a problem with the new server UCS C220.
We bought two servers UCS C220 M3 for CallManager 8.6 with High Availability.
When we turn on the server during the boot and when it tells us, oppress F8 to enter at the CIMC and set the IP. But it never enters at the CIMC.
Then, we configure our DHCP server and our switch, we connect the three gigabyte ports to our switch to give him an IP to the CIMC, so and then can enter via browser, but neither works.
Note. The dedicated management NIC does not link, the other two ports do make link.
What do you suggest to put an IP to CIMC and start installing our applications?
regardsYou may have noticed that there is no DVD rom on the c220. What you need to do is:
Login into the CIMC from your browser
Luanch the KVM
Insert the VMware DVD in your machines drive
On the KVM pop up there should be a tab to mount the drive, after mounting it click on Macros and choose ctrl_alt+delete to restart.
After the VMware OS installs press F2 to enter IP.
Browse to the VMware ip to download the Vsphere client
Open the Vsphere client, enter the ip of the vmware and the username will be root and no password if you did not set one.
You can now upload OVA templates or manually create virtua machine from this enviroment.
Hope this help
Maybe you are looking for
-
Help! I killed Safari on my mac!
Ok so I recently I discovered there were add-ons available for Safari and I installed this one called Saft but I didn't like it because it was just a demo and a message kept popping up telling me to register it, so I decided to unistall it, I used Ap
-
Youtube videos not playing correctly
Windows 7 64-bit Flash Player 11.7.700.169 videos in youtube don't play correctly, the image is super zoomed in and grainy. anyone know what's wrong?
-
Can't locate to delete file...Need help...
So my kid got a fisher price iXl toy which required that I download the drivers for the mac as it didn't come with a disc for the mac. I downloaded the file fine and launched it however the software wasn't able to connect to the fisher price server,
-
Okay, try to change the backgrund color for the project - as I understand: It works with a white generator, BUT: as far I put this under a clip having a masc the black background of the masc is still showing up in the timeline? How to get rid of this
-
Problem with TCODE PK02 with the warehouse number field.
Hello folks, I have created a control cycle in the TCODE PK01. When I tried to change it it is not displaying the warehouse number that I have used while saving. Also here it is showing the warehouse number as a mandatory field. I have input the ware