Error when clustering a Connection pool
We are testing the cluster feature of WebLogic 6.0 Sp2 on MS Win2K Pro and have
run into a problem trying to cluster the petstoreServer in the Petstore domain
to a remote machine. I cannot get the Connection pool, called "petstorePool",
to load on the remote managed server. This is preventing the database from working
properly on the remote managed server. What can I do to enable the Connection
Pool to load properly? Below is the boot-up window for the remote managed server.
Starting Cluster Service ....
<Jul 13, 2001 8:19:40 AM CDT> <Error> <JDBC Connection Pool> <Cannot startup con
nection pool "petstorePool" Cannot load driver class: COM.cloudscape.core.JDBCDr
iver>
<Jul 13, 2001 8:19:43 AM CDT> <Critical> <WebLogicServer> <Failed to invoke star
tup class "StartBrowser", java.lang.ClassNotFoundException: com.bea.estore.start
up.StartBrowser>
<Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <ListenThread listening
on port 7007, ip address 10.10.10.61>
<Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <SSLListenThread listeni
ng on port 7008, ip address 10.10.10.61>
<Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <WebLogic Server started
>
could you post your managed server's start script?
Make sure Cloudscape's libs are in the classpath.
Andy Levy wrote:
> We are testing the cluster feature of WebLogic 6.0 Sp2 on MS Win2K Pro and have
> run into a problem trying to cluster the petstoreServer in the Petstore domain
> to a remote machine. I cannot get the Connection pool, called "petstorePool",
> to load on the remote managed server. This is preventing the database from working
> properly on the remote managed server. What can I do to enable the Connection
> Pool to load properly? Below is the boot-up window for the remote managed server.
>
> Starting Cluster Service ....
> <Jul 13, 2001 8:19:40 AM CDT> <Error> <JDBC Connection Pool> <Cannot startup con
> nection pool "petstorePool" Cannot load driver class: COM.cloudscape.core.JDBCDr
> iver>
> <Jul 13, 2001 8:19:43 AM CDT> <Critical> <WebLogicServer> <Failed to invoke star
> tup class "StartBrowser", java.lang.ClassNotFoundException: com.bea.estore.start
> up.StartBrowser>
> <Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <ListenThread listening
> on port 7007, ip address 10.10.10.61>
> <Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <SSLListenThread listeni
> ng on port 7008, ip address 10.10.10.61>
> <Jul 13, 2001 8:19:43 AM CDT> <Notice> <WebLogicServer> <WebLogic Server started
> >
Similar Messages
-
Shared Services API - Error when getting datasource weblogic/pool/PooledConnectionDataSource
Hello,
I have a program that connects to shared services using Java APIs. The code is usually working fine on other environment.
This one is on EPM version 11.1.2.1 and I get an error after this procedure --> system = CSSSystem.getInstance(context, "");
Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.RegistryUtils buildConnFromDriverManager
WARNING: Check whether Oracle Home and Instance environment variables are defined appropriately. RootCause : weblogic.jdbc.sqlserver
.SQLServerDriver
Error when getting datasource weblogic/pool/PooledConnectionDataSource
Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.RegistryUtils createNewConnection
SEVERE: Failed to create connection from data source. RootCause:weblogic/pool/PooledConnectionDataSource.
Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.exceptions.RegistryException <init>
INFO: Registry Exception Occured - Failed to create new database connection using datasource.RootCause:[weblogic/pool/PooledConnecti
onDataSource]
Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.Registry lookupComponentsWithException
INFO: EPMREG-11045
Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.exceptions.RegistryException <init>
INFO: Registry Exception Occured - Failed to create new database connection using datasource.RootCause:[weblogic/pool/PooledConnecti
onDataSource]
Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.Registry lookupWithException
INFO: EPMREG-11038
Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.exceptions.RegistryException <init>
INFO: Registry Exception Occured - com.hyperion.hit.registry.exceptions.RegistryException: Failed to create new database connection
using datasource.RootCause:[weblogic/pool/PooledConnectionDataSource]
Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.Registry lookup
INFO: EPMREG-11038
Jan 27, 2015 9:36:44 AM com.hyperion.css.registry.RegistryManager RegistryManager
SEVERE: Failed to initialize EPM Shared Services security instance. Component SYSTEM9/FOUNDATION_SERVICES_PRODUCT/SHARED_SERVICES_PR
ODUCT is null in EPM System Registry. Verify EPM System Registry configuration.
java.lang.NullPointerException
at start.initialize(start.java:84)
at start.Sample(start.java:59)
at cc.main(cc.java:10)
I guess it is something with the SQLServer driver.Do you have any ideas?
My ORACLE_HOME and ORACLE_INSTANCE are set correctly.
Thanks in advance,
Regards,
NicolasHello,
I finally got it working!
I added the weblogic libraries located under EPM/Middleware/wlserver_10.3/server/lib, and now it works fine.
It was a pain to find it out, because the error message did not specify that it was a missing library..
Anyway, if it helps, here is the list of external libraries I am using:
"wlssapi.jar"
"wlssapi-internal.jar"
"wlss-datatier.jar"
"wlss-descriptor-binding.jar"
"wlssdiameter.jar"
"wlssechosvr.jar"
"wlss-mbeaninfo.jar"
"WLSSSecurityProviders.jar"
"wlthint3client.jar"
"wlw-langx.jar"
"wlw-langx-ja.jar"
"wlw-langx-ko.jar"
"wlw-langx-zh_CN.jar"
"wlw-langx-zh_TW.jar"
"wlw-wsee-soapfault.jar"
"xmlparserv2_sans_jaxp_services.jar"
"xmlrpc-2.0.1.jar"
"audit-client.jar"
"castor-1.0.5.jar"
"com.bea.core.apache.commons.pool_1.3.0.jar"
"commons-lang-2.1.jar"
"css.jar"
"dms.jar"
"interop-sdk.jar"
"ojdl.jar"
"quartz.jar"
"regexp.jar"
"registry-api.jar"
"scheduler_ces.jar"
"sqljdbc.jar"
"wf_ces_utils.jar"
"wf_eng_agent.jar"
"wf_eng_api.jar"
"wf_eng_server.jar"
"wlcipher.jar"
"wlclient.jar"
"wlcommons-logging.jar"
"wlconnector.jar"
"wldb2.jar"
"wldeploy.jar"
"wlinformix.jar"
"wl-j2ee-client.jar"
"wljarbuilder.jar"
"wljmsclient.jar"
"wljmxclient.jar"
"wllog4j.jar"
"wlnmclient.jar"
"wlpool.jar"
"wlsafclient.jar"
"wls-api.jar"
"wlss.jar"
"wlss_i18n.jar"
Thank you all for your help.
Regards,
Nicolas -
Error while creating JDBC connection pool for MSSQL database
Hi,
From my windows m/c, I am trying to configure a connection pool to connect to
an MSSQL database on another m/c. While setting the targets, i get the error :-
<Mar 11, 2004 6:17:52 PM GMT+08:00> <Error> <JDBC> <Cannot startup connection
pool "gcdb_connpool" Cannot load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
I have added the path of the jars for the driver in the classpath.
Any help would be appreciated.
Thanks.Hi. Read the weblogic startup script, and follow how it creates
a classpath argument for the server. You must get the driver jars
into that classpath.
Joe
Neha wrote:
Hi,
From my windows m/c, I am trying to configure a connection pool to connect to
an MSSQL database on another m/c. While setting the targets, i get the error :-
<Mar 11, 2004 6:17:52 PM GMT+08:00> <Error> <JDBC> <Cannot startup connection
pool "gcdb_connpool" Cannot load driver class: com.microsoft.jdbc.sqlserver.SQLServerDriver>
I have added the path of the jars for the driver in the classpath.
Any help would be appreciated.
Thanks. -
Error Message while creating connection pool
Hi all,
I got the following error message while creating connection pool for the
SQL Server thru the Application Server Admin Console.
The message is,
An error has occured.
Operation 'create.Jdbc.ConnectionPool' failed in 'resources' Config Mbean. Target exception message :
JdbcConnectionPool Already Exists: cannot add duplicate.
But the connection pool for the SQL Server was not there in the list.
What may be the possible reason for this error.
i was trying to deploy a BMP entiy bean using the Sun Application Server.
Prior deploying i just tried to create connection pool and test the connection using the Admin Console
Please help me by providing a solution.Kriti Sundar Mazumder wrote:
Hi
I am getting an following error message, while creating database connection pool
in weblogic 7.
"<Jun 18, 2004 4:52:36 AM CDT> <Error> <JDBC> <001060> <Cannot startup connection
pool "MyJDBCConnectionPool" java.sql.SQLException: [IBM][JDBC Driver] CLI0647E
Error allocating DB2 environment handle, rc=-1.>"
Can anyone help me out in this regard
Regards
KritiHi. I am no expert, but it sounds like a problem with the privileges the user
has... The best thing is to step back to a simpler environment. Can you try
connecting to DB2 with a simple program like utils.dbping? Please look at our
driver docs for the DB2 driver, because there are several variations in connect
properties depending on the type of DB2 you are connecting to...
Joe -
I keep getting an unknown error when trying to connect to the store. I ran diagnostics and it says secure link to itunes store failed. I've tried all suggestions from apple and nothing will work.
Please HelpI received this email from Apple and this corrected the problem for me... I only had to reset the iTunes cache
1) Open iTunes
2) At the top menu, click File > Preferences (iTunes > Preferences on a Mac)
3) In the Preferences menu, click the Advanced tab
4) In the Advanced menu, you should see a button that says "Reset Cache". Please click this button. -
Getting Error when trying to connect to the Primavera database. PPM V7 SP3
Hi Guys,
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [com/primavera/bre//com/primavera/bre/integration/intgconf.xml]: Invalid destruction signature; nested exception is org.springframework.beans.factory.support.BeanDefinitionValidationException: Couldn't find a destroy method named 'destroy' on bean with name 'mailService'
I have looked into the intgserver.jar under P6IntegrationAPI/lib and looked the com.primavera.infr.srvcs.MailServiceImpl.java and can see that there is no destroy method whereas it is defined in the com.primavera.bre.intergration.intgconf.xml as below
<!-- provides mail services -->
<bean id="mailService" class="com.primavera.infr.srvcs.MailServiceImpl" init-method="init" scope="singleton" destroy-method="destroy"*+>
<property name="adminManager"><ref bean="adminManager"/></property>
<property name="threadPool"><ref bean="threadPool"/></property>
<property name="settingsManager"><ref bean="settingsManager"/></property>
</bean>
I get the above error when trying to connect to the Primavera database. I use PPMV7 SP3 and I have installed the Integration API from EPPMV7 bundle.
My demo's are working fine.
Any help would be appreciated.
Thanks,
Kajal.Hi Marc,
I am using a userid (is an admin)
Using global login method and provided userid & password in integration settings.
In the machine profiles, provided userid, password and domin.
Not providing domain in weblogin.
With all the above I am still getting error "Could not authenticate the specified user. %0" for HFM application
And with the same settings I am not getting any error to connect to essbase cube.
Any suggestions?
Thanks
Krishna -
Error when opening RFC Connection
Hello SAPers,
I have configured PDA in my ECC6.0 --- XI (ABAP+JAVA) Which was successful.
In my Web Dyno Pro Content Administrator
I have performed the JCO Destinations test which was successful
when I go to the URL
http://server:port/webdynpro/dispatcher/sap.com/isisrsrsmenapp/MainApp
entered the store number
In the next menu
Inventory Lookup when I enter the Article number and press Go Button
It is giving me error " Error when opening RFC Connection "
Rest of them working perfectly...
Do I need to do any configuration In Visual Admin?
Could anyone advice
Thanks In Advance
HariKrishnaThanks it got solved it was an error in RFC, I have changed the RFC now it is working fine
Thanks
Hari -
Errors when trying to connect CRM 7.0 to Enterprise Search
Hi!
I encountered 2 errors when trying to connect to a CRM 7.0 system as a backend system from Enterprise Search Cockpit.
The first error is related to ESH_INT_GET_TREX_DESTINATION with a message of ESH_OM_OBJ_MODEL_REP 517:
http://img39.imageshack.us/img39/9722/eserrors1.jpg
The second error is related to "Errors during data cluster import from remote system":
http://img97.imageshack.us/img97/7976/eserrors2.jpg
I don't know if these two errors are related, but any help or suggestions will be greatly appreciated!!
Thank you!
Regards,
Paul4.0 should be fine. My initial thoughts were on the script targetting a framework lesser than 3.5. Am bummed about the error cause in the line
ClientContext clientContext =
new ClientContext(client);
it just creates an instance of the ClientContext class. It should have nothing to do with permissions cause it is not even trying to connect to the sharepoint site. So it looks like it can't find the assembly. Can you place the asembly
under the Microsoft.Net\Framework folder of your machine. SSIS looks for custom assemblies in this folder on design time (Refer
this) Worth a try hey!
http://btsbee.wordpress.com/ -
Oracle Fatal error when trying to connect through sqlplus
Hi,
I am getting the below error when trying to connect to instance through sqlplus
Database version is :10.2.0.3
Operating system= Solaris Operating System (SPARC 64-bit)
OS version=5.10
[lscbd07p2*BMC]-\ORACLE>sqlplus
SQL*Plus: Release 10.1.0.4.0 - Production on Fri Nov 9 07:48:24 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: /as sysdba
ld.so.1: oracle: fatal: relocation error: file /u01/app/oracle/product/db/10.1.0.4/lib/libjox10.so: symbol kststop_: referenced symbol not found
ERROR:
ORA-12547: TNS:lost contact
Enter user-name:
Could you all please give me suggestions in order to solve this problem.
Thanks
MannuHave you recently patched/upgraded? This sounds like there might have been a problem relinking the executables / libraries, and/or a permissions problem. For example you may be referencing a 32 bit library with your 64 bit client.
I believe I recently read a similar case - check Metalink for this symptom.
HTH
Regards Nigel -
There was an error when attempting to connect to the Windows Live Calendar service.
I keep getting a message when I want to check my email you are not connected (but I am,as I can get in my Webbrowser) and the following error message
There was an error when attempting to connect to the Windows Live Calendar service. If the error persists, check to see if there's an upgrade of Windows Live Mail available or contact a service representative.
Can anyone help me, no sense sending me an email, I cannot get into my email.
Lucienne1Hi,
Try installing Windows 2012 Live Essentials here.
You will have to set up your Pop 3 or IMAP email account after installing the updated version per above.
Are you using an Internet Service Provider Email account or a cloud based (IMAP) Email account?
Pop 3 accounts will require incoming and outgoing server addresses and any additional security settings required by your ISP. If you don't have the required settings for Pop 3 you will have to contact your ISP for those.
Jaco
****I am not an HP employee****
Errare humanum est. -
Keep getting sync service error when trying to connect my iphone 5S.
Keep getting sync service error when trying to connect my iphone 5S. It freezes itunes and I can't do anything else. I see that there is an update for my phone and I need to back up, upload new apps, etc before installing. I plug my phone in and get this error every time. I am using a Win 7 SP1
Howdy Susie48825,
It sounds like you are getting an error that mentions the sync services when you connect your phone to your computer and so you cannot sync your device. I would use the troubleshooting from the following article that mentions an error regardign the sync services named:
iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
http://support.apple.com/kb/ts2690
Start with these steps:
1. Check that iTunes is up-to-date
Ensure that you have updated to the latest version of iTunes.
2. Reset Sync History
Resetting your Sync History is a simple step which may resolve some syncing issues. If this works, iTunes will prompt to Merge or Replace the information on your device when you next attempt to sync. To reset your Sync History:
Disconnect your device.
Open iTunes.
From the Edit menu, choose Preferences.
Click the Devices tab.
Click the Reset Sync History button, and then reconnect your device.
If this resolves the issue, and you know all of your contacts, calendars, bookmarks and notes are on your computer:
Reset the Sync History again using the steps above.
Select the device in iTunes and click the Info tab.
Scroll down to the Advanced section, and under "Replace information on this iPhone/iPad/iPod touch" select Contacts or Calendars.
Click Apply.
If the issue persists, and you know all your contacts, calendars, bookmarks and notes are on your iPhone, iPad, or iPod touch:
Remove all of the contact and calendar information from Outlook.
Select the device in iTunes and click the Info tab.
Scroll down to the Advanced section, and under "Replace information on this iPhone/iPad/iPod touch" make sure Contacts and Calendars are not selected.
Click Apply.
There are additional steps to use in the article if needed, but these will get you started.
Thank you for using Apple Support Communities.
All the very best,
Sterling -
ORA-12560: TNS:protocol adapter error when trying to connect
hopefully somebody can help me out... the problem i'm having is connecting to the scott/tiger database. i keep getting :
"ORA-12560: TNS:protocol adapter error" when trying to connect to it. it worked previously, but i unistalled oracle 8i personal and reinstalled it. now it doesn't let me connect. what's going on?
thanx,
uriahYou can run the net8 assistant to set up your tnsnames.ora file.
start/programs/oracle/network administration/net8 assistant
When you are done it should look something like this:
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = )
(Port = 1521)
(CONNECT_DATA = (SID = ORCL))
Bev -
Helpme I have error when I try connect from struts to web service
helpme I have error when I try connect from struts to web service using basic authentication . the error message is
[SOAP Exception: fault code= SOAP-ENV Protocol; msg=Unsupported response content type "text/html" must be "text/xml"; ] Response was <html><body> 401 Unauthorized </body></html>
I'm not using ldap for authentication only xml (jazx-data.xml) ... I already create user with jazn.jar for that user , and I dont know why it still error like that ..
Please helpme I don't have anytime more to find the mistake , ??
I'm using Jdeveloper 9i , and oc4j 9.0.4 Server (Not embedded with Jdev)
But when I use with sample java client it success .....
then I try with Struts the response is unsupported response content type text/html must be text/xml response was 401 Unauthorized1.The reason why this error occurs is, we are getting non SOAP response when the program is expecting a SOAP response. Did you set the proxy server correctly? Try to handle the exception and see the content type of the response in your program.
2. While creating the client stub u must check an option for authentication for webservice .should solve ur problem.
thanks
sirisha -
Error While Creating Informix Connection Pool
Hi,
I am trying to port an application from Weblogic 6.1 to Weblogic 8.1. The Application accesses Informix database. I used the following driver, url and properties while connecting to this database using Weblogic 6.1
url:->jdbc:weblogic:informix4:snss_live
Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
Properties :->
port=22000
user=snssadmn
password=snssadmn
server=10.115.26.40
The above used to work fine with weblogic 6.1
With Weblogic 8.1, I am using the following properties
url :-> jdbc:bea:informix://10.115.26.40:22000;informixServer=10.115.26.40;databaseName=snss_live
Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
Properties :->
informixServer=10.115.26.40
user=snssadmn
portNumber=22000
databaseName=snss_live
serverName=10.115.26.40
However using these properties I am getting the following error while deploying the Connection Pool to the Managed Server
<Dec 29, 2004 12:26:53 PM EST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "Btv_Vms_Pool": [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES.>
<Dec 29, 2004 12:26:54 PM EST> <Error> <JDBC> <BEA-001150> <Connection Pool "Btv_Vms_Pool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES..>
Any idea as to why this is happening
Regards
Nitin NairHi. I suspect that the databaseName property is causing the problem in
8.1. Remove it and see if that works. Also, try running:
java utils.dbping, and giving it the properties it asks for, for your
Informix connection. Once it succeeds in making a connection, it will
print out the URL and properties it used. Then define the pool with
those (and only those) properties and URL.
Joe
Nitin Nair wrote:
Hi,
I am trying to port an application from Weblogic 6.1 to Weblogic 8.1. The Application accesses Informix database. I used the following driver, url and properties while connecting to this database using Weblogic 6.1
url:->jdbc:weblogic:informix4:snss_live
Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
Properties :->
port=22000
user=snssadmn
password=snssadmn
server=10.115.26.40
The above used to work fine with weblogic 6.1
With Weblogic 8.1, I am using the following properties
url :-> jdbc:bea:informix://10.115.26.40:22000;informixServer=10.115.26.40;databaseName=snss_live
Driver ClassName :-> weblogic.jdbc.informix.InformixDriver
Properties :->
informixServer=10.115.26.40
user=snssadmn
portNumber=22000
databaseName=snss_live
serverName=10.115.26.40
However using these properties I am getting the following error while deploying the Connection Pool to the Managed Server
<Dec 29, 2004 12:26:53 PM EST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "Btv_Vms_Pool": [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES.>
<Dec 29, 2004 12:26:54 PM EST> <Error> <JDBC> <BEA-001150> <Connection Pool "Btv_Vms_Pool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: [BEA][Informix JDBC Driver][Informix]INFORMIXSERVER does not match either DBSERVERNAME or DBSERVERALIASES..>
Any idea as to why this is happening
Regards
Nitin Nair -
How to catch exception when have max connection pool
hi,
i have define in oracle user that i could have max 10 sessions at the same time.
I have jdbc datasource & connection pool defined at glassfish server(JSF application).
now, if in application is too many queries to the database then i have error: nullpointer exception - becouse when i try to do:
con = Database.createConnection(); - it generates nullpointer exception becouse there isn't free connection pool
i try to catch exception like this:
public List getrep_dws_wnioski_wstrzymane_graph() { int i = 0; try { con = Database.createConnection(); ps = (Statement) con.createStatement(); rs = ps.executeQuery("select data, klasa, ile_dni_wstrzymana, ile_wnioskow from stg1230.dwsww_wstrzymane_dws8 order by data, klasa, ile_dni_wstrzymana, ile_wnioskow"); while(rs.next()){ rep_dws_wnioski_wstrzymane_graph.add(i,new get_rep_dws_wnioski_wstrzymane_graph(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4))); i++; } } catch (NamingException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } catch (NullPointerException e) { e.printStackTrace(); throw new NoConnectionException(); // catch null 1 } finally { try { con.close(); } catch (SQLException e) { e.printStackTrace(); } catch (NullPointerException e) { e.printStackTrace(); throw new NoConnectionException(); // catch null 2 } } return rep_dws_wnioski_wstrzymane_graph; }
but at line:
con.close();
i have nullpointerexception
and
at line
throw new NoConnectionException(); // catch null 2
i have: caused by exception.NoConnectionException
what's wrong with my exception class? how to resolve it?
public class NoConnectionException extends RuntimeException{ public NoConnectionException(String msg, Throwable cause){ super(msg, cause); } public NoConnectionException(){ super(); } }
at web.xml i have defined:
<error-page> <exception-type>exception.NoConnectionException</exception-type> <location>/NoConnectionExceptionPage.jsp</location> </error-page>thanks,
i did it and i have error:
java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
at logic.Database.createConnection(Database.java:37): conn = ds.getConnection();
public class Database {
public static Connection createConnection() throws NamingException,
SQLException {
Connection conn = null;
try{
Context ctx = new InitialContext();
if (ctx == null) {
throw new NamingException("No initial context");
DataSource ds = (DataSource) ctx.lookup("jdbc/OracleReports");
if (ds == null) {
throw new NamingException("No data source");
conn = ds.getConnection(); // here's exception when max connections to database
if (conn == null) {
throw new SQLException("No database connection");
} catch (NamingException e) {
e.printStackTrace();
throw new NoConnectionException();
} catch (SQLException e) {
e.printStackTrace();
throw new NoConnectionException();
catch (NullPointerException e) {
e.printStackTrace();
throw new NoConnectionException(); // obsluga bledy na wypadek jesli braknie wolnych polaczen do bazy
return conn;
}and at my ealier code i have error:
at logic.GetDataOracle.getrep_dws_wnioski_wstrzymane_graph(GetDataOracle.java:192)
at line: con = Database.createConnection();
in code:
public List getrep_dws_wnioski_wstrzymane_graph() {
int i = 0;
try {
con = Database.createConnection();
ps = (Statement) con.createStatement();
rs = ps.executeQuery("select data, klasa, ile_dni_wstrzymana, ile_wnioskow from stg1230.dwsww_wstrzymane_dws8 order by data, klasa, ile_dni_wstrzymana, ile_wnioskow");
while(rs.next()){
rep_dws_wnioski_wstrzymane_graph.add(i,new get_rep_dws_wnioski_wstrzymane_graph(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4)));
i++;
} catch (NamingException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
} catch (NullPointerException e) {
e.printStackTrace();
throw new NoConnectionException();
} finally {
try {
if(con != null)
con.close();
} catch (SQLException e) {
e.printStackTrace();
} catch (NullPointerException e) {
e.printStackTrace();
throw new NoConnectionException();
return rep_dws_wnioski_wstrzymane_graph;
}so what's wrong?
i have limit max sessions 10 at oracle so i set at my connection pool 5 connections as max. But when i get max 5 sesssins and try to execute next query then i can't catch exception..
Maybe you are looking for
-
How to use the WRT54G2 as a switch...not a router?
I've got one linksys wirless router that's providing DHCP addresses, doing MAC filtering, and allowing access to the internet (it's hooked up to our DSL modem). The wireless signal doesn't reach to our other building (lots of brick and steel in the
-
Hi Experts, I am trying to build data in the physical layer, business model and mapping as well as presentation layer in BIEE 11g. Now, I have 3 relational tables like this, 1. Account (Parent, Child) 2. Year (Parent, Child) 3. Data (Account, Year, A
-
Problems during material replication from SRM 5.0 to ECC 6.0
Hello all, I tried to replicate material master from ECC to SRM but i am not successful. System can able to replicate all the product categories but not the material. System showing the process is done and it is showing green light when i drilldown.
-
Outlook mail syncronization in E75
Hi I'm using mail for exchange in E75 for accesing my corporate account which is on outlook. I'm not able to sync the deleted item folder i.e when I delete the mail from cell it doesn't gets deleted from server .Even performing empth deleted items in
-
My 2009 Macbook runs OS 10.7.5. The finder screen frequently gets 'lost' behind other open programmes. It can be seen as one moves to and from dashboard mode but cannot be activated. Anyone got any ideas?