Closing a OracleConnection
hi,
i have a class which returns the connection object to me by getting from the jndi datasource that we specify. i'm using the following to send the array to the procedure.
// convert java array to Oracle array type to pass as in parameter.
ArrayDescriptor binList_type_descriptor = ArrayDescriptor.createDescriptor("REPLY_ARRAY", conn);
ARRAY binArray = new ARRAY(binList_type_descriptor, conn, binList);I was getting a ClassCastException in the line where i am creating ArrayDescriptor.
ArrayDescriptor.createDescriptor ()Then I read in the forums that we need to use OracleConnection object while passing to createDescriptor method and this will solve the problem. I got the OracleConnection object using the following code and tried.
Connection oconn = conn.createStatement().getConnection();
// convert java array to Oracle array type to pass as in parameter.
ArrayDescriptor binList_type_descriptor = ArrayDescriptor.createDescriptor("REPLY_ARRAY", oconn);
ARRAY binArray = new ARRAY(binList_type_descriptor, conn, binList);After giving the above code, I am not getting any ClassCast exception and application works properly.
Now, the problem is whenever I try to close the connection that I got above, am getting ClassCast Exception again at the same line (ArrayDescriptor.createDescriptor()). I tried the following ways and both gave the exception.
oconn.close(); // this gave ClassCastException
oconn = null; // this also gave ClassCastException
Please help me in resolving this issue. I need to release the OracleConnection back to the pool otherwise it may pile up the connection objects and create problem.
Thanks In Advance,
Madhuri
>
After giving the above code, I am not getting any
ClassCast exception and application works properly.
Now, the problem is whenever I try to close the
connection that I got above, am getting ClassCast
Exception again at the same line
(ArrayDescriptor.createDescriptor()). I tried the
following ways and both gave the exception.
oconn.close(); // this gave ClassCastException
oconn = null; // this also gave ClassCastException
There is absolutely no way that the second line above gave you that exception. And I seriously doubt the first could give it as well.
The stack trace tells you the exact line the error occurs on. If it indicates the second line above then that means that you are NOT using the same source code as the code that is running. And it probably means the same if it occurs on the first.
So your first step is to determine where the exception is actually occurring.
Similar Messages
-
SQLException: Cursor is closed while calling a java stored procedure
Hi,
I got the following error when trying to read from a cursor of a java stored procedure:
java.sql.SQLException: Cursor is closed
The java procedure is stored in the database and wrapped by a sql call. Then another java class executes the sql call.
The stored procedure looks like this:
import java.io.Reader; import java.security.MessageDigest; import java.sql.*; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import oracle.jdbc.OracleCallableStatement; import oracle.jdbc.OracleConnection; public class test { static Connection conn = null; static String username = null; static String password = null; static Integer userid = null; public static void main(String args[]) throws Exception { username = "keller"; password = "945435"; login(username, password); } public static String login(String in_username, String in_password) { String access = null; String password = null; try { DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); // Non OracleVM System.out.print("Verbindung wird initialisiert... "); conn = //DriverManager.getConnection("jdbc:default:connection:"); //conn.setAutoCommit(false); DriverManager.getConnection("jdbc:oracle:thin:@[...]:1521:[...]","[...]","[...]"); System.out.println("OK"); System.out.print("Logindaten werden ueberprueft... "); String sql = "SELECT matrikelnr, password FROM student WHERE name = ?"; PreparedStatement pstmt = conn.prepareStatement(sql); pstmt.setString(1, in_username); ResultSet rset = pstmt.executeQuery(); while (rset.next()) { userid = rset.getInt(1); password = rset.getString(2); } access = "student"; pstmt = conn.prepareStatement(sql); if (password == null) { sql = "SELECT dozentnr, password FROM dozent WHERE name = ?"; pstmt = conn.prepareStatement(sql); pstmt.setString(1, in_username); rset = pstmt.executeQuery(); while (rset.next()) { userid = rset.getInt(1); password = rset.getString(2); } pstmt = conn.prepareStatement(sql); if (password == null) { throw new SQLException("User nicht gefunden!"); } access = "dozent"; } //rset.close(); // Resultset schließen //pstmt.close(); // Statement schließen // MD5 Hash vergleichen MessageDigest md5 = MessageDigest.getInstance("MD5"); md5.reset(); md5.update(in_password.getBytes()); byte[] result = md5.digest(); StringBuffer hexString = new StringBuffer(); for (int i=0; i<result.length; i++) { if(result[i] <= 15 && result[i] >= 0){ hexString.append("0"); } hexString.append(Integer.toHexString(0xFF & result));
if (password != null) {
if (password.equals(hexString.toString())) {
System.out.println("OK");
} else {
throw new Exception("Falsches Passwort!");
catch(SQLException e) {
System.err.println("SQL Fehler!");
System.err.println(e.getMessage());
catch(Exception e) {
System.err.println("Fehler!");
System.err.println(e.getMessage());
return access;
public static void getLeistungsschein(int matrikelnr, ResultSet[] rout)
ResultSet rs = null;
try
System.out.print("Berechtigung ueberpruefen... ");
if (userid != matrikelnr)
throw new Exception("Zugriff verweigert, keine Berechtigung!");
int mnr = matrikelnr;
((OracleConnection)conn).setCreateStatementAsRefCursor(true);
PreparedStatement ps = conn.prepareStatement("select bezeichnung, note from klausur inner join leistungsschein on klausur.KLAUSURNR=leistungsschein.KLAUSURNR where matrikelnr= ?");
ps.setInt(1, mnr);
rs = (ResultSet)ps.executeQuery();
rout[0]= rs;
catch(SQLException e) {
System.err.println("Fehler!");
System.err.println(e.getMessage());
catch(Exception e) {
System.err.println("Fehler!");
System.err.println(e.getMessage());
The sql call:
create or replace
procedure pgetleistungsschein(matrikelnr in number, cur OUT refcurpkg.refcur_t) is
language java name 'Klausurverwaltung.getLeistungsschein(int, java.sql.ResultSet[])';
And finally the wrapper is called by another java programm, see this:
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import oracle.jdbc.OracleCallableStatement;
import oracle.jdbc.OracleResultSet;
import oracle.jdbc.OracleTypes;
public class cursortest {
public static void main(String[] args) {
try{
//-- Oracle Treiber laden
Class.forName( "oracle.jdbc.driver.OracleDriver" );
Connection c = DriverManager.getConnection( "jdbc:oracle:thin:@sligo.fh-trier.de:1521:ubuntu", "dbsem_java","javajava");
CallableStatement stmt = null;
ResultSet rs1 = null;
int matrnr = 945098;
// Call PLSQL Stored Procedure
stmt = (CallableStatement)c.prepareCall("{ call ? := getklausuren(?) }");
stmt.setInt(2, matrnr);
// 2nd parameter is OUT paremeter
stmt.registerOutParameter(1, OracleTypes.CURSOR);
// Execute the callable statement
stmt.execute();
//Cursor in ResultSet einlesen
rs1 = ((OracleCallableStatement)stmt).getCursor(1);
ResultSetMetaData rsmd = rs1.getMetaData();
int anzSpalten = rsmd.getColumnCount();
List<String[]> zeilen = new ArrayList<String[]>();
while(rs1.next())
String[] zeile = new String[anzSpalten];
for (int i=1; i<=anzSpalten; i++)
zeile[i-1]=rs1.getString(i);
zeilen.add(zeile);
String[][] array_angeb_klaus = (String[][])zeilen.toArray(new String[zeilen.size()][anzSpalten]);
//**** ENDE
rs1.close();
stmt.close();
//c.close();
catch (SQLException e){
System.out.println(e);
catch (ClassNotFoundException f){
System.out.println(f);On top of what jschell says, this just looks wrong in terms of how Oracle's internal Java works as well.
[Have a look here |http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/refcur/index.html] (unless things have changed significantly over the past few years for Oracle Java).
Is the db you are querying a different one to the one this Java is stored in? -
hi,
I'm using OC4J version "Oracle Application Server Containers for J2EE 10g (9.0.4.3.0) (build 060411.1838)" as my application server running on AIX 5.3 with java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
Classic VM (build 1.4.1, J2RE 1.4.1 IBM AIX build ca1411-20030930 (JIT enabled:
jitc)).
Recently i encountered the Closed Statement Exception occasionally, from the stack trace, this exception was thrown during the time i commit the transaction. I wonder is this a bug in the OC4j.jar file ? Please advice me how to overcome this problem. Thanks
java.sql.SQLException: Closed Statement
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Compiled Code))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Inlined Compiled Code))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Inlined Compiled Code))
at oracle.jdbc.driver.OracleStatement.ensureOpen(OracleStatement.java(Inlined Compiled Code))
at oracle.jdbc.driver.OraclePreparedStatement.sendBatch(
OraclePreparedStatement.java(Compiled Code))
at oracle.jdbc.driver.OracleConnection.commit(OracleConnection.java(Compiled Code))
at com.evermind.sql.FilterConnection.commit(FilterConnection.java(Compiled Code))
at com.evermind.sql.OrionCMTConnection.commit(OrionCMTConnection.java(Compiled Code))
at com.evermind.sql.ConnectionBCELProxy.commit(ConnectionBCELProxy.java(Compiled Code))thanks for the replies, from the stack trace, it seems that the exception is thrown at the time of "commit", but my close statement is put in the finally block, so there is no way the connection is closed and recently this exception just disappear without changing code.
-
Everybody,
I want to use odp.net to connect the timesten in-memory database in vs2008 vc#.net. However, the creation of OracleConnection last 20 seconds.
Code:
Stopwatch sw = new Stopwatch(); sw.Start();
OracleConnection conn = new OracleConnection();//last 20 seconds
sw.Stop();
Console.WriteLinesw.ElapsedMilliseconds.ToString());
Could someone encounts the same problem? Or that condition is normal?
Thank you very much.Hi,
The only thing that jumps out within your problem description is that connections are being increased every 5 minutes. Are you sure its every 5 minutes and not 3 minutes which is the timing interval used by the Connection Pool facility to perform connection pool maintenance. If this occurs even when the application is idle then you could be running into the following known issue filed against 11.2.0.1.0 and fixed in 11.2.0.1.2.
Bug 9711600 - CONNECTIONS INCREASE BEYOND MAX POOL SIZE EVERY 3 MINUTE
This is specific to using the option CommandBehavior.CloseConnection when calling execute reader. Are you using this option and then also closing the connection in code before the datareader object is closed, if so you may be hitting this bug. You can also generate an ODP trace at level 15 of the behavior and if you see negative pool counts, that is also a diagnostic that points to this bug.
This is fixed in 11.2.0.1.0 Patch 3 or later for x64. If you have support, I recommend you open a service request to verify if this is your issue and if a patch set may help you.
Regards
Jenny B. -
ORA-01000 Max Cursors even when closing
When I execute the following code, the number of open cursors increases by 2, even though I am disposing of the reader, command and connection.
long returnValue=0;
OracleConnection myOracleConnection = null;
OracleCommand cmd = null;
OracleDataReader reader = null;
try
myOracleConnection = new OracleConnection(strDBConn);
myOracleConnection.Open();
cmd = new OracleCommand(spGetNextSequenceNo, myOracleConnection) ;
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(prmSystemType,intSystemType);
cmd.Parameters.Add(prmSection,strSection);
cmd.Parameters.Add(new OracleParameter("rc1", OracleType.Cursor)).Direction = ParameterDirection.Output;
reader = cmd.ExecuteReader();
if(reader.Read())
int colCount = reader.GetOrdinal("NextSequence");
returnValue = reader.GetInt64(colCount);
return returnValue;
catch(Exception myException)
return 0;
finally
if( myOracleConnection != null )
myOracleConnection.Close();
myOracleConnection = null;
if( cmd != null )
cmd.Dispose();
cmd = null;
if( reader != null )
reader.Close();
reader.Dispose();
reader = null;
the stored procedure being called is given below
CREATE OR REPLACE PROCEDURE SPCRISPGETTRANSFORMFIELDS(
RC1 IN OUT crisp.globalPkg.RCT1) AS
/* Force:DPP Version: 1.0.5 DateModified: 2003:07:25 */
CURSOR curExtractsTrnsfrmLook IS
SELECT
name
FROM
CRISP_SYS_EXTRCTS_TRNSFRM_LOOK;
myRowVariable curExtractsTrnsfrmLook%ROWTYPE;
BEGIN
OPEN RC1 FOR
SELECT
FROM
CRISP_SYS_EXTRCTS_TRNSFRM_LOOK;
OPEN curExtractsTrnsfrmLook;
FETCH curExtractsTrnsfrmLook INTO myRowVariable;
IF curExtractsTrnsfrmLook%NOTFOUND THEN
raise_application_error(-20999, 'ERROR encountered when retrieving rows from CRISP_SYS_EXTRCTS_TRNSFRM_LOOK (spCRISPGetTransformFields)');
END IF;
CLOSE curExtractsTrnsfrmLook;
EXCEPTION
WHEN OTHERS THEN
IF curExtractsTrnsfrmLook%ISOPEN THEN
CLOSE curExtractsTrnsfrmLook;
END IF;
RAISE;
END SPCRISPGETTRANSFORMFIELDS;
I am closing the cursor checking for the existence of any rows, but even this cursor appears in the v$open_cursor view.
Can anyone explain why this is?I am having the exact same problem and am also closing and disposing the datareader and the connection. have you heard anything?
-
Hi,
The following is the exception that i get when i use hibernate 3.0 to connect to Oracle 10G using the ojdbc14.jar.
i get this error when i run my eclipse plugin based application on windows vista. This happens when i keep the system idle for prolonged hours apprx 8 hours or more. But the same is not reproduced when i keep it idle on the windows xp system.
The Oracle server is present on another system which is a windows XP system but not on the same system where iam running the appliation.
So i need to know whether it is the Vista problem or the hibernate problem.
org.hibernate.TransactionException: JDBC rollback failed
at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:170)
at <exceptions trace from the code>
Caused by: java.sql.SQLException: Closed Connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.rollback(OracleConnection.java:1439)
at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:183)
at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:162)
... 9 more
Thanks
Jagadish SuriI think you need to do a firmware upgrade on your Router. Go to website linksysbycisco.com/downloads.........insert model no of your router in serach tab......select proper version of your router........download the firmware file......save that file on desktop..
Follow these steps to upgrade the firmware on the device : -
Open an Internet Explorer browser page on a computer hard wired to the router...
In the address bar type - 192.168.1.1...Leave the Username blank & in Password use admin in lower case...
Click on the 'Administration' tab- Then click on the 'Firmware Upgrade' sub tab- Here click on 'Browse' and browse the .bin firmware file and click on "Upgrade"...
Wait for few seconds until it shows that "Upgrade is successful" After the firmware upgrade, click on "Reboot" and you will be returned back to the same page OR it will say "Page cannot be displayed".
Now reset your router :
Press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router... -
17008 Closed Connection on DriverManager.getConnection
I am trying to connect with oci jdbc using the 9.2.0.1.0 client. Using -classpath %ORACLE_HOME%\jdbc\lib\ojdbc14.jar, and -Djava.library.path=%ORACLE_HOME%\bin. I am getting the error 17008 "Closed Connection" when I call DriverManager.getConnection. This code works perfectly well when using the thin driver. It's just the oci driver. I turned on DriverManager tracing, and got the stack trace below, anyone have any ideas what's wrong?
DriverManager.getConnection("jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.10.10)(PORT=1521)))(CONNECT_DATA
=(SID=bogus)))")
trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@174d93a]
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed Connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:2348)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:477)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.primavera.infr.admin.CfgAccessMgr.createDBConnection(CfgAccessMgr.java:119)
at com.primavera.infr.admin.CfgAccessMgr.<init>(CfgAccessMgr.java:104)
at com.primavera.console.cfg.admintool.SetupInfoFrame.actionPerformed(SetupInfoFrame.java:913)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
getConnection failed: java.sql.SQLException: Closed ConnectionDriverManager.getConnection("jdbc:oracle:oci:@(DESCRIP
TION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.
10.10)(PORT=1521)))(CONNECT_DATA
=(SID=bogus)))")
trying
driver[className=oracle.jdbc.driver.OracleDriver,oracl
e.jdbc.driver.OracleDriver@174d93a]
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed ConnectionI checked on the OTN website... to use OCI you need to have an Oracle client installation. Better stick to thin.
Richard. -
SQLException at SDM deploy: closed connection
Hi,
we are using JDI to develop and deploy a webdynpro application.
After having deployed on the production system we have developed a patch and tries to deploy it as well, but get an java.sql.SQLException (Closed Connection) from the SDM:
We also looked at oracle logs, application logs and stack traces, but did not find any further information.
SDM log:
[code]Info:Nov 15, 2005 8:59:37 AM Info: 8:59:37 2005-11-15 dbs-Info: $Id: //tc/DictionaryDatabase/630_VAL_REL/src/_dictionary_database_dbs/java/com/sap/dictionary/database/dbs/DbModificationManager.java#2 $
Info:Nov 15, 2005 8:59:37 AM Info: 8:59:37 2005-11-15 dbs-Info: <<<<<<<<<<<<<< Table Deployment >>>>>>>>>>>>>
Info:Nov 15, 2005 8:59:37 AM Info: 8:59:37 2005-11-15 dbs-Info:
Info:Nov 15, 2005 8:59:37 AM Info: 8:59:37 2005-11-15 dbs-Info: <<< Analyze table BC_DDDBRTH >>>
Info:Nov 15, 2005 8:59:37 AM Info:
Info:Nov 15, 2005 8:59:37 AM Info: E R R O R ******* (DbColumns)
Info:Nov 15, 2005 8:59:37 AM Info: 8:59:37 2005-11-15 dbs-Error: Table BC_DDDBRTH: Error during reading of columns from db
Info:Nov 15, 2005 8:59:37 AM Info:
Info:Nov 15, 2005 8:59:37 AM Info: E R R O R ******* (DbColumns)
Info:Nov 15, 2005 8:59:37 AM Info: 8:59:37 2005-11-15 dbs-Error: Caused by: Closed Connection Stack trace: java.sql.SQLException: Closed Connection
Info:Nov 15, 2005 8:59:37 AM Info: at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
Info:Nov 15, 2005 8:59:37 AM Info: at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
Info:Nov 15, 2005 8:59:37 AM Info: at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
Info:Nov 15, 2005 8:59:37 AM Info: at oracle.jdbc.driver.OracleConnection.getMetaData(OracleConnection.java:1573)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sql.jdbc.basic.BasicConnection.getMetaData(BasicConnection.java:180)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sql.jdbc.direct.DirectConnection.getMetaData(DirectConnection.java:703)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sql.jdbc.common.CommonConnectionImpl.getDirectMetaData(CommonConnectionImpl.java:1315)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sql.services.OpenSQLServices.getNativeMetaData(OpenSQLServices.java:117)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sql.NativeSQLAccess.getNativeMetaData(NativeSQLAccess.java:84)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.dictionary.database.dbs.DbColumns.setContentViaDb(DbColumns.java:58)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.dictionary.database.dbs.DbTable.setColumnsViaDb(DbTable.java:195)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.dictionary.database.dbs.DbTable.setCommonContentViaDb(DbTable.java:183)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.dictionary.database.dbs.DbObjectModificationAnalyser.modify(DbObjectModificationAnalyser.java:72)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.dictionary.database.dbs.RuntimeObject.create(RuntimeObject.java:62)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.dictionary.database.dbs.RuntimeObjectTable.create(RuntimeObjectTable.java:179)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.dictionary.database.dbs.RuntimeObjectTable.createIfNecessary(RuntimeObjectTable.java:188)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.dictionary.database.dbs.DbModificationManager.distribute(DbModificationManager.java:73)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.serverext.servertype.dbsc.extern.JDDDeployer.executeAction0(JDDDeployer.java:130)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.serverext.servertype.dbsc.extern.JDDDeployer.executeActionInternal(JDDDeployer.java:73)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.serverext.servertype.dbsc.AbstractDeployer.executeAction(AbstractDeployer.java:156)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.serverext.servertype.dbsc.DBSCDeploymentActionProcessor.executeAction(DBSCDeploymentActionProcessor.java:154)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.proc.deployment.impl.PhysicalDeploymentActionExecutor.execute(PhysicalDeploymentActionExecutor.java:60)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.proc.deployment.impl.DeploymentActionImpl.execute(DeploymentActionImpl.java:186)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.proc.deployment.controllers.internal.impl.DeploymentExecutorImpl.execute(DeploymentExecutorImpl.java:46)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.executeAction(ExecuteDeploymentHandler.java:83)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.handleEvent(ExecuteDeploymentHandler.java:60)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.proc.deployment.states.StateBeforeNextDeployment.processEvent(StateBeforeNextDeployment.java:127)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:73)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.doPhysicalDeployment(DeployerImpl.java:127)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.deploy(DeployerImpl.java:96)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.apiimpl.local.DeployProcessorImpl.deploy(DeployProcessorImpl.java:63)
Info:Nov 15, 2005 8:59:37 AM Info: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Info:Nov 15, 2005 8:59:37 AM Info: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Info:Nov 15, 2005 8:59:37 AM Info: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Info:Nov 15, 2005 8:59:37 AM Info: at java.lang.reflect.Method.invoke(Method.java:324)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.requestRemoteCall(RemoteProxyServerImpl.java:127)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.process(RemoteProxyServerImpl.java:38)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.apiimpl.remote.server.ApiClientRoleCmdProcessor.process(ApiClientRoleCmdProcessor.java:81)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.is.cs.session.server.SessionCmdProcessor.process(SessionCmdProcessor.java:67)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.is.cs.cmd.server.CmdServer.execCommand(CmdServer.java:76)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.client_server.launch.ServerLauncher$ConnectionHandlerImpl.handle(ServerLauncher.java:280)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.is.cs.ncserver.NetCommServer.serve(NetCommServer.java:43)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.sdm.is.cs.ncwrapper.impl.ServiceWrapper.serve(ServiceWrapper.java:39)
Info:Nov 15, 2005 8:59:37 AM Info: at com.sap.bc.cts.tp.net.Worker.run(Worker.java:50)
Info:Nov 15, 2005 8:59:37 AM Info: at java.lang.Thread.run(Thread.java:534)
Info:Nov 15, 2005 8:59:37 AM Info:
Info:Nov 15, 2005 8:59:37 AM Info:
Info:Nov 15, 2005 8:59:37 AM Info: E R R O R ******* (DbModificationManager)
Info:Nov 15, 2005 8:59:37 AM Info: 8:59:37 2005-11-15 dbs-Error:
Info:Nov 15, 2005 8:59:37 AM Error: Aborted: development component 'dormapp1/basis/dic'/'dorma.com'/'DJ1_Dev_C'/'11907':
Info:No further description found.
Info:Nov 15, 2005 8:59:39 AM Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.[/code]
Any idea is appreciated!
Regards,
HansHi,
I have the same problem.
Did you solve it?
Regrads,
Artem -
SQLException - Closed Connection
Hi all,
We are getting the following exception in our client code. We need to fix this error. I want to know why actually such exception occurs and what might be the possible solution(s)? Any help will be appreciated.
java.sql.SQLException: Closed Connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Compiled Code))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Inlined Compiled Code))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java(Inlined Compiled Code))
at oracle.jdbc.driver.OracleConnection.setAutoCommit(OracleConnection.java(Compiled Code))
at weblogic.jdbc.pool.Connection.setAutoCommit(Connection.java(Compiled Code))
at com.****.arch.inf.common.db.BaseDb.getConnection(BaseDb.java(Compiled Code))
Regards,
NiravOk, can you once do right click on WEB folder under your project folder and click publish once or twice.
And then restart SQL server and also clear console and try.
I hope Connection closed means there is no connection establishing betweem MII and Server defined.
Is this happening only in Dev or in also Quality server? -
I'm using a plug-in for Eclipse to help identify possible memory leaks however we are having trouble interpreting the results. The top, and pretty much the only, suspect is this...
7,874 instances of "macromedia.jdbc.oracle.OracleConnection", loaded by "coldfusion.bootstrap.BootstrapClassLoader @ 0xf935218" occupy 604,781,904 (71.02%) bytes. These instances are referenced from one instance of "java.util.HashMap$Entry[]", loaded by "<system class loader>"
Any ideas what could cause this many instances? How do we track this back to a particular cfm or cfc? Do these number seem high or is that normal? The system in question normally only has 30-60 concurrent users.
The one item I'm a little skeptical of is the use of the "coldfusion.server.ServiceFactory" and "coldfusion.sql.QueryTable" objects. We use them for 1000s of different queries, even queries within large loops. Could these be the problem? Each time we need to execute a query we do a createObject for each of these objects, when done we close the connection. I recently found a similar example where they close the recordSet first and then close the connection, we are not closing the recordSet. Any help at all is much appreciated.It could simply be caused by the obvious: a query or queries making a large number of connections and/or consuming large resources on the Oracle database. Use Eclipse to search your application folder for queries. Can you identify any queries that could be the culprit? Is there a loop containing a method or an instance of a component that queries an Oracle database?
What's your Coldfusion version? If you're on CF8 or CF9 then the server monitor (in the Coldfusion Administrator) might tell you the process responsible for the high consumption. -
MB5B Report table for Open and Closing stock on date wise
Hi Frds,
I am trying get values of Open and Closing stock on date wise form the Table MARD and MBEW -Material Valuation but it does not match with MB5B reports,
Could anyone suggest correct table to fetch the values Open and Closing stock on date wise for MB5B reports.
Thanks
Mohan MHi,
Please check the below links...
Query for Opening And Closing Stock
Inventory Opening and Closing Stock
open stock and closing stock
Kuber -
hi experts,
I have to capture the parked, open and closed invoices in a report in reference to vendor...
I got the parked invoice condition from the table BSTAT either v or w.
But i am not getting the idea how to capture the open and closed invoices...
Some one suggested me to use the ITEMSET structure but i donno how to capture those values can anyone suggest me how to do it...?
SIRIHi,
you can use the same query...Also check the new code after the select..
SELECT BUKRS BELNR GJAHR <b>BSTAT</b>
FROM BKPF
INTO TABLE T_BKPF
WHERE BUKRS = P_BUKRS
AND BSTAT IN ( ' ' , 'A' ) " ' ' - Normal document, A - Parked doc
AND BLART = P_BLART
AND CPUDT IN SO_CPUDT " Selection screen input.
IF NOT T_BKPF[] IS INITIAL.
SELECT BUKRS BELNR GJAHR BUZEI EBELN AUGBL AUGBT
INTO TABLE T_BSEG
FOR ALL ENTRIES IN T_BKPF
WHERE BUKRS = T_BKPF-BUKRS
AND BELNR = T_BKPF-BELNR
AND GJAHR = T_BKPF-GJAHR
AND EBELN IN SO_EBELN " selection-screen input
ENDIF.
LOOP AT T_BKPF.
Parked
IF T_BKPF-BSTAT = 'A'.
WRITE: / T_BKPF-BELNR , ' - Parked'.
process the next record.
CONTINUE.
ENDIF.
Check for Open / Closed.
LOOP AT T_BSEG WHERE BELNR = T_BKPF-BELNR
AND BUKRS = T_BKPF-BUKRS
AND GJAHR = T_BKPF-GJAHR
AND AUGBL <> ' '.
EXIT.
ENDLOOP.
If the return code is 0 then the document is cleared..
IF sy-subrc = 0.
WRITE: / T_BKPF-BELNR , ' - Closed'.
Else the document is not cleared.
ELSE.
WRITE: / T_BKPF-BELNR , ' - Open'.
ENDIF.
ENDLOOP.
Thanks,
Naren -
Open and closing balances std report
Dear All,
please suggest me open and closing balances std report and can i suggest my user below t.code for viewing open and closing balnces for India scenarion T.code:J3RFLVMOBVED
Regards
Gopal.Shi
kindly chk MB5B it will fullfill your requirement
regards
praveen.k -
Connection ==null and Connection is closed, difference
Hi experts,
I wonder what are the differences between "Connection==null" and "Connection is closed"?
I closed a connection on one JSP page after a bean has retrieved data. Then, on the same page I call another bean to connect to the database. Because the Connection object has been created earlier, therefore Connection is not NULL, but it is closed. So, the second bean has to initiate another connection(if I knew how to test the "closed" status)
Is it true that if the Connection is closed, then it should become null?
I think I must have make quite a few mistakes in above statement:). Please help. Thanks a lot.connection.isClosed() will tell you if the connection object is closed or not. If it is closed, then the connection object can be dropped because you will not be able to create any new statements from that connection object. Just recreate another connection to use when this occurs.
-
I'm getting desperate for a solution to this problem (as is the rest of the development team!).
Basically we've been trying to create a system that automatically assigns values (frequencies) to objects (nodes) based on a rule set. Each node contains a varying number of sub-objects (radios) and each radio needs one frequency. The database has been set up and has test data for our Solution class to go through. However, we've run into an odd problem where our ResultSets are suddenly closing.
The classes work like this:
Database Broker (handles connection to DB, as well as executeQuery and executeUpdate statements.)
Entry Broker (Holds all SQL statements for data retrieval in various methods. Each method contains an SQL statement to access data, and code to format that data into something useable by the main class.
Solution/Main class (Contains methods to use the data from the Entry Broker to test valid solutions. Certain rules apply to assigning frequencies to radios and this class ensures that the data applies to these rules before it writes the data back to the DB (via the EntryBroker).
The problem we continually run into is that whilst the ResultSets work fine in the Entry Broker, they are closed when they return to the Main class.
Here's the catch: It seems in most cases that only the FIRST ResultSet returned in each method is closed, the remaining ResultSets work fine. We worked around this problem by creating a 'dummy' ResultSet, which obtained data from the database which was never used (the project name). We put this in its own try catch bracket so it would not interrupt the project.
It worked fine for a few classes, but for others (notably the following one) it was ineffective. We've searched and searched but we cannot find anyone with a similar complaint (except a few people who have commented about ODBC version problems). Our ODBC version is 3.520.7713.0
Here's an example method from the Solution class (The entire class is over 1000 lines):
// Method to test Harmonic resonance for nodes within 10m
private boolean resonanceGlobal (boolean tstResonanceG, double txFreq, double rxFreq, int distance) {
System.out.println("Beginning global harmonic resonance check");
try {
// Getting Nodes
rsNode2 = eBroker.getNodes(projectNo);
// node loop
while (rsNode2.next()) {
System.out.println("602 Test Marker GHarm 1");
// get next node, store in nodeTemp
nodeTemp = rsNode2.getInt(1);
// System out to show which nodes will pass if statement
System.out.println(node + " compare to " + nodeTemp);
// avoid testing the same node against itself
if (nodeTemp != node) {
// distance check (only neccesary within 10m)
System.out.println("Test Marker Before Distance check");
distance = getDistance(node, nodeTemp, distance);
System.out.println("Test Marker After Distance check");
// distance check if statement
if (distance <= 10) {
System.out.println("618 Test Marker GHarm 2");
// get the radios of the node, foreign node
rsRadiosTemp = eBroker.getRadios(node);
rsDummy = eBroker.getDummy(projectNo);
rsRadios2 = eBroker.getRadios(nodeTemp);
// This dummy ResultSet normally fails so that
// the other ResultSets perform normally
try {
rsDummy.next();
} // end try
catch (java.sql.SQLException dummyException) {
System.out.println("dummyException " + dummyException);
} // end catch
// radio loop
while (rsRadiosTemp.next()) { // error occurs here
System.out.println("627 Test Marker GHarm 3");
// loop for foreign node radios
while (rsRadios2.next()) {
System.out.println("631 Test Marker GHarm 4");
// get next radio
radioTemp = rsRadios2.getInt(1);
// get the TX and RX of the radio
genericTX = getTX(radioTemp);
radioTempCon = getConnection(radioTemp);
genericRX = getTX(radioTempCon);
// calculate bounds for harmonics test
txLo = ((txFreq * 2) - genericTX) - 4; // 4Mhz below TX harmonics check
txHi = ((txFreq * 2) - genericTX) + 4; // 4Mhz above TX harmonics check
rxHi = ((rxFreq * 2) - genericRX) + 4; // 4Mhz above RX harmonics check
rxLo = ((rxFreq * 2) - genericRX) - 4; // 4Mhz below RX harmonics check
// checks TX and RX of foreign radio against TX, RX of current radio for separation
if ((txLo > genericTX && txHi < genericTX) || (rxLo > genericRX && rxHi < genericRX)) {
tstResonanceG = false;
break;
} //end if
else {
tstResonanceG = true;
} // end else
} //end foreign radio loop
// breaking out of loops for return
if (tstResonanceG == false)
break;
} // end radio loop
rsRadios2.close();
rsRadiosTemp.close();
} // end sameradio check
} // end distance check
}// end node loop
rsNode2.close();
} // end try
// Catch statement to stop from crashing in the
// event of an error during SQL statements.
catch (java.sql.SQLException resonanceGlobalException) {
// Prints out the error message produced
System.out.println(resonanceGlobalException);
} // end catch
// returns result
return tstResonanceG;
} //end checkHarmonicResonanceGlobal()
My apologies if it is a little hard to read, but the indenting is accurate. The Entry Broker methods which this method uses are here:
public ResultSet getNodes (int projectNo) {
// creating SQL statement
sqlStatement = "SELECT nodeNo from tblNode WHERE projectNo = " + projectNo;
System.out.println(sqlStatement);
// executing SQL statement
rsNodes = db.runQuery(sqlStatement);
// returns ResultSet
return rsNodes;
} // end getNodes
// Method to get the distance between any two nodes
public int getDistance (int projectNo, int node, int tempNode) {
ResultSet rsX1; // Used for obtaining the X-coord of node 1
ResultSet rsX2; // Used for obtaining the X-coord of node 2
ResultSet rsY1; // Used for obtaining the Y-coord of node 1
ResultSet rsY2; // Used for obtaining the Y-coord of node 2
double distance = 0; // Used in Global checks
int dist = 0; // Used in Global checks
int x1 = 0; // Used in calculating distance
int x2 = 0; // Used in calculating distance
int y1 = 0; // Used in calculating distance
int y2 = 0; // Used in calculating distance
int xDist = 0; // Used in calculating distance
int yDist = 0; // Used in calculating distance
int distint = 0; // Used to store converted values
try {
// get the X and Y co-ordinates of both nodes
sqlStatement = "SELECT xCoord FROM tblNode WHERE nodeNo = " + node + " AND projectNo = " + projectNo;
rsX1 = db.runQuery(sqlStatement);
rsX1.next();
x1 = rsX1.getInt(1);
sqlStatement = "SELECT yCoord FROM tblNode WHERE nodeNo = " + node + " AND projectNo = " + projectNo;
rsY1 = db.runQuery(sqlStatement);
rsY1.next();
y1 = rsY1.getInt(1);
sqlStatement = "SELECT xCoord FROM tblNode WHERE nodeNo = " + tempNode + " AND projectNo = " + projectNo;
rsX2 = db.runQuery(sqlStatement);
rsX2.next();
x2 = rsX2.getInt(1);
sqlStatement = "SELECT yCoord FROM tblNode WHERE nodeNo = " + tempNode + " AND projectNo = " + projectNo;
rsY2 = db.runQuery(sqlStatement);
rsY2.next();
y2 = rsY2.getInt(1);
} // end try
catch (java.sql.SQLException getDistanceException) {
System.out.println(getDistanceException);
// calculating distance
yDist = y2 - y1;
xDist = x2 - x1;
// perform pythagoras theorem for distance
dist = (xDist * xDist) + (yDist * yDist);
distance = java.lang.Math.sqrt(dist);
Double roundFreqTemp = new Double(freqTemp);
distint = roundFreqTemp.intValue() ;
return distint;
} // end get distance method
// Method to get all the radios in a node
public ResultSet getRadios(int node) {
ResultSet rsRadios; // Used for obtaining radios in a node
// creating sql Statement
sqlStatement = "SELECT * FROM tblRadio WHERE nodeNo =" + node;
System.out.println(sqlStatement);
// executing sql Statement
rsRadios = db.runQuery(sqlStatement);
System.out.println("EB Test Marker 1: Line 261");
// returning radio no
return rsRadios;
}//end getRadio
public double getTX(int radioTemp){
double txTemp = 0; // Used for storing TX of a radio
int freqNoTemp = 0; // Used for storing the frequency ID
rsDummy = getDummy(projectNo);
// creating SQL statement
sqlStatement ="Select frequencyNo from tblRadio where radioNo = " + radioTemp;
System.out.println(sqlStatement);
// executing SQL statement
rsTX = db.runQuery(sqlStatement);
try {
System.out.println("Test Marker EB1: 317");
try {
rsDummy.next();
} // end try
catch (java.sql.SQLException dummyException) {
System.out.println("dummyException" + dummyException);
} // end catch
System.out.println("Test MarkerEB2: 330");
// moving to first position in rs
rsTX.next();
System.out.println("Test MarkerEB3: 334");
// obtaining data from rs
freqNoTemp = rsTX.getInt(1);
System.out.println("Test MarkerEB4: 337");
rsTX.close();
} // end try
catch (java.sql.SQLException rsTXException) {
System.out.println("rsTXExeption: " + rsTXException);
} // emd catch
System.out.println("Frequency No is: " + freqNoTemp);
rsDummy = getDummy(projectNo);
sqlStatement = "Select frequency from tblFreq where frequencyNo = " + freqNoTemp;
System.out.println(sqlStatement);
rsRX = db.runQuery(sqlStatement);
try {
try {
System.out.println("Test MarkerEB6: 361");
rsDummy.next();
} // end try
catch (java.sql.SQLException dummyException) {
System.out.println("dummyException" + dummyException);
} // end catch
System.out.println("Test MarkerEB5: 373");
rsRX.next();
System.out.println("Test MarkerEB7: 376");
txTemp = rsRX.getDouble(1);
System.out.println("Test MarkerEB8: 379");
rsRX.close();
} // end try
catch (java.sql.SQLException rxException) {
System.out.println("rxException " + rxException);
} // end catch
System.out.println("393 Before return");
return txTemp;
} //end getTX
public int getConnection(int radio) {
int nodeCon = 0; // Used to return the connected node no
ResultSet rsConnection; // Used for obtaining the foreign radio
// creating SQL statement
sqlStatement = "SELECT radioNo FROM tblRadio where recRadio = " + radio;
System.out.println(sqlStatement);
// executing SQL statement
rsConnection = db.runQuery(sqlStatement);
try {
// moving to first position in rs
rsConnection.next();
// obtaining data from rs
nodeCon = rsConnection.getInt(1);
} // end try
catch (java.sql.SQLException getConnectionException) {
System.out.println("getConnectionException : " + getConnectionException);
} // end catch
// returns node no.
return nodeCon;
And finally, the dummy rs:
// Dummy method to fix resultSet closed error
public ResultSet getDummy (int projectNo) {
sqlStatement = "Select projectName from tblProject where projectNo = " + projectNo;
System.out.println(sqlStatement);
rsDummy = db.runQuery(sqlStatement);
return rsDummy;
Here is some sample output that we have:
----jGRASP exec: java MainGui
slider value constructor: 50
116: if(singleton==null) {
120: singleton=new Resolvotron
Connection to D/Base establised
Select projectName from tblProject where projectNo = 3
Init OK. Beginning solve process
main OK: beginning frequency assign process
SELECT nodeNo from tblNode WHERE projectNo = 3
267: Node number = 2
SELECT * FROM tblRadio WHERE nodeNo =2
EB Test Marker 1: Line 261
Test Marker 1: Line 289
298: Radio number = 4
Test Marker 5: Line 308
Test Marker 3: Line 313
SELECT frequency from tblFreq WHERE projectNo = 3
125.5
Beginning test process
Test Marker 4: Line 386
Beginning check 257072
Test Marker 6: Line 774
70 Mhz Margin = false
Beginning local 10Mhz separation check
SELECT * FROM tblRadio WHERE nodeNo =2
EB Test Marker 1: Line 261
Getting TX of radio: 4
Select projectName from tblProject where projectNo = 3
Select frequencyNo from tblRadio where radioNo = 4
Test Marker EB1: 317
dummyExceptionjava.sql.SQLException: ResultSet is closed
Test MarkerEB2: 330
Test MarkerEB3: 334
Test MarkerEB4: 337
Frequency No is: 2
Select projectName from tblProject where projectNo = 3
Select frequency from tblFreq where frequencyNo = 2
Test MarkerEB6: 361
dummyExceptionjava.sql.SQLException: ResultSet is closed
Test MarkerEB5: 373
Test MarkerEB7: 376
Test MarkerEB8: 379
393 Before return
432: getting connection
SELECT radioNo FROM tblRadio where recRadio = 4
438: getting TX of radio: 6
Select projectName from tblProject where projectNo = 3
Select frequencyNo from tblRadio where radioNo = 6
Test Marker EB1: 317
dummyExceptionjava.sql.SQLException: ResultSet is closed
Test MarkerEB2: 330
Test MarkerEB3: 334
Test MarkerEB4: 337
Frequency No is: 2
Select projectName from tblProject where projectNo = 3
Select frequency from tblFreq where frequencyNo = 2
Test MarkerEB6: 361
dummyExceptionjava.sql.SQLException: ResultSet is closed
Test MarkerEB5: 373
Test MarkerEB7: 376
Test MarkerEB8: 379
393 Before return
java.sql.SQLException: ResultSet is closed
10 Mhz Local = true
Beginning 10 Mhz separation check
SELECT nodeNo from tblNode WHERE projectNo = 3
Node number is 2
10 Mhz Global = false
Beginning local harmonic resonance check
SELECT * FROM tblRadio WHERE nodeNo =2
EB Test Marker 1: Line 261
Select projectName from tblProject where projectNo = 3
Select frequencyNo from tblRadio where radioNo = 4
Test Marker EB1: 317
dummyExceptionjava.sql.SQLException: ResultSet is closed
Test MarkerEB2: 330
Test MarkerEB3: 334
Test MarkerEB4: 337
Frequency No is: 2
Select projectName from tblProject where projectNo = 3
Select frequency from tblFreq where frequencyNo = 2
Test MarkerEB6: 361
dummyExceptionjava.sql.SQLException: ResultSet is closed
Test MarkerEB5: 373
Test MarkerEB7: 376
Test MarkerEB8: 379
393 Before return
SELECT radioNo FROM tblRadio where recRadio = 4
Select projectName from tblProject where projectNo = 3
Select frequencyNo from tblRadio where radioNo = 6
Test Marker EB1: 317
dummyExceptionjava.sql.SQLException: ResultSet is closed
Test MarkerEB2: 330
Test MarkerEB3: 334
Test MarkerEB4: 337
Frequency No is: 2
Select projectName from tblProject where projectNo = 3
Select frequency from tblFreq where frequencyNo = 2
Test MarkerEB6: 361
I'll leave it at that, since the program goes into an endless loop. The dummy Exceptions are our dummy resultsets crashing so the rest can survive. The other stuff is from different methods. You should be able to locate the logic of the program by following the System.outs
Test Markers with EB refer to the Entry Broker.
Any help would be appreciated since we cannot find any other way of running this class successfully.
SteveOk problem solved...
Basically I was calling one ResultSet after another. Thanks to the Database Broker's structure, this was killing the first ResultSet. I fixed up the loops so that ResultSets were only ever called just before they were needed, and it fixed the problem. The only other errors were simple logic faults which I drummed out in short order. Thanks for the help everyone!
Maybe you are looking for
-
Unable to synch Assets of type Page to webcenter sites.....
Hi All, We have kept repository containing developed source code on SVN and i have checked out the code into my workspace. When i am trying to import Templates to my webcenter sites instance using 'Synch to WebCenterSites' , for some templates i am g
-
Adding SQL Server 2012 to PD 16.0
The latest version of SQL Server supported in PD 16.0 is 2008. What is the process / where / how do I obtain the database configuration file for SQL Server 2012. Thanks
-
Conversion of days to year&months (HR)
Hi friends, I'm working for one BI HR report, where i'm getting employee experience in days. I want to convert days into years& months. Eg: 850 days means 2 yrs 4months. At cube level i'm getting number of days, how can i get it at query level? thank
-
Just purchased from Ebay a brand new sealed Samsung 840 series 250 Gb SSD i'm ok with the removal of HDD and re fitting of the SSD my question is what is the best method to reinstall Mountain Lion, a detailed blow by blow explaination would be greatl
-
Multiple clicks needed to select tool
On my system PS CS5 has a weird bug, whenever I want to select a tool in one of toolbar subbars (for instance switching from the rectangular selection tool to the circular one) I have to click a number of times on the tool before it gets selected. Th