Error closing empty ResultSet
Platform: Solaris 9, Oracle 9i
Does anyone know of a bug with closing an empty ResultSet using statementPtr->closeResultSet(resultSetPtr)?
Normally this works fine for me, but if the query yeilds no results I get a bus error when I try to close the ResultSet. Running in the debugger I can see that I have a valid pointer.
I also noticed in the documentation for closeResultSet that the ResultSets are automatically cleaned up if not explicitly closed. When does this occur? When the statement is terminated? If that is the case I could just let the terminateStatement call handle the cleanup of resultsets.
Thanks,
Dave
Hi,
may be it's not so important, but did you see how your query looks in system.out? because in ...+"and PASSWORD='" + password + "'" + "group by id" there is no space between 'password' and group by. It will be like:
PASSWORD='lalala'group by id
may be it is the reason?
Similar Messages
-
Getting Error:closing a connection for you. Please help
Hello All,
I'm using jboss3.2.6. I used ejb2.1 (session bean and entity bean[BMP]). I did few data base transations in cmp and few in simple data source connection.
I'm getting below errors occasionally
'No managed connection exception
java.lang.OutOfMemoryError: Java heap space
[CachedConnectionManager] Closing a connection for you. Plea
se close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@11ed0d
5
I've given below my dao connection code here,
package com.drtrack.util;
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class DAOUtil {
private static DataSource _ds;
public Connection con;
public DAOUtil() throws SQLException {
try {
if (_ds == null)
assemble();
if(_ds != null && con == null) {
con = _ds.getConnection();
}catch(SQLException ex) {
ex.printStackTrace();
private void assemble() {
Context ic = null;
try {
ic = new InitialContext();
DrTrackUtil drutil = new DrTrackUtil();
_ds = (DataSource) ic.lookup("java:/" + drutil.getText("SOURCE_DIR"));
drutil = null;
}catch (Exception e) {
e.printStackTrace();
}finally {
try {
ic.close();
}catch(NamingException ne) {}
public void closeConnection() throws SQLException {
if(con != null)
con.close();
con = null;
}below is the code with get connection and doing transaction in it.
public static AccountMasterValueBean getAccountMasterByAcctId(String acctId) {
AccountMasterValueBean bean = null;
DAOUtil dao = null;
CallableStatement cst = null;
ResultSet rs = null;
try {
dao = new DAOUtil();
cst = dao.con.prepareCall(DrTrackConstants.MSSQL_USP_ACCOUNTMASTER_BY_ACCTID);
cst.setObject(1, acctId);
rs = cst.executeQuery();
if(rs != null && rs.next()) {
bean = new AccountMasterValueBean(
Integer.valueOf(rs.getString("accountkeyid")),
rs.getString("latitude"),
rs.getString("longitude"));
}catch(SQLException se) {
logger.info("SQL Error: " + se);
finally {
if(rs != null){
try {
rs.close();
}catch(SQLException se) {
logger.info("SQL Error: " + se);
finally {
rs = null;
if(cst != null) {
try{
cst.close();
}catch(SQLException se) {
logger.info("SQL Error: " + se);
finally {
cst = null;
if(dao != null) {
try {
dao.closeConnection();
}catch(SQLException se) {
logger.info("SQL Error: " + se);
finally {
dao = null;
return bean;
}I closed connections, resultsets and statements properly.
Why I'm getting these errors.? Where I'm doing wrong. ? Please help me. I have to fix them ASAP.
Thanks.Hello All,
I'm using jboss3.2.6. I used ejb2.1 (session bean and entity bean[BMP]). I did few data base transations in cmp and few in simple data source connection.
I'm getting below errors occasionally
'No managed connection exception
java.lang.OutOfMemoryError: Java heap space
[CachedConnectionManager] Closing a connection for you. Plea
se close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@11ed0d
5
I've given below my dao connection code here,
package com.drtrack.util;
import java.sql.Connection;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class DAOUtil {
private static DataSource _ds;
public Connection con;
public DAOUtil() throws SQLException {
try {
if (_ds == null)
assemble();
if(_ds != null && con == null) {
con = _ds.getConnection();
}catch(SQLException ex) {
ex.printStackTrace();
private void assemble() {
Context ic = null;
try {
ic = new InitialContext();
DrTrackUtil drutil = new DrTrackUtil();
_ds = (DataSource) ic.lookup("java:/" + drutil.getText("SOURCE_DIR"));
drutil = null;
}catch (Exception e) {
e.printStackTrace();
}finally {
try {
ic.close();
}catch(NamingException ne) {}
public void closeConnection() throws SQLException {
if(con != null)
con.close();
con = null;
}below is the code with get connection and doing transaction in it.
public static AccountMasterValueBean getAccountMasterByAcctId(String acctId) {
AccountMasterValueBean bean = null;
DAOUtil dao = null;
CallableStatement cst = null;
ResultSet rs = null;
try {
dao = new DAOUtil();
cst = dao.con.prepareCall(DrTrackConstants.MSSQL_USP_ACCOUNTMASTER_BY_ACCTID);
cst.setObject(1, acctId);
rs = cst.executeQuery();
if(rs != null && rs.next()) {
bean = new AccountMasterValueBean(
Integer.valueOf(rs.getString("accountkeyid")),
rs.getString("latitude"),
rs.getString("longitude"));
}catch(SQLException se) {
logger.info("SQL Error: " + se);
finally {
if(rs != null){
try {
rs.close();
}catch(SQLException se) {
logger.info("SQL Error: " + se);
finally {
rs = null;
if(cst != null) {
try{
cst.close();
}catch(SQLException se) {
logger.info("SQL Error: " + se);
finally {
cst = null;
if(dao != null) {
try {
dao.closeConnection();
}catch(SQLException se) {
logger.info("SQL Error: " + se);
finally {
dao = null;
return bean;
}I closed connections, resultsets and statements properly.
Why I'm getting these errors.? Where I'm doing wrong. ? Please help me. I have to fix them ASAP.
Thanks. -
As far as I can determine from the documentation and posts in other newsgroups
the following example should work to produce an updatable but "empty" ResultSet which can be used to insert rows.
But it doesn't work in a JDK 1.2.2 and JDK 1.3.0_01 application using Oracle 8i (8.1.7) thin JDBC
driver against an Oracle 8.1.5 database I get the following error
SQLException: java.sql.SQLException: Invalid argument(s) in call: setRowBufferAt
However, if I change it to so the target (ie insert) ResultSet is initialized to contain one or more
rows, it works just fine.
ResultSet rset2 = stmt2.executeQuery ( "select Context.* from Context where ContextCd = '0' " );
Is this a bug in Oracle's JDBC driver (more specifically, the UpdatableResultSet implimentation)?
Does an updatabable ResultSet have to return rows to be valid and useable for insert operations?
If it does, is there another way to create an updatable ResultSet that does not depend upon
"hard-coding" some known data value into the query?
try
// conn is a working, tested connection to an Oracle database via 8.1.7 thin JDBC driver.
// source statement
Statement stmt = conn.createStatement (
ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY );
System.out.println("source rset");
rset = stmt.executeQuery ( "select Context.* from Context" );
// target Statement
Statement stmt2 = conn.createStatement (
ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE );
ResultSet rset2 =
stmt2.executeQuery ( "select Context.* from Context where ContextCd = NULL" );
System.out.println(
"see if rset2 looks good even though empty (bcs primarykey = null)");
ResultSetMetaData rsmd2 = rset2.getMetaData();
int numColumns = rsmd2.getColumnCount();
for( int i = 0; i <= numColumns; i++ )
env.msg.println ( "(" + i + ") " + rsmd2.getColumnLabel(i) );
// test results showed the correct columns even though no row returned.
// quess we can use this trick to create an "empty" insert ResultSet.
System.out.println("interate through rset and insert using rset2");
if(rset.next())
System.out.println("move to insert row");
rset2.moveToInsertRow();
System.out.println("insert values");
rset2.updateString( "ContextCd", rset.getString("ContextCd") + "-test" );
rset2.updateString( "Descrip", "test" );
rset2.updateString( "Notes", "test" );
System.out.println("insert row into db (but not committed)");
rset2.insertRow();
catch( ... ) ...
Thanks
R.Parr
Temporal ArtsI have noticed the same problem, actually it doens't matter if there is no data in your resultset. If you have a result with data and suppose you were to analyze the data by moving through all of the rows, the cursor is now after the last row. If you call insertRow, the same exception is thrown. Kinda strange, I didn't get any response as to why this is happening and that was a few weeks ago. I hope someone responds, at this point I am just re-writing some of my code to not use updateable resultsets.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Randall Parr ([email protected]):
As far as I can determine from the documentation and posts in other newsgroups
the following example should work to produce an updatable but "empty" ResultSet which can be used to insert rows.
But it doesn't work in a JDK 1.2.2 and JDK 1.3.0_01 application using Oracle 8i (8.1.7) thin JDBC
driver against an Oracle 8.1.5 database I get the following error<HR></BLOCKQUOTE>
null -
SQL Server JDBC Problem - Exception vs. Empty ResultSet
I just uploaded and installed the latest pre-release build (123667). Win2K
platform.
There is something very wrong with the MS SQL Server JDBC behavior now.
If you Select * from a table which exists but is empty, the code raises an
exception like:
weblogic.jdbc.mssqlserver4.TdsException: Statement.executeQuery - No result
sets
were produced by 'SELECT recordHandle, record, recordState FROM JMSStore'
This is a big change. Normally JDBC returns an empty ResultSet. Cloudscape
still works fine, I havent test any other drivers yet.
This is also affecting EJB deployment -- Many beans in the examples provided
with the product fail to deploy with an error because of this JDBC exception
change. (Yes I'm sure the required tables are in my SQL*Server database,
I've been running the beta for a month now).
Help!Sorry. My fault i sent you the WLS51 stuff. heres the driver again. Let me
know if any prblem with this one.
sree
"Greg Nyberg" <greg.nyberg.at.objectpartners.com> wrote in message
news:[email protected]...
If I put your mssqlserver4v70.jar file first in the classpath in the
startWebLogic script, it doesn't boot:
C:\bea\wlserver6.1>"C:\bea\jdk131\bin\java" -hotspot -ms64m -mx64m -classpat
h .;
.\lib\mssqlserver4v70.jar;.\lib\weblogic_sp.jar;.\lib\weblogic.jar -Dweblogi
c.Do
main=ejbbook -Dweblogic.Name=myserver "-Dbea.home=C:\bea"
"-Djava.security.polic
y==C:\bea\wlserver6.1/lib/weblogic.policy" -Dweblogic.management.password=we
blog
ic weblogic.Server
Starting WebLogic Server ....
The WebLogic Server did not start up properly.
Exception raised: java.lang.NoSuchMethodError
java.lang.NoSuchMethodError
at
weblogic.management.internal.ConfigurationMBeanImpl.<clinit>(Configur
ationMBeanImpl.java:80)
at weblogic.management.Admin.initialize(Admin.java:214)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:354)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:197)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
>
Putting it at the end doesn't work, of course.. Still uses jDriver classes
in weblogic.jar.
Did you package too many things in this .jar file? It is a lot biggerthan
4v65.jar and I see some "common" and "boot" classes in it..
-Greg
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
Yep QA found this problem and the fix will go into the GA. I am
attaching
a
new driver for you , please let me know if you see any problem with this
driver.
regards
sree
"Greg Nyberg" <greg.nyberg.at.objectpartners.com> wrote in message
news:[email protected]...
Problem goes away if I take the old version of the jDriver for SQL
Server
from the original beta 61 install and place it in the classpath in
front
of
the new weblogic.jar before booting.. Empty tables return empty
results
sets again, EJBs deploy, etc.
Please tell me QA found this problem and it is not going to be in theGA
release..
-Greg
"Greg Nyberg" <greg.nyberg.at.objectpartners.com> wrote in message
news:[email protected]...
I just uploaded and installed the latest pre-release build (123667).Win2K
platform.
There is something very wrong with the MS SQL Server JDBC behavior
now.
If you Select * from a table which exists but is empty, the coderaises
an
exception like:
weblogic.jdbc.mssqlserver4.TdsException: Statement.executeQuery - Noresult
sets
were produced by 'SELECT recordHandle, record, recordState FROM
JMSStore'
This is a big change. Normally JDBC returns an empty ResultSet.Cloudscape
still works fine, I havent test any other drivers yet.
This is also affecting EJB deployment -- Many beans in the examplesprovided
with the product fail to deploy with an error because of this JDBCexception
change. (Yes I'm sure the required tables are in my SQL*Server
database,
I've been running the beta for a month now).
Help!
[mssqlserver4v70.jar] -
Empty resultset even though it shouldn't be empty
Dear experts,
today i did experience a behaviour of hana that i cannot understand.
In order to enable you to reenact the phenomenon i created the following demo code:
######################### PREPERATION
-- creating a copy of a sap demo content table
create column table "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"
like "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses" with data;
-- set two columns to null
Update "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"
set CITY = NULL;
Update "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"
set POSTALCODE = NULL;
######################### / PREPERATION
######################### INITIAL
-- returns an empty resultset (initial version)
select col from (
select 'CITY' as col, count(*) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where CITY is not NULL union all
select 'POSTALCODE', count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where POSTALCODE is not NULL
) where i = 0;
######################### / INITIAL
######################### ALTERED VERSIONS
-- returns the expected resultset (outer select contains i)
select col, i from (
select 'CITY' as col, count(*) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where CITY is not NULL union all
select 'POSTALCODE', count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where POSTALCODE is not NULL
) where i = 0;
-- returns the expected resultset (check for "is null")
select col from (
select 'CITY' as col, count(*) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where CITY is NULL union all
select 'POSTALCODE', count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where POSTALCODE is NULL
) where i = (select count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST");
-- returns the expected resultset (now without where)
select col from (
select 'CITY' as col, count(CITY) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" union all
select 'POSTALCODE', count(POSTALCODE) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"
) where i = 0
######################### ALTERED VERSIONS
The question is why does the initial statement return an empty resultset?
And please consider that the initial version works just fine under rev68 (resultset is not empty), but returns an empty resultset when being executed on a rev70 system.
Many thanks in advance for your feedback.Dear experts,
today i did experience a behaviour of hana that i cannot understand.
In order to enable you to reenact the phenomenon i created the following demo code:
######################### PREPERATION
-- creating a copy of a sap demo content table
create column table "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"
like "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses" with data;
-- set two columns to null
Update "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"
set CITY = NULL;
Update "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"
set POSTALCODE = NULL;
######################### / PREPERATION
######################### INITIAL
-- returns an empty resultset (initial version)
select col from (
select 'CITY' as col, count(*) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where CITY is not NULL union all
select 'POSTALCODE', count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where POSTALCODE is not NULL
) where i = 0;
######################### / INITIAL
######################### ALTERED VERSIONS
-- returns the expected resultset (outer select contains i)
select col, i from (
select 'CITY' as col, count(*) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where CITY is not NULL union all
select 'POSTALCODE', count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where POSTALCODE is not NULL
) where i = 0;
-- returns the expected resultset (check for "is null")
select col from (
select 'CITY' as col, count(*) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where CITY is NULL union all
select 'POSTALCODE', count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" where POSTALCODE is NULL
) where i = (select count(*) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST");
-- returns the expected resultset (now without where)
select col from (
select 'CITY' as col, count(CITY) i from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST" union all
select 'POSTALCODE', count(POSTALCODE) from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses_TEST"
) where i = 0
######################### ALTERED VERSIONS
The question is why does the initial statement return an empty resultset?
And please consider that the initial version works just fine under rev68 (resultset is not empty), but returns an empty resultset when being executed on a rev70 system.
Many thanks in advance for your feedback. -
I am using Encore CS4 4.0.1 (the latest version from what I can see) on Mac OSX 10.6.3
I am on a Mac Pro 1,1 with 2 2GHz Xeon Dual Core Processors
I have 5 GB of Ram
The Mac has the standard Nvidia 7300GT.
I have successfully created several BD and DVDs and nothing has changed.
I have a 1080 50i BD h.264 project with 2 hour 37 minute timeline and I am looking to create an h.264 BD 25 image. The project has two menus: a main menu with two buttons and a chapter selection menu with 7 buttons. Check project reveals no issues with anything.
I have searched the forum and tried the various solutions I found such as disc name, etc. The name is all in capitals with no spaces.
I googled and found msxml problems/solutions and other such things related to windows that do not apply to me as I am on Mac.
I get the following error at the very end of the build process:
Encore CS4 bluray error: fatal error, code "6" Internal error m_ptsOfNextGOPis empty
Any ideas? Hope I gave enough information. Thanks in advanceI do not know exactly what the problem was with the menu. I am assuming the menu was the problem because when I created a new encore project with the same video, audio and photo assets but with new menus there was no problem. I think that at the time I read there some people were having a problem with the template I originally used for my menus so I simply built a new menu from scratch in PS CS3. I think the original menu was party menu hd.
Sorry if that is vague but it worked so I did not look any further into the problem and I have not had any recurrence. -
Inserting into empty resultSet
hey every one;
iam trying to make an insert iont table
using ResultSet the result set was empty (No Data retieved from the DB because of a condition or an empty table.
the code was :
ResultSet rs22=null;
try
Driver Manager.RegisterDriver(new
oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@nafiz:1521:ora817",
"scott","tiger");
rs22 = conn.createStatement
(ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE).
executeQuery("select id,name from AHMAD_Table where id>1");
rs.next();
rs22.moveToInsertRow();
rs22.updateString(1,11);
}catch(Exception ex){ex.printStackTrace();}
the error was "Invalid argument(s) in call"See the below example I used successfully on your test piece of code... note that your example was attempting to use the updateString(1,11) on an updateInt(1,11) data type. Also, your example was missing the actual insertRow(); and conn.commit(); calls.
Driver Manager.RegisterDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@nafiz:1521:ora817","scott","tiger");
ResultSet rs22=null;
try {
rs22 = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE).executeQuery("select id,name from TEST_Table where id>1");
rs22.moveToInsertRow();
rs22.updateInt(1,11);
rs22.updateString(2,"WELCOME");
rs22.insertRow();
conn.commit();
catch(Exception ex){ex.printStackTrace();}
finally {
if(rs22 != null) { rs22.close(); }
if(conn != null) { conn.close(); }
Steve.
null -
Error while assigning resultset value to Querytable variable in Coldfusion 10
We are upgrading from coldfusion 8 to 10. Internally we were using java function to to get the data.
In java function we have a resultset object, if we assign this resultset value to Querytable variable, we are getting below error. This code was working fine in coldfusion 8.
Detail This exception is usually caused by service startup failure. Check your server configuration.
Message The Runtime service is not available.
StackTrace coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. at coldfusion.server.ServiceFactory.getRuntimeService(ServiceFactory.java:117) at coldfusion.runtime.RequestMonitor.<clinit>(RequestMonitor.java:14) at coldfusion.sql.QueryTable.populate(QueryTable.java:358) at coldfusion.sql.QueryTable.populate(QueryTable.java:283) at coldfusion.sql.QueryTable.<init>(QueryTable.java:96) at com.myCompany.myClass.myFunct(myClass.java:627) at
Here is the function which is causing error.
static private QueryTable myFunct(String userId, SessionFactory sf) {
PreparedStatement pStmt = null;
ResultSet rs = null;
QueryTable ret = null;
try{
Query q = sf.getCurrentSession().getNamedQuery("ListUsers");
pStmt = sf.getCurrentSession().connection().prepareStatement(q.getQueryString());
rs = pStmt.executeQuery();// works fine till here
ret = new QueryTable(rs); // error line
rs.close();
}catch(Exception e){
e.printStackTrace();
throw new RuntimeException(e.getLocalizedMessage());
return ret;
Can you provide some help on this. Please let me know if you need any other details.We have found this error is logs
coldfusion.runtime.Encryptor$InvalidParamsForEncryptionException: An error occurred while trying to encrypt or decrypt your input string: The input and output encodings are not same..
at coldfusion.runtime.Encryptor.decrypt(Encryptor.java:303)
at coldfusion.runtime.Encryptor.decrypt(Encryptor.java:284)
at coldfusion.runtime.CFPage.Decrypt(CFPage.java:5353)
at coldfusion.runtime.CFPage.Decrypt(CFPage.java:5326)
at coldfusion.runtime.CFPage.Decrypt(CFPage.java:5458)
at com.vmware.vcp.service.impl.EncryptColdFusionImpl.decrypt(EncryptColdFusionImpl.java:65)
at com.vmware.vcp.web.servlet.ApplicationConfigServlet.initEmailService(ApplicationConfigSer vlet.java:119)
at com.vmware.vcp.web.servlet.ApplicationConfigServlet.init(ApplicationConfigServlet.java:51 )
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5001)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5278)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722) -
Reports from BI Workspace Display w/ #ERROR or Empty
One of my users is no longer able to see data in reports when ran from Workspace. She either sees #ERROR in each data cell or the report displays empty. If I run the report, I see the data. I have confirmed the permissions on the report are set to Read for the World group. These reports were running fine for her last week. Any ideas what could be wrong? Is there a DELETEPOV equivalent in 11.1.2?
Thanks.
Terri TaylorHer POV was set up just like mine. She logged into Workspace from my laptop and was able to run the report fine. We had her delete her Internet temporary files and then she was able to successfully run the report. Strange.
Terri Taylor -
Closing PreparedStatements & ResultSets
Is it necessary to explicitly close ResultSet AND PreparedStatement objects when used together? For example:
PreparedStatement ps;
ResultSet rs;
String sql = " SELECT * FROM some_table WHERE id = ? ";
try {
ps = connection.prepareStatement(sql);
ps.setString(1, someId);
rs = ps.executeQuery();
// And so on.....
} finally {
rs.close();
ps.close();
}Is it sufficient to close only the PreparedStatement? Does the ResultSet get cleaned up automatically when the PreparedStatement is closed? I don't want any lingering cursors left open, but at the same time, I don't want to write code that isn't needed. What's considered best form?
Thanks.
BTW: I'm using Oracle 8i/9i.I always close a Statement object, but don't worry about the ResultSet...that's really just a matter of redundancy...
From the API on Statement.close()
Note: A Statement object is automatically closed when it is garbage collected. When a Statement object is closed, its current ResultSet object, if one exists, is also closed. -
Please help. Error closing FileDescriptors
I realize this is a frequently visited problem but I've yet to find a solution in the archives.
I'm using a app that utilizes RMI to access and edit remote files. To do this, I've written a Remote object that has the ability to read all requested files and then return a collection of file information objects that contain the current contents of the files. The information objects are serializable and do not contain any references to the the actual file (just copies of its contents).
After running the the app for a while i get the following errors.
On linux and j2sdk1.4.1_01:
FileNotFoundException( Too many open files )
From some tips found in older archives i tried running
"ulimit -n 1048576" before starting the app
however this only delays the problem.
On Windows and j2sdk1.4.1:
"The process cannot access the file because it is being used by another process"
It appears as though the files are not being closed after being parsed. The code looks something like this:
File file = null;
try {
file = new File( filename );
// do the parsing
catch ( Exception e ) {
finally {
file = null;
System.gc();
Anyone have any ideas? Thanks in advance.Have you tried inserting file.close() ?
-
Open cursors are NOT closed only by closing the ResultSet or Statement
I've realised that the open cursors are only closed by closing the connection.
In my example code I have for-loop with a vector of table-names. For every table-name I start a query to retrieve metainformation (row-size, column-names). Although I close the ResultSet (which automatically closes the PreparedStatement/Statement) I reached after the 150th loop a max-cursor-exception (ora-01000) ?!
It seems that there is only the workaround to close and re-open the connection at the end of the for-loop. Which is performance-side pretty bad :-(.
Is there really no other solution?
Besides: does anyone know WHY the statement.close() also closes the ResultSet?? I think this is a bad design (hence to tight dependency between both classes). What if the garbage collector closes the statement (and hence to the JDOC the statement.close()-method also closes the ResultSet)? For example if a method uses a local Statement and returns a ResultSet (and the Statement-garbage is collected), then the ResultSet would cause an exception?!
Thanks for the help in advance
TaiI've realised that the open cursors are only closed by
closing the connection.Or by closing the Statement!
In my example code I have for-loop with a vector of
table-names. For every table-name I start a query to
retrieve metainformation (row-size, column-names).
Although I close the ResultSet (which automatically
closes the PreparedStatement/Statement) I reached
after the 150th loop a max-cursor-exception
(ora-01000) ?!Closing the ResutSet does not automatically close the PreparedStatement/Statement.
>
It seems that there is only the workaround to close
and re-open the connection at the end of the for-loop.
Which is performance-side pretty bad :-(.
Is there really no other solution?
Just explicitly close the PreparedStatement/Statement!
Besides: does anyone know WHY the statement.close()
also closes the ResultSet?? You need to think of a resultset as a live connection to the database.
Consider SELECT * FROM ABIGTABLE, it would be inefficient to populate the Resultset with all of the rows (could even eat up all memory) so the first n rows are returned ( n = Statement.getFetchSize() ) and the next n rows are returned as needed.
I think this is a bad
design (hence to tight dependency between both
classes). What if the garbage collector closes the
statement (and hence to the JDOC the
statement.close()-method also closes the ResultSet)?
For example if a method uses a local Statement and
returns a ResultSet (and the Statement-garbage is
collected), then the ResultSet would cause an
exception?!You should use a statment and resultset, read all your data into a collection or a CachedRowSet (http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html) then close the statment as soon as possible. Never return a resultset form your data tier: that is tight coupling between the tiers of your application! -
Variable Substituition throwing an error for empty payload
Hi All,
I am using variable substituition in the receiver file adapter...
Everything is working fine and the variable substituion is working and creating a file whenever the payload in the mapping has the filenode field for variable substituition.
Now based on some condition the payload will be empty in the mapping then no file to be created...
For this i used IGNORE in the receiver adapter BUT still an empty file is being created, this is because the payload will have the filenode field ...
Now my question is how can we stop in creating an empty file...
Even i tried using Dynamic Variable in the mapping but that to throws an error...
Please suggest me on how to solve this...
Regards,
sridhar>
sridhar reddy kondam wrote:
> Now based on some condition the payload will be empty in the mapping then no file to be created...
> For this i used IGNORE in the receiver adapter BUT still an empty file is being created, this is because the payload will have the filenode field ...
Make sure that the node is not created itself in the mapping so that you will not have the issue.
IS that what you are looking for?
Else give more details so that we can help -
EM12CR3 - Alert Log Errors page - empty
What controls the content shown in Oracle Database->Logs->Alert Log Errors ?
The page shows empty - but if we look in the actual alert log we can clearly see ORA-0600 errors showing there. In fact if we do the more generic show alert log, search and look for Errors, it shows up there just fine.
Oct 10, 2013 3:04:21 PM UTC
ERROR
8
https://oem03cnc.rim.net:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_databasehttps://oem03cnct:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_databasehttps://oem03cnc:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_database
ami_comp
dbgripsto_sweep_staged_obj:15736:70631439
Sweep [inc2][672054]: completed
Oct 10, 2013 3:04:21 PM UTC
ERROR
8
https://oem03cnc.rim.net:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_databasehttps://oem03cnct:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_databasehttps://oem03cnc:7803/em/console/database/instance/adrAlertLogContent?target=edwp_edwp7&type=oracle_database
ami_comp
dbgripsto_sweep_staged_obj:15736:70631439
Sweep [inc][672054]: completed
Thoughts?This alert should show up ..
<msg time='2013-11-02T23:37:18.436+00:00' org_id='oracle' comp_id='rdbms'
msg_id='684699380' type='INCIDENT_ERROR' group='Generic Internal Error'
level='1' host_id='edwp07' host_addr='10.65.65.189'
prob_key='ORA 600 [kghstack_free1]' upstream_comp='' downstream_comp='KGH'
ecid='' errid='714327' detail_path='/u01/app/oracle/diag/rdbms/edwp/edwp7/trace/edwp7_bmr0_52817.trc'>
<txt>Errors in file /u01/app/oracle/diag/rdbms/edwp/edwp7/trace/edwp7_bmr0_52817.trc (incident=714327):
ORA-00600: internal error code, arguments: [kghstack_free1], [iobuf_krbabrAddBlock], [], [], [], [], [], [], [], [], [], []
</txt>
</msg> -
Errors closing Word multiple documents
Since upgrading to GroupWise 7 Support Pack 3 this problem occurs for everyone: Multiple Word documents have been opened. Closing any of the open Word documents will cause the message to appear 'This file is in use by another application or user'. The user will click 'OK'. Then the window will appear to 'Save the document'. The user will select 'Cancel', then try again to close the document. Then the error message appears: 'Changes have been made that affect the global template Normal.DOT. Do you want to save those changes?' The user then selects 'No'.
This happens every time more than 1 Word document is open.
Is there a fix for this problem? Much obliged for any help.I just tried it & yes it does go away if you don't open it through GW so that does help me avoid the error messages at least. As for upgrading... not that I'm aware of.
Thanks for your input, I appreciate it. I guess I'll live with it until the powers that be decide to step into the year 2009! :)
Patti
Originally Posted by DParkes
Does the problem go away if you open those multiple documents in a single
copy of Word ?, just use File/Open within Word rather than opening each
one from GW.
6.0.4 is a bit long in the tooth - any thoughts of moving to a newer
version of GW ?, it's difficult to remember any distinct problems for
something that old :-(
Cheers Dave
Dave Parkes [NSCS]
Occasionally resident at http://support-forums.novell.com/
Maybe you are looking for
-
Hi, I have 3 fields in a report vendor, country, payment method and amount. When I execute the query output is something like this: Vendor Country PaymentMet Amount 1000 US # $100 C $0 While i
-
New thumbnails showing up as hourglass older ones fine Photoshop elements 7
I had been using Adobe photoshop elements 7 for several years now with no problems. about a week ago my thumbnails began not showing up on newly added photos. All of the older photo's thumnails show up as usual in the organizer, however anything new
-
Reason of rejection on debit/credit memo request - Order Status still Open
Hi, We had configured the Reason of rejection at sales order item level. And as per business process we have only 1 material per order. Hence whenever we set the reason of rejection at sales order for a Standard order type u2018ORu2019 the Document F
-
How can I change the order in which songs appear in my iTunes Music Library?
How can I change the order in which songs appear in my iTunes Music Library?
-
I can not load or update any aps. Any advice?
Since the recent update I've had a few bugs that sorted out but now I can't get any updates or load new aps.