"Cursor state not valid.", AS400 JDBC, IBM JTOpen 3.0
I am using JT400.JAR from IBM's JTOpen 3.0 release.
I am running JTOpen inside of Websphere 3.5.x
JDBC auto-commit is enabled.
When running JDBC queries, I am observing intermittent SQL
exceptions.
The message that I see is "Cursor state not valid."
What is the cause of "Cursor state not valid."?
Is there a workaround?
Here is the stack trace:
java.sql.SQLException: Cursor state not valid.
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:360)
at
com.ibm.as400.access.AS400JDBCResultSet.checkOpen(AS400JDBCResultSet.java:35
6)
at
com.ibm.as400.access.AS400JDBCResultSet.beforePositioning(AS400JDBCResultSet
.java:1157)
at
com.ibm.as400.access.AS400JDBCResultSet.next(AS400JDBCResultSet.java:1680)
at foobar.SomeData_Peer.createObjects(SomeData_Peer.java:54)
In your sequel statement, are you assigning the results in order to how they appear in your sequel statement.
For example:
SELECT name, address, email FROM tblUser
If you, in code, write something like this:
newaddress = rs.getString("address").toString()
You can not then say
newname = rs.getString("name").toString() - because it does not appear in the order you wrote in the select statement.
I hope that helps you
Similar Messages
-
Hello all,
We have configured JDBC Sender Adapter which fetches around 10K records with poll interval 1hr from DB2 System .
It was working fine,suddenly it started throwing an exception in Adapter Monitoring :
Error during conversion of query result to XML: java.sql.SQLException: Cursor state not valid.
It is not fetching any records.
Without changing any configurations when we tried to fetch to around 1000 records it's working fine.
For 10K records same exception persists
What could be the reason ?How to resolve this issue?
regards
GangaPrasadHello Christophe ,
Trace in VA :::
Date : 05/09/2008
Time : 11:45:57:750
Message : Unexpected error converting database resultset to XML, reason: java.sql.SQLException: Cursor state not valid.
at java.lang.Throwable.<init>(Throwable.java:194)
at java.lang.Exception.<init>(Exception.java:41)
at java.sql.SQLException.<init>(SQLException.java:40)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:389)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:366)
at com.ibm.as400.access.AS400JDBCResultSet.getValue(AS400JDBCResultSet.java:3580)
at com.ibm.as400.access.AS400JDBCResultSet.getString(AS400JDBCResultSet.java:3223)
at sun.reflect.GeneratedMethodAccessor459222074.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:309)
at com.sap.aii.adapter.jdbc.sql.jdbctrace.TraceInvocationHandler.invoke(TraceInvocationHandler.java:45)
at com.sap.aii.adapter.jdbc.sql.jdbctrace.$Proxy254.getString(Unknown Source)
at com.sap.aii.adapter.jdbc.JDBC2XI.convert2XML(JDBC2XI.java:954)
at com.sap.aii.adapter.jdbc.JDBC2XI.invoke(JDBC2XI.java:492)
at com.sap.aii.af.service.scheduler.JobBroker$Worker.run(JobBroker.java:475)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:119)
Severity : Error
Category : /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC
Location : com.sap.aii.adapter.jdbc.JDBC2XI.convert2XML(ResultSet, ResultSetMetaData)
Application :
Thread : XI JDBC2XI[JDBC_SND_DB2_VehicleReceiving/DB2PRD00/]_170
Datasource : 12428950:/usr/sap/PXI/DVEBMGS01/j2ee/cluster/server0/log/applications/com.sap.xi/xi.log
Message ID : 00145E742794005E0014980B000000BE00044CC763766C4F
Source Name : /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC
Argument Objs : java.sql.SQLException: Cursor state not valid.
at java.lang.Throwable.<init>(Throwable.java:194)
at java.lang.Exception.<init>(Exception.java:41)
at java.sql.SQLException.<init>(SQLException.java:40)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:389)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:366)
at com.ibm.as400.access.AS400JDBCResultSet.getValue(AS400JDBCResultSet.java:3580)
at com.ibm.as400.access.AS400JDBCResultSet.getString(AS400JDBCResultSet.java:3223)
at sun.reflect.GeneratedMethodAccessor459222074.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:309)
at com.sap.aii.adapter.jdbc.sql.jdbctrace.TraceInvocationHandler.invoke(TraceInvocationHandler.java:45)
at com.sap.aii.adapter.jdbc.sql.jdbctrace.$Proxy254.getString(Unknown Source)
at com.sap.aii.adapter.jdbc.JDBC2XI.convert2XML(JDBC2XI.java:954)
at com.sap.aii.adapter.jdbc.JDBC2XI.invoke(JDBC2XI.java:492)
at com.sap.aii.af.service.scheduler.JobBroker$Worker.run(JobBroker.java:475)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:119)
Arguments : java.sql.SQLException: Cursor state not valid.
at java.lang.Throwable.<init>(Throwable.java:194)
at java.lang.Exception.<init>(Exception.java:41)
at java.sql.SQLException.<init>(SQLException.java:40)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:389)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:366)
at com.ibm.as400.access.AS400JDBCResultSet.getValue(AS400JDBCResultSet.java:3580)
at com.ibm.as400.access.AS400JDBCResultSet.getString(AS400JDBCResultSet.java:3223)
at sun.reflect.GeneratedMethodAccessor459222074.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:309)
at com.sap.aii.adapter.jdbc.sql.jdbctrace.TraceInvocationHandler.invoke(TraceInvocationHandler.java:45)
at com.sap.aii.adapter.jdbc.sql.jdbctrace.$Proxy254.getString(Unknown Source)
at com.sap.aii.adapter.jdbc.JDBC2XI.convert2XML(JDBC2XI.java:954)
at com.sap.aii.adapter.jdbc.JDBC2XI.invoke(JDBC2XI.java:492)
at com.sap.aii.af.service.scheduler.JobBroker$Worker.run(JobBroker.java:475)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:119)
Dsr Component :
Dsr Transaction : d1f629d01d9b11dd984200145e742794
Dsr User :
Indent : 0
Level : 0
Message Code :
Message Type : 1
Relatives : com.sap.aii.adapter.jdbc.JDBC2XI
Resource Bundlename :
Session : 0
Source : /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/JDBC
ThreadObject : XI JDBC2XI[JDBC_SND_DB2_VehicleReceiving/DB2PRD00/]_170
Transaction : SAP J2EE Engine JTA Transaction : [0ffffffbdffffffa6ffffff960086]
User : J2EE_GUEST
Regards
Ganga Prasad -
JTA Transaction--please help-----Xid not valid
HI,
I am writing a small application which i am posting at the end.This is decription of my application.I am writing a jsp.Later on i will be using in some other way.
I am using Oracle XA implementation to communicatewith my RM which oracle8.1.7 .
I am creating two XAConnection with two data instances 'test' and 'test3' .These two reside on my local machine in the same database server.
With the code which i am sending you i have tried two cases.
First Case
1)i use only one XAConnection object of say 'test'.
2)enlist its XADataSource with my transaction Object
3) get two connection objects and execute two sql's on themMy code works fine and maintains the transaction.
Second Case
1) I use create two XAConnection objects. one of 'test' and other of 'test3'.
2) enlist their XAResources with transaction object.
3) Now i take one connection from each of XAConnection and execute two sqls, oneon each of them.
It gives me exception while enlisting second XAResource with transaction objeectsaying that "The Xid is not valid".
below is the stackTrace.
javax.transaction.SystemException: start() failed on resource 'oracle.jdbc.xa.client.OracleXAResource':XAER_NOTA : The XID is not valid
oracle.jdbc.xa.OracleXAException at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1165)
at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:1108)
<----------------------CODE------------------------------------------------------>
<html>
<body bgcolor=tan>
<%@page session="true" %>
<%@page import="java.util.Hashtable,java.sql.*,javax.naming.*,javax.transaction.*,javax.sql.*,oracle.jdbc.xa.client.OracleXADataSource,javax.rmi.PortableRemoteObject,javax.transaction.xa.XAResource" %>
<%!
private static XAConnection getFirstXAConnection() throws java.sql.SQLException{
OracleXADataSource oxadsFirst = new OracleXADataSource();
String urlFirst = "jdbc:oracle:thin:@70.7.51.80:1521:test";
oxadsFirst.setURL(urlFirst);
XAConnection xaConnectionFirst = oxadsFirst.getXAConnection("scott","tiger");
return xaConnectionFirst;
private static XAConnection getSecondXAConnection() throws java.sql.SQLException{
OracleXADataSource oxadsSec= new OracleXADataSource();
String urlSec = "jdbc:oracle:thin:@70.7.51.80:1521:test3";
oxadsSec.setURL(urlSec);
XAConnection xaConnectionSec = oxadsSec.getXAConnection("scott","tiger");
return xaConnectionSec;
%>
<%
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
try{
ctx = new InitialContext(ht);
//javax.transaction.UserTransaction transaction = (javax.transaction.UserTransaction)ctx.lookup("java:comp/UserTransaction");
System.out.println("Before Lookup JNDI UserTransaction and TransactionManager......................");
//javax.transaction.UserTransaction userTx = (javax.transaction.UserTransaction)ctx.lookup("javax.transaction.UserTransaction");
javax.transaction.TransactionManager transactionManager = (javax.transaction.TransactionManager)ctx.lookup("javax.transaction.TransactionManager");
System.out.println("After Lookup TransactionManager......................");
try{
transactionManager.begin();
Transaction transaction = transactionManager.getTransaction();
System.out.println("Transaction Object ----------------------------->"+transaction);
XAConnection xaConFirst = getFirstXAConnection();
XAResource xaResourceFirst = xaConFirst.getXAResource();
System.out.println("xaResourceFirst Object ----------------------------->"+xaResourceFirst);
XAConnection xaConSecond = getSecondXAConnection();
XAResource xaResourceSecond = xaConSecond.getXAResource();
System.out.println("xaResourceSecond Object ----------------------------->"+xaResourceSecond);
if(!xaResourceFirst.isSameRM(xaResourceSecond) )
System.out.println("<-----------------BOTH THE RESOURCES ARE NOT SAME SMAE SAME----------------------------->");
boolean firstEnlistBool = transaction.enlistResource(xaResourceFirst);
System.out.println("firstEnlistBool ----------------------------->"+firstEnlistBool);
boolean secondEnlistBool = transaction.enlistResource(xaResourceSecond);
System.out.println("secondEnlistBool -------------------------> "+secondEnlistBool);
java.sql.Connection firstConn = xaConFirst.getConnection();
Statement stmt = firstConn.createStatement();
stmt.executeQuery("insert into dept values(60,'MARKETING','NEW DELHI')");
java.sql.Connection secondConn = xaConSecond.getConnection();//xaConFirst.getConnection();//
stmt = secondConn.createStatement();
//stmt.executeQuery("insert into account values(20,20)");
stmt.executeQuery("insert into salgrade values(10,10,10)");
if(Status.STATUS_ACTIVE == transactionManager.getStatus() )
System.out.println("Before committing status "+transactionManager.getStatus() );
transactionManager.commit();
System.out.println("After committing");
} catch(SQLException sqlE){
sqlE.printStackTrace();
catch(Exception e){
e.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
finally {
try {
ctx.close();
catch (Exception e) {
e.printStackTrace();
} // close finally
%>
<form method="post">
<input type="submit" name="submit" value="Call Transaction Bean">
</form>
</html>
<-------------------------------------------------------------------------------->
please help in this..I am stuck with this and dont kow how to move ahead to remove this problem..
Best Regards
Akhil NagpalHi,
Hi Vicky,
I think we are in different time zones. I am south
korea.I have tried your suggestion but it gives me
the same exception.Yes ,there is a difference of 3.5 hours , I am in India(Mumbai).
This is what i am trying to achieve.
My aim is to create some aplication to which i can
register my XADataSources and this application should
be able to handle the distributed transactions among
them.I will be using the TransactionManager of some
application server.SO i am using weblogic7.0.
For the testing purpose i have creaed a jsp as i
i posted the code. I am very new to this JTA and may
be i am doing wrong.Can you help me this but putting
insights into your experience may be that will
increase my enthusiasm :-) ....
please help me in this.
I am extracting the following from the docs
public interface TransactionManager
The TransactionManager interface defines the methods that allow an application server to manage transaction boundaries.
public interface UserTransaction
The UserTransaction interface defines the methods that allow an application to explicitly manage transaction boundaries
So as per your specs I can understands your application is trying to explicitily control the boundaries of the transaction, so you should use the UserTransction instance to begin the Transaction.My understanding says the TransactionManager will come in picture for declarative transaction and UserTransaction for the your case.I think you have tried that , I would have tried this out here but I dont work on weblogic.Do the things cooly and try to understand the concept.Let me know of the results.
Regards
Vicky -
With sqlserver - The cursor identifier value provided (abcdef0) is not valid.
With the Microsoft SQL Server 2000 JDBC Driver I keep getting the following
exception from kodo:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]sp_
cursorclose: The cursor identifier value provided (abcdef0) is not valid.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown
Source)
in kodo.properties i have
javax.jdo.option.ConnectionURL
set to
jdbc:microsoft:sqlserver://BALT-DB1:1433;DatabaseName=db_mamick;SelectMethod
=cursor
I am using kodo 2.4.1
Has anyone seen this?
Thanks
-MarcTele-
This is just a warning that is issued when we clean up the ResultSet.
The MS driver seems to be prematurly closing them for some reason.
Is this causeing an error for you? Otherwise, you can just ignore the
warning. You can set the logging level for JDBC to be "ERROR" in order
to stop the error message from being logged.
In article <[email protected]>, Tele wrote:
I'm using the MS JDBC driver i downloaded 3 days ago from MSDN. And i got
the exactly same message like Marc
my program:
import java.io.*;
import java.util.*;
import javax.jdo.*;
public class KodoConn {
public KodoConn() {
try {
Properties props = new Properties();
props.load(getClass().getResourceAsStream("/kodo.properties"));
PersistenceManagerFactory pmf =
JDOHelper.getPersistenceManagerFactory(props);
PersistenceManager pm = pmf.getPersistenceManager();
Extent e = pm.getExtent(Animal.class, true);
for (Iterator i = e.iterator(); i.hasNext(); ) {
Animal temp = (Animal) i;
System.out.println(temp.getPrice() + " " + temp.getType());
catch (IOException ex) {
public static void main(String[] args) {
KodoConn kodo = new KodoConn();
com.solarmetric.kodo.ConnectionProperties=
com.solarmetric.kodo.DataCacheClass=
com.solarmetric.kodo.LicenseKey=505152535454555647
com.solarmetric.kodo.PersistenceManagerClass=com.solarmetric.kodo.runtime.Pe
rsistenceManagerImpl
com.solarmetric.kodo.impl.jdbc.DictionaryClass=com.solarmetric.kodo.impl.jdb
c.schema.dict.SQLServerDictionary
com.solarmetric.kodo.impl.jdbc.SQLExecutionListenerClass=
com.solarmetric.kodo.impl.jdbc.SequenceFactoryClass=com.solarmetric.kodo.imp
l.jdbc.schema.ClassDBSequenceFactory
com.solarmetric.kodo.impl.jdbc.TransactionIsolation=READ_UNCOMMITTED
com.solarmetric.kodo.impl.jdbc.WarnOnPersistentTypeFailure=true
javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBC
PersistenceManagerFactory
javax.jdo.option.ConnectionDriverName=com.microsoft.jdbc.sqlserver.SQLServer
Driver
javax.jdo.option.ConnectionPassword=xxx
javax.jdo.option.ConnectionURL=jdbc\:microsoft\:sqlserver\://xxx\:1433;Datab
aseName\=xxx;SelectMethod\=cursor
javax.jdo.option.ConnectionUserName=xxx
javax.jdo.option.MaxPool=80
javax.jdo.option.MinPool=1
javax.jdo.option.MsWait=5000
javax.jdo.option.Multithreaded=true
0 [main] INFO kodo.Runtime - Starting Kodo JDO version 2.4.1
(kodojdo-2.4.1-20030126-1556) with capabilities: [Enterprise Edition
Features, Standard Edition Features, Lite Edition Features, Query
Extensions, Datacache Plug-in, Statement Batching, Global Transactions,
Developer Tools, Custom Database Dictionaries, Enterprise Databases, Custom
ClassMappings, Custom ResultObjectProviders]
81 [main] INFO kodo.MetaData -
com.solarmetric.kodo.meta.JDOMetaDataParser@39ab89: parsing source:
file:/C:/kodo-jdo-2.4.1/samples/swing/petshop/classes/Animal.jdo
912 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] open:
jdbc:microsoft:sqlserver://xxx:1433;DatabaseName=xxx;SelectMethod=cursor
(xxx)
1102 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] get
[com.solarmetric.datasource.PoolConnection@f0c85e[[requests=0;size=0;max=0;h
its=0;created=0;redundant=0;overflow=0;new=0;leaked=0;unavailable=0]]] from
[com.solarmetric.datasource.DataSourceImpl$SortablePool[min=1; max=80;
size=1; taken=0]]
1222 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] begin
rollback
1222 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] end
rollback 0ms
1222 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] return
[com.solarmetric.datasource.PoolConnection@f0c85e[[requests=0;size=0;max=0;h
its=0;created=0;redundant=0;overflow=0;new=0;leaked=0;unavailable=0]]] to
[com.solarmetric.datasource.DataSourceImpl$SortablePool[min=1; max=80;
size=1; taken=1]]
1392 [main] INFO jdbc.JDBC - Using dictionary class
"com.solarmetric.kodo.impl.jdbc.schema.dict.SQLServerDictionary" to connect
to "Microsoft SQL Server" (version "Microsoft SQL Server 2000 - 8.00.194
(Intel X86)
Aug 6 2000 00:57:48
Copyright (c) 1988-2000 Microsoft Corporation
Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 3)
") with JDBC driver "SQLServer" (version "2.2.0029")
1453 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] get
[com.solarmetric.datasource.PoolConnection@f0c85e[[requests=0;size=0;max=0;h
its=0;created=0;redundant=0;overflow=0;new=0;leaked=0;unavailable=0]]] from
[com.solarmetric.datasource.DataSourceImpl$SortablePool[min=1; max=80;
size=1; taken=0]]
1453 [main] WARN jdbc.JDBC - java.sql.SQLWarning: java.sql.SQLWarning:
[Microsoft][SQLServer 2000 Driver for JDBC]Database changed to xxx
1453 [main] WARN jdbc.JDBC - java.sql.SQLWarning: java.sql.SQLWarning:
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]______"________________________________
'xxx'____
1473 [main] WARN jdbc.JDBC - java.sql.SQLWarning: java.sql.SQLWarning:
[Microsoft][SQLServer 2000 Driver for JDBC]Language changed to ________________
1473 [main] WARN jdbc.JDBC - java.sql.SQLWarning: java.sql.SQLWarning:
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]______"________________________ ________
1613 [main] INFO jdbc.SQL - [ C:15779934; T:9489155; D:15493888 ] preparing
statement <8752113>: SELECT DISTINCT ANIMALX.JDOCLASSX FROM ANIMALX
1623 [main] INFO jdbc.SQL - [ C:15779934; T:9489155; D:15493888 ] executing
statement <8752113>: [reused=1;params={}]
1773 [main] WARN jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] Error
when closing Statement/ResultSet
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]sp_cursorclose: ____________________________________________abcdef0________________
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.closeCursor(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.completeRowProcessing(Unkn
own Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplResultSet.close(Unknown
Source)
at com.microsoft.jdbc.base.BaseResultSet.close(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown
Source)
at com.microsoft.jdbc.base.BaseStatement.close(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.close(Unknown Source)
at
com.solarmetric.datasource.StatementWrapper.close(StatementWrapper.java:201)
at
com.solarmetric.datasource.PreparedStatementCache$CachePreparedStatement.des
troy(PreparedStatementCache.java:278)
at
com.solarmetric.datasource.PreparedStatementCache$CachePreparedStatement.clo
se(PreparedStatementCache.java:350)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.close(SQLExecutionMan
agerImpl.java:986)
at
com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(
SubclassProviderImpl.java:278)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getPrimaryMappingField
s(ClassMapping.java:1093)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:704)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExtent.getResultList(JDBCExtent.j
ava:64)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExtent.getIterator(JDBCExtent.jav
a:46)
at
com.solarmetric.kodo.runtime.ExtentImpl$TransactionAwareIterator.newIterator
(ExtentImpl.java:242)
at serp.util.MultiIterator.setIterator(MultiIterator.java:70)
at serp.util.MultiIterator.hasNext(MultiIterator.java:25)
at
com.solarmetric.kodo.runtime.ExtentImpl$TransactionAwareIterator.hasNext(Ext
entImpl.java:218)
at KodoConn.<init>(KodoConn.java:23)
at KodoConn.main(KodoConn.java:33)
1773 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] begin
rollback
1783 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] end
rollback 10ms
1783 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] return
[com.solarmetric.datasource.PoolConnection@f0c85e[[requests=1;size=0;max=0;h
its=0;created=1;redundant=0;overflow=1;new=1;leaked=0;unavailable=0]]] to
[com.solarmetric.datasource.DataSourceImpl$SortablePool[min=1; max=80;
size=1; taken=1]]
1783 [main] INFO jdbc.JDBC - [ C:15779934; T:9489155; D:15493888 ] get
[com.solarmetric.datasource.PoolConnection@f0c85e[[requests=1;size=0;max=0;h
its=0;created=1;redundant=0;overflow=1;new=1;leaked=0;unavailable=0]]] from
[com.solarmetric.datasource.DataSourceImpl$SortablePool[min=1; max=80;
size=1; taken=0]]
1813 [main] INFO jdbc.SQL - [ C:15779934; T:9489155; D:15493888 ] preparing
statement <2715510>: SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.PRICEX,
t0.TYPEX FROM ANIMALX t0
1813 [main] INFO jdbc.SQL - [ C:15779934; T:9489155; D:15493888 ] executing
statement <2715510>: [reused=1;params={}]
"Marc Prud'hommeaux" <[email protected]> wrote in message
news:[email protected]...
Marc-
Are you using the lastest version of MS's JDBC driver? I seem to recall
this problem with the beta version of the driver.
If that doesn't help, can you send us the complete stack trace?
In article <[email protected]>, Marc Amick wrote:
With the Microsoft SQL Server 2000 JDBC Driver I keep getting the
following
exception from kodo:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]sp_
cursorclose: The cursor identifier value provided (abcdef0) is notvalid.
atcom.microsoft.jdbc.base.BaseExceptions.createException(Unknown
Source)
in kodo.properties i have
javax.jdo.option.ConnectionURL
set to
jdbc:microsoft:sqlserver://BALT-DB1:1433;DatabaseName=db_mamick;SelectMethod
=cursor
I am using kodo 2.4.1
Has anyone seen this?
Thanks
-Marc
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
If statement is not validating properly in JSP
Actually i'm new to Java..
The problem is when i take the parameter from another file which is an empty text box and i submit that. In the next jsp file i'am taking this value using getParameter("xxxx").
if i send the empty or some value to this parameter, the if statement is not validating properly.
here is my code in jsp....
<%
String bgcolor = request.getParameter("bgColor");
out.println("Background Color = " + bgcolor);
if (bgcolor == null)
out.println("Hello Null");
else
out.println("Hello Not Null");
%>
Thanks in advance
KumarHey there, you should know that Strings in Java are
different from other types like int and double for
example. Strings are objects so you cant check em
with == but with the standard method .equals This is true but is not the problem here.
@OP null and an empty length string are NOT the same thing. You probably want a check like
if(bgColor.length()<1)And you might want to trim the String first to get rid of whitespace. -
AD password change comes up, user changes password.
Tries to send signed or encrypted email with a Comodo S/MIME certificate, and gets the following error:
""An error occurred in the underlying security system. Key not valid for us in specified state."
I now have two reports of this error - one on Windows 7, and one on Windows 8.0 (remote user).
The one on Windows 8.0, we tried removing their S/MIME cert from Outlook/Windows and re-adding, this did NOT resolve the issue.
Plan was originally to have the 8.0 user ship their machine in, and wipe it, since nothing else could fix it and I wasn't finding anyone else with the same issue. Now that I've got a second user with the same issue, its looking like a bug/issue and
not a random glitch.
Thanks in advance for any and all help with this!Hi,
Thank you for your question.
I am trying to involve someone familiar with this topic to further look at this issue.
Thanks,
Melon Chen
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click
here -
While doing a routine update from Lightroom 5.5 to v5.6 in Win 8.1, the installation halted at the start of the installation with the vague error message, "key not valid for use in specified state". Although v5.5 was working just fine, the install routine deleted the v5.5 application files. I rolled back to the previous system restore point (set just prior to the install) and recovered the executable files. However, now the 5.5 files won't open the default catalog, none of the backups, or even create a new catalog.
As v5.x was purchased as an update to v4.x, I've tried to reinstall the original Lightroom v4.x app from the factory disk. I get the same error.
Suggestions?
Thanks. DanI have a similar problem to Dan. while doing a routine upgrade from Lightroom 5.5 to 5.6 I got the
: "key not valid for use in specified state"
error and now Lightroom has completely disappeared. I've tried to uninstall, but there is nothing to uninstall. Going back to try to install the original 5.4 just results in the same error.
A problem may have been that I closed Lightroom when the upgrade started to download. It then re-opened again when the install was halfway through., I assumed that was an error and closed it. just after that the error first appeared in the installer.
I still had an older version of lightroom 4 installed. I've uninstalled it, and that didn't make any difference.
I've also tried removing anything in the registry left over from the old installs and that didn't help either.
Any suggestions?
CHeers, Angus -
hi,
when i was trying to deploy a SP solution from my vs 2012 solution. this error is displayed.
i tried many things like
1) get the wsp and apply power shell cmds to add and deploy, here also it failed:
Add-SPSolution -LiteralPath d:\mywsp.wsp
Install-SPSolution mywsp.wsp -GacDeployment -AllWebApplications -Local
2) restart the timer services and do iisreset and reboot the server. etc .as mentioned in one of the the below blogs:
http://sharepoint1on1.blogspot.in/2014/04/sharepoint-error-occurred-in-deployment.html
http://suehernandez.wordpress.com/2011/03/31/error-occurred-in-deployment-step-activate-features-operation-is-not-valid-due-to-the-current-state-of-the-object/
http://www.dotnetsharepoint.com/2014/04/error-occurred-in-deployment-step-add.html
http://social.msdn.microsoft.com/Forums/en-US/63adde23-03cf-4b65-923e-1219da94a780/error-occurred-in-deployment-step-add-solution-operation-is-not-valid-due-to-the-current-state-of?forum=sharepointdevelopmentprevious
http://www.shakirmajeed.com/error-occurred-in-deployment-step-activate-features-operation-is-not-valid-due-to-the-current-state-of-the-object/
but even after doing all these steps, the error still persists!. and am not deploying into a remote server, the dev env is in a VM, where sp 2013, vs 2012, sql 2012 are installed.
just wanna share one note: there is a isue in my search admin component. index was reset due to some reason. and from that time onwards my search full/incremental crawls were not working!
will this cause an issue in my wsp deployment ? i hope it wont, still asking...
can anyone help me how to resolve this error.because this is a show stopper for me for the last few days!
help is highly appreciated!This issue cause because of feature activation failure while WSP deployment.
when you create a WSP using visual studio, it creates WSP package with default deployment configuration settings.
Please restrict feature activation configuration, this will help you to troubleshoot this issue.
- Click on Project in WSP and press F4, it will open "Project Properties"
- set "Active deployment Configuration" - as "No Activation"
- you can activate this features in required sequence after deployment using Activate-SPFeature
If my contribution helps you, please click Mark As Answer on that post and Vote as Helpful
Thanks, ShankarSingh(MCP) -
I created a SharePoint 2013 farm solution project in Visual Studio 2013 (running on the same machine where SharePoint 2013 server is running) with
event receiver. I added web.config at project root level to store connection string (I'm working off external SQL DB) and got the following error during deployement:
Error 27
Error occurred in deployment step 'Activate Features': Operation is not valid due to the current state of the object.
When I commented out the ConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString; the error went away. Am I missing something or not supposed to add my own App.config to SharePoint project solution?Hi,
From your description, you might want to store your connection string in web.config and there is an error during deployment.
It is recommended to store the configuration data of SharePoint solution in either property bags or hierarchical object store.
The links below will provide more information about this:
http://blogs.msdn.com/b/zwsong/archive/2012/03/27/where-should-you-store-your-sharepoint-solution-s-configuration-data.aspx
http://msdn.microsoft.com/en-us/library/ff647766.aspx
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support -
Reporting Service Integration mode and Key not valid for use in specified state
I had to uninstall SharePoint Foundation 2013 and reinstall it.
What I have done:
I uninstalled SharePoint and after that I removed all databases.
I reinstalled SharePoint Foundation 2013 and it completed without errors.
Everything else is working, except SSRS in Sharepoint Integrated Mode.
If I check Central Administration - Manage services on server, I can found out that SQL Server Reporting Service Service is
"Started". But if I try to create new service application (SQL Server Reporting Services Service Application), it gives me an error message:
"Key not valid for use in specified state. (Exception from HRESULT: 0x8009000B)"
I uninstalled SSRS in Sharepoint Integrated Mode and I reinstalled it but problems exists.
It seems that "Encryption Keys" cause this problem.
https://support.microsoft.com/kb/955757
https://msdn.microsoft.com/en-us/library/ms156010%28v=sql.110%29.aspx
I tried to Re-create Encryption Keys and Delete keys, but its not working either. It gives me only error message that:
"Unable to locate the Reporting Server Windows service for instance MSSQLSERVER."
I don't have any reporting server databases, because I removed all
databases when I uninstalled SharePoint. Also I don't have Encryption
Keys backups.
I have found several similar question but no answer, example here:
https://social.technet.microsoft.com/Forums/ie/en-US/df02dc05-5ce8-499d-9ba3-ab392a5fc3af/sharepoint-2013-ssrs-application-error-key-not-valid-for-use-in-specified-state-exception?forum=sharepointdevelopment
Any ideas how I can fix this problem?Hi,
From the Reporting Server Configuration Manager you have to restore the encryption key.
Please try to delete databases(reportserver & reportservertempdb) and delete the reportserver and reports site on IIS. Then you have to start over the configuration again.
If the issue still exists, Please check ULS log to see if anything unexpected occurred.
For SharePoint 2013, by default, ULS log locates in
"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS"
More information about SQL Reporting services Installation with SharePoint 2013 for your reference:
http://expertsharepoint.blogspot.de/2014/03/sql-reporting-services-installation.html
Best Regards,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
I backed up old phone to PC then did a sync to new 4S but when trying to update apps on phone it states - account not valid in Argentine store, must switch to U.S. store. I am in US and when I view account on PC it correctly shows me in US. Now what?
log out and log back in again to store
and if required
http://support.apple.com/kb/HT1311 -
When I try to install Adobe Acrobat XI Pro, I get an error message, "Key not valid for use in specified state". What is this?
See if this post by turingtest2 fixes it : key not valid for use in specified state
-
Hi All
Please help me with the following query. We are migrating SAP BW 7.4 on Oracle to HANA. We have few WEBI report's universes built on BEx queries. In one of those reports there are some hidden RKFs, these works perfectly fine in reports based on oracle. Now we migrated to HANA in development system and when i refresh the universe structure they started giving errors like "Parse failed: Exception DBD, The supplied XML is not valid[Measures].[SAP_OBJECT_NAME] State:N/A". The object giving this error is in hidden state. I tried to unhide it and run the report then it runs fine but that not the client want as there might be so many hidden KFs in other reports also. BO version is 4.1 SP 2. We are on SAPKW74006 support package on BW side. Is there any notes to correct this error. Please pass me the relevant links. Highly appreciate your help.
Thanks
DwarakaDCA-40012: The Web Service call failed. A connection to the target Web Service could not be created.
First of all test the web service you have created in model project. Right click the web service name and select "Test WebService". If you see any issue(s) while testing fix it first before you run the jspx page.
Check the port number in the URL and connections.xml, it have to be same. -
The os I am using currently is windows vista. I attempted numerous updates only to have each one fail with the same message..."Key not valid in specified state." I tried full removal and reinstall only to get the same message. Any remedies?
For "Key not valid for use in specified state" errors try moving the folder RSA from
C:\Users\<User>\AppData\Roaming\Microsoft\Crypto\RSA to say C:\RSA (just in case there should be a need to restore it) then try installing again. This folder appears to act as a cache and should be rebuilt automatically as required.
tt2 -
Downloading error"Key not valid in specified state". How do I fix this?
Uninstalled Itunes. Now when I try to reinstall, I get the error" key not valid in specified state> What does this mean, and how do I fix it?
For "Key not valid for use in specified state" errors try moving the folder RSA from C:\Users\<User>\AppData\Roaming\Microsoft\Crypto\RSA to say C:\RSA (just in case there should be a need to restore it) then try installing again. This folder appears to act as a cache and should be rebuilt automatically as required.
For further problems installing iTunes see Troubleshooting issues with iTunes for Windows updates.
tt2
Maybe you are looking for
-
How do i sync my iPhone with my itunes?
How do I sync my iPhone to my itunes? I already have an itunes set up with music from my ipod touch but when i plug in my iphone nothing happens.
-
Can't find profiles in Mac OS Lion, even in hidden Library
I cannot locate the firefox profile file on Mac OS Lion. I know how to unhide the Library folder. I have done Go/Go to folder//Users/YOUR USER/Library/Application Support/Firefox/Profiles It says file not found. Where is it? I can't find it in backup
-
AJAX like screen movement in Webdynpro
Hi Experts, I saw a video demonstration on sdn "https://wiki.sdn.sap.com/wiki/display/EmTech/IslandsWDA_MHO" where with the new service pack we can move trays or other UI elements on the screen just by holding the mouse button on them like in AJA
-
How can i do a sine wave with High Throughput Sine for fpga?
I try to do a sine wave looking the examples but i can't. I have a sbRio 9606. I need to do a sine wave with high throughput block. In my exercise i have 2 inputs (amplitude and frecuency) and i have to look the output (sinewave) I need help!!
-
Windows 8.1 is compatible with boot camp?
Hi, Can I install windows 8.1 on a Mac Book Pro Early 2011 with Boot Camp? Thanks