Conn.Pooling Error !!!
My JRUN Based Conn.Pooling fails stating this reason.
java.sql.SQLException: Io exception: Connection refused
(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12500)(ERROR_STACK=
(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12540)(EMFI=4))(ERROR=
(CODE=12560)(EMFI=4))(ERROR=(CODE=510)(EMFI=4))(ERROR=
(BUF='IBM/AIX RISC System/6000 Error: 11: Resource temporarily
unavailable'))))
We are using Oracle815 with Thin Drivers(classes12.zip) in our
JRUN is that 815 does not support conn.pooling
Are you using a Singleton pattern? Maybe you are inadvertantly creating many pool instances instead of using the same pool all the time?
I finally see what you are trying to do in your free method, and I would still suggest rethinking this. Usually you close the statement and result sets where you have used them in your code ...possibly in a dafai block ...er, sorry ...a finally block.
Maybe your problem stems from your altered free method, or maybe you are accidentally creating more than just one single instance of the pool. What is your max and initial connections set to? Do they exceeed the limitations of your database configuration for concurrent connections?
Since this is a version of the original Marty Hall pool, would you like to try a link to his pool ver batim? You could replace your pool with one we know works?
[url http://forum.java.sun.com/thread.jsp?forum=48&thread=417491&start=6]Try here...
Similar Messages
-
Cannot get a connection, pool error Timeout waiting for idle object
my connection pool setting is
maxActive="3" minIdle="2" maxWait="10000" removeAbandoed="true" logAbandoned="true" removeAbandonedTimeout="30" autoreconnection="true"
we have 7 people hitting the group of search functions ,
about 3 minutes I get
I got error like
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at Deferment.showResult.checStudent(showResult.java:135) at Deferment.showResult.doPost(showResult.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
I just wonder
1) Cannot get a connection, pool error Timeout waiting for idle object-> cause by connection pool leaking or other problem.
2) Setting the maxactive to -1 ( suggestion from Google) , if I set my connection to ulimit , waht should I put on minIdle="2"
3) How can I test my connection pool have problem or not ? is
SHOW PROCESSLIST; tolding me someinformation? I use Mysql
Thank you!I try something like ps2 = conn.prepareStatement(target);
ps2.setString(1, UNumber); // set input parameter
rs = ps2.executeQuery();
sendMail = 0;//how many rows we can find.
while (rs.next()) {
sendMail++;
ps2.close();
rs.close();
conn.close();
if ((count1 == 0) || (count2 == 0)) {
conn.rollback();
} else {
conn.commit();
conn.setAutoCommit(true);
ps.close();
calstat2.close();
conn.close();
calstat = (CallableStatement) conn.prepareCall("{call findStudent}");
calstat.executeQuery();
calstat.close();
conn.close();is that enought? what else I should do to make sure I did close all the connection, after I use it ?
thank you -
Strange transaction behaviour on WLS conn pool
I am using BEA WLS 8 anyway
What I have done:
1. I developed EAR and deployed it on BEA WLS.
2. I made conn pool and corresponding Data Source.
What I am doing:
1. I am using select ... for update nowait statement for row locking
The issue:
1. user-1 as operator login to app and select 1 record (select ... for update nowait) which supposed to lock particular selected row.
2. user-2 as supervisor login to app and select the same record (select ... for update nowait) via different menu of course.
3. And the error is not showing. I am expecting resource busy error due to row locking
My investigation:
1. When user-1 locks particular row. I could see the lock session still holding the row.
2. When user-2 do whatever it does esp on committing a transaction, the locking that belongs to user-1 get lost.
3. When user-2 is not committing any transaction but gets logout from app, the locking that belongs to user-1 get lost too.
My suspect:
1. Kind of shared transaction session or something.
How to solve this issue?
Is there something to do with conn pool settings on BEA WLS?
Regards
EricHi Joe,
I have done your instructions and this is the report.
I used BEA's Oracle Driver (Type 4) Versions:8.1.7.9.0.1.9.2.0
URL: jdbc:bea:oracle://ip_address:my_port;spyAttributes=(log=(file)spy.log;timestamp=yes;logTName=yes)
Driver Classname: weblogic.jdbc.oracle.OracleDriver
For extra information (perhaps could help) this is my connection pooling settings:
initial capacity 1
maximum capacity 15
capacity increment 1
statement cache type LRU
statement cache size 10
Login Delay: 0 seconds
Seconds to trust an idle pool connection: 0 seconds
Remove Infected Connections Enabled: true
Allow Shrinking: true
Shrink Frequency: 900 seconds
Enable Connection Leak Profiling: false
Enable Connection Profiling: false
Test Frequency: 0 seconds
Test Reserved Connections: false
Test Created Connections: false
Connection Reserve Timeout: 10 seconds
Connection Creation Retry Frequency: 0 seconds
Inactive Connection Timeout: 0 seconds
Maximum Waiting for Connection: 2147483647
Maximum Connections Made Unavailable: 0
Test Table Name: SQL SELECT 1 FROM DUAL
Init SQL: blank here
And here is my Data Source settings:
Row Prefetch Enabled: false
Row Prefetch Size: 48
Stream Chunk Size: 256 bytes
Honor Global Transactions: true
Emulate Two-Phase Commit for non-XA Driver: false
And this is the spy.log
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.997)>> Connection[1].getMetaData()
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> OK (DatabaseMetaData[1])
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> DatabaseMetaData[1].getDatabaseProductName()
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> OK (Oracle)
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> DatabaseMetaData[1].getDatabaseProductVersion()
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> OK (10.2.0.2.0)
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> Connection[1].close()
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:35.013)>> OK
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.482)>> Connection[2].getTransactionIsolation()
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.482)>> OK (2)
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.497)>> Connection[2].prepareStatement(String sql)
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.497)>> sql = SELECT 1 FROM DUAL
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.528)>> OK (PreparedStatement[1])
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.528)>> PreparedStatement[1].execute()
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> OK (true)
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> PreparedStatement[1].getResultSet()
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> OK (ResultSet[1])
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> ResultSet[1].close()
spy(ExecuteThread: '0' for queue: 'weblogic.admin.HTTP')(2008/07/08 11:35:39.544)>> OK
spy(ExecuteThread: '2' for queue: 'weblogic.admin.RMI')(2008/07/08 11:48:23.653)>> Connection[2].rollback()
spy(ExecuteThread: '2' for queue: 'weblogic.admin.RMI')(2008/07/08 11:48:23.653)>> OK
spy(ExecuteThread: '2' for queue: 'weblogic.admin.RMI')(2008/07/08 11:48:23.653)>> Connection[2].close()
spy(ExecuteThread: '2' for queue: 'weblogic.admin.RMI')(2008/07/08 11:48:23.669)>> OK
Hope this adequate to find out the problems.
Regards -
903/902/BC4J can't get data-sources.xml conn pooling to work in production; help
I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
instance. I've had this problem since I started deploying in development on 902. So it's
some basic problem that I've not mastered.
I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
and my BC4J apps then throw exceptions, can't get conn.
I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
-Djbo.doconnectionpooling=true
symptom
Connections are created and closed. Instead of being put back into the pool managed by oc4j,
what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
closed.
I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
being opened for each conn. ;( grrrrrrr
Does anyone have a clue as to why this is happening?
Thanks, curt
my data-sources.xml
<data-sources>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
connection-driver="oracle.jdbc.driver.OracleDriver"
ejb-location="jdbc/DEVDS"
location="jdbc/DEVCoreDS"
name="DEVDS"
password="j2train"
pooled-location="jdbc/DEVPooledDS"
url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
username="jscribe"
xa-location="jdbc/xa/DEVXADS"
inactivity-timeout="300"
max-connections="50"
min-connections="40"
/>
</data-sources>I've run another test using local data-source.xml, that's packaged in the .ear. Still
pooling under BC4J doesn't work??
A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
I just tested so called local connection pooling, where I edited the data-sources.xml that
gets packaged in the ear, to include the min/max params and re-ran my test.
Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
new socket and not an old pooled conn socket.
???? What the heck??
Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
pool and not close the socket??
Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
Any thoughts on how to figure out what's not configed correctly or has a bug?
Thanks, curt -
Shared Pool error in Oracle 10.1.0.5
Setup : 3-node RAC clustered databases
OS version : RHEL 4.5
DB version : 10.1.0.5
Storage : ASM diskgroups for C/R/D files & archivelogs on SAN box
applications : no. of OLTP applications running on a separate app server
We are getting ORA-04031 SHARED POOL MEMORY error . There are three nodes : node1, node2 & node3 each running on RHEL AS4 OS . The sga components are not tuned automatically i mean there is no automated sga tuning or resizing . We have set each SGA component manuallay when required. All the c/r/d files are stored on ASM Diskgroups .
From last night we are facing the SHARED POOL MEMORY issue . There are number of OLTP applications running at front end and the load is more on node3 . Due to the saturation of shared pool it affected the applications and the CPU utilization on App server was almost 90%. But the CPU utilization on each rac node was just below 30%. The Client's complained slow performance of applications and in fact few user sessions hung up.
What we found in the alert log is the ORA-04031 shared pool error . Which was casuing the problem and the applications started to work very slowly . For workaround we increased the size of the SHARED_POOL_SIZE parameter as well as we flushed the shared pool memory . Now the applications were running fine. I have also observed that there were 454 INACTIVE sessions in the node3. Will these sessions have any impact on performance?
But i dont know whether it will be fixed for future as well. But Can anyone suggest me how could i approach for resolving this issue permanently ?
I know that we are still using 10.1.0.5 release and also one more thing is that the SWAP space in one of the node is 4GB short compared to other two nodes swap space. I cant post you the logs please.Whatever i have observed and done i have posted here.
Any suggestions will be hugely appreciate. Thanks taking out sometime to helping me out.
Regards,
imran khanI understand SB and i know that 10gr1 is going to be de-supported in dec,2011. But for atleast we can fix the problem for more two months . There are few critical applications which required minimal downtime but at present the client doesn't want to have any outage. Please help.
Thanks. -
Can I set the Datasource/Conn-pool credential programmatically ?
Hi all,
Within our ADF BC + Faces application, we use Crystal Report for our reporting solution.
Crystal use different db connection from one used by the ADF BC. so I create a Datasource in OAS, to be used only by Crystal Report.
Here is my problem :
We also use VPD. So I have requirement to login as DifferentUser to make the VPD run correctly.
How can I programmatically set the username and password of the datasource/conn-pool based on who is logging in to the application ?
Thank you for your help,
xtantoGood question; I don't know the answer. Try a post in the Identity Management section.
Perhaps something with Enterprise Authentication may help. -
[cross posted to the j2ee forum]
I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
instance. I've had this problem since I started deploying in development on 902. So it's
some basic problem that I've not mastered.
I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml and
have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from
my BC4J ears, and published the jndi jdbc source in my oc4j common data-sources.xml.
I've tested that this is the place controlling the conn URL/login passwd by commenting it
out of config/data-sources.xml and my BC4J apps then throw exceptions, can't get conn.
I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
-Djbo.doconnectionpooling=true
symptom
Connections are created and closed. Instead of being put back into the pool managed by oc4j,
what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
closed.
I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
being opened for each conn. ;( grrrrrrr
Does anyone have a clue as to why this is happening?
Thanks, curt
my data-sources.xml
<data-sources>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
connection-driver="oracle.jdbc.driver.OracleDriver"
ejb-location="jdbc/DEVDS"
location="jdbc/DEVCoreDS"
name="DEVDS"
password="j2train"
pooled-location="jdbc/DEVPooledDS"
url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
username="jscribe"
xa-location="jdbc/xa/DEVXADS"
inactivity-timeout="300"
max-connections="50"
min-connections="40"
/>
</data-sources>Thanks Leif,
Yes, set it to the location jndi path.
A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
I just tested so called local connection pooling, where I edited the data-sources.xml that
gets packaged in the ear, to include the min/max params and re-ran my test.
Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
new socket and not an old pooled conn socket.
???? What the heck??
Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
pool and not close the socket??
Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
Any thoughts on how to figure out what's not configed correctly or has a bug?
Thanks, curt -
Hi friends,
This issue regarding Module Pool Error Handling
How to handle the multiple error on the same screen ,
For example in the below code you could see "Carrid is Invalid" when carrid is entred wrongly
"in the same way i also need " Connid is invalid" When the customer entres the wrong Connid
*Select single * from sflight into e_sflight*
where carrid = e_sflight-carrid AND
connid = e_sflight-connid AND
fldate = e_sflight-fldate.
IF NOT sy-subrc IS INITIAL.
MESSAGE ID 'ZADT' TYPE 'E'
NUMBER '002' WITH 'Carrid is invalid'.
Kindly let me know your feedback\
Thank you
SandyHi Sandy,
in PAI. " Also try to close your Questions as currently 8 out of 8 are unresolved
Chain. " For More info take F1 help on this Key word
field : carrid, connid. " These are the Screen Field names
module validate on chain-request.
endchain.
in Program.
module validate.
select single carrid into carrid
from scarr
where carrid = carrid.
if sy-subrc = 0.
select single connid into connid
from sflight
where connid = connid,
if sy-subrc NE 0.
message 'Enter Valid Connid' type 'E'.
endif.
else.
message 'Enter Valid Carrid' type 'E'.
endif.
endmodule.
Cheerz
Ram
Edited by: Ramchander Krishnamraju on Apr 12, 2010 11:48 AM -
I have pl/sql webservice that call from C#.net .
After call webservice in .net the jdbc connection of weblogic do not close
AND in Webloic have resources connection pool error .
then .net can not call this web service ..
Edited by: Esmaiel Soroor on May 31, 2013 8:34 PMThis is the wrong forum for this question.
CM. -
Memory Pool Error/s with VxWorks
Hi,
I am running Berkeley DB under vxWorks and am encountering memory pool errors. The version we are using is 4.5.20, and we are building a "Concurrent Data Store Application" (small footprint, MIPS64gnu).
The environment flags are set as follows:
(DB_INIT_CDB | DB_INIT_MPOOL | DB_CREATE | DB_SYSTEM_MEM)
The cache size is set to 1MB.
I believe I have found the offending routine. It is __db_tmp_open in db-4.5.20\env\env_open.c.
Initially I was receiving the following error:
db_starchoice: unable to create temporary backing file
db_starchoice: temporary open: /ata00/oracle/temp/BDB0-*/*: S_dosFsLib_ILLEGAL_N
AME
So, I modified the above mentioned routine to generate a legal file name. At which point the file name became:
/ata00/oracle/temp/BDB87bc4940
87bc4940 is the PID in hex.
I am no longer told that the file name is illegal, however, an exception is thrown with the following trace:
800a5bdc vxTaskEntry +c : excTask (0, 0, 0, 0)
8014dca8 excTask +b8 : sigPendKill (eeeeeeee, eeeeeeee, eeeeeeee, eeeeeee
e)
80159c28 sigPendKill +118: 801592b8 (eeeeeeee, 8014dcb0, 0, 0)
80159300 sigPendDestroy +248: sigismember (0, 0, 0, 7400ff01)
Do I have some configuration incorrect? Is there a known problem with this code, for which I am unable to find reference to?
Thx,
CoralieI have more information about this problem.
If I "disable" the routine __os_zerofill() in os_fzero.c, by having it always return (0), I no longer get an exception and my application appears to run smoothly. However, I have not determined what in this routine leads to the exception. And, I have no idea what the short and long term consequences of "disabling" this routine will be....
-Coralie -
Option of auto reclaiming 'abandoned' connection in DB conn pool
Hi, All,
It seems that by default DB conn pool implementation in Web AS 6.40 Java has the freature of automatically reclaiming 'abondoned' database connection when it detects a connection has been idle for a period of time. I wonder whether this feature is configurable because I want to turn it off. In some cases the JDBC connection got from pool needs to keep open all the time, so are the statement or preparedstmt.
Thanks in advance
JohnHi John
You can try increasing the max-pool size and if you observe any improvement.
Ignore the below if you already know how to tune the DB connections.
Change the max-pool-size to a higher number in domain.xml for creator domain.
<jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.pointbase.xa.xaDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="PointBasePool" pool-resize-quantity="2" res-type="javax.sql.XADataSource" steady-pool-size="8">
<property name="DatabaseName" value="jdbc:pointbase:server://localhost:9092/sun-appserv-samples"/>
<property name="Password" value="pbPublic"/>
<property name="User" value="pbPublic"/>
</jdbc-connection-pool>
Thanks
Srinivas
Creator Suppot -
Does Oracle8i *815) supports Conn.Pooling URGENT..SOS
Dear Friends
We are using Oracle8i Enterprise Edition Release 8.1.5.0.0. Here
and there i found that Advanced JDBC features are supported
(like conn pooling /data source usage etc ) only by 8.1.1.6
version onwards. How far this is true.
Is because of this my JRUN Based Conn. Pooling fails. It tries
and tries and just go out of service stating
========================================================
Err :
An Unexpected Excetpion has been detected in native code outside
VM. EXCEPTION_STACK_OVERFLOW occurred at Pc=0x77fod462
function name=(n/a)
library=(n/a)
========================================================
I am sure this happens when Data Base Connection Process is
going on.
Please CommnetThanks for that reply. But still some issues. What you have mentioned is you are writing your own conn.poll scheme using Oracle Connection Pool classes. Am i right ? Like OracleConnectionPoolDataSource etc etc.
I have used thsi with Tomcat with same set up at backend and it was working fine with me too .;
Now what i am doing is using JRUN's capabilities of Connection Pooling mechanisms (just look up / datasoruce creation/ conn.object retrieval ) . I have avoided all my of own codings. Still it faces porbs. this force me to thndk in this way.
your comments are eargly awaited.
[email protected]
Regards
Abhilash -
HELP : SM59 ABAP Conn. ERROR
Hi, everyone , I meet a SM59 ABAP conn. Error, when I want create ABAP conn. to ERP 6.0 SR3 . Please give me some advice, thanks a lot.
Questioin Describes:
Here are two servers:
Server A : include SRM server 7.0 and ERP 6.0 SR3
Server B: ERP 6.0 SR3
Now, ERP to ERP ABAP conn. Pass
ERP to SRM ABAP conn. PAss
SRM to ERP ABAP conn. , Error
Error Msg is below:
Connection Error
Error when opening an RFC connection
ERROR: time out during allocate
LOCATION: SAP-Gatewary on host gexiaodu/sapgw00
DETAIL: No connect of TP sapdb00 from host 109.52.70.21 after 20 sec
COMPONET: SAP-Gateway
COUNTER:23
MODULE: gwr3cpic.c
LINE: 1973
RETURN CODE 242
SUBRC:0
RELEASE :701
TIME:Wed Apr 21 08:23:21 2010
VERSION:2
PS: i didn't assign any Gateway.
Please give me some advice, Thanks
Best regards
claud
Edited by: Guang Li on Apr 21, 2010 6:02 AMHi,
This is more basis RFC issue, See notes :
581509 Reasons for "timeout during allocate"
566566 Tmeout during allocate, syslog R49 CPICRC 027 SAPRC 456
The problem could also be that setting up the connection takes longer
than the time specified in the timeout parameter. Try increase the
gw/cpic_timeout value and then see if the error persists.
Regards
Lauren -
Error in a report after enabling case insensitive search in conn pool prop
Hi All,
I put the below code in connection pool's connection string to enable case insensitive search.
alter session set NLS_SORT=BINARY_CI
alter session set NLS_COMP=LINGUISTIC
After putting this code one of my report started giving the below error which was working fine otherwise.
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. NQODBC SQL_STATE: HY000 nQSError: 10058 A general error has occurred. nQSError: 16001 ODBC error state: S1000 code: 1791 message: OracleODBCOraORA-01791: not a SELECTed expression. nQSError: 16001 ODBC error state: S1000 code: 1791 message: OracleODBCOraORA-01791: not a SELECTed expression. nQSError: 16015 SQL statement execution failed. (HY000)
The report gives error for the below divide condition when I select a column from a different dimension (eg: region)
COUNT(DISTINCT RMA.RMA)/COUNT(DISTINCT User."User Name")
Can anyone please throw a light why this is happening.Below is the SQL which is throwing error in OBIEE. It was working fine when I tried running it in toad:
select T1609.ATTRIB_05 as c1,
count(distinct T1609.ATTRIB_42) as c2,
TRUNC(T1159.FSCL_WEEK_START_DT) as c3
from
WC_DAY_D T1159 /* RMA_RECEIVED_DT(WC_DAY_D) */ ,
WC_RMA_D T571,
WC_FV_FA_D T1609,
WC_FV_FA_F T1679
where ( T571.ROW_WID = T1679.RMA_WID and T1159.ROW_WID = T1679.RMA_RECEIVED_WID and T1609.ROW_WID = T1679.FV_FA_WID and T1609.ATTRIB_39 <> 'FV' and (T571.STATUS_CD in ('2nd FA', '2nd FA Review', 'Closed')) and TRUNC(T1609.TODO_ACTL_END_DT) is not null and TRUNC(T1159.FSCL_WEEK_START_DT) between TIMESTAMP '2009-03-22 00:00:00' and TIMESTAMP '2009-04-12 00:00:00' )
group by T1609.ATTRIB_05, TRUNC(T1159.FSCL_WEEK_START_DT)
order by c3
-------------------- Query Status: Query Failed: [nQSError: 16001] ODBC error state: S1000 code: 1791 message: [Oracle][ODBC][Ora]ORA-01791: not a SELECTed expression.
[nQSError: 16001] ODBC error state: S1000 code: 1791 message: [Oracle][ODBC][Ora]ORA-01791: not a SELECTed expression.
[nQSError: 16015] SQL statement execution failed. -
Hello,
I am trying to create a connection pool to my Oracle db using the documentation provided for
Tomcat 5. In the servlet shown below, the servlet fails at this line:
Connection ocon = ds.getConnection();
The servlet stops with no error message. Also, I'm not sure what is supposed to go in
this line:
Context envContext = (Context)initContext.lookup("java:/comp/env");
which may be where the real problem begins. Any suggestions are greatly appreciated.
Here is the servlet:
package CraigsClasses;
import javax.servlet.*;
import javax.servlet.jsp.*;
import java.net.*;
import java.util.*;
import java.io.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.Date;
import java.text.*;
import javax.naming.*;
import javax.sql.DataSource;
public class CraigsMain extends HttpServlet {
public void init(ServletConfig config) throws ServletException {
super.init(config);
// Process the http Get request
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/CraigsList");
Connection ocon = ds.getConnection();
String sql = "select formtitle from checkboxforms where cbformid = 157";
PreparedStatement pStmt = ocon.prepareStatement(sql);
ResultSet rs1 = pStmt.executeQuery();
rs1.next();
out.println("<br><br><br>" + rs1.getString(1) + "<br>");
} catch(SQLException sqle) {
System.err.println("sql exception error: " + sqle);
} catch(NamingException sqln) {
System.err.println("naming exception error: " + sqln);
// A post request calls the get request because they do the same thing
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
Thank you,
LoganHello,
I am trying to create a connection pool to my Oracle db using the documentation provided for
Tomcat 5. In the servlet shown below, the servlet fails at this line:
Connection ocon = ds.getConnection();
The servlet stops with no error message. Also, I'm not sure what is supposed to go in
this line:
Context envContext = (Context)initContext.lookup("java:/comp/env");
which may be where the real problem begins. Any suggestions are greatly appreciated.
Here is the servlet:
package CraigsClasses;
import javax.servlet.*;
import javax.servlet.jsp.*;
import java.net.*;
import java.util.*;
import java.io.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.Date;
import java.text.*;
import javax.naming.*;
import javax.sql.DataSource;
public class CraigsMain extends HttpServlet {
public void init(ServletConfig config) throws ServletException {
super.init(config);
// Process the http Get request
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/CraigsList");
Connection ocon = ds.getConnection();
String sql = "select formtitle from checkboxforms where cbformid = 157";
PreparedStatement pStmt = ocon.prepareStatement(sql);
ResultSet rs1 = pStmt.executeQuery();
rs1.next();
out.println("<br><br><br>" + rs1.getString(1) + "<br>");
} catch(SQLException sqle) {
System.err.println("sql exception error: " + sqle);
} catch(NamingException sqln) {
System.err.println("naming exception error: " + sqln);
// A post request calls the get request because they do the same thing
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
Thank you,
Logan
Maybe you are looking for
-
Email Account Problems after iOS 5.0.1 update on iPad 2 &; iPhone 4
After finishing the iOS 5.0.1 update - I have noticed none of my email accounts are working (i.e. Error saying Incorrent Password or Username). I have deleted the associated accounts and added them once again, verifying both username and passwords as
-
Format Number in XML Publisher
Hi I am developing a RTF template for EXCEL output report. I am trying to format a number value in this report <?xdofx:if to_number(QUARTER_QUANTITY) > -1 then QUARTER_QUANTITY end if?> in the above line of code how could we format QUARTER_QUANTITY f
-
SSI Status Number Range (0-9)
Hi, In J1ID at vendor excise details u can find SSI Status. in the dropdown there is valid number range 0 to 9. There is no description about this number ranges. Can anyone please let us know that what this 0 to 9 means individually? Plz guide...
-
Financial Accountig missing in SAP Customizing Implementation Guide
Hi After upgrading SAP ERP 2004 to SP-Stack 17, the entry "Financial Accounting" is missing in SAP Customizing Implementation Guide (Transaction SPRO). Any ideas? Thanks Andreas
-
How many java String objects are created in string literal pool by executin
How many java String objects are created in string literal pool by executing following five lines of code. String str = "Java"; str = str.concat(" Beans "); str = str.trim(); String str1 = "abc"; String str2 = new String("abc").intern(); Kindly expla