X11 not forwarding
Attempting to get X11 forwarding to work properly on Mountain Lion and not having any success. X11 forwarding is enabled both on the OSX client and on the remote Linux host. I'm using XQuartz for my xterms. ssh -vv shows that forwarding has been accepted, yet everything results in "Can't open display"
bash-3.2$ ssh -vv charlestown\\tgentry@engtools
OpenSSH_5.9p1, OpenSSL 0.9.8y 5 Feb 2013
debug1: Reading configuration data /Users/tgentry/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 53: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to engtools [10.0.1.198] port 22.
debug1: Connection established.
debug1: identity file /Users/tgentry/.ssh/id_rsa type 1
debug1: identity file /Users/tgentry/.ssh/id_rsa-cert type -1
debug1: identity file /Users/tgentry/.ssh/id_dsa type -1
debug1: identity file /Users/tgentry/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie- hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: [email protected],[email protected],ssh-rsa,[email protected],[email protected],ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blow fish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blow fish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: [email protected],zlib,none
debug2: kex_parse_kexinit: [email protected],zlib,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 [email protected]
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 [email protected]
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 131/256
debug2: bits set: 537/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 08:af:be:3a:a0:a6:59:59:4e:7e:7c:14:e0:2a:e6:30
debug1: Host 'engtools' is known and matches the RSA host key.
debug1: Found key in /Users/tgentry/.ssh/known_hosts:2
debug2: bits set: 518/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /Users/tgentry/.ssh/id_rsa (0x7fc8c041d400)
debug2: key: /Users/tgentry/.ssh/id_dsa (0x0)
debug1: Authentications that can continue: publickey,gssapi-with-mic,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/tgentry/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug2: input_userauth_pk_ok: fp d7:32:d2:e8:dc:b8:d0:b8:75:ab:ac:ee:99:5c:7f:4c
debug1: read PEM private key done: type RSA
debug1: Enabling compression at level 6.
debug1: Authentication succeeded (publickey).
Authenticated to engtools ([10.0.1.198]:22).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: Checking for xauth using /opt/X11/bin/xauth -f /var/folders/hy/m4qgxf0x1v91v8967x0004083thkxz/T//xauth_test exit > /dev/null 2> /dev/null
debug2: x11_get_proto: /opt/X11/bin/xauth list /tmp/launch-slZEdL/org.macosforge.xquartz:0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 1
debug2: client_session2_setup: id 0
debug2: fd 3 setting TCP_NODELAY
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: X11 forwarding request accepted on channel 0
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Last login: Tue Mar 25 16:31:59 2014 from 10.1.4.123
tgentry@ri-engtools01-$ debug2: client_check_window_change: changed
debug2: channel 0: request window-change confirm 0
debug2: client_check_window_change: changed
debug2: channel 0: request window-change confirm 0
debug2: client_check_window_change: changed
debug2: channel 0: request window-change confirm 0
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: rcvd close
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
Connection to engtools closed.
Transferred: sent 4704, received 3784 bytes, in 337.0 seconds
Bytes per second: sent 14.0, received 11.2
debug1: Exit status 0
debug1: compress outgoing: raw data 2697, compressed 942, factor 0.35
debug1: compress incoming: raw data 1950, compressed 616, factor 0.32
bash-3.2$ ssh -vv charlestown\\tgentry@engtools
OpenSSH_5.9p1, OpenSSL 0.9.8y 5 Feb 2013
debug1: Reading configuration data /Users/tgentry/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 53: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to engtools [10.0.1.198] port 22.
debug1: Connection established.
debug1: identity file /Users/tgentry/.ssh/id_rsa type 1
debug1: identity file /Users/tgentry/.ssh/id_rsa-cert type -1
debug1: identity file /Users/tgentry/.ssh/id_dsa type -1
debug1: identity file /Users/tgentry/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie- hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: [email protected],[email protected],ssh-rsa,[email protected],[email protected],ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blow fish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blow fish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: [email protected],zlib,none
debug2: kex_parse_kexinit: [email protected],zlib,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 [email protected]
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 [email protected]
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 129/256
debug2: bits set: 502/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 08:af:be:3a:a0:a6:59:59:4e:7e:7c:14:e0:2a:e6:30
debug1: Host 'engtools' is known and matches the RSA host key.
debug1: Found key in /Users/tgentry/.ssh/known_hosts:2
debug2: bits set: 518/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /Users/tgentry/.ssh/id_rsa (0x7fe4f2c1d400)
debug2: key: /Users/tgentry/.ssh/id_dsa (0x0)
debug1: Authentications that can continue: publickey,gssapi-with-mic,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/tgentry/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug2: input_userauth_pk_ok: fp d7:32:d2:e8:dc:b8:d0:b8:75:ab:ac:ee:99:5c:7f:4c
debug1: read PEM private key done: type RSA
debug1: Enabling compression at level 6.
debug1: Authentication succeeded (publickey).
Authenticated to engtools ([10.0.1.198]:22).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: Checking for xauth using /opt/X11/bin/xauth -f /var/folders/hy/m4qgxf0x1v91v8967x0004083thkxz/T//xauth_test exit > /dev/null 2> /dev/null
debug2: x11_get_proto: /opt/X11/bin/xauth list /tmp/launch-slZEdL/org.macosforge.xquartz:0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 1
debug2: client_session2_setup: id 0
debug2: fd 3 setting TCP_NODELAY
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: X11 forwarding request accepted on channel 0
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Last login: Tue Mar 25 16:38:20 2014 from 10.1.4.123
tgentry@ri-engtools01-$ xlogo
Error: Can't open display: 10.1.4.123:0.0
tgentry@ri-engtools01-$
Feedback would be appreciated.
If your Mac OS X X11 Display server is properly forwarded, as in -X or -Y, would have the remote system's DISPLAY environment variable holding something like
DISPLAY=localhost:10.0
It would not be 10.1.4.123:0.0, which is in the error message:
Error: Can't open display: 10.1.4.123:0.0
10.1.4.123:0.0 implies that you are NOT using the ssh X11 tunnel that -X or -Y would create, but rather you are attempting to directly connect to the Mac OS X X11 Display server without using the ssh X11 tunnel.
Also, you should at least experiment with -X or -Y to see if that does work as expected, and even compare the ssh debug output from your setup vs an -X or -Y connection. It may be useful.
Message was edited by: BobHarris
Similar Messages
-
I can not forward calls. I go to call forwarding, turn it on, copy and paste my phone number into the correct field (including the international dialling code).
I then tap the Call Forwarding button, which takes me back one stage and the Call Forwarding button goes to off after a couple of seconds. Anyone who can help?Yes, a blocked call will go immediately to your voice mail.
If you would rather not have that behavior, ask your cellular carrier if you can block that person through the carrier. -
Purchase Requisition action have submit but not forward(is null)
Dear all,
Purchase Requisition action history have "submit" but not "forward"(it is null), and PR header status is "In Process", why? please help me, tks.
Regards
Edited by: user3392434 on 2012/2/15 下午 9:51user3392434 wrote:
Dear all,
Purchase Requisition action history have "submit" but not "forward"(it is null), and PR header status is "In Process", why? please help me, tks.
Regards
Edited by: user3392434 on 2012/2/15 下午 9:51which approval process are you using in your system??
Thanks
Mahendra -
Servlet not forwarding a control to the jsp with req dspher
hi ppl,my servlet code is supposed to forward a control to a jsp page so as to display the value in the jsp.but the request dispatcher's forward is not forwarding the control to the jsp page.....here is my servlet code----
// Decompiled by DJ v3.4.4.74 Copyright 2003 Atanas Neshkov Date: 7/4/2003 12:37:00 PM
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: BdgtMaster.java
package publicity;
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class BdgtMaster extends HttpServlet
public synchronized void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
throws ServletException, IOException
Object obj = null;
String s3 = "";
String s4 = "";
out = httpservletresponse.getOutputStream();
String s = "";
String s1 = "";
String s2 = httpservletrequest.getParameter("option");
s3 = httpservletrequest.getParameter("branch");
s4 = httpservletrequest.getParameter("publicity_code");
String s5 = httpservletrequest.getParameter("budget");
try
String s6 = "0";
String s7 = "0";
String s8 = "INSERT INTO Budget_Master(Branch,Publicity_Code,Budget_Alloted,Work_In_Progress,Amount_Paid) VALUES (?,?,?,?,?)";
String s9 = "update budget_master set old_budget = budget_alloted where branch='" + s3 + "' and publicity_code=" + s4;
String s10 = "UPDATE Budget_Master set budget_alloted=" + s5 + " where Branch='" + s3 + "' and publicity_code=" + s4;
datasource = "jdbc:odbc:budget";
con = DriverManager.getConnection(datasource);
int i = con.getTransactionIsolation();
con.setTransactionIsolation(2);
con.setAutoCommit(false);
if("new".equalsIgnoreCase(s2))
PreparedStatement preparedstatement = con.prepareStatement(s8);
preparedstatement.setString(1, s3);
preparedstatement.setString(2, s4);
preparedstatement.setString(3, s5);
preparedstatement.setString(4, s7);
preparedstatement.setString(5, s6);
preparedstatement.executeUpdate();
con.commit();
preparedstatement.close();
if("update".equalsIgnoreCase(s2))
Statement statement = con.createStatement();
statement.executeUpdate(s9);
statement.executeUpdate(s10);
con.commit();
con.setTransactionIsolation(0);
/*htmlStart(out, "BUDGET MASTER");
out.println("<p> </p><div align=\"left\">");
out.println("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"50%\">");
out.print("<tr>");
out.println("<td width=\"50%\"><strong><small><font face=\"Tahoma\">Branch </font></small></strong></td>");
out.println("<td width=\"50%\"><small><font color=\"#004080\" face=\"Tahoma\">" + s3 + "</font></small></td></tr><tr>");
out.println("<td width=\"50%\"><strong><small><font face=\"Tahoma\">Budget Alloted </font></small></strong></td>");
out.println("<td width=\"50%\"><small><font color=\"#004080\" face=\"Tahoma\">" + s5 + "</font></small></td></tr><tr>");
out.println("<td width=\"50%\"><small><strong><font face=\"Tahoma\">Publicity Code</font></strong></small></td>");
out.println("<td width=\"50%\"><small><font color=\"#004080\" face=\"Tahoma\">" + s4 + "</font></small></td></tr></table></div>");
htmlEnd(out);
con.close();
httpservletrequest.getRequestDispatcher("/pages/serview/BdgM.jsp").forward(httpservletrequest,httpservletresponse);
catch(SQLException sqlexception)
cleanUp();
printSQLException(sqlexception, out);
out.flush();
public void init(ServletConfig servletconfig)
throws ServletException
super.init(servletconfig);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
return;
catch(ClassNotFoundException classnotfoundexception)
log("Couldn't load class sun.jdbc.odbc.JdbcOdbcDriver");
throw new ServletException(classnotfoundexception.getMessage());
static void printSQLException(SQLException sqlexception, ServletOutputStream servletoutputstream)
throws IOException
servletoutputstream.print("<b>SQLException</b>\n<p>\n\n");
for(; sqlexception != null; sqlexception = sqlexception.getNextException())
servletoutputstream.print("<b>SQLState:</b> " + sqlexception.getSQLState() + "<br>\n");
servletoutputstream.print("<b>Message:</b> " + sqlexception.getMessage() + "<br>\n");
servletoutputstream.print("<b>Vendor:</b> " + sqlexception.getErrorCode() + "<br>\n");
private static boolean checkForWarning(SQLWarning sqlwarning)
throws SQLException
boolean flag = false;
if(sqlwarning != null)
System.out.println("\n *** Warning ***\n");
flag = true;
for(; sqlwarning != null; sqlwarning = sqlwarning.getNextWarning())
System.out.println("SQLState: " + sqlwarning.getSQLState());
System.out.println("Message: " + sqlwarning.getMessage());
System.out.println("Vendor: " + sqlwarning.getErrorCode());
System.out.println("");
return flag;
/*void htmlStart(ServletOutputStream servletoutputstream, String s)
throws IOException
servletoutputstream.println("<html><head><title>" + s + "</title></head>");
servletoutputstream.println("<body topmargin=\"0\" leftmargin=\"0\" bgproperties=\"fixed\">");
servletoutputstream.println("<div align=\"left\"><table border=\"0\" width=\"100%\">");
servletoutputstream.println("<tr><td width=\"100%\" bgcolor=\"#DFDFFF\">");
servletoutputstream.println("<font face=\"Tahoma\" color=\"#000000\"><strong>B u d g e t M a s t e r - D e t a i l s E n t e r e d</strong></font></td>");
servletoutputstream.println("</tr></table>");
void htmlEnd(ServletOutputStream servletoutputstream)
throws IOException
servletoutputstream.print("<hr>");
servletoutputstream.print("</body></html>\n");
String link(String s, String s1)
return "<a href=\"" + s + "\">" + s1 + "</a>";
public String getServletInfo()
return "Display and SQL manipulate JDBC databases on the server.";
public void cleanUp()
throws IOException
if(con != null)
try
out.print("Closing database connection");
con.setTransactionIsolation(0);
con.close();
return;
catch(SQLException _ex)
return;
else
return;
public BdgtMaster()
private Connection con;
private String datasource;
private String user;
private String password;
private String base;
private ServletOutputStream out;
plz tell me where im wrong...
regards....a_josephHi,
Sorry to say this but it'd be lot simple if we can avoid cross posting similar Queries.
I'd appriciate if you can continue using with your post
http://forum.java.sun.com/thread.jspa?threadID=5208928
Hope there are no hard issues on this.
REGARDS,
RaHuL -
AS2: MDN is not forwarded to PI (Integration Server)
Hello,
we still have some problems with the AS2 receiver configuration. FInally the AS2 message is sent out with request for synchronous MDN.
We receive the MDN and it shows up in the seeburger message monitor (MDN: Payload state ok, correlation successful).
However we want to forward the MDN to the Integration Server and checked therefore the flag "Handle received MDN - Refer MDN to XI system".
I also configured the sender MDN channel and the sender agreement accordingly.
However I do not see anything in SXMB_MONI , there is no error message either. So obviously the MDN is not forwarded as expected.
Have you ever had similar problems? Any other settings I could check?
Thank you for your advice!Make sure that you have created an AS2 Sender channel with Message Protocol Reports.
Without checking this option, can you receive the sync MDNs in Seeburger Monitor?
Regards,
Prateek -
SG200 Switch not forwarding Packet
Hello,
I have a problem with my SG200-08 Switch the switch not fowarding a special Packet.
I try to run a simple Profinet installation for testing on the switch but it didn´t work correct. A special packet (Profinet error message) was not forwarded.
I have tried it with different Profinet masters with Siemens Profinet master it works without of problems. With Rexroth master it dosn´t work. But it is the same packet only another Mac Address.
I have added two Wireshark logs, where I have mirrored the slave and the master port. With the Siemens master all packets are forwarding (every packet is double loged) with the Rexroth master the alarm packet was not forwarding (the alarmpacket is lost between the ports).
With a not managed Switch it is no problem too run both Installations korrekt.
I have tried the Factory devault Settings of the switch and too deaktivate all services of the switch (like Spanning Tree, ..) but it was all the same, the Packet was not forwarded.
Has someone a idea which is the cause of the packet drop?Hi Ulf, the switch doesn't filter traffic and this particular model doesn't have any special connection controls like ACL.
Features that may be service affecting include-
Spanning tree (portfast, bpdu flood/filter)
Port negotiation (speed/duplex)
Energy efficient ethernet
Bonjour discovery
Storm control (which is disabled by default)
I couldn't think of anything else that may be service affecting. You may disable spanning tree, manually set the port speed, disable EEE and bonjour if you want. However, I don't feel it will resolve your problems but it is worth trying if you feel the switch is the problem. Since the packet is forwarding correctly, it would appear to be a localized system setting.
-Tom
Please mark answered for helpful posts -
CUCM not forwarding CTI called number - Subscriber Sign-in
I am running into an issue in CUCM/CUC 8.6(2a) when setting up external voicemail access.
I set up a CTI RP (Dn=2300) to forward to voicemail and set up a routing rule to send the Call
to subscriber sign in. The call keeps going to the opening greeting. I did a port status monitor
and I don't see the forwarding stations directory number. Just the Unity Pilot Point number.
I just set this up in CUCM 8.6(1) and I have it working. I mirrored the config but don't get the same results.
I'm not sure if maybe a service parameter changed or something and I am missing it.
TIAThanks for sharing your findings Rob. Your post helped me solve an issue I was having with a SIP trunk between CUCM and CUC.
Just to recap in case this post can help anyone else, if you don't check the Redirecting Diversion Header Delivery - Outbound then Call Manager will not forward calls with a redirect number or reason code to Unity. Using RTMT Port Monitor you'll find the call will complete but as a direct call to Unity.
The problem I was facing was CFNA (internal, external, etc) from a DN in CUCM to CUC would send the caller to the Opening Greeting, instead of the voicemail box of the user, which in this case was functioning properly because Redirecting Diversion Header Delivery was not checked.
Thanks again to both Robs for your thread,
Derek -
What's the best way to transfer (not forward) a call from one iPhone to another?
What's the best way to transfer (not forward) a call from one iPhone to another? Is there an app available that does this? I'm asking about receiving a call, then transferring that caller to another iPhone on a separate number and then disconnecting while those two users are joined up in a conversation.
Ask your carrier. This would be a feature provided by them.
-
WLC module in 2811 not forwarding wlan traffic
Hi,
i have a WLC module inside a 2811 router. everything is working (ap connecting, administration) except traffic from WLAN is not leaving the wlc to the router.
The wlc is sending the dhcp packages to the default gateway (asa5510). See file wlc_dhcp.txt. The 2811 router isnt receiving the packace (at least a debug ip package didnt show it). Router interface config:
interface wlan-controller1/0
ip address 10.10.10.105 255.255.255.248
interface wlan-controller1/0.18
encapsulation dot1Q 318
no snmp trap link-status
bridge-group 18
bridge-group 18 spanning-disabled
interface Vlan318
no ip address
bridge-group 18
bridge-group 18 spanning-disabled
Whats wrong, why are the packages from vlan318 not reaching the router? Why are they not forwarded?
thanks, MartinWhy don't you use 2811 router as your gateway instead of the ASA5510?? I think it will be easier, cause your problem could not be of wireless, it seems that's a problem with your ASA to access your inside network.
Hope this helps, -
WLS JMS bridge not forwarding mesages
Hi All,
I want to send messages from a queue in the source weblogic domain to the target queue in another weblogic domain. Both the domains are weblogic server. On the source server agile PLM is deployed. For this communication I established JMS bridge and JMS destination on my source server. The resource adpater is deployed and active. But my bridge is not working. Is not forwarding message to the target queue on the target server.
I inspected the log files. I found the following error
"<BEA-190032> << eis/jms/WLSConnectionFactoryJNDINoTX > ResourceAllocationException thrown by resource adapter on call to ManagedConnectionFactory.createManagedConnection(): "javax.resource.ResourceException: ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory, url = t3://<target_server_ip>:<port>, user name = null) "> "
Also on the monitoring tab of the JMS bridge initially it was showing message "Failed to look up the source adapter" then I deployed the resource adapter. Now on the monitoring tab its showing the message "Connected to the source" instead of shoing "Fowarding Messages" . can anyone tell me what could be the cause. Please help its really urgetnt!!!
Can anyone please tell me what can be the issue?
Thanks in Advance!!Could you please provide the way you used the connection factory?
I am concerned about *(InitialContextFactory =weblogic.jndi.WLInitialContextFactory, url = t3://<target_server_ip>:<port>, user name = null) "> "*
Please check.
Thanks,
Jeets -
Mail attachments in lion not forwarding
Hi Everyone!
It seems when I go to forward and email containing an attachment they are being stripped out and not forwarding with the mail ( I can see the attachment is not there) Is there a setting for this? or how can I fix this issue. I want all my attachments to send with the email automatically. I have been using redirect to workaround the issue but then the email does not look to others like it has come from me.
Thanks for your help!!Thank You but thats not it ,
I just tried it with a 25kb attachment and it is not there it just shows this <image001.jpg>
It may only be certain images that do this, as I tried with a few others and some do and some don't? Weird. -
Attachments will not forward with rules
Mail 8.2 will not forward attachments if forwarding using a rule.
It's a known issue in OS X 10.7 and later that attachments are not included when a message is forwarded automatically by means of a rule. The workaround is to use "Redirect" instead of "Forward" in the rule. It will look to the recipient as though the message came from the original sender, not from you.
-
Spa3102 would not forward a voip call to pstn line
Good morning.
I've done the implementation provided here http://community.linksys.com/t5/VoIP-Adapters/SPA-3102-and-softphone-to-
make-calls-via-pstn-line/td-p/326390 .
It is a way to use for outgoing calls a given pstn line from anywhere I have internet (voip to pstn).
The spa3102 is connected to a router (with an active DHCP server and ip 192.168.1.1) from where it takes the internal
ip (192.168.1.3).On the same network is also a computer , connected to the router ( with ip 192.168.1.2). The spa3102
is set to bridge mode and thus inactivates the function of the router (on SPA3102), and it functions as a simple
network device . I have done port forwarding (from the router) to 192.168.1.3 (SPA3102) for the port 5061 (PSTN
LINE) ( but for 5060 for the LINE 1 also). I want to make calls from a voip softphone (x-lite 4) to the SPA 3102 and
this to forward the voip calls to PSTN line to which it is connected. In x-lite the SPA3102 is set as a proxy so that
i can type the phone number I want to call without being followed by the SPA3102's ip each time ( eg on x-lite I
give call number 2101111111 instead of 2101111111 @ wanip: 5061 where wanip is the external ip of the router).
When x-lite is running on the computer that is on the same network with the SPA3102 everything works as expected. A
voip call is made from x-lite ( using as a proxy the wanip everytime, or even for test purposes the dyndns domain
that i set up for this reason), this call is passese PSTN line and the phone of the called party rings . At x-lite
COMES indication "call established ".
The problem occurs when I do the same procedure from x-lite installed on a computer belonging to another network (
e.g. in another building with its own internet connection , own router, own computer , etc. ) . Always using the
wanip the x-lite makes the voip call to the SPA3102, writes "call established" ( meaning it connected to SPA3102) but
never routed the call to the called party ( the SPA3102 did not forward voip calls it receives to the PSTN line ) .
Trying to find what 's wrong I've tried to disable all firewalls (soft and hard from all involved machines ) . The
behavior is the same either the computer that makes the successful calls is connected to the network directly to the
router or through the port "ethernet" on the SPA3102.
What is the difference in these two voip calls to the SPA3102 and the one " triggers " it to forward the call to
PSTN line and the other does not ?
Thanks now for any ideas you give .The audio sound problem is more than likely also associated with the overall addressing problem initially encountered. As you may know, using the sip protocol the sip signalling exchanges ip addresses to be used for both the sip signalling and the exchange of rtp sound packets. In addition there is an exchange of port numbers to be used for the exchange of rtp sound packets. The sound is exchanged by two separate streams of packets, one stream in each direction. The result is an ip address and port number for the rtp packets flowing from the SPA3102 to the softphone and a different ip address and port number for the rtp packets flowing from the softphone to the SPA3102.
In your previous posting you mentioned that you "set the minimum EXTernal rtp port at the sip tab". Changing the "EXT RTP Port Min:" is an unusual change to make and in my opinion would only be made in special circumstances. Actually, I ran some tests and I'm not sure exactly what that setting does. In my tests it didn't appear to affect the rtp port number used in a predictable manner.
The common changes to make for audio problems typically would be to setup a STUN server. A STUN server is an external server that echos back to the initial sender the external ip address and port number that the STUN server received with the message received by the server. This allows the sender (SPA3102 or softphone) to determine its external ip address and external port numbers for both the sip signalling and rtp packets.
A STUN server is commonly recommended to be setup with the following settings in the SPA3102:
PSTN Line Tab:
NAT Mapping Enable: Yes
Sip Tab:
Handle VIA received: yes
Handle VIA rport: yes
Insert VIA received: yes
Insert VIA rport: yes
Substitute VIA Addr: yes
Send Resp To Src Port: yes
STUN Enable: yes
STUN Server:
The following web page has a list of "Public STUN Servers"
http://www.voip-info.org/wiki/view/STUN
You are using CounterPath's XLite softphone. stun.counterpath.net is a STUN server on the list.
I see XLite also has a setting to use a STUN server on the "Topology" tab. -
IPhone does not forward attachments with emails
My iPhone does not forward attachments with emails.
Make sure you open the email and fully download the attachments before trying to forward them. Large attachments are often only partially downloaded unless you tap the option to fully download the.
-
Cisco OTV Vlan Not Forward Capable
Hi All,
I am trying to setup OTV between two routers.
Using show otv adjacency I can see the other router with stat UP, But the VLAN I want to extend has NFC as its current state.
# show otv vlan
OTV Extended VLANs and Edge Device State Information (* - AED)
Legend:
(NA) - Non AED, (VD) - Vlan Disabled, (OD) - Overlay Down
(DH) - Delete Holddown, (HW) - HW: State Down
(NFC) - Not Forward Capable
VLAN Auth. Edge Device Vlan State Overlay
1200 inactive(NFC) Overlay1
I cannot find any documentation on this state and what it can be caused by.
Does someone know what can cause this state? What can I do to troubleshoot this?
This is my current config:
feature otv
otv site-vlan 1508
interface Overlay1
otv join-interface port-channel2
otv control-group 239.1.1.1
otv data-group 232.1.1.0/28
otv extend-vlan 1200
no shutdown
otv site-identifier 0x1508
Any help would be appreciated :)Hello Tim
Brayton Hackworth had a similar post as yours, found here;
https://supportforums.cisco.com/message/3684179#3684179
Brayton is using the Mitel 5330 phones where the LLDP no longer fed VLAN information to the phone network. But, he reverted to use a DHCP server to provide the VLAN information.
Unfortunately, I (personally) cannot test any Mitel resources (since I don't have them) so my labs usually only consist of either 7900 series or SPA500/900 series phones.
The best thing I can really recommend to you is to make a package of data consisting of;
Topology which consists of;
Modem type
Router including IP
All devices including IP of switches
Servers / relevant workstations
# of attached devices and # of users on the LAN
Switch config file + show tech on a notepad
Syslog output from the switch
Working PCAP
PCAP showing failure
PCAP legend showing what IP address are who (unless topology contains all IP)
Where the PCAP is taken from and method
We then can create a service request for you and pass it for review.
-Tom
Maybe you are looking for
-
NWDS: Component deploying error
Hi, i'm trying to deply a component with NWDS. But it raise the error: <i>None of the available containers recognized the components of application sap.com/pcui_gp~xsscfg; it is not possible to make deploy.</i> Visual Adm, SMD works fine; access to D
-
How to add iPhone USB to Network Interface on iMac? Please help.
Hi, I've been trying to find a solution of the past few days to no avail. I've accidentaly deleted iPhone USB from network interface (by pressing minus sign) and now my iMac won't see it. I wanted to tether via USB, but it was red before, and then I
-
hi, I'm need connect the thunderbolt display to my MacPro , but the connection is mini display, you have any adapter for that?
-
Import/Export statement not working..
Hi all, I want to export some data from BADI & Import it back in user exit. I wrote following line of code in BADI export P1 FROM xstr to memory id 'ZABHI'. & following line of code in User Exit import P1 to xstr FROM memory id 'ZABHI
-
Hello, Is it possible to get video dimensions (for example 320x240) using JMF. thanks