Weblogic 6.1 sp1 jdbc connection to SQL Srv 7; receiving resources not available
We've been running some load balancing testing on our website and at the high end
of the number of concurrent users, we begin to receive "QLException: java.sql.SQLException:
weblogic.common.ResourceException: No resources available" this is usually around
the 40 concurrent user mark. I've set the max JDBC connections to around 50,
initial connections to 20, capacity increment to 2 and the shrink period to 1
minute (though we've had that at 10, 15, and 59 minutes)...looking for suggestions
on problems. Currently using wblogic.jdbc.mssqlserver4.Driver and weblogicis
running on Linux
Will Darton wrote:
We've been running some load balancing testing on our website and at the high end
of the number of concurrent users, we begin to receive "QLException: java.sql.SQLException:
weblogic.common.ResourceException: No resources available" this is usually around
the 40 concurrent user mark. I've set the max JDBC connections to around 50,
initial connections to 20, capacity increment to 2 and the shrink period to 1
minute (though we've had that at 10, 15, and 59 minutes)...looking for suggestions
on problems. Currently using wblogic.jdbc.mssqlserver4.Driver and weblogicis
running on LinuxHi. I would like to see the code that uses connections from the pool. If you code correctly,
to always close a pool connection regardless of any exception, by the end of every user
request, then you should need only as many connections in the pool as there are execute
threads in the server. Do you have more than 50 execute threads?
Joe
Similar Messages
-
Hi All,
I have started receiving this error in the logs for the last 10 days and the Schedules Jobs for the database have stopped running. My MS CRM application is working fine.
Can anyone guide me what could be the problem.
Date 17/4/2014 2:04:20 PM
Log SQL Server Agent (Current - 17/4/2014 2:01:00 PM)
Message
[298] SQLServer Error: 10061,
A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct
and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001]
Date 17/4/2014 2:11:55 PM
Log SQL Server Agent (Current - 17/4/2014 2:01:00 PM)
Message
[298] SQLServer Error: 10061,
A network-related or instance-specific error
has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
see SQL Server Books Online. [SQLSTATE 08001]
Date 7/4/2014 11:00:31 AM
Log SQL Server Agent (Current - 17/4/2014 2:01:00 PM)
Message
[298] SQLServer Error: 10061,
A network-related or instance-specific error
has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
see SQL Server Books Online. [SQLSTATE 08001]Check this link
http://social.msdn.microsoft.com/Forums/en-US/906da9b5-2482-468c-a424-ae099da2d96b/sql-server-agent-service-account-error?forum=sqlsetupandupgrade
Regards, RSingh -
Weblogic 7.0 SP1 JDBC Multipooling does not appear to fail over consistantly
We are running Weblogic Platform 7.0 SP1 on a Sun with Solaris 8 O/S
We have a connection multipool set up associated with a Data Source.
The multipool has two connection pools, each pointing to a seperate but
Identical database. The multipool is created with the high availability algorithm
set.
both connection pools have the following settings:
(Connections Tab) (Testing Tab)
Initial Capacity:0 Test Table Name: dual
Maximum Capacity: 20 Test Reserved Connections: Checked
Capacity Increment: 2
Login Delay Seconds: 2
Refresh Period: 15
Allow Shrinking: Checked
Shrink Period: 15
When the first database goes down for a backup, We can see the exceptions thrown
from the
broken acitve connections, which would be expected. But we also notice a significant
response time increase (3-7 seconds) and we notice continuing exceptions from
what appears to be the application EJB still attempting to connect to the first
instance. It is only when a DISABLE_POOL is issued using the command line interface
to disable the first pool in the multipool that the response time drops to normal
and the exceptions stop. The exceptions don't happen for every query, but we cannot
understand why the test-on-reserve doesn't seem to always work.
Any help would be appreciatedThis is known behavior of the "high availability" algorithm for multipools.
Whenever a multipool is asked for a connection, it will always try the first pool first
(unless it has been diabled). The algorithm doesn't remember that it had trouble with
the first pool and start with the second pool (e.g., put the first pool at the end of the circular list
of pools to be tried). This is the way it was designed (in my opinion, this defies the
principal of least astonishment, but not everyone agrees with me).
We are planning to add a new algorithm in the next release that does keep state.
The way it currently works, it depends on how long it takes to figure out that
the first pool is not available. This depends on the database client driver and
the network connection (it could take from 100ms to multiple seconds to minutes
to figure it out).
"Joe Doyle" <[email protected]> wrote in message news:[email protected]...
>
We are running Weblogic Platform 7.0 SP1 on a Sun with Solaris 8 O/S
We have a connection multipool set up associated with a Data Source.
The multipool has two connection pools, each pointing to a seperate but
Identical database. The multipool is created with the high availability algorithm
set.
both connection pools have the following settings:
(Connections Tab) (Testing Tab)
Initial Capacity:0 Test Table Name: dual
Maximum Capacity: 20 Test Reserved Connections: Checked
Capacity Increment: 2
Login Delay Seconds: 2
Refresh Period: 15
Allow Shrinking: Checked
Shrink Period: 15
When the first database goes down for a backup, We can see the exceptions thrown
from the
broken acitve connections, which would be expected. But we also notice a significant
response time increase (3-7 seconds) and we notice continuing exceptions from
what appears to be the application EJB still attempting to connect to the first
instance. It is only when a DISABLE_POOL is issued using the command line interface
to disable the first pool in the multipool that the response time drops to normal
and the exceptions stop. The exceptions don't happen for every query, but we cannot
understand why the test-on-reserve doesn't seem to always work.
Any help would be appreciated -
JDBC connection to SQL Server 2000
Hi,
I am new to Java programming. I am using Websphere Studio Site Developer 5.1 and I am having issues connecting to SQL 2000.
This is what I have done so far:
1. Downloaded the SQL Server 2k JDBC service pack 3 driver from Microsoft.
2. Ran the executable. Seems like the JDBC driver was installed successfully.
3. Created a user w/ dbo permissions on the DB that I want to access.
Here is a snippet of my java code so far:
Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://DEV01:1433;DatabaseName=NG_RFQ;SelectMethod=cursor", "username", "password");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM Customer");
if(rs.next()){
customerName = rs.getString("CustomerName");
buyerName = rs.getString("BuyerName");
con.close();
I have been working on this for days and can NOT get a connection established.
Here are some of the error messages that I have been receiving thru WSSD.
java.sql.SQLException: No suitable driver
[8/11/04 18:11:54:815 EDT] 5e5c8f29 SystemErr R at java.sql.DriverManager.getConnection(DriverManager.java:558)
Can anyone please tell me what I am doing wrong? Or point me in the right direction.
I have searched hi and lo for the answer but still no luck.
Any help would be greatly appreciated.
Thanks!
-JML"No suitable driver" means one of two things:
1. You forgot the Class.forName() part (quite uncommon, but if I look at the original post, this might just be the cause).
2. The URL is wrong (usually a typo, look for colons, semicolons, parameter names etc.)
Alin. -
JDBC connection for SQL Server 2000
How to connect SQL Server 2000 from java?
If i can get any sites where i can get examples also fine.
Thanks in advance
Praveen.Developer's Daily Java Education
front page | java | perl | unix | DevDirectory
Front Page
Java
Education
Pure Java
Articles
JDBC 101: How to connect to an SQL database with JDBC
Introduction
If you're interested in connecting your Java applets and applications to standard SQL databases like Oracle, Informix, Sybase, and others, JDBC is your ticket to paradise. The combination of Java's JDBC and standard SQL makes a simple and powerful database solution. JDBC makes the simple things easy -- without making the complex tasks too difficult either.
In this first article in our series, we'll show you step-by-step how to establish a connection from your Java programs to an SQL database using JDBC. In the process we'll show you how to connect to two different databases -- Mini SQL (mSQL), and Interbase -- just so you can see how the code changes when you switch from one database to another.
Obtaining the JDBC driver
Before you start working with JDBC, you'll need a copy of the Java JDK. If you don't have it already, you can get the JDK for free at Sun's Java web site, or it will also be included with many IDE's that you can purchase, such as JBuilder or Visual Cafe.
Once you have the JDK, the next thing you need to do is to get the correct JDBC driver for your database. In most cases the JDBC driver will be provided by your database vendor. For instance, if you purchase the Interbase database, the driver will be provided with the software, or you can obtain the most recent version at http://www.interbase.com/.
(An exception to this rule is Mini SQL, or mSQL. Because it's a very low-cost database, the JDBC driver has actually been developed by a separate group of people, led by George Reese at imaginary.com. You can download the mSQL JDBC driver from the imaginary.com web site.)
Once you have the correct JDBC driver for your database, install it according to the instructions that came with it. Installation instructions will vary somewhat for each vendor.
Establishing a connection is a two-step process
Once you have the correct JDBC driver installed, establishing a connection from your Java programs to your SQL database is pretty easy.
Regardless of whether you're trying to connect to Oracle, Sybase, Informix, mSQL, or Interbase (or any other JDBC data source), establishing a connection to an SQL database with Java JDBC is a simple two-step process:
Load the JDBC driver.
Establish the connection.
We'll show you two examples just so you can see how easy it is, and how little the code changes when you migrate from one database server to another.
A Mini SQL Example
Listing 1 provides the full source code required to establish a connection to a mSQL database on a server named "www.myserver.com".
// Establish a connection to a mSQL database using JDBC.
import java.sql.*;
class JdbcTest1 {
public static void main (String[] args) {
try {
// Step 1: Load the JDBC driver.
Class.forName("com.imaginary.sql.msql.MsqlDriver");
// Step 2: Establish the connection to the database.
String url = "jdbc:msql://www.myserver.com:1114/contact_mgr";
Connection conn = DriverManager.getConnection(url,"user1","password");
} catch (Exception e) {
System.err.println("Got an exception! ");
System.err.println(e.getMessage());
Listing 1: This source code example shows the two steps required to establish a connection to a Mini SQL (mSQL) database using JDBC.
An Interbase Example
Listing 2 provides the full source code required to establish a connection to an Interbase database. In this example, we're connecting to a local Interbase server (i.e., the server is running on the same PC that we're running the Java code on).
// Establish a connection to an Interbase database using JDBC.
import java.sql.*;
class JdbcTest1 {
public static void main (String[] args) {
try {
// Step 1: Load the JDBC driver.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// Step 2: Establish the connection to the database.
String url = "jdbc:odbc:contact_mgr";
Connection conn = DriverManager.getConnection(url,"user1","password");
} catch (Exception e) {
System.err.println("Got an exception! ");
System.err.println(e.getMessage());
Listing 2: This source code example shows the two steps required to establish a connection to an Interbase database using JDBC.
What's the difference?
The difference between the two source code listings is very small, so we highlighted them in a dark blue color. The only difference between connecting to the two databases is:
The name of the JDBC driver.
The URL used to connect to the database.
Everything else in the two source code listings -- except for the comment at the top -- is identical. Here's a slightly more detailed discussion of the two differences:
1. The JDBC Driver
The name of the JDBC driver will be supplied to you by your database vendor. As you can see in the class.forName() statements, these names will vary. In the first case we're using the mSQL-JDBC driver. In the second case we're using the JDBC-ODBC Bridge driver supplied with the Interbase server.
2. The URL
The syntax of the DriverManager.getConnection() method is:
DriverManager.getConnection(String url, String username, String password);
The username and password are the normal names you use to log into your database. The URL you use will again vary with the database you use. In both examples shown, we're establishing a connection to a database named contact_mgr. (We'll use this database for all of our examples in this series of JDBC articles.)
If you stick with standard SQL commands, it can be very easy to switch from one database server to another. In fact, I've heard from several developers who are using mSQL to prototype their software (because it's so inexpensive), and then switching to another commercial vendor when it's time to take their product "live".
Conclusion
Establishing a connection to an SQL database with Java JDBC is a simple, two-step process. The process is nearly identical for all SQL databases, and the only real differences are (a) the driver name, and (b) the URL used to connect to the database. Your database vendor will provide this information in their documentation.
Resources mentioned in this article
Here are a few links to resources we mentioned in this article:
Interbase
The Mini SQL (mSQL) database
The mSQL-JDBC driver at imaginary.com
[an error occurred while processing this directive]
-
JDBC connection to SQL Server 2000 Service Pack 4
Hello Everyone,
I'm trying to do a simple application which save some values into a MS SQL Server 2000 Database's Table.
The source code I've written is:
package Logging;
import com.brekeke.net.sip.sv.session.*;
import com.brekeke.net.sip.sv.session.plugins.*;
import java.io.*;
import java.util.*;
import java.sql.*;
public class Logging extends AccountingBase {
public int eventSessionStart( EventStat evstat, String[] argprm )
int ris =0;
int line=999;
try {
EventStat a;
a = evstat ;
String username;
username=a.urlCaller;
String callee;
callee=a.urlCallee;
Statement stmt = null;
try {
line=1;
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
line=2;
Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://BSSQL:1433;DataBaseName=Test;User=sa;Password=biesse");
line=3;
// Create and execute an SQL statement that returns some data.
String SQL = "INSERT INTO log VALUES ('" + a.urlCaller + "','" + a.urlCallee + "')";
line=4;
stmt = conn.createStatement();
line=5;
line=stmt.executeUpdate(SQL);
line=10;
catch (Exception e) {
e.printStackTrace();
finally {
if (stmt != null) try { stmt.close(); } catch(Exception e) {}
File f = new File("c:/prova.txt");
FileOutputStream fos=new FileOutputStream(f);
PrintStream ps=new PrintStream(fos);
ps.println(line);
ps.println(a.urlCaller);
ps.println(a.urlCallee);
fos.close();
catch ( Exception ex ) {
return ris;
The problem is that into the Table no value is written, no problem compiling it and into the file prova.txt I can see only the value line=1 written!
So there should be something wrong in the connection.
I've already installed the JDBC drivers for SQL Server 2000 and I've addedd into the libraries the "msbase.jar, the mssqlserver.jar and the msutil.jar".
But nothjng written into the Database :-(
Can you help me please?
Thank you very much in advance,
Best Regards
FrancescoHi,
Yes i am able to connect from ISQL. Only connecting from JDBC is a problem. -
JDBC-Connection in SQL-Developer via Connection-Manager gives ORA-12529
Hi !
This is a followup of this Thread: https://community.oracle.com/thread/3568462
I have the same problem but I have ConnectionManager 11g (11.2.0.1.0) , which doesn't know the setting for AUTHENTICATION_LEVEL=0
And I have to use JDBC, so the OCI/Thick-driver is no option for me.
The same error is raised when I use JDBC with Eclipse,...
SQL-Plus over the Connection-Manager works without any problems.
The ruleset of my cman.ora is:
(rule_list=
(rule=
(src=*)(dst=*)(srv=*)(act=accept)
(action_list=(aut=off)(moct=0)(mct=0)(mit=0)(conn_stats=on))
The error is:
Listener refused the connection with the following error:
ORA-12529, TNS:connect request rejected based on current filtering rules
Anyone got jdbc-connections over ConnectionManager 11g+ running?
CharlyUsing Windows XP/Vista...
After testing in our environment, it appears that SQL Developer 1.5.1 (5440) does in fact ignore the TNS_ADMIN environment variable and ONLY looks in the Oracle Home directory (network/admin). We define a central network location for our tnsnames file and have the tns_admin setup to point there instead of locally for our users.
When selecting to add a new connection (in 1.5.1, it works in previously releases... meaning 1.2.something) and selecting TNS, the drop-down remains empty. However, if I exit SQL Developer and then copy the tnsnames file to the local network/admin directory I can then re-launch SQL Developer and the drop-down is populated. Exiting SQL Developer again, deleting the local copy of tnsnames, and then launching SQL Developer yet again results in the drop-down being empty.
All other Oracle-related applications function as expected (as they have for years) using the TNS_ADMIN environment variable.
Any suggestions/ideas? -
JDBC connecting MS SQL Server DB Help!!!
I have some problems with connecting DB in my program.
I read many forms of creation of connectin string and writting programs.
Can anybody help me?
I need an example of writting simple program connecting MS SQL Db with JDBC.hi neetLynx ,
I am using JSQLConnect Driver for SqlServer 7.0 /2000
Download it and use it
Class.forName("com.jnetdirect.jsql.JSQLDriver");
Connection con=DriverManager.getConnection("jdbc:JSQLConnect://ajit/database=pubs&user=sa");
Statement stat=con.createStatement();
ajit is the host name or the name of the local computer in which the database resides,pubs the database name
and if u use a password just continue
("jdbc:JSQLConnect://ajit/database=pubs&user=sa&password= "
rest u know....
thanks
royce -
ABAP statement for JDBC connection to SQL server
Hi Gurus,
i need to connect a WebDynpro abap to a SQL server.
My OS is Unix so i cannot use a ODBC connection.
Can anyone help me to know if it's possible to write an abap statement to connect the SQL server by JDBC connection?
thanks a lot
Regards
Claudio.Hi,
ELSEIF SCREEN-GROUP2 = 'PRO'.
clear: list.
if screen-name = 'ZAVBAK-ZZPROMO_ID'.
exec sql.
commit
set connection :'CBREPOSITORYPRD'
endexec.
exec sql.
CONNECT TO :'CBREPOSITORYPRD'
endexec.
exec sql.
COMMIT
endexec
EXEC SQL.
OPEN C1 FOR
SELECT CutterRewardsUserListid,
SAPAccountNumber,
PromoID,
FirstName,
LastName
FROM CutterRewardsUserList
WHERE SAPAccountNumber = :XVBPA-KUNNR ORDER BY PromoID
ENDEXEC.
DO.
EXEC SQL.
FETCH NEXT C1 INTO :WA5
ENDEXEC.
IF SY-SUBRC = 0.
PERFORM UPDATE_LIST.
ELSE.
EXIT.
ENDIF.
ENDDO.
EXEC SQL.
CLOSE C1
ENDEXEC. -
Some times on Tomcat start up it creates SSL error while JDBC connection to SQL server
We are using Apache Tomcat 6 and SQL server 2008 on production. In the application in ServletContextListner we make DB connection to read some property from DB. When we restart the Tomcat 6.0 in that case sometimes it does not gets DB connection till 5 to
10 minutes. It does not happen every time. We are using JNDI for getting the Datasource objectand using SQL JDBC 3.0 driver. We get following error in log
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset by peer: socket write error".)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at com.rightwave.util.RWDBConnectionManager.getConnection(RWDBConnectionManager.java:145)
at com.rightwave.util.RWDataBaseDAO.executeQuery(RWDataBaseDAO.java:306)
at com.rightwave.util.RWDataBaseDAO.executeQuery(RWDataBaseDAO.java:289)
at com.rightwave.admin.RWApplicationContext.setMConfigurationProperties(RWApplicationContext.java:226)
at com.rightwave.admin.RWAdminApplicationContext.initialize(RWAdminApplicationContext.java:85)
at com.rightwave.admin.RWServletContextListener.contextInitialized(RWServletContextListener.java:186)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset by peer: socket write error".
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1368)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1412)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1058)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:833)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:716)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:841)
at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
... 31 more
Caused by: java.io.IOException: Connection reset by peer: socket write error
at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.ensureSSLPayload(IOBuffer.java:500)
at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.readInternal(IOBuffer.java:570)
at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.read(IOBuffer.java:562)
at com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.readInternal(IOBuffer.java:757)
at com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.read(IOBuffer.java:745)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1379)
... 39 more
Urgent help will be appreciated.So, you've got a network error.. Check your physical layer.
-
Problem when create connection to SQl Server ( charecter set cp1255 not found ))
Hello my name is Ron ,
i want to connect to SQL SERVER with the microsoft driver
from Java ( with jDeveloper ) .
then i did the following steps:
1) i download and install the jdbc driver for Sql server
on my machine ( windows XP with , JDK 1.3 )
2) i update my classpath with the .Jar lib file of the driver .
3) when creating the connection
i'm using the
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
this is Ok , the driver was loaded .
4) when trying the GetConnction
Connection conn = DriverManager.getConnection
("jdbc:microsoft:sqlserver://server1:1433","username","secret");
i get the following error:
[Microsoft][SQLServer 2000 Driver for JDBC]Character set CP1255 not found in com.microsoft.util.transliteration.properties.
please help me with this . any idea ?
thanks in advance
RoniRon,
Try following this document
http://otn.oracle.com/products/jdev/howtos/bc4j/bc_psqlserverwalkthrough.html
from the how-tos archive.
Also, try to change the compiler encoding to UTF-8. you do this in the project setting window.
http://otn.oracle.com/products/jdev/htdocs/vcmigration/weblogic/unicode.gif
http://otn.oracle.com/products/jdev/htdocs/vcmigration/weblogic/unicode2.gif
good luck -
Problem with connection to SQl Server ( charecter set cp1255 not found )
Hello my name is Ron ,
i want to connect to SQL SERVER with the microsoft driver
from Java ( with jDeveloper ) .
then i did the following steps:
1) i download and install the jdbc driver for Sql server
on my machine ( windows XP with , JDK 1.3 )
2) i update my classpath with the .Jar lib file of the driver .
3) when creating the connection
i'm using the
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
this is Ok , the driver was loaded .
4) when trying the GetConnction
Connection conn = DriverManager.getConnection
("jdbc:microsoft:sqlserver://server1:1433","username","secret");
i get the following error:
[Microsoft][SQLServer 2000 Driver for JDBC]Character set CP1255 not found in com.microsoft.util.transliteration.properties.
please help me with this . any idea ?
thanks in advance
RoniRon,
Try following this document
http://otn.oracle.com/products/jdev/howtos/bc4j/bc_psqlserverwalkthrough.html
from the how-tos archive.
Also, try to change the compiler encoding to UTF-8. you do this in the project setting window.
http://otn.oracle.com/products/jdev/htdocs/vcmigration/weblogic/unicode.gif
http://otn.oracle.com/products/jdev/htdocs/vcmigration/weblogic/unicode2.gif
good luck -
Connection to SQL Express on Azure VM not working
Hello,
I'm sorry if this has already been answered somewhere else, I didn't find anything that helped.
Setup:
Two VMs running Windows Server 2012 R2 Datacenter, one running SQL Express.
When trying to connect to the SQL Express, the connection does not work.
Here's what I've done so far:
Set up the MSSQL instance, named SQLEXPRESS
Set up a database, named TESTDB
Set the instance to mixed authentification
Set up VM endpoint TCP 1433
Opened ports TCP 1433, 1434 in the firewall
Activated the SQL Browser
Activated the TCP/IP-Service in the SQL Server Network Configuration
Testing connection via UDL file with the following information:
Server name: <cloud storage>.cloudapp.net\<sql server>\SQLEXPRESS
Username: sa
Password: <password>
Database: TESTDB
Now it returns the following error:
"Test connection failed because of an error in initializing provider.
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied."
Now I keep reading that it may be a firewall problem. But I turned off the firewalls on both servers completely for testing purposes (they're test servers and will be deleted anyway) and it still doesn't work.
I know I must have forgotten something, but what? Or am I entering the wrong connection information?
Does anyone know?
Regards
~IrolanServer name: <cloud storage>.cloudapp.net\<sql server>\SQLEXPRESS
Hello,
I wonder about the Server Name, it should be "MachineName\SQLEXPRESS" only.
Olaf Helper
[ Blog] [ Xing] [ MVP]
Damn... you're right. That works. Uhm... but what if I want to access it from another computer that is not an Azure VM? -
My phone is my business. It's the only way I have for clients to reach me to schedule appointments. Most of my clients are new at this point. While my latest of 5 replacement phones don't drive me AS crazy with connection issues, it's driving my husband crazy as he daily gets told I'm not available and can't even leave a voicemail (which is usually yelling at me to dump this piece of crap phone). If he gets that message daily, I wonder how many clients I'm losing from getting the message as well!! With corporate discounts of 25%, I have still spent over $450 on this phone, all but the screen saver at the Verizon store. I was given the option of "upgrading" to a Razr last time. PLEASE! The CR tried telling me it was newer (don't think so, pretty sure it was on the display right next to my Nexus in Dec), better camera (very debatable, and with much lesser quality screen, who cares about more mp?!), and that I bought my phone 8-9 months ago but it had been available much longer. Umm, I bought it the week it was released. I don't think 2 days can be considered "much longer".
I'm going to try the switch to straight CDMA that seems to work for some with connection dropping, because I can't afford clients getting that message (they understand being sent to voicemail if I'm in a session), but... I bought this phone with a price tag of $299, paid another 99 for insurance, screen saver, gel case, extra battery and charger when my first phone port was shot after 7 months waiting for replacement, and luckily haven't bothered w/ screen savers for the weekly replacements or I'd have to add another $100 to the cost. This is a flagship phone with a flagship starting contract cost, and the best they can do is send out refurbs that have the same issue over and over. My guess is the turnover is so great they don't go through the normal testing and repairs of typical refurbs. Take these refurbs off the market when they're returned with bad radio! I'd consider a GS3, Razr Maxx, or maybe even the upcoming RazrM (though that would def be a downgrade considering the starting cost and we don't know yet of what issues it will have, but I like the size and battery life), though it sucks that I'd be spending another $50 just on case and screen saver.
Anyone else experience the unavailable issue and get it resolved? I'm so tired of calling tech support. And why can't they just put the phone number right on the "contact us" page like normal companies??I certainly understand the need to have an operable device! Please DM me your name and mobile number, so I may further assist you. Thank you!
TominqueB_VZW
Please follow us on Twitter @VZWSupport -
Mail service POC - connecting to GMAIL gives error "service is not available"
From webcenter Dev Guide, I followed steps to connect to gmail server using webcenter mail service.
Mail service connection info:
imap server : imap.gmail.com
imap port : 993
smtp server : smtp.gmail.com
smtp port : 465
imap secured : true
smtp secured : true
Test connection status : Success
external application info:
App Name: MyGmailApp
Display Name : My Gmail App
Login URL : https://mail.google.com/mail
Username field : Username
Password field : Password
Authentication Method : POST
Field Names : 'Email Address', 'Reply-To Address'. (Display to user true for both)
Shared credentials & public credentials entered are gmail credentials.
I dropped mail service on to a page & ran the portal.
The error I got was "The service is not available" , Log is given as below. what did i miss ??? Please help me out.
Error Log:
javax.mail.MessagingException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target;
nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
at oracle.webcenter.collab.mail.MailSession$2.call(MailSession.java:1302)
at oracle.webcenter.collab.mail.MailSession$2.call(MailSession.java:1276)
at oracle.webcenter.concurrent.Submission$2.run(Submission.java:484)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.webcenter.concurrent.Submission.runAsPrivileged(Submission.java:498)
at oracle.webcenter.concurrent.Submission.run(Submission.java:424)
at oracle.webcenter.concurrent.Submission$SubmissionFutureTask.run(Submission.java:888)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:657)
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1649)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:241)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:235)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1206)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:753)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:97)
at com.sun.mail.iap.Response.<init>(Response.java:96)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:61)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:135)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:261)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:114)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
... 16 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:323)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:217)
at sun.security.validator.Validator.validate(Validator.java:218)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1185)
... 34 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:318)
... 40 more
<Submission> <run> Submission[id=1, service=oracle.webcenter.collab.mail, resource=null] caught exception running task
oracle.webcenter.collab.share.ConnectionFailedException: The service is unavailable.
at oracle.webcenter.collab.mail.MailSession.acquireImapStore(MailSession.java:1374)
at oracle.webcenter.collab.mail.MailSession.login(MailSession.java:462)
at oracle.webcenter.collab.share.Session$1.call(Session.java:652)
at oracle.webcenter.collab.share.Session$1.call(Session.java:646)
at oracle.webcenter.concurrent.Submission$2.run(Submission.java:484)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.webcenter.concurrent.Submission.runAsPrivileged(Submission.java:498)
at oracle.webcenter.concurrent.Submission.run(Submission.java:424)
at oracle.webcenter.concurrent.Submission$SubmissionFutureTask.run(Submission.java:888)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:657)
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
at java.lang.Thread.run(Thread.java:662)Did you add Gmail's certificate to the trust store? Check this link: Configuring SSL
Maybe you are looking for
-
Receiving "Invalid char in text." error from file adapter
I'm testing a file adapter and am receiving the following error: Invalid char in text. The invalid character seems to be the ascii Record Separator character, Hex 1E, HTML Is it possible for me to modify the file adapter schema to handle this charact
-
Upgraded to itunes 6.0.2 - now playback pauses randomly again and again
hi, i've got an emac G4 800 with panther 10.3.9. i got the software update for itunes 6.0.2 and now the playback pauses and then starts again several times during any song. vEry annoying. please any help out there? i've already combed the threads. da
-
My Mac Mini is running on iOS 10.6.8 can it be loaded with 7.0 or higher?
My Mac Mini is running on iOS 10.6.8 can it be loaded with 7.0 or higher?
-
Double character escaping???
My problem is the following: The value of a column in the database called 'Titel' is: 'Oracle & J2EE' When doing a query using the oracle.jbo.html.databeans.XmlData object the output comes as following in the XML stream: <Titel>Oracle & J2EE</Tit
-
Flash Player and Ascender Compact Asian Fonts file format for fonts
Hi all, Looks like ACAF file format for fonts has significant advantages in terms of memory to display CJK (Chinese, Japanese, Korean) characters presumably if embedded into SWF file. http://www.ascendercorp.com/pr/2006-10-05/ Are there any plans to