Random Connection Closed Errors using UCP
Hey All;
I am trying to figure out why we are seeing quite a few random connection closed errors in our applications that are using Oracle UCP ver 11.2.0.1.0 connection pooling.
The errors happen at arbitrary jdbc usage source code locations (e.g.: spots that check a connection's auto commit mode, spots that spool through a result set, spots that do yada..) that consume a connection, and are not affiliated with what is being done with the connection (SQL being ran).
The architecture is Tomcat 7, hitting Oracle 10g Enterprise Edition Release 10.2.0.4.0 (RAC). The structure of the code (it's a web app) is such that we have a servlet filter that assigns a http request thread a connection from the pool on an incoming request, then that same connection is closed at the completion of that request's handling. No code uses connections other than code related to handling an http request. And, no threads are spawned off of that request handling thread. And, no code whatsoever (other than the servlet filter's finally block) ever closes a DB connection.
Also, the number of connections in the pool is quite adequate for the usage of the pool. That is, the ceiling is likely never hit. Even if it were---- having an outstanding connection suddenly 'closed out' wouldn't be the proper behavior there.
What are the things that can cause a connection to be 'closed out from under you' ? Meaning, the connection is valid when taken from the pool, but arbitrarily in the middle of usage--- it gets closed.
I am pretty stumped at this point.
Any ideas?
Thanks--
Here are a few sample stacks. Keep in mind that the line of code where the exception actually happens is arbitrary. We see the exception happen at ANY line that is a consumer of a connection. For example... it could happen that it blows up on the 'Nth' iteration while trucking through a result set. Suddenly at say... iteration 143 the connection is suddenly closed out from under the connection's handle.
As far as threads are concerned, each http request that creates a controller servlet instance is assigned it's own connection to use through the handling of that request. That connection instance is assigned as a ThreadLocal instance. Any DB usage that thread has is via that connection. The servlet filter ensures the handle is assigned when the request comes in, then is cleaned up as that request is completely handled in the same filter's finally block (this is a pattern that dozens of web apps we have have been using for going on 10 years now). This is not an ejb app. Straight Tomcat 7 web app using MVC pattern where C is a servlet.
The curious thing here in my mind is that we only have two apps in our collection that are using this new UCP pooling driver (most other are using a tomcat pool). And, only those two are seeing this behavior.
I am not balking at the threads concern--- it's just hard to square that with how we handle threading in such a 'single thread per http request' manner.
And, if it were the case that the pool is handing out the same connection handle to more than one thread because of having multiple entrant threads to the pool accessor method---- it's difficult to buy that it's that common for us to have multiple entrant threads at the same moment in those very short time span it takes for a pool to hand out a connection (given the traffic usage pattern for the app).
Here are the 'known deltas' I am aware of between the two apps that have this behavior, and the couple of dozen we have that do not:
1) these two apps are on Tomcat 7 (most others are Tom 5, Resin, or JBoss)
2) these two apps are using the Ora UCP pool. (most others use Tomcat pool)
~~~~~~~~~ Stack 1 ~~~~~~~~~~~~~~~~~~
01-Dec-2010 12:34:13.479 [ERROR] JDBCExceptionReporter: The connection is closed: The connection is closed
01-Dec-2010 12:34:13.479 [ERROR] PartsGroupingPanel: getDealersInventoryRow() pvid FO03348
org.hibernate.exception.GenericJDBCException: could not inspect JDBC autocommit mode
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.JDBCContext.afterNontransactionalQuery(JDBCContext.java:228)
at org.hibernate.impl.SessionImpl.afterOperation(SessionImpl.java:437)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1134)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.dmotorworks.partinventory.dao.ClientParametersDAO.getAllDealers(ClientParametersDAO.java:20)
~~~~~~~~~ Stack 2 ~~~~~~~~~~~~~~~~~~
01-Dec-2010 11:23:54.889 [ERROR] PartsSearchDAO: getDealerInventoryLineItemsNofN()
java.sql.SQLException: The connection is closed: The connection is closed
at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:526)
at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:510)
at oracle.ucp.jdbc.proxy.JDBCConnectionProxyFactory.invoke(JDBCConnectionProxyFactory.java:245)
at $Proxy0.prepareStatement(Unknown Source)
at com.dmotorworks.partinventory.dao.PartsSearchDAO.getDealerInventoryLineItemsNofN(PartsSearchDAO.java:246)
Similar Messages
-
FTP Adapter ORABPEL-11407 Connection closed error.
Hiiii friends
I have configured the connection factory for FTP Adapter (not defined any connection pool). My BPEL process poll the ftp location to get the file.
But no bpel instance is getting generated and domain.log shows the following error. Can you help me in this issue ?
+<2009-06-26 04:09:59,140> <INFO> <default.collaxa.cube.engine.deployment> Process "ReadEmp" (revision "1.0") successfully loaded.+
+<2009-06-26 04:10:10,666> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::init - Initializing the JCA activation age+
nt, processId='bpel://localhost/default/ReadEmp~1.0/
+<2009-06-26 04:10:10,667> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and+
initializing inbound JCA endpoint for:
process='bpel://localhost/default/ReadEmp~1.0/'
+<2009-06-26 04:10:10,667> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and+
initializing inbound JCA endpoint for:
process='bpel://localhost/default/ReadEmp~1.0/'
domain='default'
WSDL location='ReadEmpPL.wsdl'
portType='GetEmpOp_ptt'
operation='GetEmpOp'
+activation properties={portType=GetEmpOp_ptt}+
+<2009-06-26 04:10:10,678> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - endpointActivation for p+
ortType=GetEmpOp_ptt, operation=GetEmpOp
+<2009-06-26 04:10:10,763> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> ENDPOINT ACTIVATION CALLED IN FTP ADAPTER+
+<2009-06-26 04:10:10,765> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed e+
ndpointActivation for portType=GetEmpOp_ptt, operation=GetEmpOp
+<2009-06-26 04:10:10,765> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Connection Created+
+<2009-06-26 04:10:40,516> <WARN> <default.collaxa.cube.activation> <File Adapter::Inbound> PollWork::run exiting, Worker thread will die+
+<2009-06-26 04:20:11,382> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Poller raising Alert for exception : ORABPEL-11407+
Connection closed error.
Connection closed for Host: corpdevapp10.
Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
+<2009-06-26 04:20:41,429> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Connection Created+
I am not sure what exactly is happening here. I have already established the successful connection with the same FTP server using different FTP clients.sounds like the ftp server closed the connection. did you try to use other ftp clients from the same machine where the bpel engine is running?
Mark -
Connection closed error when using binding
Hi,
I am running WLS 7.0.1.0 with TopLink 9.0.3 as the persistence layer for
EJB1.1 beans with CMP. When I use bind parameters I get a connection
closed exception the second time the query is invoked.
This is the query I see on server console when it is invoked the first
time. This query returns the expected results:
[TopLink]: ServerSession(91035)--Connection(887977)--SELECT
LAST_CHANGED_ID, ALIAS_NAME, REFERENCE_ID, ALIAS_TYPE,
REFERENCE_QUAL_CODE, ALIAS_QUAL_CODE, TLINK_VERSION, LAST_CHANGED_DATE,
DELETED_FLAG FROM GLOBAL_ALIAS WHERE (DELETED_FLAG =
bind => [N]
However, when I run the same query the second time I get the
following error:
[TopLink Error]: ServerSession(91035)--Connection(0)--null--EXCEPTION
[TOPLINK-4002] (TopLink (WLS CMP) - 9.0.3.1 (Build 426)):
oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: Connection has already
been closed.
INTERNAL EXCEPTION: java.sql.SQLException: Connection has already been
closed.
ERROR CODE: 0
Then when I execute the query again the third time I see the following
sql query and it
works fine.
[TopLink]: ServerSession(91035)--Connection(889939)--SELECT
LAST_CHANGED_ID, ALI
AS_NAME, REFERENCE_ID, ALIAS_TYPE, REFERENCE_QUAL_CODE, ALIAS_QUAL_CODE,
TLINK_V
ERSION, LAST_CHANGED_DATE, DELETED_FLAG FROM GLOBAL_ALIAS WHERE
(DELETED_FLAG =
bind => [N]
Does WebLogic close its connection to the database pool after each
transaction? Is there something that needs to be done on the database?
Any help will be greatly appreciated.
Thanks in Advance,
Anup.Hi. Our transaction coordinator does prevent any code from using a
pool connection that was part of a transaction, after that transaction
ends. Applications must obtain and use pool connections totally
within or totally outside a UserTransaction, to prevent unintended
or unclear interference of the transaction contents and/or locking.
Joe Weinstein
PS: Also post any followup to the ejb newsgroup, because this issue
is more at the EJB level than JDBC.
Anup Vachali wrote:
Hi,
I am running WLS 7.0.1.0 with TopLink 9.0.3 as the persistence layer for
EJB1.1 beans with CMP. When I use bind parameters I get a connection
closed exception the second time the query is invoked.
This is the query I see on server console when it is invoked the first
time. This query returns the expected results:
[TopLink]: ServerSession(91035)--Connection(887977)--SELECT
LAST_CHANGED_ID, ALIAS_NAME, REFERENCE_ID, ALIAS_TYPE,
REFERENCE_QUAL_CODE, ALIAS_QUAL_CODE, TLINK_VERSION, LAST_CHANGED_DATE,
DELETED_FLAG FROM GLOBAL_ALIAS WHERE (DELETED_FLAG =
bind => [N]
However, when I run the same query the second time I get the
following error:
[TopLink Error]: ServerSession(91035)--Connection(0)--null--EXCEPTION
[TOPLINK-4002] (TopLink (WLS CMP) - 9.0.3.1 (Build 426)):
oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: Connection has already
been closed.
INTERNAL EXCEPTION: java.sql.SQLException: Connection has already been
closed.
ERROR CODE: 0
Then when I execute the query again the third time I see the following
sql query and it
works fine.
[TopLink]: ServerSession(91035)--Connection(889939)--SELECT
LAST_CHANGED_ID, ALI
AS_NAME, REFERENCE_ID, ALIAS_TYPE, REFERENCE_QUAL_CODE, ALIAS_QUAL_CODE,
TLINK_V
ERSION, LAST_CHANGED_DATE, DELETED_FLAG FROM GLOBAL_ALIAS WHERE
(DELETED_FLAG =
bind => [N]
Does WebLogic close its connection to the database pool after each
transaction? Is there something that needs to be done on the database?
Any help will be greatly appreciated.
Thanks in Advance,
Anup. -
TNS: connection closed error with SQL*net
Hi all,
I've got a new installation of Oracle 11.1.0.6.0 enterprise (Linux). It works fine with direct sqlplus connections but I'm having problems with SQL*net and JDBC thin client connections.
The database is built correctly and works fine:
user@cthulhu bash[61]: sqlplus user/pwd
SQL*Plus: Release 11.1.0.6.0 - Production on Mon Aug 4 12:59:53 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL>
but if I try to connect using SQL*net I get errors. I have my TNS listener configured and it starts without errors, reporting the database as a service, and tnsping is fine:
user@cthulhu bash[62]: tnsping cthulhu_mar
TNS Ping Utility for Linux: Version 11.1.0.6.0 - Production on 04-AUG-2008 13:02:07
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.2.30)(PORT=1521)) (CONNECT_DATA=(SID=mar)))
OK (10 msec)
user@cthulhu bash[63]: sqlplus user/pwd@cthulhu_mar
SQL*Plus: Release 11.1.0.6.0 - Production on Mon Aug 4 13:02:41 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
ERROR:
ORA-12537: TNS:connection closed
Enter user-name:
In listener.log:
Mon Aug 04 13:02:41 2008
04-AUG-2008 13:02:41 * (CONNECT_DATA=(SID=mar)(CID=(PROGRAM=sqlplus)(HOST=cthulhu)(USER=marbur))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.30)(PORT=41754)) * establish * mar * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
TNS-00517: Lost contact
Linux Error: 32: Broken pipe
This is a new instance of Oracle so there is no problem with listener.log being too large (as I've seen elsewhere). I've also tried increasing PROCESSES and SESSIONS in the initSID.ora file without any impact. The listener ports are open through the firewall (and disabling it temporarily makes no difference).
Any suggestions?!
Thanks, MattThis means nothing to me, but it could to someone else......
from listener trace:
2008-08-04 16:19:05.135381 : nlpcaini:env[161] = OLDPWD=/u01/app/oracle/product/11.1.0/db_1
2008-08-04 16:19:05.135407 : nlpcaini:env[162] = ORA_NET2_DESC=12,15
2008-08-04 16:19:05.135432 : nlpcaini:env[163] = ORACLE_SPAWNED_PROCESS=1
2008-08-04 16:19:05.135465 : nlpcaini:exit
2008-08-04 16:19:05.135498 : nsc2addr:normal exit
2008-08-04 16:19:05.135536 : nsbeqaddr:entry
2008-08-04 16:19:05.135566 : nsbeqaddr:connecting...
2008-08-04 16:19:05.135603 : nsopen:entry
2008-08-04 16:19:05.135633 : nsmal:entry
2008-08-04 16:19:05.135667 : nsmal:1012 bytes at 0x81a8538
2008-08-04 16:19:05.135694 : nsmal:normal exit
2008-08-04 16:19:05.135722 : nsopenmplx:entry
2008-08-04 16:19:05.135749 : nsmal:entry
2008-08-04 16:19:05.135779 : nsmal:2020 bytes at 0x81a8930
2008-08-04 16:19:05.135804 : nsmal:normal exit
2008-08-04 16:19:05.135831 : nsiorini:entry
2008-08-04 16:19:05.135861 : nsbal:entry
2008-08-04 16:19:05.135889 : nsbgetfl:entry
2008-08-04 16:19:05.135918 : nsbgetfl:normal exit
2008-08-04 16:19:05.135966 : nsmal:entry
2008-08-04 16:19:05.135995 : nsmal:84 bytes at 0x81b3dd8
2008-08-04 16:19:05.136020 : nsmal:normal exit
2008-08-04 16:19:05.136057 : nsbal:normal exit
2008-08-04 16:19:05.136085 : nsiorini:exit (0)
2008-08-04 16:19:05.136112 : nscpxget:entry
2008-08-04 16:19:05.136139 : nscpxget:normal exit
2008-08-04 16:19:05.136168 : nsopenalloc_nsntx:nlhthput on mplx_ht_nsgbu:ctx=81a8538, nsntx=81a8930
2008-08-04 16:19:05.136196 : nsopenmplx:normal exit
2008-08-04 16:19:05.136225 : ntpcon:entry
2008-08-04 16:19:05.136253 : ntpcon:toc = 6
2008-08-04 16:19:05.136283 : ntpcon:exit
2008-08-04 16:19:05.136313 : nsopen:opening transport...
2008-08-04 16:19:05.136341 : ntpcon:entry
2008-08-04 16:19:05.136367 : ntpcon:toc = 1
2008-08-04 16:19:05.136404 : sntpcall:entry
2008-08-04 16:19:05.157048 : sntpcall:detaching from parent with additional fork
2008-08-04 16:19:05.157304 : sntpcall:hdl[IR]=17, hdl[IW]=16
2008-08-04 16:19:05.157350 : ntpcon:exit
2008-08-04 16:19:05.157390 : nserror:entry
2008-08-04 16:19:05.157428 : nsoptions:entry
2008-08-04 16:19:05.157459 : nsoptions:lcl[0]=0x0, lcl[1]=0x2006, gbl[0]=0x0, gbl[1]=0x0, cha=0x0
2008-08-04 16:19:05.157488 : nsoptions:Vectored IO not supported.
2008-08-04 16:19:05.157518 : nsoptions:lcl[0]=0xf4ffe9ff, lcl[1]=0x6016, gbl[0]=0xe881, gbl[1]=0x0
2008-08-04 16:19:05.157545 : nsoptions:normal exit
2008-08-04 16:19:05.157574 : nsnainit:entry
2008-08-04 16:19:05.157603 : nsnainit:normal exit
2008-08-04 16:19:05.157642 : nsopen:global context check-in (to slot 6) complete
2008-08-04 16:19:05.157675 : nsopen:lcl[0]=0xf4ffe9ff, lcl[1]=0x6016, gbl[0]=0xe881, gbl[1]=0x0, tdu=4096, sdu=8192
2008-08-04 16:19:05.157706 : nsfull_opn:entry
2008-08-04 16:19:05.157735 : nsfull_opn:cid=6, opcode=65, bl=0, what=0, uflgs=0x0, cflgs=0x0
2008-08-04 16:19:05.157761 : nsfull_opn:nsctx: state=7, flg=0x4001, mvd=0
2008-08-04 16:19:05.157790 : nsfull_opn:normal exit
2008-08-04 16:19:05.157816 : nsopen:normal exit
2008-08-04 16:19:05.157854 : nsevreg:entry
2008-08-04 16:19:05.157884 : nsevreg:begin registration process for 6
2008-08-04 16:19:05.157912 : nsevregPrePost:entry
2008-08-04 16:19:05.157940 : nsevregPrePost:normal exit
2008-08-04 16:19:05.157968 : nsevreg:sgt=0, evn=1, evt[2]=0x0
2008-08-04 16:19:05.157996 : nsevreg:begin notification process for 6
2008-08-04 16:19:05.158022 : nsevregAffectNotif:entry
2008-08-04 16:19:05.158050 : nsevregAffectNotif:exit (0)
2008-08-04 16:19:05.158078 : nsevreg:rdm=0, sgt=0, evt[0]=0x800, [1]=0x800, [2]=0x0, nrg=0
2008-08-04 16:19:05.158105 : nsevreg:registering for 0x800
2008-08-04 16:19:05.158135 : ntpctl:entry
2008-08-04 16:19:05.158162 : ntpctl:exit
2008-08-04 16:19:05.158203 : nsevreg:normal exit
2008-08-04 16:19:05.158260 : nsbeqaddr:error exit
2008-08-04 16:19:05.158289 : nsbequeath:error exit
2008-08-04 16:19:05.158342 : nsglhe:exit -
Connection closed Error in Webdynpro - JDBC
Hi everybody !!
I have a WebDynpro Application that uses an Oracle database to display users. I'm using a Datasource configured in Visual Admin to connect WD and Database. Datasource properties are defaults properties.
My code to call the Datasource is:
public static Connection getConexionJDBC() throws JDBCException
Connection conn = null;
try
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup(ConnectionConstantsJDBC.DS_DEFAULT);
conn = ds.getConnection();
return conn;
catch (Exception e)
throw new JDBCException(ConnectionConstantsJDBC.MESS_ERROR_OPEN_CONN_JDBC + "(datasource por defecto)." + e.getMessage(), e);
The application runs ok all day, but when I get to work in the morning, the application return me that error. Connection closed.
To solve it, i have to restart de Datasource or the WAS Server, after of this, the application runs ok again, and so every day of the week. I've checked that the connections close OK when are completed using.
So, somebodu knows whats happening?
Thank you.
FernandoHi Fernado,
Currently i have done same implementation in an java code.But i am unable to call using component controller.
Please let me know how to call the java class by Controller.
Thanks
MG -
Connection CLosed Error due to submit statement.
Hi friends,
I have a Method which calls this function
CALL FUNCTION 'Z_SLOT_TRIGGER_PRODUCTS'
EXPORTING
iv_rspar = lt_rspar
iv_variant = lv_variant.
The Function module Z_slot_trigger_prouducts has a form in which there is a submit statement
Submit the slotting transaction to background & process the transaction immediatly
SUBMIT z_slot_products
USING SELECTION-SET gv_variant
WITH SELECTION-TABLE p_lt_rspar_tmp
AND RETURN.
During the debuging i see that when it reaches this submit statement it is giving an error as below in the inbound queue:
ThISend: bad tm type / connection closed (no data)
Can anyone please help me with this error. Thanks in advance.Check the documentation of the submit statement:
When the SUBMIT statement is executed, the system runs an authorization check for the authorization group specified in the program attributes. -
Connection Timeout error using Stubs
Hi
We are trying to connect to the CRM On Demand through one of our applications using the client Stub mechanism. But everytime we get the below error.
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultString: WSWS3713E: Connection to the remote host secure-ausomxbta.crmondemand.com:443 failed.Received the following error: java.net.ConnectException: Connection timed out: no further information.
faultActor: null
faultDetail:
WSWS3713E: Connection to the remote host secure-ausomxbta.crmondemand.com:443 failed.Received the following error: java.net.ConnectException: Connection timed out: no further information
at com.ibm.ws.webservices.engine.transport.http.HttpOutboundChannelConnection.connect(HttpOutboundChannelConnection.java:936)
at com.ibm.ws.webservices.engine.transport.http.HttpsOutboundChannelConnection.connect(HttpsOutboundChannelConnection.java:210)
at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java:586)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:249)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:249)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:937)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:731)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:680)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:502)
at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:1007)
We are using the URL as https://secure-ausomxbta.crmondemand.com/Services/Integration and the port as 443 in the QName object and setting in the Stub.
Any help or lead would be of great help. Thanks in advance.
Regards
PMobvious question - can the machine you are running the code on actually reach the URL on that port? Did you verify with wireshark that you are making a request to that endpoint?
Thanks -
TNS : Connection closed error
I am using Toad 9.7.2 which is configured for use of Oracle databse 10 g stored on Network. It was running fine. But after installing oracle 11g on my computer. The toad is not not connecting to any of the database.
Kindly guide how to solve this issue.You have installed 11g that’s and it seems that its looking for entries in tnsnames.ora file under “ORACLE_HOME/network/admin”
Update tnsnames.ora file with your database entries, it will connect.
Hope this helps,
Regards,
Satishbabu Gunukula
http://oracleracexpert.blogspot.com
[Click here to upgrade oracle 8i to 10g.|http://oracleracexpert.blogspot.com/2009/08/upgrade-oracle-8i-to-10g.html] -
Random Window Closing When Using Color Labels
Any help appreciated.
When using color labels, every 2nd or 3rd time I set a color, the finder window I'm working in closes by itself. When I reopen a new window, it puts you back at the top level, and I have to re-drill down to where I was. This happens whether or not any apps are open.
Using OS 10.4.8, pretty sure it's the latest version. I have almost no software on this machine - it's a dedicated music computer. I use labels extensively, and this never happened on my old G5 or Powerbook (both with 10.4.8). So far I'm attributing it to the Mac Pro.
Mac Pro/2x2.66 Dual-Core Mac OS X (10.4.8) 4GB RAM
Mac Pro/2x2.66 Dual-Core Mac OS X (10.4.8) 4GB RAMCreate a new account, name it "test" and see how color labels work in that User acct? (That will tell if your problem is systemwide or limited to your User acct.) This account is just for test, do nothing further with it.
Open System Preferences >> Accounts >> "+" make it an admin account.
Let us know and we'll troubleshoot this further.
-mj
[email protected] -
Connection closed SQL exeption during ResultSet.getMetaData()
Hello Together,
My application runs on WebLogic 10.3.0.0 and uses Oracle 10gXE, JPA is provided by EclipseLink v1.1.2.v20090612-r4475.
Communication with database (through JTA datasource) is fully tested, so I'm sure that datasource "sees" the DB, all necessary tables and rows exist in DB.
According to test case there are 2 threads which work with DB. Here is call sequence:
1)Thread A selects data from table Y
2)Thread A begins unit of work commit
3)Thread A updates table X (but transaction is not committed)
4)Thread B tries to read data from table Y but Connection closed SQL exeption occurs
5)Thread A commits transaction
here is the log
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finest]: 2010-01-29 16:30:00.757--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Register the existing object [email protected]f8>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finest]: 2010-01-29 16:30:00.757--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query ReadObjectQuery(referenceClass=MdsProperty )>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finest]: 2010-01-29 16:30:00.757--ServerSession(5223944)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--reconnecting to external connection pool>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Fine]: 2010-01-29 16:30:00.757--ServerSession(5223944)--Connection(15669174)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--SELECT ID, DESCRIPTION, VALUE, PROPERTY, TYPE FROM Mds_properties WHERE (ID = ?)
bind => [28]>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finest]: 2010-01-29 16:30:00.757--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Register the existing object [email protected]f8>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finest]: 2010-01-29 16:30:00.757--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Revert the object's attributes [email protected]87>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finer]: 2010-01-29 16:30:00.757--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beforeCompletion callback, status=STATUS_ACTIVE>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finer]: 2010-01-29 16:30:00.757--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--begin unit of work commit>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finer]: 2010-01-29 16:30:00.757--ClientSession(4960545)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beginTransaction, status=STATUS_ACTIVE>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finest]: 2010-01-29 16:30:00.757--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query UpdateObjectQuery(com.tsystems.tenergy.smp.mds.persistence.domain.Task@4f9d91)>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Finest]: 2010-01-29 16:30:00.757--ClientSession(4960545)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--reconnecting to external connection pool>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800757> <BEA-000000> <[EL Fine]: 2010-01-29 16:30:00.757--ClientSession(4960545)--Connection(15775803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--UPDATE TASK SET TSK_RESULT = ?, TSK_PROCESS_STATE = ?, TSK_END_TS = ?, TSK_CREATE_TS = ?, TSK_CHANGE_TS = ? WHERE (TSK_ID = ?)
bind => [<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:MDSResponse ReadoutTime="2009-09-11T09:29:05Z" TotalTaskNumber="2" TaskNumber="1" ReadoutType="5" ClientID="MDS" xmlns:ns2="http://t-systems.com/t-energy/MDS/MDSResponse" xmlns="http://t-systems.com/t-energy/MDS/CommonMUSTypes" xmlns:ns3="http://t-systems.com/t-energy/MDS/CommonMDSTypes">
</ns2:MDSResponse>
, 4, 2010-01-29 16:30:00.757, 2010-01-29 16:30:00.757, 2010-01-29 16:30:00.757, 73]>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800772> <BEA-000000> <[EL Finest]: 2010-01-29 16:30:00.772--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query ReadAllQuery(referenceClass=MdsProperty sql="SELECT ID, DESCRIPTION, VALUE, PROPERTY, TYPE FROM Mds_properties WHERE (PROPERTY = ?)")>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800772> <BEA-000000> <[EL Fine]: 2010-01-29 16:30:00.772--ClientSession(4960545)--Connection(15775803)--Thread(Thread[[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--SELECT ID, DESCRIPTION, VALUE, PROPERTY, TYPE FROM Mds_properties WHERE (PROPERTY = ?)
bind => [MUS.Response.SendToMDSResponseQueue]>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800804> <BEA-000000> <[EL Finer]: 2010-01-29 16:30:00.804--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX afterCompletion callback, status=COMMITTED>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800804> <BEA-000000> <[EL Finer]: 2010-01-29 16:30:00.804--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--end unit of work commit>
####<29.01.2010 16:30:00 MSK> <Notice> <Stdout> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264771800835> <BEA-000000> <[EL Warning]: 2010-01-29 16:30:00.788--UnitOfWork(4959356)--Thread(Thread[[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Local Exception Stack:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 1.1.2.v20090612-r4475): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Connection closed
Error Code: 0
Call: SELECT ID, DESCRIPTION, VALUE, PROPERTY, TYPE FROM Mds_properties WHERE (PROPERTY = ?)
bind => [MUS.Response.SendToMDSResponseQueue]
Query: ReadAllQuery(referenceClass=MdsProperty sql="SELECT ID, DESCRIPTION, VALUE, PROPERTY, TYPE FROM Mds_properties WHERE (PROPERTY = ?)")
at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:332)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:656)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:501)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeCall(AbstractSession.java:872)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:205)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:191)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:262)
at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:599)
at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2520)
at org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2478)
at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:481)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:928)
at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:664)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:889)
at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:458)
at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:952)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2756)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1181)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1165)
at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1139)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:389)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getSingleResult(EJBQueryImpl.java:594)
at com.tsystems.tenergy.smp.mds.persistence.access.impl.MdsPropertyDAOImpl.getPropertyValue(MdsPropertyDAOImpl.java:37)
at com.tsystems.tenergy.smp.mds.persistence.impl.MdsPropertyDomainServiceImpl.getPropertyValue(MdsPropertyDomainServiceImpl.java:54)
at com.tsystems.tenergy.smp.mds.common.configuration.MDSConfiguration.getPropertyValueAsBoolean(MDSConfiguration.java:333)
at com.tsystems.tenergy.smp.mds.common.configuration.MDSConfiguration.isSendMDSResponseToMDSResponseQueue(MDSConfiguration.java:318)
at com.tsystems.tenergy.smp.mds.business.mcs.response.impl.MCSResponseHandlerImpl.handleResponse(MCSResponseHandlerImpl.java:155)
at com.tsystems.tenergy.smp.mds.business.impl.OrderManagerImpl.handleMCSResponse(OrderManagerImpl.java:423)
at com.tsystems.tenergy.smp.mds.service.impl.MDSServiceFacadeBean.processMCSResponse(MDSServiceFacadeBean.java:222)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
at com.tsystems.tenergy.smp.common.base.performance.PerformanceMonitor.monitoring(PerformanceMonitor.java:118)
at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:15)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:30)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy177.processMCSResponse(Unknown Source)
at com.tsystems.tenergy.smp.mds.service.impl.MDSServiceFacadeBean_dv9pfe_MDSServiceFacadeImpl.processMCSResponse(MDSServiceFacadeBean_dv9pfe_MDSServiceFacadeImpl.java:695)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:69)
at $Proxy169.processMCSResponse(Unknown Source)
at com.tsystems.tenergy.smp.mds.access.impl.MCSResponseProcessor.processMessage(MCSResponseProcessor.java:44)
at com.tsystems.tenergy.smp.mds.access.MDSJMSServiceAdaptor.handleMessage(MDSJMSServiceAdaptor.java:41)
at com.tsystems.tenergy.smp.common.access.impl.AbstractJMSServiceAdaptor.onMessage(AbstractJMSServiceAdaptor.java:54)
at sun.reflect.GeneratedMethodAccessor171.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy187.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.sql.SQLException: Connection closed
at weblogic.jdbc.wrapper.ResultSet.getMetaData(ResultSet.java:228)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:580)
... 93 more>
####<29.01.2010 16:30:00 MSK> <Debug> <org.apache.log4j.Category> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-00744D79C091A363E01C> <> <1264771800851> <BEA-000000> <BasePerformanceLoggerImpl> <38; CLOSE; [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'; null; 1264771800851; 1; 18548920; 536870912; 268435456; processMCSResponse; null;
>
####<29.01.2010 16:30:00 MSK> <Info> <EJB> <spbnb-prc32> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1264771800929> <BEA-010213> <Message-Driven EJB: MCSResponseAdaptorBean's transaction was rolled back. The transaction details are: Xid=BEA1-00744D79C091A363E01C(12158686),Status=Rolled back. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,XAServerResourceInfo[WLStore_mds_domain_MDSFileStore]=(ServerResourceInfo[WLStore_mds_domain_MDSFileStore]=(state=rolledback,assigned=AdminServer),xar=WLStore_mds_domain_MDSFileStore27139645,re-Registered = false),XAServerResourceInfo[ds_mds]=(ServerResourceInfo[ds_mds]=(state=rolledback,assigned=AdminServer),xar=ds_mds,re-Registered = false),SCInfo[mds_domain+AdminServer]=(state=rolledback),local properties=({weblogic.jdbc.jta.ds_mds=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+10.233.103.211:7001+mds_domain+t3+, XAResources={ds_mcs, ds_mds, res.platform.jdbc.scheduler.SchedulerDataSource, WLStore_mds_domain_MDSFileStore, WLStore_mds_domain_MCSFileStore, WLStore_mds_domain__WLS_AdminServer},NonXAResources={})],CoordinatorURL=AdminServer+10.233.103.211:7001+mds_domain+t3+).>
Connection pool has the following properties turned on on Weblogic AS
-Ignore In-Use Connections
-Pinned-To-Thread
-Remove Infected Connections Enabled
Could you please make any suggestions how to prevent java.sql.SQLException: Connection closed exception?
Edited by: user9065803 on Jan 29, 2010 2:04 AMIt's a WebLogic bug. File an official support case. It seems the connection
was destroyed just before your current call to prepare a statement. Maybe
your transaction timed out or something, or got rolled back? You should
get an explanatory exception, not an NPE...
Joe -
I am getting the following error using SQL Plus on Windows "ORA-28865: SSL connection closed"
I have set up my certificates on client and server and have tested the port using TCP and works fine. TCPS fails with ORA-28865. I have attached my trace file which was using level 10
Please any assistance is appreciated
(5888) [11-APR-2015 09:36:28:365] nsnainit: NS Connection version: 315
(5888) [11-APR-2015 09:36:28:365] nsnainit: inf->nsinfflg[0]: 0x41 inf->nsinfflg[1]: 0x41
(5888) [11-APR-2015 09:36:28:365] nsnainit: "or" info flags: 0x41 Translations follow:
native service(s) is (are) wanted
(5888) [11-APR-2015 09:36:28:365] nsnainit: "or" info flags: 0x41 Translations follow:
native service(s) is (are) wanted
"and" info flags: 0x41 Translations follow:
native service(s) is (are) wanted
(5888) [11-APR-2015 09:36:28:365] snsbitts_ts: acquired the bit
(5888) [11-APR-2015 09:36:28:365] nsopen: global context check-in (to slot 0) complete
(5888) [11-APR-2015 09:36:28:365] nsopen: lcl[0]=0xf4ffefff, lcl[1]=0x102000, gbl[0]=0xfabf, gbl[1]=0x1, tdu=2097152, sdu=8192
(5888) [11-APR-2015 09:36:28:365] nsfull_opn: cid=0, opcode=65, *bl=0, *what=0, uflgs=0x0, cflgs=0x0
(5888) [11-APR-2015 09:36:28:365] nsfull_opn: nsctx: state=7, flg=0x4001, mvd=0
(5888) [11-APR-2015 09:36:28:365] nsmal: 168 bytes at 0x214d1a0
(5888) [11-APR-2015 09:36:28:365] nsmal: 168 bytes at 0x214dbf0
(5888) [11-APR-2015 09:36:28:365] nsmfr: 239 bytes at 0x20e53a0
(5888) [11-APR-2015 09:36:28:365] nsdo: cid=0, opcode=67, *bl=238, *what=8, uflgs=0x0, cflgs=0x3
(5888) [11-APR-2015 09:36:28:365] snsbitts_ts: acquired the bit
(5888) [11-APR-2015 09:36:28:365] nsdo: rank=64, nsctxrnk=0
(5888) [11-APR-2015 09:36:28:365] nsdo: nsctx: state=14, flg=0x4005, mvd=0
(5888) [11-APR-2015 09:36:28:365] nsdo: gtn=10, gtc=10, ptn=10, ptc=8111
(5888) [11-APR-2015 09:36:28:365] nscon: doing connect handshake...
(5888) [11-APR-2015 09:36:28:365] nscon: sending NSPTCN packet
(5888) [11-APR-2015 09:36:28:365] nspsend: plen=70, type=1
(5888) [11-APR-2015 09:36:28:365] ntzwrite: entry
(5888) [11-APR-2015 09:36:28:365] nzos_Write: entry
(5888) [11-APR-2015 09:36:28:365] nttwr: entry
(5888) [11-APR-2015 09:36:28:365] nttwr: socket 560 had bytes written=99
(5888) [11-APR-2015 09:36:28:365] nttwr: exit
(5888) [11-APR-2015 09:36:28:365] nzos_Write: exit
(5888) [11-APR-2015 09:36:28:365] ntzwrite: exit
(5888) [11-APR-2015 09:36:28:365] nspsend: 70 bytes to transport
(5888) [11-APR-2015 09:36:28:365] nscon: sending 238 bytes connect data
(5888) [11-APR-2015 09:36:28:365] nsdo: cid=0, opcode=67, *bl=238, *what=1, uflgs=0x4002, cflgs=0x0
(5888) [11-APR-2015 09:36:28:365] nsdo: nsctx: state=2, flg=0x4005, mvd=0
(5888) [11-APR-2015 09:36:28:365] nsdo: gtn=10, gtc=10, ptn=10, ptc=431
(5888) [11-APR-2015 09:36:28:365] nsdo: 238 bytes to NS buffer
(5888) [11-APR-2015 09:36:28:365] nsdofls: DATA flags: 0x0
(5888) [11-APR-2015 09:36:28:365] nsdofls: sending NSPTDA packet
(5888) [11-APR-2015 09:36:28:365] nspsend: plen=248, type=6
(5888) [11-APR-2015 09:36:28:365] ntzwrite: entry
(5888) [11-APR-2015 09:36:28:365] nzos_Write: entry
(5888) [11-APR-2015 09:36:28:365] nttwr: entry
(5888) [11-APR-2015 09:36:28:365] nttwr: socket 560 had bytes written=277
(5888) [11-APR-2015 09:36:28:365] nttwr: exit
(5888) [11-APR-2015 09:36:28:365] nzos_Write: exit
(5888) [11-APR-2015 09:36:28:365] ntzwrite: exit
(5888) [11-APR-2015 09:36:28:365] nspsend: 248 bytes to transport
(5888) [11-APR-2015 09:36:28:365] nsdoacts: flushing transport
(5888) [11-APR-2015 09:36:28:365] ntzcontrol: entry
(5888) [11-APR-2015 09:36:28:365] ntzcontrol: Command = 4
(5888) [11-APR-2015 09:36:28:365] ntzcontrol: unknown command 4 - calling underlying protocol adapter
(5888) [11-APR-2015 09:36:28:365] nttctl: entry
(5888) [11-APR-2015 09:36:28:365] ntzcontrol: operation is unsupported
(5888) [11-APR-2015 09:36:28:365] ntzcontrol: exit
(5888) [11-APR-2015 09:36:28:365] snsbitts_ts: acquired the bit
(5888) [11-APR-2015 09:36:28:365] nsdo: nsctxrnk=0
(5888) [11-APR-2015 09:36:28:365] nsdo: cid=0, opcode=68, *bl=2048, *what=9, uflgs=0x0, cflgs=0x3
(5888) [11-APR-2015 09:36:28:365] snsbitts_ts: acquired the bit
(5888) [11-APR-2015 09:36:28:365] nsdo: rank=64, nsctxrnk=0
(5888) [11-APR-2015 09:36:28:365] nsdo: nsctx: state=2, flg=0x4005, mvd=0
(5888) [11-APR-2015 09:36:28:365] nsdo: gtn=10, gtc=10, ptn=10, ptc=8111
(5888) [11-APR-2015 09:36:28:380] nscon: recving a packet
(5888) [11-APR-2015 09:36:28:380] nsprecv: reading from transport...
(5888) [11-APR-2015 09:36:28:380] ntzread: entry
(5888) [11-APR-2015 09:36:28:380] ntznzosread: entry
(5888) [11-APR-2015 09:36:28:380] nzos_Read: entry
(5888) [11-APR-2015 09:36:28:380] nttrd: entry
(5888) [11-APR-2015 09:36:28:380] ntt2err: entry
(5888) [11-APR-2015 09:36:28:380] ntt2err: exit
(5888) [11-APR-2015 09:36:28:380] nttrd: socket 560 had bytes read=0
(5888) [11-APR-2015 09:36:28:380] nttrd: exit
(5888) [11-APR-2015 09:36:28:380] nzos_Read: exit
(5888) [11-APR-2015 09:36:28:380] ntznzosread: encountered "wouldblock" error
(5888) [11-APR-2015 09:36:28:380] ntctst: size of NTTEST list is 1 - not calling poll
(5888) [11-APR-2015 09:36:28:396] nzos_Read: entry
(5888) [11-APR-2015 09:36:28:396] nttrd: entry
(5888) [11-APR-2015 09:36:28:396] nttrd: exit
(5888) [11-APR-2015 09:36:28:396] ntt2err: entry
(5888) [11-APR-2015 09:36:28:396] ntt2err: Read unexpected EOF ERROR on 560
(5888) [11-APR-2015 09:36:28:396] ntt2err: exit
(5888) [11-APR-2015 09:36:28:396] nzos_Read: exit
(5888) [11-APR-2015 09:36:28:396] ntznzosread: SSL connection closed gracefully.
(5888) [11-APR-2015 09:36:28:396] ntznzosread: SSL connection terminated normally.
(5888) [11-APR-2015 09:36:28:396] ntznzosread: returning NZ error 28865 in result structure
(5888) [11-APR-2015 09:36:28:396] ntznzosread: exit
(5888) [11-APR-2015 09:36:28:396] nserror: nsres: id=0, op=68, ns=12537, ns2=12560; nt[0]=507, nt[1]=0, nt[2]=0; ora[0]=28865, ora[1]=0, ora[2]=0
(5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
(5888) [11-APR-2015 09:36:28:396] nsdo: nsctxrnk=0
(5888) [11-APR-2015 09:36:28:396] nscall: unexpected response
(5888) [11-APR-2015 09:36:28:396] nsvntx_dei: entry
(5888) [11-APR-2015 09:36:28:396] nsvntx_dei: exit
(5888) [11-APR-2015 09:36:28:396] nstimarmed: no timer allocated
(5888) [11-APR-2015 09:36:28:396] ntzcontrol: entry
(5888) [11-APR-2015 09:36:28:396] ntzcontrol: Command = 14
(5888) [11-APR-2015 09:36:28:396] ntzcontrol: exit
(5888) [11-APR-2015 09:36:28:396] ntzcontrol: entry
(5888) [11-APR-2015 09:36:28:396] ntzcontrol: Command = 15
(5888) [11-APR-2015 09:36:28:396] ntzcontrol: exit
(5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
(5888) [11-APR-2015 09:36:28:396] nsfull_cls: cid=0, opcode=65, *bl=0, *what=0, uflgs=0x0, cflgs=0x440
(5888) [11-APR-2015 09:36:28:396] nsfull_cls: nsctx: state=1, flg=0x4001, mvd=0
(5888) [11-APR-2015 09:36:28:396] nsclose: closing transport
(5888) [11-APR-2015 09:36:28:396] ntzdisconnect: entry
(5888) [11-APR-2015 09:36:28:396] ntzFreeNTZData: entry
(5888) [11-APR-2015 09:36:28:396] nzos_DestroyCtx: entry
(5888) [11-APR-2015 09:36:28:396] nzos_DestroyCtx: exit
(5888) [11-APR-2015 09:36:28:396] ntzFreeNTZData: exit
(5888) [11-APR-2015 09:36:28:396] nttdisc: entry
(5888) [11-APR-2015 09:36:28:396] nttdisc: Closed socket 560
(5888) [11-APR-2015 09:36:28:396] nttdisc: exit
(5888) [11-APR-2015 09:36:28:396] ntzdisconnect: exit
(5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
(5888) [11-APR-2015 09:36:28:396] nsclose: global context check-out (from slot 0) complete
(5888) [11-APR-2015 09:36:28:396] nadisc: entry
(5888) [11-APR-2015 09:36:28:396] nacomtm: entry
(5888) [11-APR-2015 09:36:28:396] nacompd: entry
(5888) [11-APR-2015 09:36:28:396] nacompd: exit
(5888) [11-APR-2015 09:36:28:396] nacompd: entry
(5888) [11-APR-2015 09:36:28:396] nacompd: exit
(5888) [11-APR-2015 09:36:28:396] nacomtm: exit
(5888) [11-APR-2015 09:36:28:396] nas_dis: entry
(5888) [11-APR-2015 09:36:28:396] nas_dis: exit
(5888) [11-APR-2015 09:36:28:396] nau_dis: entry
(5888) [11-APR-2015 09:36:28:396] nau_dis: exit
(5888) [11-APR-2015 09:36:28:396] naeetrm: entry
(5888) [11-APR-2015 09:36:28:396] naeetrm: exit
(5888) [11-APR-2015 09:36:28:396] naectrm: entry
(5888) [11-APR-2015 09:36:28:396] naectrm: exit
(5888) [11-APR-2015 09:36:28:396] nagbltrm: entry
(5888) [11-APR-2015 09:36:28:396] nau_gtm: entry
(5888) [11-APR-2015 09:36:28:396] nau_gtm: exit
(5888) [11-APR-2015 09:36:28:396] nagbltrm: exit
(5888) [11-APR-2015 09:36:28:396] nadisc: exit
(5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
(5888) [11-APR-2015 09:36:28:396] nsvntx_dei: entry
(5888) [11-APR-2015 09:36:28:396] nsvntx_dei: exit
(5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
(5888) [11-APR-2015 09:36:28:396] nsmfr: 2944 bytes at 0x2152400
(5888) [11-APR-2015 09:36:28:396] nsmfr: 1880 bytes at 0x2151ca0
(5888) [11-APR-2015 09:36:28:396] nscall: connecting...
(5888) [11-APR-2015 09:36:28:396] nladget: entry
(5888) [11-APR-2015 09:36:28:396] nladget: exit
(5888) [11-APR-2015 09:36:28:396] nsmfr: 238 bytes at 0x221def0
(5888) [11-APR-2015 09:36:28:412] nsmfr: 304 bytes at 0x20d8200
(5888) [11-APR-2015 09:36:28:412] nladtrm: entry
(5888) [11-APR-2015 09:36:28:412] nladtrm: exit
(5888) [11-APR-2015 09:36:28:412] nioqper: error from nscall
(5888) [11-APR-2015 09:36:28:412] nioqper: ns main err code: 12537
(5888) [11-APR-2015 09:36:28:412] nioqper: ns (2) err code: 12560
(5888) [11-APR-2015 09:36:28:412] nioqper: nt main err code: 507
(5888) [11-APR-2015 09:36:28:412] nioqper: nt (2) err code: 0
(5888) [11-APR-2015 09:36:28:412] nioqper: nt OS err code: 0
(5888) [11-APR-2015 09:36:28:412] niomapnserror: entry
(5888) [11-APR-2015 09:36:28:412] niqme: entry
(5888) [11-APR-2015 09:36:28:412] niqme: reporting ORA-28865 error
(5888) [11-APR-2015 09:36:28:412] niqme: exit
(5888) [11-APR-2015 09:36:28:412] niomapnserror: exit
(5888) [11-APR-2015 09:36:28:412] niotns: Couldn't connect, returning 28865
(5888) [11-APR-2015 09:36:28:412] niotns: exit
(5888) [11-APR-2015 09:36:28:412] nsbrfr: nsbfs at 0x214d1a0, data at 0x2225ca0.
(5888) [11-APR-2015 09:36:28:412] nsbrfr: nsbfs at 0x214dbf0, data at 0x2227d90.
(5888) [11-APR-2015 09:36:28:412] nsbrfr: nsbfs at 0x214d9e0, data at 0x21531c0.
(5888) [11-APR-2015 09:36:28:412] nigtrm: Count in the NI global area is now 1
(5888) [11-APR-2015 09:36:28:412] nigtrm: Count in the NL global area is now 1CLIENT SQLNET.ORA
TRACE_LEVEL_CLIENT = 10
TRACE_UNIQUE_CLIENT = ON
TRACE_DIRECTORY_CLIENT = C:\Oracle\app\client\product\12.1.0\client_1\network\trace
TRACE_FILE_CLIENT = sqlnet_client.trc
LOG_FILE_CLIENT = sqlnet_client.log
LOG_DIRECTORY_CLIENT = C:\Oracle\app\client\product\12.1.0\client_1\network\log
DIAG_ADR_ENABLED = OFF
TRACE_TIMESTAMP_CLIENT = ON
SQLNET.AUTHENTICATION_SERVICES = (ALL)
SQLNET.AUTHENTICATION_REQUIRED = FALSE
SSL_CLIENT_AUTHENTICATION = FALSE
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = C:\Oracle\app\client\product\12.1.0\client_1\network\wallets)
ADR_BASE = C:\Oracle\app\client\product\12.1.0\client_1\log
SERVER SQLNET.ORA
SQLNET.AUTHENTICATION_SERVICES= (ALL)
SSL_VERSION = 0
SSL_CLIENT_AUTHENTICATION = FALSE
TRACE_UNIQUE_SERVER = ON
TRACE_DIRECTORY_SERVER = /u01/app/grid/product/12.1.0/12.1.0.2/network/trace
TRACE_FILE_SERVER = sqlnet_server.trc
LOG_FILE_SERVER = sqlnet_server.log
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = /u01/app/grid/product/12.1.0/12.1.0.2/owm/wallets/grid)
LOG_DIRECTORY_SERVER = /u01/app/grid/product/12.1.0/12.1.0.2/network/log
SQLNET.AUTHENTICATION_REQUIRED = FALSE
DIAG_ADR_ENABLED = OFF
TRACE_TIMESTAMP_SERVER = ON -
Random "WSAECONNREFUSED: Connection refused" error
hello,
we're connecting to sap using logon groups and randomly we get this error
<i>TmConnect2: handle = 0
sncname = []
set snc-mode OFF TmISncSetOptions: set tm_mode for 0 to TM_SNC_OFF
disp service: sapdp00
TmIGetName: no DISPLAY set
NiMyHostName: hostname = 'APP006-2'
terminal name: APP006-2
connect to dispatcher on host /H/127.0.0.1/S/3201
RouteString </H/127.0.0.1/S/3201>
service in route <3201> != servname param <sapdp00>
NiIGetServNo: servicename '3201' = port 3201
NiICreateHandle: hdl 3 state NI_INITIAL_CON
NiIInitSocket: set default settings for new hdl 3/sock 1144 (I4; ST)
NiIBlockMode: set blockmode for hdl 3 FALSE
NiITraceByteOrder: CPU byte order: little endian, reverse network, low val .. high val
Wed Sep 26 16:59:12 2007
***LOG Q0I=> NiPConnect2: connect (10061: WSAECONNREFUSED: Connection refused) [nixxi.cpp 2985]
ERROR => NiPConnect2: SiPeekPendConn failed for hdl 3/sock 1144
(SI_ECONN_REFUSE/10061; I4; ST; 127.0.0.1:3201) [nixxi.cpp 2985]
NiICloseHandle: closing initial hdl 3
ERROR => TmIConnect: NiConnect (rc=-10) [dpxxtm.c 934]
TM_LAYER TmConnect <<
TmErrSet: socket invalid (-1)Wed Sep 26 17:00:52 2007
NiICreateHandle: hdl 4 state NI_INITIAL_CON
NiIInitSocket: set default settings for new hdl 4/sock 1624 (I4; DG)
NiDgHdlCreate: state of hdl 4 NI_DG_UNCONNECTED
NiHsLGetNodeAddr: got hostname 'localhost' from operation system
NiIGetNodeAddr: hostname 'localhost' = addr 127.0.0.1
NiDgHdlSendTo: hdl 4 sent 1 of 1 bytes to 127.0.0.1:0
NiICloseHandle: shutdown and close hdl 4/sock 1624
NiIExit: free nitab 0C0AF150
TmThrExit: free local resources
TmExit: free local resources</i>
i can't figure why sap gui is trying to connect to 127.0.0.1 ???
and after a while it works without any modification... very strange no? but annoying!
if i do not use logon group and connect directly it works but it is not what i need to do.
any idea?
regardshello,
thanks but configuration of logon groups is very straightforward...
my logon group contains my two application servers.
what else do i have to check?
regards -
Calling an R model via a web service - "Error in raw connection", "all connections are in use"
Hi there,
I have built an R model in Azure ML using the "Create R model" module and have trained it, turned it into a scoring experiment and a web service. I am now sending new data to it to be scored from an Excel workbook, and getting it to return
the prediction to the same workbook. Sometimes (but not always) when I try to run it from the workbook I get the following error:
{"error:{"code":"LibraryExecutionError","message":"Module execution encountered an internal library error.","details":[{"code":"FailedToEvaluateRScript","target":"Score Model (RPackage)","message":"The following error occurred during the evaluation of R script: R_tryEval: return error: Error in rawConnection (raw(0),\"wb\"):all connections are in use \n"}]}}
Usually, if you just press "OK", it works, but then sometimes it comes up again (seems quite random). I have tried a bit of troubleshooting and know that when you open lots of connections (e.g. with connections()) in R this error can occur, but
I'm not sure why in this context the error is coming up. Also, before this error I was getting the error regarding "cannot change value of locked binding for 'dataset'" described here:
https://social.msdn.microsoft.com/Forums/azure/en-US/e20b8cbf-2e89-4898-b602-d2138bf8901c/cannot-change-value-of-locked-binding-for-dataset?forum=MachineLearning
and so I made the suggested fix, adding
unlockBinding("dataset", environment())
to my Create R Model's Score script. I don't know whether this has anything to do with it or not?
Could anyone offer advice of how to get round this?
Many thanks.Hi,
I've solved the problem. For the record I added:
closeAllConnections()
at the end of the R scoring script (and at the end of another R-script I was using higher up the pipeline) and that seemed to do the trick.
Still, I'm intrigued as to why this was necessary. -
CF 6.1 - JRUN Closed Connection/Server errors occurring on a daily basis
We seem to be having issues with Jrun Closed Connection/Server errors occuring on a daily basis now. The server will stop responding to requests until the ColdFusion service is restarted.
We're using CF 6.1, the following error message is from the log files and seems to be Java/JVM related but I was hesitant to make any changes to the JVM parameters.
Any suggestions on how to resolve this daily issue of restarting CF service? Other than upgrading to more recent version of CF which we'll be doing later this year.
Thanks,
Dave
>>>>>>>>>>>>
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77FCAFF8
Function=[Unknown.]
Library=C:\WINNT\system32\ntdll.dll
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at java.io.WinNTFileSystem.list(Native Method)
at java.io.File.list(File.java:915)
at coldfusion.mail.MailSpooler.refreshSpoolFiles(MailSpooler.java:1484)
at coldfusion.mail.MailSpooler.run(MailSpooler.java:897)
at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:201)
at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:70)
Dynamic libraries:
0x00400000 - 0x0040F000 C:\CFusionMX\runtime\bin\jrun.exe
0x77F80000 - 0x77FFC000 C:\WINNT\system32\ntdll.dll
0x7C570000 - 0x7C624000 C:\WINNT\system32\KERNEL32.dll
0x7C2D0000 - 0x7C335000 C:\WINNT\system32\ADVAPI32.dll
0x77D30000 - 0x77D9F000 C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.dll
0x08000000 - 0x082A7000 C:\CFusionMX\runtime\jre\bin\server\jvm.dll
0x77E10000 - 0x77E6F000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7D000 C:\WINNT\system32\GDI32.dll
0x77570000 - 0x775A0000 C:\WINNT\system32\WINMM.dll
0x10000000 - 0x10007000 C:\CFusionMX\runtime\jre\bin\hpi.dll
0x00770000 - 0x0077E000 C:\CFusionMX\runtime\jre\bin\verify.dll
0x00780000 - 0x00798000 C:\CFusionMX\runtime\jre\bin\java.dll
0x007A0000 - 0x007AD000 C:\CFusionMX\runtime\jre\bin\zip.dll
0x39A70000 - 0x39A7F000 C:\CFusionMX\runtime\jre\bin\net.dll
0x75030000 - 0x75044000 C:\WINNT\system32\WS2_32.dll
0x75020000 - 0x75028000 C:\WINNT\system32\WS2HELP.DLL
0x782C0000 - 0x782CC000 C:\WINNT\System32\rnr20.dll
0x77980000 - 0x779A5000 C:\WINNT\system32\DNSAPI.DLL
0x75050000 - 0x75058000 C:\WINNT\system32\WSOCK32.dll
0x77340000 - 0x77353000 C:\WINNT\system32\iphlpapi.dll
0x77520000 - 0x77525000 C:\WINNT\system32\ICMP.dll
0x77320000 - 0x77337000 C:\WINNT\system32\MPRAPI.dll
0x75150000 - 0x75160000 C:\WINNT\system32\SAMLIB.DLL
0x7CDC0000 - 0x7CE10000 C:\WINNT\system32\NETAPI32.DLL
0x7C340000 - 0x7C34E000 C:\WINNT\system32\Secur32.dll
0x77BF0000 - 0x77C01000 C:\WINNT\system32\NTDSAPI.dll
0x77950000 - 0x7797B000 C:\WINNT\system32\WLDAP32.DLL
0x751C0000 - 0x751C6000 C:\WINNT\system32\NETRAP.dll
0x7CE20000 - 0x7CF0F000 C:\WINNT\system32\OLE32.DLL
0x779B0000 - 0x77A4C000 C:\WINNT\system32\OLEAUT32.DLL
0x773B0000 - 0x773DF000 C:\WINNT\system32\ACTIVEDS.DLL
0x77380000 - 0x773A3000 C:\WINNT\system32\ADSLDPC.DLL
0x77830000 - 0x7783E000 C:\WINNT\system32\RTUTILS.DLL
0x77880000 - 0x7790E000 C:\WINNT\system32\SETUPAPI.DLL
0x7C0F0000 - 0x7C154000 C:\WINNT\system32\USERENV.DLL
0x774E0000 - 0x77514000 C:\WINNT\system32\RASAPI32.dll
0x774C0000 - 0x774D1000 C:\WINNT\system32\rasman.dll
0x77530000 - 0x77552000 C:\WINNT\system32\TAPI32.dll
0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.DLL
0x70A70000 - 0x70AD6000 C:\WINNT\system32\SHLWAPI.DLL
0x77360000 - 0x77379000 C:\WINNT\system32\DHCPCSVC.DLL
0x777E0000 - 0x777E8000 C:\WINNT\System32\winrnr.dll
0x777F0000 - 0x777F5000 C:\WINNT\system32\rasadhlp.dll
0x39FB0000 - 0x39FBC000 C:\CFusionMX\runtime\bin\portscan.dll
0x74FD0000 - 0x74FED000 C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000 C:\WINNT\System32\wshtcpip.dll
0x3AAC0000 - 0x3AAC5000 C:\CFusionMX\runtime\jre\bin\rmi.dll
0x3B9D0000 - 0x3B9D6000 C:\CFusionMX\runtime\jre\bin\ioser12.dll
0x3BBE0000 - 0x3BC60000 C:\CFusionMX\lib\izmjniado.dll
0x3C270000 - 0x3C278000 C:\CFusionMX\lib\CFXNeo.dll
0x780A0000 - 0x780B2000 C:\WINNT\system32\MSVCIRT.dll
0x780C0000 - 0x78121000 C:\WINNT\system32\MSVCP60.dll
0x3C280000 - 0x3C28B000 C:\CFusionMX\lib\cfregistry.dll
0x3C3A0000 - 0x3C3A8000 C:\CFusionMX\lib\PerfmonClient.dll
0x3C5C0000 - 0x3C5CC000 C:\CFusionMX\lib\cfindex.dll
0x3C5D0000 - 0x3C7C2000 C:\CFusionMX\lib\vdk200.dll
0x3C7D0000 - 0x3C805000 C:\CFusionMX\lib\LIBALLRSEI.dll
0x7CA00000 - 0x7CA23000 C:\WINNT\system32\rsaenh.dll
0x7C740000 - 0x7C7CC000 C:\WINNT\system32\CRYPT32.dll
0x77430000 - 0x77441000 C:\WINNT\system32\MSASN1.dll
0x3EE10000 - 0x3EE3E000 C:\CFusion\CustomTags\GetUserGroups.dll
0x77800000 - 0x7781E000 C:\WINNT\system32\WINSPOOL.DRV
0x76620000 - 0x76631000 C:\WINNT\system32\MPR.DLL
0x7CF30000 - 0x7D176000 C:\WINNT\system32\SHELL32.dll
0x3F650000 - 0x3F75A000 C:\CFusionMX\runtime\jre\bin\awt.dll
0x75E60000 - 0x75E7A000 C:\WINNT\system32\IMM32.dll
0x3F760000 - 0x3F7B0000 C:\CFusionMX\runtime\jre\bin\fontmanager.dll
0x72800000 - 0x72846000 C:\WINNT\system32\ddraw.dll
0x728A0000 - 0x728A6000 C:\WINNT\system32\DCIMAN32.dll
0x72CF0000 - 0x72D84000 C:\WINNT\system32\D3DIM700.DLL
0x690A0000 - 0x690AB000 C:\WINNT\system32\PSAPI.DLL
Heap at VM Abort:
Heap
PSYoungGen total 5824K, used 1523K [0x10010000, 0x10800000, 0x138f0000)
eden space 3520K, 26% used [0x10010000,0x100fa4e0,0x10380000)
from space 2304K, 25% used [0x105c0000,0x106528b0,0x10800000)
to space 2304K, 0% used [0x10380000,0x10380000,0x105c0000)
PSOldGen total 29824K, used 22612K [0x138f0000, 0x15610000, 0x30010000)
object space 29824K, 75% used [0x138f0000,0x14f051e0,0x15610000)
PSPermGen total 20736K, used 20580K [0x30010000, 0x31450000, 0x38010000)
object space 20736K, 99% used [0x30010000,0x314293b0,0x31450000)
Local Time = Fri Dec 13 13:50:53 2013
Elapsed Time = 19424
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Server VM (1.4.2-b28 mixed mode)
space 3520K, 26% used space 2304K, 25% used space 2304K, 0% used space 29824K, 75% used space 20736K, 99% used# An error report file has been saved as hs_err_pid2920.log.
# Please refer to the file for further information.CF6, Java 1.4.2 and Windows NT - have not seen those for a long time myself.
Perhaps this is the issue from error report:
PSPermGen total 20736K, used 20580K
object space 20736K, 99% used
I guess Java non heap space Permanent Generation is full the next object trying to load into that space can’t fit, plus all the objects in there are referenced so no objects can be removed so free space can’t be made available. One would need to do some work with Java logging and know what JVM.CONFIG looks like to know if that guess is accurate.
You could try increase that parameter 10Mb or so and see what happens? In JVM.CONFIG, JVM args, -XX:MaxPermSize=NNm where NN = numbers.
Needless to say you are running a lot of end of life product and should plan to migrate to something more current.
HTH, Carl. -
TDS Connect Failure Error 17832 - Login Packet used to open the connection is structually invalid
I have a package which uses TDS, Tabular Data Stream, to connect from a VAX VMS system to SQL server and it works for all flavors of SQL server. Except for one server. When I try to connect to this server the application gets disconnected after sending the
Login 7.x message. The server is running Windows 2008 R2 Standard, SP1, 64-bit and is in a domain. SQL Server is 2008 R2 (10.50.4000). SQL Server is configured for "SQL Server and Windows Authentication mode" in Server Properties,
Security, Server authentication. It is set to "allow remote connections to this server". The TCP/IP Client Protocol is enabled in SQL Server Network Configuration, Protocols for MSSQLSERVER. The SQL log shows 2 Logon source errors
upon the connection attempt :
Error: 17832, Severity 20, State 11.
The login packet used to open the connection is structurally invalid; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 172.19.20.122]
I took a dump of the login packet from the client side package and included it here:
Sending Login7.x message
Sending PktTyp=10 LstPkt=01 PktNum=0001 PktSiz=00B8
0000 b0 00 00 00 01 00 00 71 00 10 00 00 07 00 00 00
0010 a8 00 00 00 00 00 00 00 e0 03 00 00 68 01 00 00
0020 04 09 00 00 56 00 06 00 62 00 02 00 66 00 02 00
0030 6a 00 06 00 76 00 0c 00 00 00 00 00 8e 00 0c 00
0040 a6 00 00 00 a6 00 05 00 00 06 5b e4 96 08 00 00
0050 00 00 b6 00 00 00 4c 00 54 00 56 00 56 00 53 00
0060 42 00 51 00 41 00 b0 a5 b1 a5 47 00 41 00 4e 00
0070 53 00 4b 00 45 00 69 00 68 00 65 00 2d 00 70 00
0080 61 00 2d 00 73 00 71 00 6c 00 30 00 31 00 54 00
0090 44 00 53 00 5f 00 53 00 45 00 52 00 56 00 49 00
00a0 43 00 45 00 53 00 48 00 38 00 34 00 44 00 42 00
0000 q h V b f j
v
0040 [ L T V V S B Q A G A N S K E i h e - p
0080 a - s q l 0 1 T D S _ S E R V I C E S H 8 4 D B
I found other sites which discussed the connection ring buffers and so, I queried them for any information which might help:
select cast(record as xml) xml_record from sys.dm_os_ring_buffers where ring_buffer_type = 'RING_BUFFER_CONNECTIVITY';
xml_record:
<Record id="53" type="RING_BUFFER_CONNECTIVITY" time="1697484630">
<ConnectivityTraceRecord>
<RecordType>ConnectionClose</RecordType>
<RecordSource>Tds</RecordSource>
<Spid>0</Spid>
<SniConnectionId>32E3FDFC-2BF2-4EB8-82D2-AE05E73AFCBC</SniConnectionId>
<SniProvider>7</SniProvider>
<RemoteHost>172.19.20.122</RemoteHost>
<RemotePort>1069</RemotePort>
<LocalHost>156.144.249.81</LocalHost>
<LocalPort>1433</LocalPort>
<RecordTime>11/7/2014 15:13:42.729</RecordTime>
<TdsBuffersInformation>
<TdsInputBufferError>0</TdsInputBufferError>
<TdsOutputBufferError>0</TdsOutputBufferError>
<TdsInputBufferBytes>184</TdsInputBufferBytes>
</TdsBuffersInformation>
<TdsDisconnectFlags>
<PhysicalConnectionIsKilled>0</PhysicalConnectionIsKilled>
<DisconnectDueToReadError>0</DisconnectDueToReadError>
<NetworkErrorFoundInInputStream>0</NetworkErrorFoundInInputStream>
<ErrorFoundBeforeLogin>1</ErrorFoundBeforeLogin>
<SessionIsKilled>0</SessionIsKilled>
<NormalDisconnect>0</NormalDisconnect>
<NormalLogout>0</NormalLogout>
</TdsDisconnectFlags>
</ConnectivityTraceRecord>
<Stack>
<frame id="0">0X0000000001E21F3B</frame>
<frame id="1">0X0000000001E1EE4E</frame>
<frame id="2">0X00000000010D2984</frame>
<frame id="3">0X0000000000A8AB94</frame>
<frame id="4">0X0000000000A8B05E</frame>
<frame id="5">0X0000000000A8AD57</frame>
<frame id="6">0X0000000000F651DE</frame>
<frame id="7">0X0000000000F65395</frame>
<frame id="8">0X0000000000F68925</frame>
<frame id="9">0X0000000000F659D6</frame>
<frame id="10">0X00000000755937D7</frame>
<frame id="11">0X0000000075593894</frame>
<frame id="12">0X00000000779159ED</frame>
<frame id="13">0X0000000077B4C541</frame>
</Stack>
</Record>
I feel the problem is in the configuration of the server's authentication which is requiring something beyond SQL server authentication.
Any help would be appreciated. Thanks in advance.One other item of note is the "SQL Server Network Configuration (32bit) "on this server is empty -- no "Protocols for MSSQLSERVER" branch like the 64-bit "SQL Server Network Configuration".
This is perfectly normal if all you have is a 64-bit instance on the machine. You would only see items here if you have a 32-bit server.
The odd part is the Native Client Configuration shows up under (32bit) with Client Protocols...
Yes, you always have a 32-bit client, which is to be used with 32-bit applications.
In any case, whether server is 32-bit or 64-bit is immaterial when you connect.
I'm afraid that I have not worked with TDS packets so that I can say what is wrong with this package, and I don't think I will try to read the TDS spec to say what the problem may be. But the issue seems to be that whatever you are using to create
the TDS packets is not doing this fully correctly.
Erland Sommarskog, SQL Server MVP, [email protected]
Maybe you are looking for
-
Question about adding/removing lyrics
When I add one of my songs, it already has lyrics "attached". The problem is they are wrong and if i try to change/delete them and sync with my iphone, it doesn't sync. Is there anyway i can remove them from the file?
-
Pulseaudio only listing dummy and ALSA only listing PulseAudio card
I messed up and I messed up bad. I was attempting to fix a popping/cracking noise on my microphone that was particularly annoying in skype. Along the way though, exposed after a reboot, Pulseaudio only lists dummy output and ALSA only lists PulseAudi
-
I am trying to analyze the data to be archived by my company. Say I have archiving object MM_MATBEL, how do I determine how many documents I have per year (or some period) and how much space each period is taking up? Thanks, -- Jackie
-
So my 8core 2007 'FutureProof' Mac Pro won't run Mountain Lion - any work arounds?
Can it really be true that it's the end of the OS upgrading line for my 2007 MacPro? Surely someone out there knows a way to get around this? After holding out for Mountain Lion while switching from MobileMe to iCould in the 'knowledge' that it wasn'
-
I'm configuring two oracle 11gr2 nodes on a HA scenario with Data Guard enabled configurations and Grid Control, but i'm having some doubts. - Where should I install Grid Control? In one of the nodes or on another machine? - What is the prefered stor