Mysql local connection failure
i get a " Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)" when i try to view results on this page. what does this mean?
It could mean that MySQL Service isn't running. Have you checked from Windows task Manager from Services whether the service is running or not?
Hope this gives you a start to find the solution.
Similar Messages
-
MySql database Connection failure
Hi,
I have following code. I am using MySql database. and Tomcat server and MySql jdbc driver. I am able to get the Datasource but when I call getConnection on ds, I get Connection object as null. Any help here?
ctx = new InitialContext();
if( ctx == null ) throw new Exception("ERROR - No Context");
// ESTABLISH THE DataSource //
ds = (DataSource)ctx.lookup("java:comp/env/jdbc/xmediaDB");
if( ds == null ) throw new Exception("ERROR - DataSource is null");
// ESTABLISH THE Connection //
con = ds.getConnection();
if( con == null ) throw new Exception("ERROR - Failed to get connection");Yes database is running...
Here are my server.xml and web.xml anything wrong here?
Hi sherbir,
Pl let me know if anything wrong.
Here is my server.xml :
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Uncomment these entries to enable JMX MBeans support -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 4.0 documentation bundle for more detailed
instructions):
* Download and install JSSE 1.0.2 or later, and put the JAR files
into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080"
minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="100" debug="0" scheme="https" secure="true"
useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS" />
</Connector>
-->
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8082" minProcessors="5" maxProcessors="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" connectionTimeout="20000"
proxyPort="80" useURIValidationHack="false" />
-->
<!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
<!--
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8083" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
<!--
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="8084" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.3
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across *all* web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Logger shared by all Contexts related to this virtual host. By
default (when using FileLogger), log files are created in the "logs"
directory relative to $CATALINA_HOME. If you wish, you can specify
a different directory with the "directory" attribute. Specify either a
relative (to $CATALINA_HOME) or absolute path to the desired
directory.-->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->
<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
<!-- If you wanted the examples app to be able to edit the
user database, you would uncomment the following entry.
Of course, you would want to enable security on the
application as well, so this is not done by default!
The database object could be accessed like this:
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
UserDatabase database =
(UserDatabase) envCtx.lookup("userDatabase");
-->
<!--
<ResourceLink name="userDatabase" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
-->
<!-- PersistentManager: Uncomment the section below to test Persistent
Sessions.
saveOnRestart: If true, all active sessions will be saved
to the Store when Catalina is shutdown, regardless of
other settings. All Sessions found in the Store will be
loaded on startup. Sessions past their expiration are
ignored in both cases.
maxActiveSessions: If 0 or greater, having too many active
sessions will result in some being swapped out. minIdleSwap
limits this. -1 means unlimited sessions are allowed.
0 means sessions will almost always be swapped out after
use - this will be noticeably slow for your users.
minIdleSwap: Sessions must be idle for at least this long
(in seconds) before they will be swapped out due to
maxActiveSessions. This avoids thrashing when the site is
highly active. -1 or 0 means there is no minimum - sessions
can be swapped out at any time.
maxIdleSwap: Sessions will be swapped out if idle for this
long (in seconds). If minIdleSwap is higher, then it will
override this. This isn't exact: it is checked periodically.
-1 means sessions won't be swapped out for this reason,
although they may be swapped out for maxActiveSessions.
If set to >= 0, guarantees that all sessions found in the
Store will be loaded on startup.
maxIdleBackup: Sessions will be backed up (saved to the Store,
but left in active memory) if idle for this long (in seconds),
and all sessions found in the Store will be loaded on startup.
If set to -1 sessions will not be backed up, 0 means they
should be backed up shortly after being used.
To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
and minIdleBackup all to -1, saveOnRestart to false, then restart
Catalina.
-->
<!--
<Manager className="org.apache.catalina.session.PersistentManager"
debug="0"
saveOnRestart="true"
maxActiveSessions="-1"
minIdleSwap="-1"
maxIdleSwap="-1"
maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
-->
<Environment name="maxExemptions" type="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter><name>user</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name>
<value>org.hsql.jdbcDriver</value></parameter>
<parameter><name>driverName</name>
<value>jdbc:HypersonicSQL:database</value></parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<ResourceLink name="linkToGlobalResource"
global="simpleValue"
type="java.lang.Integer"/>
</Context>
<!--
Review Production Web Application Context
NOTE: this set of connection params points to the development database because we're on the developement server.
-->
<Context
path="/review"
debug="0"
reloadable="true"
docBase="C:\download\eclipse\eclipse\workspace\review"
workDir="C:\download\eclipse\eclipse\workspace\review\work\org\apache\jsp" >
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_review_log." suffix=".txt" timestamp="true"/>
<!-- JNDI entries for xmedia db -->
<Resource name="jdbc/xmediaDB"
auth="Container"
type="javax.sql.DataSource">
</Resource>
<ResourceParams name ="jdbc/xmediaDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>50</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>80</value>
</parameter>
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>admin</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://153.32.143.96:3306/xmedia_dev?autoReconnect=true</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
<!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with
the WebApp Module distribution on how to build it.
(Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
To configure the Apache side, you must ensure that you have the
"ServerName" and "Port" directives defined in "httpd.conf". Then,
lines like these to the bottom of your "httpd.conf" file:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
The next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via "WebAppDeploy" directives can be accessed through Apache.
-->
<!-- Define an Apache-Connector Service -->
<!--
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true" appBase="webapps"
acceptCount="10" debug="0"/>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
-->
</Server>and Here is my web.xml :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- BEGIN: icon section -->
<!-- END: icon section -->
<!-- BEGIN: display-name section -->
<display-name>Cross-Media Review Server</display-name>
<!-- END: display-name section -->
<!-- BEGIN: description section -->
<description>
Cross-Media Review Server
</description>
<!-- END: description section -->
<!-- BEGIN: distributable section -->
<!-- END: distributable section -->
<!-- BEGIN: context-param section -->
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.locale</param-name>
<param-value>en-US</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>messages</param-value>
</context-param>
<!-- END: context-param section -->
<!-- BEGIN: listener section -->
<!-- END: listener section -->
<!-- BEGIN: error-page section -->
<!-- END: error-page section -->
<!-- BEGIN: filter section -->
<filter>
<filter-name>ReviewAuthenFilter</filter-name>
<filter-class>com.adobe.xmtech.review.BeamAuthenticationFilter</filter-class>
</filter>
<!-- END: filter section -->
<!-- BEGIN: filter-mapping section -->
<filter-mapping>
<filter-name>ReviewAuthenFilter</filter-name>
<servlet-name>ReviewHandler</servlet-name>
</filter-mapping>
<!-- END: filter-mapping section -->
<!-- BEGIN: servlet section -->
<servlet>
<servlet-name>ReviewHandler</servlet-name>
<servlet-class>com.adobe.review.ReviewHandler</servlet-class>
<init-param>
<param-name>AcrobatFeedback</param-name>
<param-value>none</param-value> <!-- console, alert, none -->
</init-param>
<init-param>
<param-name>FDFLogging</param-name>
<param-value>file</param-value> <!-- file, none -->
</init-param>
</servlet>
<servlet>
<servlet-name>Image</servlet-name>
<servlet-class>com.adobe.review.util.ImageServer</servlet-class>
</servlet>
<servlet>
<servlet-name>Precompile</servlet-name>
<servlet-class>com.adobe.review.util.Precompile</servlet-class>
</servlet>
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>com.adobe.xmtech.review.Login</servlet-class>
</servlet>
<servlet>
<servlet-name>Logout</servlet-name>
<servlet-class>com.adobe.xmtech.review.Logout</servlet-class>
</servlet>
<servlet>
<servlet-name>FetchPDF</servlet-name>
<servlet-class>com.adobe.review.beam.misc.FetchPDF</servlet-class>
</servlet>
<!-- END: servlet section -->
<!-- BEGIN: servlet-mapping section -->
<servlet-mapping>
<servlet-name>Image</servlet-name>
<url-pattern>/acrobat/img/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Precompile</servlet-name>
<url-pattern>/acrobat/jsp/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/acrobat/misc/Login</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Logout</servlet-name>
<url-pattern>/acrobat/misc/Logout</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FetchPDF</servlet-name>
<url-pattern>/acrobat/misc/FetchPDF/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReviewHandler</servlet-name>
<url-pattern>/acrobat/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ReviewHandler</servlet-name>
<url-pattern>*.fdf</url-pattern>
</servlet-mapping>
<!-- END: servlet-mapping section -->
<!-- BEGIN: session-config section -->
<session-config>
<session-timeout>86400</session-timeout>
</session-config>
<!-- END: session-config section -->
<!-- BEGIN: mime-mapping section -->
<mime-mapping>
<extension>pdf</extension>
<mime-type>application/pdf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>fdf</extension>
<mime-type>application/fdf</mime-type>
</mime-mapping>
<!-- END: mime-mapping section -->
<!-- BEGIN: welcome-file-list section -->
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
<!-- END: welcome-file-list section -->
<!-- BEGIN: error-page section -->
<!-- END: error-page section -->
<!-- BEGIN: taglib section -->
<!-- END: taglib section -->
<!-- BEGIN: resource-ref section -->
<!-- krs added for JNDI db connection -->
<resource-ref>
<description>DB Connection</description>
<!-- For JBoss, use java:/jdbc/xmediaDB as the res-ref-name -->
<!-- For Tomcat, use jdbc/xmediaDB as the res-ref-name -->
<res-ref-name>java:comp/env/jdbc/xmediaDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!-- END: resource-ref section -->
<!-- BEGIN: security-constriaint section -->
<!-- END: security-constriaint section -->
<!-- BEGIN: login-config section -->
<!-- END: login-config section -->
<!-- BEGIN: security-role section -->
<!-- END: security-role section -->
<!-- BEGIN: env-entry section -->
<!-- END: env-entry section -->
<!-- BEGIN: ejb-ref section -->
<!-- END: ejb-ref section -->
</web-app> -
Today my system can no longer connect with my local mysql service. Navicat can still connect with it but local web pages don't connect. This is with no changes on my part (deliberately, anyway). Have there been updates that could have caused this?
It could mean that MySQL Service isn't running. Have you checked from Windows task Manager from Services whether the service is running or not?
Hope this gives you a start to find the solution. -
HTTP 200 response - Connection Failure - CF10 local Tomcat
Hello,
I am invoking a webService, FirstData to be exact. It's SSL. I am invoking properly, and FirstData is seeing my request as valid and successful, but the response comes back with a 200 and the filecontent is "Connection Failure". No SOAP structure in the response. I found that this was a bug with CF8 which I'd expect to be cleared up in CF10. Is there a workaround? I've attempted passing headers in various ways but it continues to fail.
<cfhttp url="XXX" method="POST" username="XXX" password="XXX" path="XXX" file="XXX" resolveurl="false" clientCert="XXX" clientCertPassword="XXX">
<cfhttpparam type="XML" value="#myXML#">
<cfhttpparam type="header" name="Accept-Encoding" value="deflate;q=0" />
<cfhttpparam type="header" name="TE" value="deflate;q=0" />
</cfhttp>
Response
struct
Charset
utf-8
ErrorDetail
[empty string]
Filecontent
Connection Failure
Header
HTTP/1.1 200 OK Date: Fri, 22 Mar 2013 19:25:10 GMT Server: Apache/2.4.2 X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1 Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-Length: 852 Connection: close Content-Type: text/xml;charset=utf-8
Mimetype
text/xml
Responseheader
struct
Accept
text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection
close
Content-Length
852
Content-Type
text/xml;charset=utf-8
Date
Fri, 22 Mar 2013 19:25:10 GMT
Explanation
OK
Http_Version
HTTP/1.1
Server
Apache/2.4.2
Status_Code
200
X-Powered-By
Servlet 2.5; JBoss-5.0/JBossWeb-2.1
Statuscode
200 OK
Text
YESHi
Might be you are processing huge data because of this you are getting this error.
Regards
Dheeraj Kumar -
I'm having strange random connection failures. Are there ineffieciency in my config?
I've been having strange, random connection failures and I'm trying to eliminate possible causes.
What happens is while I'm browsing on the net over wifi, a link will at random not connect to the site, but instead fault to the ISP error page. It happens with highly reliable sites like google, or ebay, or whatever. If I direct connect to the cable modem, the problem site is immediately available.
I'm sitting <6 feet from a 871W router (with antenna). There's one router in my building and others are at my neighbors.
Below is the conf file. Just to imagine how rediculious this problem is, here's a screen shot from a web page. This shows a web page I visited, and after clicking on a link (an embedded youtube video), the error showed up within the page itself.
Why would only some URLs fail to connect? Is there inefficiencies in my config?
Building configuration...
Current configuration : 4750 bytes
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname TooterTurtle
boot-start-marker
boot-end-marker
logging buffered 51200 warnings
no logging console
aaa new-model
aaa authentication login default local
aaa authorization exec default local
aaa session-id common
clock timezone NewYork -5
clock summer-time NewYork date Apr 6 2003 2:00 Oct 26 2003 2:00
dot11 syslog
dot11 ssid TooterTurtle
vlan 2
authentication open
authentication key-management wpa
guest-mode
wpa-psk ascii 0 [my wifi password]
no ip source-route
no ip gratuitous-arps
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.10.1 192.168.10.10
ip dhcp excluded-address 10.0.0.1 10.0.0.10
ip dhcp pool vlan1
import all
network 192.168.10.0 255.255.255.0
dns-server 192.168.10.1
default-router 192.168.10.1
domain-name Ethernet
ip dhcp pool vlan2
import all
network 10.0.0.0 255.255.255.0
domain-name WiFi
dns-server 10.0.0.1
default-router 10.0.0.1
ip dhcp pool MrWizard
host 192.168.10.100 255.255.255.0
hardware-address 0011.0917.66fa
client-name MrWizard
ip dhcp pool MasterShake
host 192.168.10.101 255.255.255.0
hardware-address 0022.681c.fbcc
client-name mastershake
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
no ip bootp server
ip domain name mydomain.com
ip ddns update method ccp_ddns1
HTTP
add [zone edit account and url]
remove [zone edit account and url]
username admin privilege 15 secret 5 [encrypted secret]
archive
log config
hidekeys
no ip ftp passive
ip ssh version 1
bridge irb
interface FastEthernet0
description AdminInterface
interface FastEthernet1
description MrWizard
interface FastEthernet2
description Belkin
interface FastEthernet3
interface FastEthernet4
description ComcastCableModem
ip address dhcp
ip verify unicast source reachable-via rx allow-default 100
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip virtual-reassembly
speed auto
full-duplex
interface Dot11Radio0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
encryption vlan 1 mode ciphers tkip
encryption vlan 2 mode ciphers tkip
ssid TooterTurtle
speed basic-1.0 basic-2.0 basic-5.5 basic-6.0 basic-9.0 basic-11.0 basic-12.0 basic-18.0 basic-24.0 basic-36.0 basic-48.0 basic-54.0
station-role root
interface Dot11Radio0.1
description TootersWiFi
encapsulation dot1Q 2
no cdp enable
bridge-group 2
bridge-group 2 subscriber-loop-control
bridge-group 2 spanning-disabled
bridge-group 2 block-unknown-source
no bridge-group 2 source-learning
no bridge-group 2 unicast-flooding
interface Vlan1
description EthernetOnly
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat inside
ip virtual-reassembly
bridge-group 1
interface Vlan2
description WiFiOnly
no ip address
bridge-group 2
interface BVI1
description EthernetOnly
ip address 192.168.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly
interface BVI2
description WiFiOnly
ip address 10.0.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 FastEthernet4
ip http server
ip http authentication local
no ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
ip dns server
ip nat inside source list 101 interface FastEthernet4 overload
ip nat inside source list 102 interface FastEthernet4 overload
ip nat inside source static tcp 192.168.10.100 80 interface FastEthernet4 80
ip access-list extended vlan1
deny ip 10.0.0.0 0.0.0.255 any
permit ip any any
access-list 100 permit udp any any eq bootpc
access-list 101 permit ip 192.168.10.0 0.0.0.255 any
access-list 102 permit ip 10.0.0.0 0.0.0.255 any
no cdp run
control-plane
bridge 1 protocol ieee
bridge 1 route ip
bridge 2 protocol ieee
bridge 2 route ip
line con 0
no modem enable
line aux 0
line vty 0 4
transport input telnet ssh
transport output telnet ssh
scheduler max-task-time 5000
endI removed the ip router 0 0 to no great effect, which I consider to be a win.
I'm guessing that since overload is what--I understand--translates the one outside to the many inside IPs, that the suggestion to have only one overload configured means I should combine the two ip ranges into one.
I deleted 10.0.0.0 network. Changed the bridge references to 1 and vlan references to 1. Now wifi and ethernet should all be using the same internal network? That's the idea, right? Any more fat?
[EDITED]
dot11 syslog
dot11 ssid TooterTurtle
vlan 1
authentication open
authentication key-management wpa
guest-mode
wpa-psk ascii 0 [my passphrase]
no ip source-route
no ip gratuitous-arps
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.10.1 192.168.10.10
ip dhcp pool vlan1
import all
network 192.168.10.0 255.255.255.0
dns-server 192.168.10.1
default-router 192.168.10.1
domain-name Ethernet
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
no ip bootp server
ip domain name [my url]
ip ddns update method ccp_ddns1
HTTP
add http:...[zoneedit]
remove http:[zoneedit]
no ip ftp passive
ip ssh version 1
bridge irb
interface FastEthernet0
description AdminInterface
interface FastEthernet1
description MrWizard
interface FastEthernet2
description Belkin
interface FastEthernet3
interface FastEthernet4
description ComcastCableModem
ip address dhcp
ip verify unicast source reachable-via rx allow-default 100
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip virtual-reassembly
speed auto
full-duplex
interface Dot11Radio0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
encryption vlan 1 mode ciphers tkip
ssid TooterTurtle
speed basic-1.0 basic-2.0 basic-5.5 basic-6.0 basic-9.0 basic-11.0 basic-12.0 basic-18.0 basic-24.0 basic-36.0 basic-48.0 basic-54.0
station-role root
interface Dot11Radio0.1
description TootersWiFi
encapsulation dot1Q 2
no cdp enable
bridge-group 1
bridge-group 1 subscriber-loop-control
bridge-group 1 spanning-disabled
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
interface Vlan1
description EthernetOnly
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat inside
ip virtual-reassembly
bridge-group 1
interface BVI1
description EthernetOnly
ip address 192.168.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly
ip forward-protocol nd
ip http server
ip http authentication local
no ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
ip dns server
ip nat inside source list 101 interface FastEthernet4 overload
ip nat inside source static tcp 192.168.10.100 80 interface FastEthernet4 80
ip access-list extended vlan1
permit ip any any
access-list 100 permit udp any any eq bootpc
access-list 101 permit ip 192.168.10.0 0.0.0.255 any
no cdp run
control-plane
bridge 1 protocol ieee
bridge 1 route ip -
Java Connector via MySQL [ Cannot Connect ]
I downloaded the MySql connector and extracted the connector and placed it at this directory,
C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext
I also set the classpath as such by adding
ClassPath = .;C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext\mysql-connector-java-3.1.12-bin.jar.Actually , I followed the tutorial at
http://www.stardeveloper.com/articles/display.html?article=2003090201&page=4.
I then executed this program below.
import java.sql.*;
public class Connect {
public static void main(String args[]) {
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql:///enron", "root", "horizon");
if(!con.isClosed())
System.out.println("Successfully connected to MySQL server...");
} catch(Exception e) {
System.err.println("Captured Exception: " + e.getMessage());
} finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
However i was unable to connect..This is wat happened as below..
C:\>java Connect
Captured Exception: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.UnknownHostException
MESSAGE: localhost: localhost
STACKTRACE:
java.net.UnknownHostException: localhost: localhost
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:137)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Connect.main(Connect.java:7)
** END NESTED EXCEPTION **
Last packet sent to the server was 31 ms ago.
Any Help watsoever is greatly appreciated.
Thanks in advance.
Cheers.Hi thanks for the reply.
Although , I am though a bit baffled by your reply.
Where is it that you want me to add the URL.Not add the URL - change the one you have. Read the docs for the connector and follow that.
And where else should i place that jar file.I put it in my CLASSPATH, close to where the source for my project is. (That means not in one place, but several places. I duplicate the JAR file for every app that needs it.)
Cos I follow the tutorial at...
http://www.stardeveloper.com/articles/display.html?art
icle=2003090201&page=4.
Unless You are saying that the above site is wrong..
If thats the case, can you point out another
alternative site which can guide me along .No time to read that site, nor do I have the interest.
The Sun Java tutorial is sufficient for using JDBC. As far as how you package and deploy apps, that's another matter. You should be using the class name and URL that your JDBC driver docs suggest.
% -
Hi,
I have started getting this error since a week now when I try to schedule a report or change a schedule of a report.
An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. (rsReportServerDatabaseError) Get Online Help For more information about this error navigate to the report
server on the local server machine, or enable remote errors
We have SQL Server 2008 installed along with SSRS running on the server. I have never seen this happening before for almost a year now but suddenly it appeared. Along with this, report subscription is also messed up and some report are not been
emailed as they have a error like:
Failure sending mail: An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database.Mail will not be resent.
I am not sure what caused this but if anyone has any idea of what is going on it will be great.
Thanks you for your help.
Please reply soooon !!!Rich, hi, sorry for my english but I speak spanish...
Well, I was tried to recreate this issue and is really hard to recreate, however and as a rain from the sky, one of my customers receive the same error that you have, reviewing Windows Logs and SQL Traces there is nothing.
Just for discard security issues I decide to change permissions in my server.
1. Go to SQL Server Reporting Services Configuration Manager
2. Go to Databases
3. Verify the credentials used to connect to the database server
4. Go to your database server
5. Look for the login or user that is being used to connect to the database server from SSRS
6. Change the role of that user and convert it to Sysadmin (Relax, this is not the final solution)
7. Try again (Is not necesary to restart ANYTHING)
8. Now, your SSRS and Subscriptions must work fine
9. If your SSRS and subscriptions are working ok, you have to give some permissions to the user
10. Grant execute permissions on
master.dbo.xp_sqlagent_notify
master.dbo.xp_sqlagent_enum_jobs
master.dbo.xp_sqlagent_is_starting
msdb.dbo.sp_help_category
msdb.dbo.sp_add_category
msdb.dbo.sp_add_job
msdb.dbo.sp_add_jobserver
msdb.dbo.sp_add_jobstep
msdb.dbo.sp_add_jobschedule
msdb.dbo.sp_help_job
msdb.dbo.sp_delete_job
msdb.dbo.sp_help_jobschedule
msdb.dbo.sp_verify_job_identifiers
11. Grant select permissions on
msdb.dbo.sysjobs
msdb.dbo.syscategories
12. Grant public role to the user in the MSDB and Master DB
13. Remove the Sysadmin role to the user
14. Try again, now, your SSRS is ready to work
Regards
Pls let me know if work for you
Regards | John Bocachica | jboca.blogspot.com -
Looks like plenty of folks here have similar problems getting the dg4odbc gateway working for MySQL. Hope someone that's tackled this can help me out.
Our configuration is such that we have our gateway machine separate from our Oracle database, and the MySQL machine is yet another server. We have installed and configured the gateway along with the unixODBC gateway and the MySQL connector. Running ./isql from the gateway successfully connects to the MySQL database and returns rows from specified tables.
Our difficulty is with setting up the listener.ora (on the gateway) and tnsnames.ora (on the Oracle host). Here are the contents of those files:
listenter.ora:
SID_LIST_LISTENER =
(SID_DESC =
(PROGRAM = dg4odbc)
(ORACLE_HOME=/db01/app/oracle/product/gateways)
(SID_NAME = myodbc3)
(ENVS=LD_LIBRARY_PATH=/opt/unixODBC/lib:/opt/mysql/myodbc5/lib:/usr/local/lib:/db01/app/oracle/product/gateways/lib)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = gw_host)(PORT = 1521))
)tnsnames.ora:
dg4odbc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = gw_host)(PORT = 1521))
(CONNECT_DATA = (SID= myodbc3))
(HS=OK)
)Listener status on the gateway is:
-bash-3.00$ lsnrctl status
LSNRCTL for Solaris: Version 11.1.0.6.0 - Production on 26-APR-2010 15:07:08
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Solaris: Version 11.1.0.6.0 - Production
Start Date 26-APR-2010 14:41:51
Uptime 0 days 0 hr. 25 min. 17 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /db01/app/oracle/product/gateways/network/admin/listener.ora
Listener Log File /db01/app/oracle/diag/tnslsnr/ozone4/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gw_host)(PORT=1521)))
Services Summary...
Service "myodbc3" has 1 instance(s).
Instance "myodbc3", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfullyCan anyone see anything obvious in this configuration that's out of whack?
I logged into sqlplus and create a public database link:
SQL> create public database link mysql
2 connect to user_name identified by password
3 using 'dg4odbc';Executing a query via the link gives the following:
SQL> select * from block@mysql;
select * from block@mysql
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from MYSQLAnyone seen this before or have any ideas for me? I've read through the docs and this forum and just cannot see where the problem lies.
Earl
P.S. tnsping from the Oracle database to the gateway gives this:
merc@: tnsping dg4odbc
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 26-APR-2010 15:15:07
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
/opt/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = gw_host)(PORT = 1521))) (CONNECT_DATA = (SID= myodbc3)) (HS=OK))
OK (0 msec)>
Maybe it is sufficient to get the part where the libodbc.so library is loaded, so check where you'll find it in the strace file and provide this info until the error is visible in the traceHopefully this is what you wanted from truss.
23074/1: stat("/opt/unixODBC/lib/libodbc.so", 0xFFFFFFFF7FFFD4A0) = 0
23074/1: resolvepath("/opt/unixODBC/lib/libodbc.so", "/opt/unixODBC/lib/libodbc.so.1.0.0", 1023) = 34
23074/1: open("/opt/unixODBC/lib/libodbc.so", O_RDONLY) = 9
23074/1: mmap(0x00100000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 9, 0) = 0xFFFFFFFF7A400000
23074/1: mmap(0x00100000, 1826816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFFFFFFFF7A200000
23074/1: mmap(0xFFFFFFFF7A200000, 719355, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 9, 0) = 0xFFFFFFFF7A200000
23074/1: mmap(0xFFFFFFFF7A3AE000, 55864, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 9, 712704) = 0xFFFFFFFF7A3AE000
23074/1: mmap(0xFFFFFFFF7A3BC000, 1552, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFFFFFFFF7A3BC000
23074/1: munmap(0xFFFFFFFF7A2B0000, 1040384) = 0
23074/1: memcntl(0xFFFFFFFF7A200000, 75448, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
23074/1: close(9) = 0
23074/1: stat("/opt/unixODBC/lib/libdl.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/opt/mysql/myodbc5/lib/libdl.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/usr/local/lib/libdl.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/db01/app/oracle/product/gateways/lib/libdl.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/opt/unixODBC/lib/libthread.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/opt/mysql/myodbc5/lib/libthread.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/usr/local/lib/libthread.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/db01/app/oracle/product/gateways/lib/libthread.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/opt/unixODBC/lib/libc.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/opt/mysql/myodbc5/lib/libc.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/usr/local/lib/libc.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/db01/app/oracle/product/gateways/lib/libc.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/opt/unixODBC/lib/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/opt/mysql/myodbc5/lib/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/usr/local/lib/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) = 0
23074/1: resolvepath("/usr/local/lib/libgcc_s.so.1", "/usr/local/lib/libgcc_s.so.1", 1023) = 28
23074/1: open("/usr/local/lib/libgcc_s.so.1", O_RDONLY) = 9
23074/1: mmap(0xFFFFFFFF7A400000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 9, 0) = 0xFFFFFFFF7A400000
23074/1: close(9) = 0
23074/1: stat("/db01/app/oracle/product/gateways/lib/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/lib/64/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: stat("/usr/lib/64/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
23074/1: munmap(0xFFFFFFFF7A200000, 719355) = 0
23074/1: munmap(0xFFFFFFFF7A3AE000, 58892) = 0
23074/1: munmap(0xFFFFFFFF7A400000, 32768) = 0
23074/1: write(7, " h o a e r r : 2 8 5 0".., 14) = 14
23074/1: time() = 1273255397
23074/1: write(7, " E x i t i n g h g o l".., 40) = 40
23074/1: write(7, " F a i l e d t o l o".., 81) = 81
23074/1: time() = 1273255397
23074/1: write(7, " E x i t i n g h g o l".., 49) = 49
23074/1: time() = 1273255397
23074/1: write(7, " E x i t i n g h g o i".., 126) = 126
23074/1: getpid() = 23074 [5550]
23074/1: open("/proc/23074/map", O_RDONLY) = 9
23074/1: fstat(9, 0xFFFFFFFF7FFFD1F8) = 0
23074/1: open("/dev/zero", O_RDWR) = 12
23074/1: mmap(0x00000000, 14872, PROT_READ|PROT_WRITE, MAP_PRIVATE, 12, 0) = 0xFFFFFFFF7AC00000
23074/1: pread(9, "\0\0\001\0\0\0\0\0\0\0\0".., 14872, 0) = 7488
23074/1: close(9) = 0
23074/1: munmap(0xFFFFFFFF7AC00000, 7592) = 0
23074/1: write(7, " h o s t m s t r : ".., 41) = 41
23074/1: write(14, "\0 *\0\006\0\0\0\0\080\0".., 42) = 42
23074/1: read(14, "\0 n\0\006\0\0\0\0\0 H\0".., 8208) = 110
23074/1: getpid() = 23074 [5550]
23074/1: open("/proc/23074/map", O_RDONLY) = 9
23074/1: fstat(9, 0xFFFFFFFF7FFFD4D8) = 0
23074/1: open("/dev/zero", O_RDWR) = 13
23074/1: mmap(0x00000000, 15080, PROT_READ|PROT_WRITE, MAP_PRIVATE, 13, 0) = 0xFFFFFFFF7A400000
23074/1: pread(9, "\0\0\001\0\0\0\0\0\0\0\0".., 15080, 0) = 7592
23074/1: close(9) = 0
23074/1: munmap(0xFFFFFFFF7A400000, 7696) = 0
23074/1: write(7, " h o s t m s t r : ".., 44) = 44
23074/1: getpid() = 23074 [5550]
23074/1: open("/proc/23074/map", O_RDONLY) = 9
23074/1: fstat(9, 0xFFFFFFFF7FFFD358) = 0
23074/1: open("/dev/zero", O_RDWR) = 15
23074/1: mmap(0x00000000, 15288, PROT_READ|PROT_WRITE, MAP_PRIVATE, 15, 0) = 0xFFFFFFFF7A300000
23074/1: pread(9, "\0\0\001\0\0\0\0\0\0\0\0".., 15288, 0) = 7696
23074/1: close(9) = 0There appear to be errors there but I have no idea how to read this output. Thanks again for your help.
Earl -
Hi all
I have downloaded the J connector, both 5.0.8 and 5.1.13 but they both gives me problems.
if i try:
private static String url="jdbc:mysql://localhost:3306/mydb;create=true"; private static Connection conn=null; private Statement stm=null; public static void main(String[] args){ createConnection(); } private static void createConnection(){ try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); //connect conn=DriverManager.getConnection(url); System.out.println("Connected!"); } catch(Exception except){ except.printStackTrace(); } }
i get the following:
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.ConnectException
MESSAGE: Connection refused
STACKTRACE:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:433)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:477)
at java.net.Socket.<init>(Socket.java:374)
at java.net.Socket.<init>(Socket.java:216)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:271)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)
at com.mysql.jdbc.Connection.<init>(Connection.java:1555)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at conn.Conn.createConnection(Conn.java:28)
at conn.Conn.main(Conn.java:18)private static String url="jdbc:mysql://localhost:3306/mydb;create=true";
java.net.ConnectException
MESSAGE: Connection refusedMySQL is not running in 'localhost' on port 3306. -
CS3 mysql database connection using php
Hi, this is my first time trying to connect to a database. I have created a mysql database with my hosting provider. I am also configured to use php. I have ready numerous threads on this topic, but am still confused.
I am getting the following error message:
When I enter the following information into the connection string, I get the following error Error http error code 404 file not found. The site does not map to ftp.readyhosting.com/_mmserverscripts/mmhttdb.php Is the location of mysql server correct? Connection name ? user defined ?aosprod?
Mysql server = aoswebeditor.readyhostingmysql.com. Also, this is not the same location as the web server.
The hosting company provides the following php code to connect to the database.
<?php
$link = mysql_connect('aoswebeditor.readyhostingmysql.com', 'aosweb', '*password*');
if (!$link) {
die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
mysql_select_db(aos);
?>
Because of the connection dialog boxes in CS3, I have not used this php code but only used the mysql server aoswebeditor.readyhostingmysql.com.
My requirements are very simple, I want to use the same remote database for the dreamweaver connection for the remote and testing server.
Any ideas would be appreciated.
Thanks. GeorgeFirst of all, you seem to be mixed up about terminology. ASP stands for Active Server Pages, and is a type of server technology similar to PHP. I think you mean ISP (Internet Service Provider). However, this is not correct, either. An ISP provides your connection to the internet. Although some ISPs also host websites for their customers, your website is normally located at a hosting company. You need to get that mixup out of the way. Otherwise, you might confuse people with future questions about ASP, when you actually mean something completely different.
OK, lecture over...
Your hosting company is following standard procedure by preventing remote access to MySQL databases. However, Dreamweaver does make it possible to use your remote database and website for testing purposes. It does so by uploading a hidden folder called _mmServerScripts to your remote server. This performs a local connection with your database, and then sends the results back to your local computer. When setting up your testing server definition in Dreamweaver, you need to provide the details as I indicated before. When creating a MySQL connection in Dreamweaver, fill in the server name and account details as given to you by your hosting company. If everything is set up correctly, you should be able to use your remote server and database for testing.
Having said that, it is much better to install a local testing environment. You'll find it faster, and it also lets you make mistakes (an essential part of the learning process) in the security of a closed environment. For details of how to set up a local testing environment, see this article in the Adobe Developer Connection. -
Mysql.sock - connection error (code 2002)
Performed a clean install of SL Server.
Enabled Web and MySQL services.
When using GUI (SequelPro of MySQL GUI Tools) I get a mysql.sock connection error.
"Could not connect to MySQL instance at localhost. Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (code 2002)"
The database location of MySQL is /var/mysql. Thus a reference to /tmp/mysql.sock is obviously wrong.
The file /var/mysql/mysql.sock does exist but apparently no reference is made to this file.
Q: How to make a reference to the correct socket file,
Coen
info from Terminal:
mysql> status
mysql Ver 14.12 Distrib 5.0.82, for apple-darwin10.0 (i386) using EditLine wrapper
Connection id: 6
Current database:
Current user: s2xladmin@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.0.82-log Source distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/mysql/mysql.sock
Uptime: 1 day 3 hours 41 min 7 sec
Threads: 1 Questions: 12 Slow queries: 0 Opens: 12 Flush tables: 1 Open tables: 6 Queries per second avg: 0.000
Message was edited by: Coen JeukensIt looks looks like the Sequel Pro app is guessing incorrectly that the mysql.sock is in /tmp. If that's the problem, you should be able to fix it by going to Sequel Pro's Connection panel and entering the correct path, which is /var/mysql/mysql.sock.
-
MySQL -- JDBC Connection help !!!
Hi everybody...Well I have MySQL Server and Java, I get the JDBC and tried this:
import java.sql.*;
public class JdbcE {
public static void main(String args[]) {
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost/test", "user", "pass");
if(!con.isClosed())
System.out.println("Successfully connected to MySQL server...");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
} finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
And with that code all works fine...but when I change the Host from LOCALHOST to [ROUTER IP] like this:
con = DriverManager.getConnection("jdbc:mysql://182.185.145.12/test", "user", "pass");
I got this exception:
Exception: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection timed out: connect
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection timed out: conne
ct
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja
va:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2666)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at JdbcE.main(JdbcE.java:11)
** END NESTED EXCEPTION **
Last packet sent to the server was 16 ms ago.
I don't know how to solve it...
I have a 2wire 1700HG router, maybe it would be a problem of the firewall can anyone help me to solve this problem??Well I sorry...I am very new in this kind of things...I just know that I have a 2wire 1700HG, I have installed MySQL Server, Java and mysql-connector-java...
When I try this in the connection statement:
con = DriverManager.getConnection("jdbc:mysql://localhost/test", "user", "test");
Everything works fine...but when I try this to connect from a remote PC
con = DriverManager.getConnection("jdbc:mysql://189.145.185.182/test", "user", "test");
This error comes out on screen:
Exception: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection timed out: connect
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection timed out: conne
ct
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja
va:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2666)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at JdbcE.main(JdbcE.java:11)
** END NESTED EXCEPTION **
Last packet sent to the server was 16 ms ago.
I don't know what can I do :S please help!! :D -
Please help setting up Mysql ASP connection on a Mac DW8
Dear All
I have posted previously but I still have not solved this
problem, and really need anybody with a mac DW setup to give some
advice. I have spoken to Adobe and trawled the net looking for a
solution to getting ASP and DW working on a mac. I know I need a
windows machine and a local network which I have. I have a real
issue making a database connection from within dreamweaver.
Please help anybody with experience.
Many thanks in advance
GrahamI don't know how you can define the MySQL database connection
string in DW,
because I only use DW for layout purposes (HTML + CSS). But I
have an
ASP/VBscript site running against a MySQL database, and it
successfully uses
the following connection string:
"DRIVER={MySQL ODBC 3.51 Driver};SERVER=" & myDBhost
& ";DATABASE=" &
myDBname & ";USER=" & myDBuserid & ";PASSWORD="
& myDBpassword &
";OPTION=3;"
Hope this helps.
Regards, Marja
"spydersweb" <[email protected]> wrote in
message
news:f21g1i$65i$[email protected]..
> Dear All
>
> I have posted previously but I still have not solved
this problem, and
> really
> need anybody with a mac DW setup to give some advice. I
have spoken to
> Adobe
> and trawled the net looking for a solution to getting
ASP and DW working
> on a
> mac. I know I need a windows machine and a local network
which I have. I
> have
> a real issue making a database connection from within
dreamweaver.
>
> Please help anybody with experience.
>
> Many thanks in advance
> Graham
> -
TLS connection failure with Exchange 2013 (SEC_E_WRONG_PRINCIPAL)
Hi all -
I have Lync 2013 with a single front-end server and am trying to properly integrate with a single Exchange 2013 SP1 server. The Exchange server has certificate signed by GeoTrust, assigned to all roles - IIS, SMTP, POP, IMAP, UM, and UMcallrouter. I'm
seeing the below in my FE logs and am unsure as to why Lync is using the .local address when I have been specifying external FQDNs for the mail server in Lync.
TLS outgoing connection failures.
Over the past 1 minutes, Lync Server has experienced TLS outgoing connection failures 1 time(s). The error code of the last failure is 0x80090322(SEC_E_WRONG_PRINCIPAL) while trying to connect to the server "MAIL.xxxx.local" at address [172.16.3.14:5061],
and the display name in the peer certificate is "Unavailable".
Cause: Most often a problem with the peer certificate or perhaps the host name (DNS) record used to reach the peer server. Target principal name is incorrect means that the peer certificate does not contain the name that the local server used to connect. Certificate
root not trusted error means that the peer certificate was issued by a remote CA that is not trusted by the local machine.
Resolution:
Check that the address and port matches the FQDN used to connect, and that the peer certificate contains this FQDN somewhere in its subject or SAN fields. If the FQDN refers to a DNS load balanced pool then check that all addresses returned by DNS refer to
a server in the same pool. For untrusted root errors, ensure that the remote CA certificate chain is installed locally. If you have already installed the remote CA certificate chain, then try rebooting the local machine.
Any advice/pointers you can give are greatly appreciated.When integrate Lync and Exchange UM, you need to generate new certificate. The certificate should contain the server’s FQDN.
Lisa Zheng
TechNet Community Support -
Conecting to mysql database Connection reset by peer
hi guys,
I have to connec to sever where , from this place i need to contact a remote database , the databse is behind a firewall , they database in their intranet ,they have give me a valid ip , they have a conection between the valid ip and the intranet system , they give me access to the port in the fire wall , i asked for the port 3306 (mysql default ) port , and tried connecting it but i get exception, should i need to get the 80 port for connection??? please help
java.sql.SQLException: Communication link failure: java.net.SocketException, underlying cause: Connection reset by peer: Connection reset by peer ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Connection reset by peer: Connection reset by peer STACKTRACE: java.net.SocketException: Connection reset by peer: Connection reset by peer at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read1(BufferedInputStream.java:225) at java.io.BufferedInputStream.read(BufferedInputStream.java:280) at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1391) at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1413) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:625) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1782) at com.mysql.jdbc.Connection.(Connection.java:450) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:199) at org.apache.jsp.store$jsp._jspService(store$jsp.java:107) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java: 201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.jav a:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:17 4) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) ** END NESTED EXCEPTION **yeahman i feel the same, but i need to prove them they need to do some work , for that i should show thm its not my problem , can u tell me how the jdbc connector works,or any other way telling them , the port not opened still , how will the server pass the request to the database , some one please help me
Maybe you are looking for
-
This is another one of my "lets get this settled once and for all" threads. I have avoided variant data types whenever possible to keep the performance of my apps up. From some observatsions i have made over the years, I am of the opinion that; 1) In
-
Can't log into the Mac App Store in 10.6.6 Update
While the app store loads, the sign in screen opens behind the app store application. When i go there to enter my apple ID, etc., it won't let me enter anything. Why is this?
-
I am trying to upgrade my NHL game center app.....
I am trying to upgrade my NHL game center to the NHL game center live app and it will not upgrad on my iPad. Every time I click it to upgrade a message comes up saying to "contact iTunes support to complete my transaction" Although I now seems to b
-
My Photoshop just stopped working
I do not have a disc & believe I got it when I bought this desktop in 2011. All other software in the Creative Suite works fine but Photoshop says: "Some of the application components are missing from the Application directory. Please reinstall the a
-
I have some ODI questions Can i install ODI without having Fusion installed? Wouldn't ODI without Fusion be merely an ETL tool? (assuming that you can install without Fusion) Can i use ODI in an pub/sub architectural model for event driven data chang