CLOB.createTemporary throws SQL Exception
The following statement:
tempClob = CLOB.createTemporary(fDataConn, true, CLOB.DURATION_SESSION);
causes the following exception in jdev 10.1.2.0.0 Build 1811, but did not cause this exception in the jdev version in download jdev9052.zip
05/09/07 17:59:08 java.sql.SQLException: Invalid argument(s) in call
05/09/07 17:59:08 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
05/09/07 17:59:08 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
05/09/07 17:59:08 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:294)
05/09/07 17:59:08 at oracle.sql.CLOB.createTemporary(CLOB.java:527)
The only thing thats changable in the Connection object.
I've verified that the Connection object has the correct info inside.
I create the Connection object via a context lookup with JNDI.
Does createTemporary care how I create the Connection object?
Thanks
Jim
The following statement:
tempClob = CLOB.createTemporary(fDataConn, true, CLOB.DURATION_SESSION);
causes the following exception in jdev 10.1.2.0.0 Build 1811, but did not cause this exception in the jdev version in download jdev9052.zip
05/09/07 17:59:08 java.sql.SQLException: Invalid argument(s) in call
05/09/07 17:59:08 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
05/09/07 17:59:08 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
05/09/07 17:59:08 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:294)
05/09/07 17:59:08 at oracle.sql.CLOB.createTemporary(CLOB.java:527)
The only thing thats changable in the Connection object.
I've verified that the Connection object has the correct info inside.
I create the Connection object via a context lookup with JNDI.
Does createTemporary care how I create the Connection object?
Thanks
Jim
Similar Messages
-
CLOB.createTemporary gives Nullpointer Exception
Hello,
I'm trying to create a temporary clob in my java code, but when I run the program I get the following exception.
java.lang.NullPointerException
at oracle.sql.LobPlsqlUtil.plsql_createTemporaryLob(LobPlsqlUtil.java:1354)
at oracle.jdbc.dbaccess.DBAccess.createTemporaryLob(DBAccess.java:997)
at oracle.sql.LobDBAccessImpl.createTemporaryClob(LobDBAccessImpl.java:240)
at oracle.sql.CLOB.createTemporary(CLOB.java:527)
at org.tennet.utils.bc4j.ApplicationModuleImpl.createClob(ApplicationModuleImpl.java:278)
at org.tennet.utils.bc4j.ApplicationModuleImpl.createClobDomain(ApplicationModuleImpl.java:299)
at org.tennet.nevada.loader.ResultLoader.executeProcedure(ResultLoader.java:243)
at org.tennet.nevada.loader.ResultLoader.process(ResultLoader.java:77)
at org.tennet.nevada.broker.processor.RequestProcessor.processResult(RequestProcessor.java:374)
at org.tennet.nevada.broker.processor.LoadFlowVAProcessor.process(LoadFlowVAProcessor.java:132)
at org.tennet.nevada.broker.RequestHandler.processRequest(RequestHandler.java:289)
at org.tennet.nevada.broker.RequestHandler.run(RequestHandler.java:137)
This error started when I began using Data Sources instate of direct JDBC Connections.
The problem is there is no source available for this class so I cant look what is causing the Nullpointer Exception.
Can someone tell me what is causing this problem?
Regards,
Dennis LabordusHi Dennis,
I have had the same problem as this. I am going to get onto Oracle via Metalink about it.
However - there is a work around.
We are using OC4J with its data sources.
There is a method on the OC4J Connection called getCoreConnection(Connection). This returns the underlying Oracle connection.
If you then pass this underlying oracle connection to CLOB.createTemporary() it works.
We had to use reflection to call the method as I couldn't seem to cast it statically.
Paul McHugh
* getOracleConnection
* Derive oracle connection from DataSource connection
private static OracleConnection getOracleConnection (Connection connection) throws SQLException
System.err.println ("UserTypeImpl.getOracleConnection: " + connection);
* Check for an existing oracle connection
* This should be the case in a database deployment
if (connection instanceof oracle.jdbc.driver.OracleConnection)
System.err.println (" Connection is already the base Oracle Connection" + connection);
return (OracleConnection) connection;
* Check for an OC4J deployment
else
System.err.println (" Searching for core connection ...");
Object conObj = (Object) connection;
Class conclass = conObj.getClass();
OracleConnection coreCon = null;
Method meth = null;
// Locate method getCoreConnection on Orion data source
try {
Class[] parameterTypes = new Class[] {java.sql.Connection.class};
meth = conclass.getMethod("getCoreConnection", parameterTypes);
} catch (NoSuchMethodException e)
e.printStackTrace();
throw new SQLException ("UserTypeImpl.getOracleConnection: No such method: getCoreConnection: " + e);
// Invoke method getCoreConnection on orion data source
try {
Object[] args = new Object[] {connection};
coreCon = (OracleConnection) meth.invoke(conObj, args);
catch (InvocationTargetException e)
e.printStackTrace();
throw new SQLException ("UserTypeImpl.getOracleConnection: Invoke: getCoreConnection: " + e);
catch (IllegalAccessException e)
e.printStackTrace();
throw new SQLException ("UserTypeImpl.getOracleConnection: Invoke: getCoreConnection: " + e);
if (coreCon != null)
System.err.println (" Core connection found: " + coreCon);
return coreCon;
} else
System.err.println (" Unable to locate core connection.");
throw new SQLException ("UserTypeImpl.getOracleConnection: Unable to locate core oracle connection."); -
How to throw or catch sql exception for executeReader sql adapter
Wcf sql adapter was created and executeReader was used.
When an invalid sql statement was constructed and send it to wcf sql adapter, it will hanging there, and no response. No exception was catched even though send chape was inside a catch block. How can I catch this kind of exception
or throw this exception ? I need to give client an exception resposne.
thanks
GaryI used scope with exception handle which has Exception object type: "System.SystemException".
I guess this type "System.SystemException" can catch any exception, including sql exception. Maybe I am wrong. I got error from window event:
A message sent to adapter "WCF-Custom" on send port "WcfSendPort_SqlAdapterBinding_DalCore_Custom" with URI "mssql://shig-quad-2k3e1//DataSourceOne?" is suspended.
Error details: System.Data.SqlClient.SqlException: Incorrect syntax near '='.
Server stack trace:
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)
MessageId: {B24EF5B8-298A-4D4F-AA98-5E639361A7DB}
InstanceID: {F8924129-265B-4652-B20E-8D25F8F20A51}
If "System.SystemException" can't catch all exception, which type can catch all exception ? I want to catch all exception in this catch block.
thanks
Gary -
NullPointer when calling CLOB.createTemporary()
Hi all,
I am trying to insert an xml of size more than 4k into an xml type table. Given below is the code i am using to create the CLOB to insert the same.
I am getting a NullPointerException while creating the CLOB.
Please help me out here!!
CODE
private CLOB getCLOB(String xmlData, Connection conn) throws SQLException {
CLOB tempClob = null;
try {
System.out.println("xml : ### : " + xmlData);
// If the temporary CLOB has not yet been created, create new
tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_CALL);
// Open the temporary CLOB in readwrite mode to enable writing
tempClob.open(CLOB.MODE_READWRITE);
// Get the output stream to write
Writer tempClobWriter = tempClob.getCharacterOutputStream();
// Write the data into the temporary CLOB
tempClobWriter.write(xmlData);
// Flush and close the stream
tempClobWriter.flush();
tempClobWriter.close();
// Close the temporary CLOB
tempClob.close();
} catch (SQLException sqlexp) {
// tempClob.freeTemporary();
sqlexp.printStackTrace();
} catch (Exception exp) {
// tempClob.freeTemporary();
exp.printStackTrace();
return tempClob;
STACK TRACE
java.lang.NullPointerException
at oracle.sql.LobPlsqlUtil.plsql_createTemporaryLob(LobPlsqlUtil.java:1354)
at oracle.jdbc.dbaccess.DBAccess.createTemporaryLob(DBAccess.java:997)
at oracle.sql.LobDBAccessImpl.createTemporaryClob(LobDBAccessImpl.java:240)
at oracle.sql.CLOB.createTemporary(CLOB.java:527)
at com.cx.hcm.ams.slatingms.impl.dao.SlatingDAOImpl.getCLOB(SlatingDAOImpl.java:1359)
at com.cx.hcm.ams.slatingms.impl.dao.SlatingDAOImpl.insertXML(SlatingDAOImpl.java:1327)
at com.cx.hcm.ams.slatingms.impl.ejb.SlatingMgmtSessionBean.insertXML(SlatingMgmtSessionBean.java:855)
at SlatingMgmtRemote_StatelessSessionBeanWrapper16.insertXML(SlatingMgmtRemote_StatelessSessionBeanWrapper16.java:3782)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:536)Hi all,
I am trying to insert an xml of size more than 4k into an xml type table. Given below is the code i am using to create the CLOB to insert the same.
I am getting a NullPointerException while creating the CLOB.
Please help me out here!!
CODE
private CLOB getCLOB(String xmlData, Connection conn) throws SQLException {
CLOB tempClob = null;
try {
System.out.println("xml : ### : " + xmlData);
// If the temporary CLOB has not yet been created, create new
tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_CALL);
// Open the temporary CLOB in readwrite mode to enable writing
tempClob.open(CLOB.MODE_READWRITE);
// Get the output stream to write
Writer tempClobWriter = tempClob.getCharacterOutputStream();
// Write the data into the temporary CLOB
tempClobWriter.write(xmlData);
// Flush and close the stream
tempClobWriter.flush();
tempClobWriter.close();
// Close the temporary CLOB
tempClob.close();
} catch (SQLException sqlexp) {
// tempClob.freeTemporary();
sqlexp.printStackTrace();
} catch (Exception exp) {
// tempClob.freeTemporary();
exp.printStackTrace();
return tempClob;
STACK TRACE
java.lang.NullPointerException
at oracle.sql.LobPlsqlUtil.plsql_createTemporaryLob(LobPlsqlUtil.java:1354)
at oracle.jdbc.dbaccess.DBAccess.createTemporaryLob(DBAccess.java:997)
at oracle.sql.LobDBAccessImpl.createTemporaryClob(LobDBAccessImpl.java:240)
at oracle.sql.CLOB.createTemporary(CLOB.java:527)
at com.cx.hcm.ams.slatingms.impl.dao.SlatingDAOImpl.getCLOB(SlatingDAOImpl.java:1359)
at com.cx.hcm.ams.slatingms.impl.dao.SlatingDAOImpl.insertXML(SlatingDAOImpl.java:1327)
at com.cx.hcm.ams.slatingms.impl.ejb.SlatingMgmtSessionBean.insertXML(SlatingMgmtSessionBean.java:855)
at SlatingMgmtRemote_StatelessSessionBeanWrapper16.insertXML(SlatingMgmtRemote_StatelessSessionBeanWrapper16.java:3782)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:536) -
SQL Exception - Invalid Handle
I am writing a program for a order company using java beans. I have everything working except when i try to add a new item into the database it throws a exception saying: invlaid handle. The code for that bean file is given below..any help will be really appreciated. The error is under setNewItem function on code: results = statement.executeQuery(select).
package stockBeans;
import java.sql.*;
public class StockAccess
private Connection connection;
private Statement statement;
private ResultSet results;
public StockAccess() throws ClassNotFoundException
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch (ClassNotFoundException cnfEx)
throw new ClassNotFoundException(
"Unable to locate JDBC driver!");
public String getStockLevel(String code) throws SQLException
int stockLevel;
String returnValue="";
boolean match=false;
connectAndCreateStatement();
results = statement.executeQuery("SELECT * FROM StockItems");
while((results.next())&&(match==false))
if(code.equalsIgnoreCase(results.getString(1)))
match=true;
stockLevel = results.getInt(3);
returnValue = Integer.toString(stockLevel);
if(!match)
returnValue="error";
disconnectFromDb();
return returnValue;
public void setNewItem(String code, String desc, int currentLvl,int reorderLvl,Float price)
throws SQLException
boolean found;
connectAndCreateStatement();
found = findMatch(code);
if(found==false)
try
String select = "SELECT * FROM StockItems";
**results = statement.executeQuery(select);**
String insert = "INSERT INTO StockItems VALUES (" + "'" + code
+ "'" + "," + "'" + desc + "'" + "," +
+ currentLvl + "," reorderLvl "," price ")";
int result = statement.executeUpdate(insert);
System.out.print("Congratulation. Match Data Saved");
catch(SQLException sqlEx)
System.out.println("* Error Inserting Data! *" + sqlEx);
else
System.out.println("\n Code Already Entered. Try Again \n");
public void getStock()
throws SQLException
connectAndCreateStatement();
System.out.println();
System.out.println("Code"+"\t\t"+" Description"
+"\t"+"Current Level"+"\t"+"Reorder Level"+"\t"+"Cost");
results = statement.executeQuery("SELECT * FROM StockItems");
while (results.next())
System.out.println(results.getString(1)
+"\t\t"+results.getString(2)
+"\t\t"+results.getInt(3)
+"\t\t"+ results.getInt(4)
+"\t\t"+results.getFloat(5));
public boolean findMatch(String code)
throws SQLException
boolean found=false;
connectAndCreateStatement();
try
results = statement.executeQuery("SELECT * FROM StockItems");
while(results.next()&& (found==false))
if(code.equalsIgnoreCase(results.getString(1)))
found=true;
else
found=false;
catch(SQLException sqlEx)
System.out.println("Unable to retrieve data");
disconnectFromDb();
return found;
private void connectAndCreateStatement() throws SQLException
try
connection = DriverManager.getConnection(
"jdbc:odbc:StockData","","");
//*** Change DSN name if yours is different! ***
catch (SQLException sqlEx)
throw new SQLException("Unable to connect to database!");
try
statement = connection.createStatement();
catch (SQLException sqlEx)
throw new SQLException("Unable to create SQL statement!");
private void disconnectFromDb() throws SQLException
try
connection.close();
catch (SQLException sqlEx)
throw new SQLException(
"Unable to disconnect from database!");
}I have found the problem..i am closing the DB in findMatch function.
Thank You. -
Throwing an exception from XSLT
Just wanted to share a finding with the Oracle XDB community and possibly suggest an enhancement to the xdb product development team (care of MDRAKE).
I had a scenario where I wanted to throw an exception from the XSLT.
A little Googling revealed this helpful post:
http://weblogs.asp.net/george_v_reilly/archive/2006/03/01/439402.aspx
...so I gave it a shot.
In my XSLT, I have a <xsl:choose> block with the following <xsl:otherwise> block:
<xsl:otherwise>
<xsl:message terminate="yes">Unknown Document Type</xsl:message>
</xsl:otherwise>I used a stub test to run this through, giving it a file which would exercise the exception:
select xmltype(bfilename('XML_RESOURCES', 'data.xml'),0).transform(xmltype(bfilename('XML_RESOURCES', 'sanitize_xml.dev.xsl'),0))
from dual;..and to my 'joy', I did get an exception:
ORA-30998: transformation error: execution of compiled XSLT on XML DOM failedHmm...would of been nicer to get something like what Eclipse/Xalan pops out:
file:/H:/eclipse_indigo_workspace/XSLT/sanitize_xml.xsl; Line #28; Column #59; Unknown Document Type
(Location of error unknown)Stylesheet directed termination...i.e. my custom error message "Unknown Document Type" isn't output by Oracle.
Just to be safe, I tried a file which would NOT exercise this xsl:otherwise block and it did run through OK.
So, could XDB report a better error?
Thoughts?SQL> VAR XSL VARCHAR2(4000)
SQL> --
SQL> begin
2 :XSL :=
3 '<?xml version="1.0" encoding="UTF-8"?>
4 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5 <xsl:output method="xml" indent="yes"/>
6 <xsl:template match="/">
7 <Result>
8 <xsl:choose>
9 <xsl:when test="Input=''1''">
10 <Output>1</Output>
11 </xsl:when>
12 <xsl:when test="Input=''2''">
13 <xsl:message>The value is 2</xsl:message>
14 <Output>2</Output>
15 </xsl:when>
16 <xsl:when test="Input=''3''">
17 <xsl:message terminate="no">The value is 3</xsl:message>
18 <Output>3</Output>
19 </xsl:when>
20 <xsl:otherwise>
21 <xsl:message terminate="yes">Invalid value</xsl:message>
22 <Output>Bad Input</Output>
23 </xsl:otherwise>
24 </xsl:choose>
25 </Result>
26 </xsl:template>
27 </xsl:stylesheet>';
28 end;
29 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> select XMLTRANSFORM(XMLTYPE('<Input>1</Input>'),XMLTYPE(:XSL))
2 from dual
3 /
<?xml version="1.0" encoding="WINDOWS-1252"?>
<Result>
<Output>1</Output>
</Re
Elapsed: 00:00:00.01
SQL> select XMLTRANSFORM(XMLTYPE('<Input>2</Input>'),XMLTYPE(:XSL))
2 from dual
3 /
<?xml version="1.0" encoding="WINDOWS-1252"?>
<Result>
<Output>2</Output>
</Re
Elapsed: 00:00:00.00
SQL> select XMLTRANSFORM(XMLTYPE('<Input>3</Input>'),XMLTYPE(:XSL))
2 from dual
3 /
<?xml version="1.0" encoding="WINDOWS-1252"?>
<Result>
<Output>3</Output>
</Re
Elapsed: 00:00:00.01
SQL> select XMLTRANSFORM(XMLTYPE('<Input>4</Input>'),XMLTYPE(:XSL))
2 from dual
3 /
ERROR:
ORA-30998: transformation error: execution of compiled XSLT on XML DOM failed
no rows selected
Elapsed: 00:00:00.01
SQL>
SQL>The actuall error is not unreasonalbe. The Execution did fail beacuse you terminated it.. Contacting Oralce Support may be a little excessive...
Now with respect to message the question is where...
We 'could' output into the same buffer as is used by DBMS_OUTPUT, but that has limits in terms of the amount of output that can be generated.
We could write it to the trace file, but that may be difficulat for a developer to get to
We could write it to a log file in the XDB repository, but where and how to name it...
We could another parameter to XMLTransform, which would be a Message Buffer
All of these are in effect enhancements..
BTW I checked with XML Spy and they seem to ignore message too, so I'm wondering how widely used this is...
We cannot add it to the output of the XSL since XMLTransform defines the output of the XML to be well formed XML, and adding a random set of text nodes would viloate that rule.. -
Ant throws the exception when builds B2B
Hi,
Ant throws the exception:
default.application.xml:
[style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
_DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
[style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
[style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
BUILD FAILED
D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
line:
D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
executing this line:
D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
his line:
D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
l'
How to fix it?
The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP4, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool, j2sdk1.4.2_07.
Any help will be appreciated.
Regards,
Roman BabkinHi,
have you tried to urlencode the hash char?
Might be interesting as well if the problem also occours when you point to a local script in your url. The script should then contain a static link to your xml file.
cheers,
jossif -
Ant throws the exception when builds B2B (E-selling of CRM-ISA)
Hi,
Ant throws the exception:
default.application.xml:
[style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
_DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
[style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
[style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
BUILD FAILED
D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
line:
D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
executing this line:
D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
his line:
D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
l'
How to fix it?
The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP2, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool.
Any help will be appreciated.
Regards,
Roman BabkinHi,
Ant throws the exception:
default.application.xml:
[style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
_DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
[style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
[style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
BUILD FAILED
D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
line:
D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
executing this line:
D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
his line:
D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
l'
How to fix it?
The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP2, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool.
Any help will be appreciated.
Regards,
Roman Babkin -
How to throw bundled exceptions thrown by checkErrors()
Hi,
I call pl/sql to do update, and call checkErrors() , the code looks like following, but it doesn't display read friendly message on the screen. What is the right way to throw bundled exception from checkErrors() method?
try{
xxg2cGoalPk.startWf (conn,
new BigDecimal(srpGoalHeaderId),
new BigDecimal(userId),
returnStatus,
msgCount,
msgData);
int msgCount1 = 0;
if(msgCount[0] != null){
msgCount1 = Integer.parseInt(msgCount[0].toString());
String returnStatus1 = returnStatus[0];
String msgData1 = msgData[0];
OAExceptionUtils.checkErrors(tx,msgCount1, returnStatus1, msgData1);
catch(OAException e) {
e.printStackTrace();
throw new OAException(e.getDetailMessage(),OAException.ERROR);
thanks
LeiWhat Shiv said is only an alternative, but what you are using is correct.I haven't tested but as per javadoc of
OAExceptionUtils.checkErrors(tx,msgCount1, returnStatus1, msgData1);
will itself raise bundled exceptions. You need to write this line outside try/catch block.
--Mukul -
Application call to ODBC SQLSetEnvAttr function throw HY011 exception
Hi All,
I try to use odbc driver manager in my .Net Application.first My .Net runtime is 3.5, odbc function calls(unmanaged functions are imported to .Net application by dllimport attribute)can work well.but when .Net runtime is upgraded
to 4.0,SetEnvAttr function calls
return SQL-ERROR and I call SQLGetDiagRec function get this error information:Operation invalid at this time.sqlstate value is HY011.
below is my code fragment:
[DllImport("odbc32.dll")]
extern static short SQLSetEnvAttr(
IntPtr envHandle,
ushort attribute,
IntPtr attrValue,
int stringLength);
[DllImport("odbc32.dll")]
extern static short SQLAllocHandle(
ushort HandleType,
int InputHandle,
out IntPtr OutputHandle);
try
rc = SQLAllocHandle(SQL_HANDLE_ENV, 0, out sql_env_handle);
if ((rc != SQL_SUCCESS) && (rc != SQL_SUCCESS_WITH_INFO))
throw new Exception("SQLAllocHandle: failed to allocate SQL_HANDLE_ENV");
rc = SQLSetEnvAttr(sql_env_handle, SQL_ATTR_ODBC_VERSION, (IntPtr)SQL_OV_ODBC3, 0);
//if ((rc != SQL_SUCCESS) && (rc != SQL_SUCCESS_WITH_INFO))
// throw new Exception("SQLSetEnvAttr: failed to set SQL_ATTR_ODBC_VERSION");
if((rc == SQL_SUCCESS_WITH_INFO)||(rc == SQL_ERROR))
short i=1;
short rc2;
StringBuilder sqlstate=new StringBuilder();
int NativeErrorPtr=0;
StringBuilder MessageText=new StringBuilder();
short BufferLength=256;
short TextLengthPtr=0;
while ((rc2 = SQLGetDiagRec((short)SQL_HANDLE_ENV,sql_env_handle,i,sqlstate,
ref NativeErrorPtr,MessageText,BufferLength,ref TextLengthPtr))!= SQL_NO_DATA)
i++;
my operation system is win7 64bit. Could someone help me? thanksI already fixed this problem.
[DllImport("odbc32.dll")]
extern static short SQLAllocHandle(
long HandleType,
int InputHandle,
out IntPtr OutputHandle);
I replace ushort datatype with long datatype.So it works well -
Sql Exception : Sql command not properly ended
Hi,
I have the following piece of code which i am using to search into the database and display the result in my jsp page. But it is throwing this exception. This happens only when i give 2 conditions. If i try to search with only one parameter, it works fine and returns the result. But when i enable two parameters , it throws the exception.
Below is the code i have written.
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
String queryString=null;
String Part_Number=null;
String Revision_Id=null;
String Part_Desc=null;
String Keyword_Name=null;
String Design_Style=null;
String Configuration_Name=null;
String Charateristic_Name=null;
String pN=null;
String rI=null;
String pD=null;
String kN=null;
String dS=null;
String coN=null;
String chN=null;
queryString ="select * from PART";
Connection con=null;
Statement pst=null;
ResultSet rs=null;
Part_Number =request.getParameter("part_nbr");
Revision_Id=request.getParameter("rev_id");
Part_Desc=request.getParameter("part_desc");
Keyword_Name=request.getParameter("keyword_name");
Design_Style=request.getParameter("Design_style");
Configuration_Name=request.getParameter("configuration");
Charateristic_Name=request.getParameter("characteristic");
pN=Part_Number.trim();
rI=Revision_Id.trim();
pD=Part_Desc.trim();
kN=Keyword_Name.trim();
dS=Design_Style.trim();
coN=Configuration_Name.trim();
chN=Charateristic_Name.trim();
System.out.println("Part Number In success: "+pN);
System.out.println("Rev Number In serchsuccess: "+rI);
System.out.println("part desc In seachsuccess: "+pD);
System.out.println("Keyword In sesuccess: "+kN);
System.out.println("Design style In sesuccess: "+dS);
System.out.println("Config In sesuccess: "+coN);
System.out.println("charac In sesuccess: "+chN);
System.out.println("queryString in sesuccess: "+queryString);
if(rI!=null)
queryString = queryString+" where REV_ID= '"+rI+"'";
if(pD!=null)
queryString = queryString+" where OBJ_DESC= '"+pD+"'";
System.out.println("queryString in sesuccess: "+queryString);
try
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
System.out.println("driver manager");
con=DriverManager.getConnection("jdbc:oracle:thin:@172.18.93.53:1521:PDMDumm", "Dumm1", "satyam");
System.out.println("connection established");
pst = con.createStatement();
rs = pst.executeQuery(queryString);
System.out.println("Query executed");
catch(SQLException se)
System.out.println("database error2");
se.printStackTrace();
catch(Exception e)
System.out.println("error");
if(rs!=null)
%>
<table>
<tr>
<th> PartNumber
<th> Revision_Id
<th> Description
<th> Characteristic
<th> Configuration
<th> DesignStyle
<th> Keyword
<th> Planned Eff In Dte
<th> Infos
<th> Native File
</table>
<tr>
<%
while(rs.next())
%>
<td> <%=rs.getString(1) %>
<td> <%=rs.getString(2) %>
<td> <%=rs.getString(3) %>
<td> <%=rs.getString(4) %>
<td> <%=rs.getString(5) %>
<td> <%=rs.getString(6) %>
<td> <%=rs.getString(7) %>
<td> <%=rs.getString(8) %>
<td> <%=rs.getString(9) %>
<td> <%=rs.getString(10) %>
<%
%>
</body>
</html>And this is the exception i get.
Part Number In success:
Rev Number In serchsuccess:
part desc In seachsuccess: cat
Keyword In sesuccess: ----
Design style In sesuccess: ----
Config In sesuccess: ----
charac In sesuccess: ----
queryString in sesuccess: select * from PART
queryString in sesuccess: select * from PART where REV_ID= '' where OBJ_DESC= 'cat'
driver manager
connection established
database error2
java.sql.SQLException: ORA-00933: SQL command not properly ended
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java)
at org.apache.jsp.searchsuccess_jsp._jspService(searchsuccess_jsp.java:129)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at SearchKdcc.doPost(SearchKdcc.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)Hi drvijayy2k2 ,
Thanks for replying.
I used your code in my application and this is the problem i am facing now. The query is getting executed but its not taking the value from the database because of the Null Rev Id that is getting inputted into queryString. I have given only part_desc as the search criteria. If i just search using part description , commenting the rev_id part , i am able to retrieve the result from the database.
I have to code in a way using which i can search using either rev_id or part_desc , or using both at the same time.
Part Number In success:
Rev Number In serchsuccess:
part desc In seachsuccess: cat
Keyword In sesuccess: ----
Design style In sesuccess: ----
Config In sesuccess: ----
charac In sesuccess: ----
queryString in sesuccess: select * from PART
queryString in sesuccess: select * from PART where REV_ID= '' and OBJ_DESC= 'cat'
driver manager
connection established
Query executed -
Sql exception while importing table
Hi All,
i'm trying to import a table into my oracle module and when i go through the imort wizard it throws an exception
SQL Exception
SQL Exception
Repository Error:SQL Exception..
Class Name: CacheMediator.
Method Name: getDDEntryFromDB.
Repository Error Message: ORA-00997: illegal use of LONG datatype
at oracle.wh.repos.pdl.foundation.CacheMediator.getSQLResult(CacheMediator.java:504)
at oracle.wh.repos.impl.CMPWBAPIFactory.getSQLResult(CMPWBAPIFactory.java:2137)
at oracle.wh.service.sdk.integrator.RepositoryUtils.getSQLResult(RepositoryUtils.java:448)
at oracle.wh.ui.integrator.sdk.RelationalEntityAccessor.getTableColumnsSQLResult(RelationalEntityAccessor.java:2541)
at oracle.wh.ui.integrator.sdk.RelationalEntityAccessor.getItems(RelationalEntityAccessor.java:680)
at oracle.wh.ui.integrator.common.ImportEntityAlgorithm.getColumnsToImport(ImportEntityAlgorithm.java:2925)
at oracle.wh.ui.integrator.common.ImportEntityInWarehouseAlgorithm.importColumns(ImportEntityInWarehouseAlgorithm.java:83)
at oracle.wh.ui.integrator.common.ImportEntityAlgorithm.importTable(ImportEntityAlgorithm.java:1343)
at oracle.wh.ui.integrator.common.ImportEntityAlgorithm.dispatchElement(ImportEntityAlgorithm.java:561)
at oracle.wh.ui.integrator.common.ImportEntityAlgorithm.importElement(ImportEntityAlgorithm.java:366)
at oracle.wh.ui.integrator.common.ImportEntityInWarehouseAlgorithm.importElement(ImportEntityInWarehouseAlgorithm.java:64)
at oracle.wh.ui.integrator.sdk.EntityAccessor.importElement(EntityAccessor.java:80)
at oracle.wh.ui.integrator.common.ImportService.importElement(ImportService.java:1046)
at oracle.wh.ui.integrator.common.wizards.ImportElementTransaction.run(ImportWizardDefinition.java:578)
i have resolved this problem earlier by setting the parameter cursor_sharing= exact scope=both;
even then it throws the exception now.
there are no long datatypes on my table which i'm importing.
plz help me.
thanx in advanceHi Darthvader,
I have sent the structure any ways i do send it again.
The first Thing is that this is the table created by selecting some of the columns which are returned by a function in the production DB into a staging table. this prob started when i tried to import the table. i ahev been using this tool since 1.5 years and i never faced this problem after setting the parameter cursour_sharing=exact.
i'm facing this problem while i tried importing other tables which are already imported.
This has really put me under pressure.
following is the structure of the table
CREATE TABLE xyz
BRANCH VARCHAR2(10 BYTE),
CHNL VARCHAR2(13 BYTE),
YTD NUMBER,
YTDAMT NUMBER,
YTDREC NUMBER,
YTDAMTREC NUMBER,
PRODUCT_ID NUMBER,
ROLLING_PERIOD VARCHAR2(15 BYTE)
Edited by: user618668 on Jun 8, 2011 3:28 AM -
SQL Exception blocks everyone .... why
Hello to all,
I have an some question towards SQL exception in JDBC, when there is an error trying to recieve infomation from a database it stops all access for everyone log on at the same time.
For example, if I try to insert a string in a field that doesn't exist or insert a string where an I should use an int, an sql excption will be throw, and it blocks there (for everyone), meaning another users would like to search the datbase for information, but recieves nothing. I'm using a connection pool for the connection to my database in each one of my servlets that also
"implements SingleThreadModel" .
Could it be because of the SingleThreadModel, or has it to do with the connection pool ???
All help is welcomed
Thanks ..... WallyU can set the Connection with proper concurrency like CONCUR_UPDATABLE ....that helps in working with Concurrent users accesing the same table or DB..
Note: this depends on the Driver that u r using its not supported by many drivers.
sriram -
SQL Exception not in streaming mode
Hi friends
I am using oracle driver and I am getting this error on queries very randomly.I am using Oracle8i 8.1.5 on NT machine.
SQL Exception not in streaming mode
Can anybody explaing why and when this error gets generated and what is the solution for it.
Please contact me at the following emailids
[email protected]
[email protected]
nullWhat do you do with the connection before the prepareStatement()? Is your program small enough to post here (use [code]...[/code] tags)? Do you have multiple threads that try to use the same connection simultaneously? Do you work with Long, Clob or Blob columns? What JDBC driver version?
-
Hi KODO gurus,
I am testing out application (using KODO) against MS SQL server, when I
was using the version 2.3.4 up to 2.4.0, it is totally OK. However, when
we upgrade to 2.4.1 (and also we tried 2.4.2 too), it starts to throw
following exceptions:
Mar 4, 2003 5:17:23 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14059746; T:14739796; D:12121717 ] get
[com.solarmetric.datasource.PoolConnection@d688e2[[requests=0;size=0;max=0;hits=0;created=0;redundant=0;overflow=0;new=0;leaked=0;unavailable=0]]]
from [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=1;
max=20; size=1; taken=0]]
Mar 4, 2003 5:17:23 PM
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl logWarnings
WARNING: java.sql.SQLWarning: java.sql.SQLWarning: [Microsoft][SQLServer
2000 Driver for JDBC]Database changed to cwdevdb
Mar 4, 2003 5:17:23 PM
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl logWarnings
WARNING: java.sql.SQLWarning: java.sql.SQLWarning: [Microsoft][SQLServer
2000 Driver for JDBC][SQLServer]Changed database context to 'cwdevdb'.
Mar 4, 2003 5:17:23 PM
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl logWarnings
WARNING: java.sql.SQLWarning: java.sql.SQLWarning: [Microsoft][SQLServer
2000 Driver for JDBC]Language changed to us_english
Mar 4, 2003 5:17:23 PM
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl logWarnings
WARNING: java.sql.SQLWarning: java.sql.SQLWarning: [Microsoft][SQLServer
2000 Driver for JDBC][SQLServer]Changed language setting to us_english.
Mar 4, 2003 5:17:23 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14059746; T:14739796; D:12121717 ] preparing statement
<11294575>: SELECT DISTINCT kobject.JDOCLASSX FROM kobject
Mar 4, 2003 5:17:23 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14059746; T:14739796; D:12121717 ] executing statement
<11294575>: [reused=1;params={}]
Mar 4, 2003 5:17:23 PM com.solarmetric.kodo.meta.JDOMetaDataParser
parseMetaData
INFO: com.solarmetric.kodo.meta.JDOMetaDataParser@99f443: parsing
source:
jar:file:/C:/cvs-1.11.5/apps/apps-war/WEB-INF/lib/ke-kodo.jar!/com/cloverworxs/impl/base/ke/view/tree/AbstractMutableNode.jdo
Mar 4, 2003 5:17:24 PM com.solarmetric.kodo.meta.JDOMetaDataParser
parseMetaData
INFO: com.solarmetric.kodo.meta.JDOMetaDataParser@738dcb: parsing
source:
jar:file:/C:/cvs-1.11.5/apps/apps-war/WEB-INF/lib/ke-kodo.jar!/com/cloverworxs/impl/base/ke/view/tree/MutableContextNodeBase.jdo
Mar 4, 2003 5:17:24 PM com.solarmetric.kodo.meta.JDOMetaDataParser
parseMetaData
INFO: com.solarmetric.kodo.meta.JDOMetaDataParser@a8e53c: parsing
source:
jar:file:/C:/cvs-1.11.5/apps/apps-war/WEB-INF/lib/ke-kodo.jar!/com/cloverworxs/impl/base/ke/view/tree/MutableMemberNodeBase.jdo
Mar 4, 2003 5:17:24 PM com.solarmetric.kodo.meta.JDOMetaDataParser
parseMetaData
INFO: com.solarmetric.kodo.meta.JDOMetaDataParser@2445d7: parsing
source:
jar:file:/C:/cvs-1.11.5/apps/apps-war/WEB-INF/lib/ke-kodo.jar!/com/cloverworxs/impl/base/ke/view/tree/MutableTreeKitemBase.jdo
Mar 4, 2003 5:17:24 PM com.solarmetric.datasource.DataSourceImpl log
WARNING: [ C:14059746; T:14739796; D:12121717 ] Error when closing
Statement/ResultSet
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)
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(Unknown
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.destroy(PreparedStatementCache.java:278)
at
com.solarmetric.datasource.PreparedStatementCache$CachePreparedStatement.close(PreparedStatementCache.java:350)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.close(SQLExecutionManagerImpl.java:986)
at
com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(SubclassProviderImpl.java:278)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getPrimaryMappingFields(ClassMapping.java:1093)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:704)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExtent.getResultList(JDBCExtent.java:64)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExtent.getIterator(JDBCExtent.java: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(ExtentImpl.java:218)
at
com.cloverworxs.app.struts.action.ListProperties.detail(ListProperties.java:74)
at
com.cloverworxs.app.struts.action.AbstractModelAction.execute(AbstractModelAction.java:83)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
com.cloverworxs.app.struts.RequestProcessor.process(RequestProcessor.java:35)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
com.cloverworxs.app.web.SetCharSetFilter.doFilter(SetCharSetFilter.java:34)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)
Anyone has any idea what's going on?
Thanks!
TaoThat is just a warning and appears to go hand in hand with weird MSSQL
drivers and our more aggressive closing of resources. You can configure
the log4j to quiet down if you want:
log4j.category.com.solarmetric.kodo.impl.jdbc.JDBC=ERROR, console
Tao Yang wrote:
Hi KODO gurus,
I am testing out application (using KODO) against MS SQL server, when I
was using the version 2.3.4 up to 2.4.0, it is totally OK. However, when
we upgrade to 2.4.1 (and also we tried 2.4.2 too), it starts to throw
following exceptions:
Mar 4, 2003 5:17:23 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14059746; T:14739796; D:12121717 ] get
[com.solarmetric.datasource.PoolConnection@d688e2[[requests=0;size=0;max=0;hits=0;created=0;redundant=0;overflow=0;new=0;leaked=0;unavailable=0]]]
from [com.solarmetric.datasource.DataSourceImpl$SortablePool[min=1;
max=20; size=1; taken=0]]
Mar 4, 2003 5:17:23 PM
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl logWarnings
WARNING: java.sql.SQLWarning: java.sql.SQLWarning: [Microsoft][SQLServer
2000 Driver for JDBC]Database changed to cwdevdb
Mar 4, 2003 5:17:23 PM
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl logWarnings
WARNING: java.sql.SQLWarning: java.sql.SQLWarning: [Microsoft][SQLServer
2000 Driver for JDBC][SQLServer]Changed database context to 'cwdevdb'.
Mar 4, 2003 5:17:23 PM
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl logWarnings
WARNING: java.sql.SQLWarning: java.sql.SQLWarning: [Microsoft][SQLServer
2000 Driver for JDBC]Language changed to us_english
Mar 4, 2003 5:17:23 PM
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl logWarnings
WARNING: java.sql.SQLWarning: java.sql.SQLWarning: [Microsoft][SQLServer
2000 Driver for JDBC][SQLServer]Changed language setting to us_english.
Mar 4, 2003 5:17:23 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14059746; T:14739796; D:12121717 ] preparing statement
<11294575>: SELECT DISTINCT kobject.JDOCLASSX FROM kobject
Mar 4, 2003 5:17:23 PM com.solarmetric.datasource.DataSourceImpl log
INFO: [ C:14059746; T:14739796; D:12121717 ] executing statement
<11294575>: [reused=1;params={}]
Mar 4, 2003 5:17:23 PM com.solarmetric.kodo.meta.JDOMetaDataParser
parseMetaData
INFO: com.solarmetric.kodo.meta.JDOMetaDataParser@99f443: parsing
source:
jar:file:/C:/cvs-1.11.5/apps/apps-war/WEB-INF/lib/ke-kodo.jar!/com/cloverworxs/impl/base/ke/view/tree/AbstractMutableNode.jdo
Mar 4, 2003 5:17:24 PM com.solarmetric.kodo.meta.JDOMetaDataParser
parseMetaData
INFO: com.solarmetric.kodo.meta.JDOMetaDataParser@738dcb: parsing
source:
jar:file:/C:/cvs-1.11.5/apps/apps-war/WEB-INF/lib/ke-kodo.jar!/com/cloverworxs/impl/base/ke/view/tree/MutableContextNodeBase.jdo
Mar 4, 2003 5:17:24 PM com.solarmetric.kodo.meta.JDOMetaDataParser
parseMetaData
INFO: com.solarmetric.kodo.meta.JDOMetaDataParser@a8e53c: parsing
source:
jar:file:/C:/cvs-1.11.5/apps/apps-war/WEB-INF/lib/ke-kodo.jar!/com/cloverworxs/impl/base/ke/view/tree/MutableMemberNodeBase.jdo
Mar 4, 2003 5:17:24 PM com.solarmetric.kodo.meta.JDOMetaDataParser
parseMetaData
INFO: com.solarmetric.kodo.meta.JDOMetaDataParser@2445d7: parsing
source:
jar:file:/C:/cvs-1.11.5/apps/apps-war/WEB-INF/lib/ke-kodo.jar!/com/cloverworxs/impl/base/ke/view/tree/MutableTreeKitemBase.jdo
Mar 4, 2003 5:17:24 PM com.solarmetric.datasource.DataSourceImpl log
WARNING: [ C:14059746; T:14739796; D:12121717 ] Error when closing
Statement/ResultSet
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)
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(Unknown
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.destroy(PreparedStatementCache.java:278)
at
com.solarmetric.datasource.PreparedStatementCache$CachePreparedStatement.close(PreparedStatementCache.java:350)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.close(SQLExecutionManagerImpl.java:986)
at
com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(SubclassProviderImpl.java:278)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getPrimaryMappingFields(ClassMapping.java:1093)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:704)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExtent.getResultList(JDBCExtent.java:64)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExtent.getIterator(JDBCExtent.java: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(ExtentImpl.java:218)
at
com.cloverworxs.app.struts.action.ListProperties.detail(ListProperties.java:74)
at
com.cloverworxs.app.struts.action.AbstractModelAction.execute(AbstractModelAction.java:83)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
com.cloverworxs.app.struts.RequestProcessor.process(RequestProcessor.java:35)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
com.cloverworxs.app.web.SetCharSetFilter.doFilter(SetCharSetFilter.java:34)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)
Anyone has any idea what's going on?
Thanks!
Tao
Stephen Kim
[email protected]
SolarMetric, Inc.
http://www.solarmetric.com
Maybe you are looking for
-
I would like to display 4 levels in script for dunning letter BG for Bank Guarantee. Bank Guarantee Dunning letters (BGDL) are reminders that are sent out to customers with overdue and outstanding Bank guarantees. In KONE Germany 4 dunning levels wil
-
I tried to submit question to Apple Support, but I have to enter my phone's serial number and it doesn't work! From what I can gather, it wasn't restored, so I can't get the serial #!!! When I connected to iTunes earlier this evening, a window popped
-
Disabling HP C309g-m printer color management
I am using Adobe Photoshop Elements to edit photos. I want to use PE's color management /color handling to print my photos instead ot HP's. PE says I need to disable HP's color management first, using printer preferences. I can't figure out how an
-
Data in table does not export to Excel
Why the invoke node Export Data to Excel produces empty Excel sheet with no data? If I manually highlight the table control on the Front Panel, then run the VI again, data get exported. How does one highlight data in the table automatically? Solved!
-
Hello. my notebook has recently some startup problems, either during bios startup (led blinks twice) or while loading Windows. The problem seems to happen especially the first time I switch it on during the day, when I have to try 6-10 times before i