Error connecting to DB with JDK 1.4.2
Hi,
I'm trying to connect to a DB with this code:
Connection con = null; Statement stmt = null; try { con = ds.getConnection(); stmt = con.createStatement(); stmt.execute("select * from table;"); } catch (SQLException e) { logger.error(e); con.close(); }
but when I execute de oc4j server with a JDK 1.4.2 I get this error:
java.sql.SQLException: Excepci�n de E/S: The Network Adapter could not establish the connection
If I execute oc4j server with JDK 1.5.0 I have no problems... obviously I need to execute with JDK 1.5.0... Does anyone know what might be happening?
Thanks!!
Well, this specific exception roughly means that the Java code cannot find the database. I.e. the driver is loaded, the URL is semantically correct, but it can't find a database behind the in the URL given IP address / hostname, port number and/or the databasename. On the other side, the database can also be not up and running or not listening, or there is some firewall which blocks the communication.
That's all what I can say about it. As far now you're the only one who can find and fix the root cause.
Similar Messages
-
Error while running Dev60 with jdk 11711o
Dear OTN Members / Oracle Development Team.
Have any one tried it. Help required form Oracle Devlopemnt
Team.
hi i am using oracle8 OAS 4.0.7, Developer 6.0 production
with NT 4.0 and service Pack 3
when i try to run the form through jinitinator or JDK provided
with the package i get the following error.
running with jinitator
Oracle JInitiator version 1.1.7.11
Using JRE version 1.1.7.11o
User home directory = E:\WINNT\Profiles\Administrator
Proxy Configuration: no proxy
java.io.FileNotFoundException: \forms60\f60all.jar
at java.io.FileInputStream.<init>(FileInputStream.java:56)
at sun.net.www.protocol.file.FileURLConnection.connect(Compiled
Code)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileUR
LConnection.java:162)
at
sun.net.www.protocol.http.HttpURLConnection.openConnectionCheckRe
directs(Compiled Code)
at
sun.applet.AppletCache.getInputStream(AppletCache.java:588)
at
sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java
171)
at sun.applet.JinitAppletPanel.loadJarFiles(Compiled
Code)
at sun.plugin.AppletViewer.loadJarFiles(Compiled Code)
at
sun.applet.JinitAppletPanel.runLoader(JinitAppletPanel.java:500)
at sun.applet.JinitAppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:466)
and with JDK
Microsoft (R) VM for Java, 5.0 Release 5.0.0.3165
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==============================================
com.ms.security.SecurityExceptionEx[oracle/forms/engine/Main.init
]: cannot access file E:\WINNT\Java\.hotjava
at com/ms/security/permissions/FileIOPermission.check
at com/ms/security/PolicyEngine.deepCheck
at com/ms/security/PolicyEngine.checkPermission
at com/ms/security/StandardSecurityManager.chk
at com/ms/security/StandardSecurityManager.checkRead
at java/io/File.exists
at java/io/File.mkdirs
at sun/applet/AppletViewer.<clinit>
at java/lang/ClassLoader.findSystemClass
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at oracle/forms/engine/Main.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
Error getting package information: sun/applet
com.ms.packagemanager.PackageManagerException: Package not
ound
at com/ms/packagemanager/PackageManager.getPackage
at
com/ms/security/SecurityClassLoader.getSecurityInfoFromPackage
at
com/ms/security/SecurityClassLoader.findPackageManagerClass
at
com/ms/security/SecurityClassLoader.findPackageManagerClass
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at oracle/forms/engine/Main.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
java.lang.ClassNotFoundException: sun.applet.AppletViewer
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at oracle/forms/engine/Main.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
what could be the problem have any one encountered this kind of
problem.
pls help required.
mobeen
nullDear OTN Members / Oracle Development Team.
Have any one tried it. Help required form Oracle Devlopemnt
Team.
hi i am using oracle8 OAS 4.0.7, Developer 6.0 production
with NT 4.0 and service Pack 3
when i try to run the form through jinitinator or JDK provided
with the package i get the following error.
running with jinitator
Oracle JInitiator version 1.1.7.11
Using JRE version 1.1.7.11o
User home directory = E:\WINNT\Profiles\Administrator
Proxy Configuration: no proxy
java.io.FileNotFoundException: \forms60\f60all.jar
at java.io.FileInputStream.<init>(FileInputStream.java:56)
at sun.net.www.protocol.file.FileURLConnection.connect(Compiled
Code)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileUR
LConnection.java:162)
at
sun.net.www.protocol.http.HttpURLConnection.openConnectionCheckRe
directs(Compiled Code)
at
sun.applet.AppletCache.getInputStream(AppletCache.java:588)
at
sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java
171)
at sun.applet.JinitAppletPanel.loadJarFiles(Compiled
Code)
at sun.plugin.AppletViewer.loadJarFiles(Compiled Code)
at
sun.applet.JinitAppletPanel.runLoader(JinitAppletPanel.java:500)
at sun.applet.JinitAppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:466)
and with JDK
Microsoft (R) VM for Java, 5.0 Release 5.0.0.3165
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==============================================
com.ms.security.SecurityExceptionEx[oracle/forms/engine/Main.init
]: cannot access file E:\WINNT\Java\.hotjava
at com/ms/security/permissions/FileIOPermission.check
at com/ms/security/PolicyEngine.deepCheck
at com/ms/security/PolicyEngine.checkPermission
at com/ms/security/StandardSecurityManager.chk
at com/ms/security/StandardSecurityManager.checkRead
at java/io/File.exists
at java/io/File.mkdirs
at sun/applet/AppletViewer.<clinit>
at java/lang/ClassLoader.findSystemClass
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at oracle/forms/engine/Main.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
Error getting package information: sun/applet
com.ms.packagemanager.PackageManagerException: Package not
ound
at com/ms/packagemanager/PackageManager.getPackage
at
com/ms/security/SecurityClassLoader.getSecurityInfoFromPackage
at
com/ms/security/SecurityClassLoader.findPackageManagerClass
at
com/ms/security/SecurityClassLoader.findPackageManagerClass
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at oracle/forms/engine/Main.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
java.lang.ClassNotFoundException: sun.applet.AppletViewer
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at oracle/forms/engine/Main.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
what could be the problem have any one encountered this kind of
problem.
pls help required.
mobeen
null -
Error: connecting to db with SQL Developer
Hi,
I have just done a test disaster recovery (complete restore and recovery) of my database. I have successfully restored and recovered my database and managed to open the database , though with a few warnings shown below
RMAN> alter database open resetlogs;
database opened
RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT row
s
ORACLE error from target database:
ORA-06553: PLS-801: internal error [56319]
When I try to use sql developer to access the database. I end up getting the following error:
ORA-06544: PL/SQL:internal error, arguments: [56319], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [56319]
06544. 00000 - "PL/SQL: internal error, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
*Cause: A pl/SQL internal error occurred.
*Action: Report as a bug; the first argument is the internal error number.
vendor code 6544
This has been the first time I performed full recovery.
I am using sqldeveloper 1.1 and running oracle 10g R2
I was wondering if anybody has come across this problem before
Any help would be appreciatedSorry, I meant that "restore database" and "recover database" commands both completed successfully without errors<br><br>
I had a try connecting with sql *plus, which I get <br><br>
ORA-06553:PLS-801 internal error.<br><br>
<i>HOWEVER</i>, I still get connected, and can run queries against the tables<br><br>
You'd get better response from the Recovery Manager forum...<br>Sorry you are right, -
Error connecting OData service with Appbuilder
Hello,
I have created an OData service with SAP Netweaver Gateway and there isn't any problem while testing the service on the browser.
I made all the right settings in SMP 3.0 and the system is reached successfully from the server.I am developing the app with appbuilder so when trying to connect with SMP onboarding service there is the following error. Failed to get Service metadata.I can see the metadata in the browser so i can not understand what this error means.
If anybody can help it would be very useful because im in a deadlock.
Thank you in advance!Hi IIliona,
I am facing the same error
I can see the metadata in the browser.
The operation of entity set returns correct results as well.
Did you fix the it? If yes, do you mind sharing your solution?
Thanks!! -
Error connecting to WS with Adobe Reader with Reader Extension server
Hi all!
I'm using a form designed with Designer with Reader Extension. This form
connects to a ws in order
With Acrobat and the Acrobat Reader under 7.0.5 it's all OK, but another
user with Acrobat or Adobe Reader 7.0.8 received an error message when
trying to connect to the WS.
The error says that there was a problem reading the file and specified the
folder url in which there is the web service.
I remember that for some reasons, after 7.0.5 you've to certified the
document, but I can't certify a PDF form created with Designer :(
Anyone can help?
Thanks,
Alessio<[email protected]> ha scritto nel messaggio <br />news:[email protected]..<br />> Well, I just tried it to make sure, and I was able to call a web service <br />> fine from 7.0.8. Is it possible that someone at some point when Acrobat <br />> asks if you want to allow or block the operation chose block and clicked <br />> the check mark to make it remember that chose and automaticallly apply it? <br />> I notice that if I choose block it displays a generic error message saying <br />> it needs to be a certified form (which is wrong). Does it work from other <br />> machines?<br />><br /><br />Yes, maybe the users click on the block button. By Clicking on the Allow <br />button, all works.<br /><br />Alessio
-
Error connecting GSM Modem with system using java (error no is 20)
hi!
I'm new to jms, i want to send sms using GSM Modem.I used sony Ericsion mobile. I got one sample application , when i run it thows the following exceptions.
Feb 27, 2008 4:31:27 PM org.jsmsengine.CSerialDriver open
INFO: Connecting...
Feb 27, 2008 4:31:28 PM org.jsmsengine.CSerialDriver close
INFO: Disconnecting...
Connection to mobile failed, error: -20
i used the following code
import org.jsmsengine.*;
class SendMessage
public static void main(String[] args)
int status;
// Create jSMSEngine service.
CService srv = new CService("COM6",9600);
System.out.println();
System.out.println("SendMessage(): sample application.");
System.out.println(" Using " + srv._name + " " + srv._version);
System.out.println();
try
// Initialize service.
srv.initialize();
// Set the cache directory.
srv.setCacheDir(".");
// Set the phonebook.
// srv.setPhoneBook("../misc/phonebook.xml");
// Connect to GSM device.
status = srv.connect();
// Did we connect ok?
if (status == CService.ERR_OK)
// Set the operation mode to PDU - default is ASCII.
srv.setOperationMode(CService.MODE_PDU);
// Set the SMSC number (set to default).
srv.setSmscNumber("");
// Print out GSM device info...
System.out.println("Mobile Device Information: ");
System.out.println(" Manufacturer : " + srv.getDeviceInfo().getManufacturer());
System.out.println(" Model : " + srv.getDeviceInfo().getModel());
System.out.println(" Serial No : " + srv.getDeviceInfo().getSerialNo());
System.out.println(" IMSI : " + srv.getDeviceInfo().getImsi());
System.out.println(" S/W Version : " + srv.getDeviceInfo().getSwVersion());
System.out.println(" Battery Level : " + srv.getDeviceInfo().getBatteryLevel() + "%");
System.out.println(" Signal Level : " + srv.getDeviceInfo().getSignalLevel() + "%");
// Create a COutgoingMessage object and dispatch it.
// *** Please update the phone number with one of your choice ***
COutgoingMessage msg = new COutgoingMessage("+919830645175", "Ripon");
// Character set is 7bit by default - lets make it UNICODE :)
// We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
// this does not make ANY difference...
msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
else System.out.println("Message Failed!");
// Disconnect from GSM device.
srv.disconnect();
else System.out.println("Connection to mobile failed, error: " + status);
catch (Exception e)
e.printStackTrace();
System.exit(0);
In my jre path i added win32.dll to use comm.jar
please help meThanks so much; you just helped me fit together the last few pieces of this puzzle. I did a little more digging and found a [url http://support.webecs.com/KB/a375/how-do-i-configure-sql-server-express-to-allow-remote.aspx]knowledge base article that explains how to set a static TCP port. According to the article, SQL Server 2005 selects a random dynamic port on installation, and my experience bears out the fact that it does survive server reboots.
TheAvalanche wrote:
If you don't want that, make sure the SQL Server Browser service is running and connect to your SQL Server using the instance name, and not use a port in the JDBC-url.
BTW: I am not sure if jtds supports usage of the browser service, the Microsoft SQL Server JDBC drivers since version 1.2 (I think) do.It would appear that jTDS doesn't support the browser service, at least not by default, because I tried using the instance name rather than the port to connect (along with just about every other possible combination) and it didn't work. In my opinion, using a static port makes a lot more sense anyway, since you don't have to rely on the browser service, and you'll always know what port to set in your firewall exceptions. (For anyone out there wondering about firewall exceptions, in addition to the static port for the server, an exception has to be created for the browser on UDP 1434 if you're going to use it, which most programs apparently do.)
Once again, thanks for all the good information!
Edited by: javadecaf on May 27, 2011 8:03 AM
Insert link button on toolbar generated link syntax that doesn't work: text. What's up with that? -
Error - Connecting SharePoint 2013 with OWA
We are configuring OWA on SharePoint 2013.
Installation and configuration of OWA is done are when the "https://<InternalName>/hosting/discovery" is typed in browser, XML is being displayed on the Web Front end server.
There is an error on running the below command on the web front end server:
New-SPWOPIBinding -"Servername" ,
Checking the event viewer , there is an error :
An operation failed because the following certificate has validation errors with event id 8311
I am struck here, should i re install the certificate?
What could be the problem here?
Thanks in advanceHi Balaji Pastapure,
do you have:
1. Your ADRMS server installed on the same machine as SharePoint?
2. SCP registered in AD domain?
Did my post help you or make you laugh? Don't forget to click the Helpful vote :) If I answered your question please mark my post as an Answer. -
Error connecting to 8i with dbping
I am trying to run some WROX example applications. I originally install WL6.0 and got 'dbping' working, but the examples requrired too many 5.1 paths that 6.0 didn't have so I installed 5.1 (on Win2K Pro) Now I can't get 'dbping' to work. I have /bin/oci815_8 in my PATH, but I am getting an "java.lang.NoSuchFieldError". This is the stack trace that comes up:Exception in thread "main" java.lang.NoSuchFieldError: isXA at weblogic.db.oci.OciConnection.native_initialize(Native Method) at weblogic.db.oci.OciConnection.initialize(OciConnection.java:338) at weblogic.db.oci.OciConnection.<init>(OciConnection.java:114) at weblogic.jdbcbase.oci.Connection.<init>(Connection.java:239) at weblogic.jdbc.oci.Connection.<init>(Connection.java:19) at weblogic.jdbc.oci.Driver.allocateConnection(Driver.java:33) at weblogic.jdbcbase.oci.Driver.connect(Driver.java:127) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:146) at utils.dbping.main(dbping.java:156)Thanks for any help,Chris
what is the difference between the 10g and 8i user? I'm surprised that the database would start if the 10g user points to 10g home and the pfile/spfile was not there for the 8i database. Is there any meaningful data in the alert log from when it was started under the 10g user and when it errors under 8i user? And have you run an env command and ensured everything points to the 8i home, such as the ld_library path, etc?
-
hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
and this is an pic for the problemThere is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it
-
Error while parsing JSP with WebLogic 5.1/SP9/JDK 1.2.2
Hello everybody,
I get the error given below when calling a JSP in a WebLogic
application which seems to work fine in all other (non-JSP) parts:
java.lang.NullPointerException:
at weblogic.servlet.jsp.JspLexer.addSetPropertyValue(JspLexer.java:1432)
at weblogic.servlet.jsp.JspLexer.mXML_SET_PROPERTY(JspLexer.java,
Compiled Code)
at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1726)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java, Compiled Code)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java, Compiled
Code)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java, Compiled Code)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java, Compiled Code)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:159)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:109)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java,
Compiled Code)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled
Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
I know that this error has been reported more than once in these
discussion groups, and all people who solved it say
- that it occurs only wen running WebLogic 5.1 with JDK 1.3 instead of
1.2.2
- that it may also be caused by bad jsp code
But in my case, it has to be another reason, because
- I am using jdk 1.2.2
- the same JSP file is running withour errors on WebLogic 6
I wonder if it could have something to do with the operating system:
the parsing error is produced on a Windows version of WL 5.1, while my
WL 6 which doesn't cause errors is running with Linux.
Many thanks in advance for any help,
Eckhard Beisswenger
Once again me!
After a long time, I stumbled by accident across the answer that solves the problem I described above. It is explained at
http://support.bea.com/application;JSESSIONID_WLCS_DEFAULT=2R2lzQfEBxFRMX2z0AxeU1Un3N1522I9fCIUI7GfjnjsiSYkPscz
The clue is that weblogic complains about corresponding get and set methods, when the type of the set methods parameter is different from the return type of the corresponding get method. Unfortunately, the weblogic lexer class gives only a NullPointerException without any hint.
-
When I connect to itunes with my iphone I keep getting the error -42110 but I am able to get on itunes and download a cd but it will not sync. please help
http://borgdatanode42.selfhost.me/blog/index.php?#param=id_48
try to using iTunes via remotedesktop? try without. -
'Connection has already been closed'. Random error connecting with a pool
Hi all,
I've got a problem I cannot solve, and really hope in someone's help...
The fact is: I'm working on a webapp which doesn't made use of frameworks or patterns or similars. I introduced the DAO pattern in order to organize and speed up the work. At the core of the new classes there is the DBDAO, and this is the way it obtains the connection:
protected Connection conn = null; ... protected Connection getConnection() { try { if (conn == null || conn.isClosed()) { Context ctx = new InitialContext(); javax.sql.DataSource ds=null; ds =(javax.sql.DataSource) ctx.lookup( "agespPool" ); conn = ds.getConnection(); conn.setAutoCommit(false); } } catch (Exception ne) ...
Every new class that needs to access the db extends DBDAO and retrieves the conn with this method. In order to make things work without changing all the code, I modified the old class named 'Connessione' and made it extend DBDAO. Here is its method:
public class Connessione extends DBDAO{ ... public static synchronized Connection getConnessione() throws Exception { return new Connessione().getConnection(); }
That's all. Finished with the code.
Now, if someone uses the new classes extending DBDAO, all goes well. But for some old function that still work with Connessione.getConnessione(), connection closes suddenly with no reason.
For example, calling a page with some combo box populated with a db connection, you catch a:
java.sql.SQLException: Connection has already been closed. at weblogic.jdbc.wrapper.PoolConnection.checkConnection(PoolConnection.java:63) at weblogic.jdbc.wrapper.ResultSetMetaData.preInvocationHandler(ResultSetMetaData.java:37) at weblogic.jdbc.wrapper.ResultSetMetaData_oracle_jdbc_driver_OracleResultSetMetaData.getColumnType(Unknown Source) at it.praxis.tim.agesp.pub.sql.PagingList.populate(PagingList.java:98) at it.praxis.tim.agesp.pub.sql.PagingList.executeSQL(PagingList.java:53) at jsp_servlet._jsp._todolist_new._richiesta.__listarichieste._jspService(__listarichieste.java:353) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
or sometimes:
- 20080417141147: <E> HtmlSelect.createHtmlSelect(4) - Errore! java.sql.SQLException: Result set already closed - 20080417141147: <E> HtmlSelect.createHtmlSelect(7) - Errore! java.sql.SQLException: Connection has already been closed. - 20080417141147: <E> ERRORE: ricercaRichieste : java.sql.SQLException: Statement has already been closed
That is, the conn is closed while used to populate the combo box. I don't understand who closes it.
Moreover, that happens randomly: 1 or 2 times over 4 hits on the page. The other times, all goes well. Most of the other pages, all goes well. So I don't think I have to search for a bug in the code.
Now, I'm working with BEA WL 8.1 sp 5 and Oracle 9.2.0.1.0 .
The error turns out even if I work locally (with Tomcat 5.5.23).
The webapp made use of a custom driver beforehand, and I replaced it with oracle's driver.
I tried to set the Connection Pool with oracle.jdbc.driver.OracleDriver and oracle.jdbc.OracleDriver .
I left the default for the connection pool, and then tried to set (BEA):
Connection Reserve Timeout: -1
Test Created Connections: On
with no changes.
The connection suddenly and randomly closes.
Any help would be appreciated...
Many thanksthe thing that you are instantiating isn't a Connection object, it's a Connessione object. That's returning one that's either been stashed from a previous call, or
acquires one from the data sourcea new Connessione object means a call to getConnection that means a new Connection object. That code is synchronized, it has to be a new object.
It is entirely possible that conn is not null if other actions have taken place in your constructor. Even assuming it is null, we don't know anything about the
connection pool you're trying to use, though it looks like it's probably weblogic's one.The contructor doesn't know of the connection. As for the pool, it is weblogic's one.
And even assuming both of these cases, we have no particular reason to believe that you're calling the getConnessione() method instead of accidentally calling
getConnection() and thus no reason to believe that you're definitely carrying out the actions that you believe you're carrying out.I wrote that the problem comes out in the old code that once worked fine. That code only uses Connessione.getConnessione() .
Conversely we have an error message that says you're closing connections elsewhere. Clearly there's a bug. It's presumably in your assumptions. You're
arguing instead of checking them.If I have a wrapper logging the close() calls, I have to see every call logged. Even if there's a bug (but remember that the code worked fine with a previous custom datasource), why do you think I shouldn't see that close() logged?
I may be wrong, but I already searched in that code. I'm arguing after all the checks.
There is no other thread that can see that connHow do you know? I have that Connessione.getConnessione() in a jsp. It's synchronized. That gives a new connection. I see it passed only to an utility class that queries the db and reads the resultset.
Who do you think can access that connection? -
Hi,
This is kind of weird issue that I am experiencing with excel connection manager in SSIS 2012. This issue occurs sometimes but when I close and re-open SSDT (SQL Server Data Tools - newer BIDS) then this issues goes off temporarily.
Just FYI, through SSDT environment I executed the package successfully with both settings Run64bit runtime setting to Yes and No when error does not occur.
So far I have installed
http://www.microsoft.com/en-us/download/details.aspx?id=13255 (Microsoft Access Database Engine 2010 Redistributable).
I still remember for older versions of SQL Server (2005 & 2008) that I have executed Excel connection SSIS packages with Run64bit runtime = false i.e. in 32-bit mode. As far as I know I think Excel 64-bit issue has been resolved with SQL Server
2012 release.
Here is the detail of error message:
TITLE: Package Validation Error
Package Validation Error
ADDITIONAL INFORMATION:
Error at Data Flow Task [Excel Source [2]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection
Manager" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error at Data Flow Task [SSIS.Pipeline]: Excel Source failed validation and returned error code 0xC020801C.
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task: There were errors during task validation.
Error at Package [Connection manager "Excel Connection Manager"]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Access Database Engine" Hresult: 0x80004005 Description: "Unspecified error".
(Microsoft.DataTransformationServices.VsIntegration)
Here are my environment details:
SQL Server 2012 {Microsoft SQL Server 2012 (SP1) - 11.0.3368.0 (X64) } , Excel 2010 (32-bit). I am developing SSIS code on Virtual desktops with Windows 7 32-bit OS.
Also it occurred to me that since Virtual Desktops are on Shared Infrastructure, the source files and SSIS packages (code) can be on Shared drives for e.g. \\<Corpnet>\userdata\<Corp_Users_Grp>\<Username>\Visual Studio 2010\Projects\Integration
Services Project2\Integration Services Project2\Package.dtsx.
Does this kind of Shared drives have any impact to give this issue?
Thanks in advance!
Ketan
P.S.: I had look at this forum question -->
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/903bbe1d-e070-4c43-9d3b-0a5193550029/64bit-error-in-excel-connection-manager-in-ssisHi Arthur,
Thanks for your response.
Yes, it looks like SSIS still has bunch of issues with Excel files like as follows:
1) Some times excel source files cannot be parsed by excel source connection manager.
2) For derive column conversion, we can't replace the existing column. rather, we have to add the derived column as " add as new column" which is tough to manage while destination mapping.
3) If an column in excel contains a data which is not of the data type assigned for the column in excel, the excel source reads that data as "null". For the same, we can't validate the data and redirect the erroneous data in reject file. <-- For
this we tried IMEX setting also
4) In multi-tab/sheet excel file, excel source is unable to detect a tab and identify the metadata of the excel.
I am also checking Microsoft connect for Excel issues with SSIS 2012(https://connect.microsoft.com/SQLServer/SearchResults.aspx?SearchQuery=excel#&&PageIndex=22
As worst case scenario, I am thinking of converting Excel to CSV file or Flat text file. (http://www.mssqltips.com/sqlservertip/2772/importing-data-from-excel-using-ssis--part-2/).
Do you think it is advisable to convert Excel into CSV or Flat file.
Thanks,
Ketan -
Error
[Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There
may be error message
I am using BIDS Microsoft Visual Studio 2008 and running the package to load the data from excel .
My machine has 32 bit excel hence have set property to RUN64BITRUNTIME AS FALSE.
But the error still occurs .
I checked on Google and many have used Delay validation property at Data flow task level to true but even using it at both excel connection manager and DFT level it doesnt work
MudassarThats my connection string
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\SrcData\Feeds\Utilization.xlsx;Extended Properties="Excel 12.0;HDR=NO";
Excel 2010 installed and its 32 bit edition
Are you referring to install this component -AccessDatabaseEngine_x64.exe?
http://www.microsoft.com/en-us/download/details.aspx?id=13255
Mudassar
You can try an OLEDB provider in that case
see
http://dataintegrity.wordpress.com/2009/10/16/xlsx/
you might need to download and install ms access redistributable
http://www.microsoft.com/en-in/download/details.aspx?id=13255
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
i am a OS10.7.4 user. yesterday i bought a Lacie external hard disk but error message appear said " You cant open the applicant LaCie setup assistant because PowerPC applicants are no longer support". please help me how to connect my mac with Lacie??
You do not need the Setup Assistant; in fact, you do not need any software on an external hard drive. I have two LaCie's; I erased the drive as soon as I plugged it in. You will need to format it anyway because most hard drives come Windows formatted. So, if you only want to use it with the Mac, highlight it in Disk Utility and choose Mac OS Extended (Journaled) as the format and the GUID Partition scheme under Options. While doing that, it will erase the drive (and get rid of the LaCie software) - once finished, your drive is ready to use for Time Machine or any other backup plans you have for it.
Maybe you are looking for
-
I have a new computer. i signed into itunes but my music isn't there. How do i get all my music off my old iphone to the new computer so i can put all the music on my new one. The guy at att told me that icloud would sync everything i had in my note
-
Reply to all using ItemReply does not work when specifying messageid
Hello everyone, I am trying to use the ItemReply token to perform a "Reply to All" action on a mail item with a known message identifier and include the original message text in the response. According to the documentation, the call should be: ItemRe
-
Hello PP Guru's I have Processed COGI errors , but the error logs remaining for previous years for which I want to delete , when I am deleting in by option Select all system throwing error related to system performance . Please guide me how can I do
-
HT1752 Where can I obtain a new battery for my ipod U2 Special edition?
Hello, I have the U2 ipod. I need a new battery but the Apple store cannot assist me. Any feedback from the community regarding obtaining a new battery? Thank you, Deborah 146
-
Hi Experts Does anyone know if there exists a master guide, user guide or how-to guide on Report Designer? Kind regards Erik