Java.sql.SQLException: FATAL ERROR for DB2
Hi
In my scenario IDOC-XI-DB2,
When I am getting following error message in communication channel. I have checked all the field length, they are correctly displayed. Please let me know how to resolve the same.
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'BI5FILMM.BSOMSAPP' (structure 'StatementInsert'): java.sql.SQLException: FATAL ERROR document format in structure 'StatementInsert': expected 'access' tag(s) not found
Payload is as follows
<?xml version="1.0" encoding="UTF-8" ?>
- <I805_Abstr_CustOutlet_MT>
- <StatementInsert>
- <STATUS action="INSERT">
<table>BI5FILMM.BSOMSAPP</table>
<key OUTLET_NO="0001231229" OUTLET_RF="0002122756" OMFUNC="CRT" />
- <access>
<STATUS>N</STATUS>
<IFCEDATE>1080701</IFCEDATE>
<IFCETIME>160849</IFCETIME>
<OUTLETTYPE>Y</OUTLETTYPE>
<NAME>DREW SMITH AGAINXXXXXXXXXXXXXXXXXXX</NAME>
<STREET>E</STREET>
<STATE>NSW</STATE>
<POST_CODE>2000</POST_CODE>
<PHONE_NO>567999</PHONE_NO>
<ALTPHONE>11111</ALTPHONE>
<FAX_NO>111</FAX_NO>
<CNTCT_PERS>Constant</CNTCT_PERS>
<ALTNAME>Constant</ALTNAME>
<EMAIL1>Drew_downunder</EMAIL1>
<EMAIL2>DREW_DOWNUNDER</EMAIL2>
<SFE_CODE>G</SFE_CODE>
<BILL_TO>0001231229</BILL_TO>
<SUPP_DATE>080801</SUPP_DATE>
</access>
</STATUS>
</StatementInsert>
- <StatementProce>
- <STATUS action="EXECUTE">
<table>CC5PTF.BSOMPSAP</table>
<Para1 isInput="true" type="CHAR">BI5FILMM</Para1>
<Para2 isInput="true" type="CHAR">BMIJOBD</Para2>
</STATUS>
</StatementProce>
</I805_Abstr_CustOutlet_MT>
Hi Ria,
In your input try to make the access tag in capitals(ACCESS) and try. I am not sure though. I think its case sensitive. Just try and let me know. Also your second action="EXECUTE" does not has any access parameters. Refer to this blog:
JDBC Receiver Adapter -- Synchronous Select Step by Step
It might be useful.
Regards,
Sanjeev.
Similar Messages
-
Hi Gurus,
I did JDBC to SRM scenario. In that the incoming message is posted successfull to the SRM server. But in the acknowledgement message is not delivered to the sender. It gives an error message in the RWB. Its states that the field 'ADATE' contains no values. But when i check the XML payload in RWB it shows value in that particular field. the date format in the X and the Database table is correct both are in the same format as yyyy-mm-dd. But still its giving error messge. Help me to resolve this issue.
This is my payload structure
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_IMT_Prices_Processed_date_time xmlns:ns0="http://nmhg.com/PRMS_SRM_IMT_Prices">
- <Statement>
- <Update action="UPDATE">
<table>NSAICIP</table>
</Update>
- <Access>
<ADATE>2009-03-16</ADATE>
<ATIME>06:50:27</ATIME>
</Access>
- <Key>
<CIPLT>x</CIPLT>
<CIPRD>xxxxxxx</CIPRD>
<CIKEY>xxxxxxxxx</CIKEY>
</Key>
</Statement>
</ns0:MT_IMT_Prices_Processed_date_time>
Regards,
RamaHi,
I think the problem in the date format. i dont know how to resolve.
If the Date format is correct....the problem seems to be in the way the Structure is defined for the JDBC side
Your structure:
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:MT_IMT_Prices_Processed_date_time xmlns:ns0="http://nmhg.com/PRMS_SRM_IMT_Prices">
<Statement>
<Update action="UPDATE">
<table>NSAICIP</table>
</Update>
<Access>
<ADATE>2009-03-16</ADATE>
<ATIME>06:50:27</ATIME>
</Access>
<Key>
<CIPLT>x</CIPLT>
<CIPRD>xxxxxxx</CIPRD>
<CIKEY>xxxxxxxxx</CIKEY>
</Key>
</Statement>
</ns0:MT_IMT_Prices_Processed_date_time>
The correct format: (Check for the start and end position of dbTableName tab)
<ns0:MT_IMT_Prices_Processed_date_time xmlns:ns0="http://nmhg.com/PRMS_SRM_IMT_Prices">
<Statement>
<dbTableName action=u201DUPDATEu201D>
<table>NSAICIP</table>
<access>
<ADATE>2009-03-16</ADATE>
<ATIME>06:50:27</ATIME>
</access>
<key>
<CIPLT>x</CIPLT>
<CIPRD>xxxxxxx</CIPRD>
<CIKEY>xxxxxxxxx</CIKEY>
</key>
</dbTableName>
</Statement>
</ns0:MT_IMT_Prices_Processed_date_time>
For more info refer this link:
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
As far as possible use the same tab names and the same case for the tab-names (other than table entries) as those mentioned in the above link.
Regards,
Abhishek. -
Error...java.sql.SQLException:Access denied for user
Hi,
I am getting the following error message while connecting with the MySQL .(O/S :Sun OS 5.6)
Error.....java.sql.SQLException: Invalid authorization specification: Access denied for user: 'some_user&password@localhost' (Using password: NO)
Note that i have given all permission to the user using,
GRANT ALL PRIVILEGES .......................
The code i have used to connect with the database is,
import java.io.*;
import java.sql.*;
class test
public static void main(String a[])
try
Connection con;
Statement stmt;
ResultSet rs;
Class.forName("org.gjt.mm.mysql.Driver");
con=DriverManager.getConnection(jdbc:mysql://localhost/db_name?user=some_user&password=some_pass");
stmt=con.createStatement();
//do something with resultset
catch(Exception e)
System.out.println("Exception in second try.."+e);
plese guide me on this problem to solve.
Thankz,
Bala.Hi friends...
I've read the last post...
The problem that I have is as follow....
1. I have installed on my machine MySQL 5.0 Server running
1.1 I have a database called "base1"
1.2 User "root", password "works"
1.3 I have the following sentence to connect it using JDBC
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/base1", "root", "works");
More notes:
- I use the JDBC 5.0
- My Machine is a Windows XP SP2 Pentium 3.0 512Mb
and it connects����
but I have this environment to develop applications, now that I want to connect to Production Environment happens the following:
2 The Production database is mounted on a Linux Server with MySQL 3.2.
2.1 I change the sentences as follow:
Connection con = DriverManager.getConnection("jdbc:mysql://192.168.0.7/base1", "user", "password");
2.3 But a message appears when I run the Java Program:
java.sql.SQLException:Access denied for user: '[email protected]' (Using password: YES)
2.4 As you can see it changes the IP Address...
More notes:- I have the MySQL Query Browser and I got connection.
- The IP that display the Error Message is my Second IP configurated on my Network Properties.
- Server is a Pentium 4 3.0 GHz 2Gb Linux Red Hat 3.0
I leave this case for the spider... I hope that somebady has the solution.
What is the problem? Why the JDBC doesn't respect the IP that I wrote. -
What is this error java.sql.SQLException: Bad format for number ?
Dear All,
I am reading few values from database. Then I get this error "MyError:Error : java.sql.SQLException: Bad format for number 'Sarawak' in column 6. " So what is this error referring to. I have checked the database column and its value fits according the data type. Any hints please?I have checked the database column and its value fits according the data type.Check again. Then check again. Keep checking until you find your error. You are trying to read a string containing "Sarawak" as a number. You have "getInt(6)" or other numeric type, and the 6th column in the select statement is not numeric.
-
Java.sql.SQLException: General error
Hi i got this error message:
java.sql.SQLException: General error
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
at PersonFrame.actionPerformed(PersonFrame.java:1155)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
n Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
my code is:
while (rs.next())
String recnumber = rs.getString("Person_ Record_ Number");
int reccc=Integer.parseInt(recnumber);
if (Integer.parseInt(FamilyTree.rowselected)==reccc && AddPersonn!=0)
System.out.println ("record in table "+reccc);
System.out.println ("record selected "+FamilyTree.rowselected);
str.executeUpdate("INSERT INTO Person " +
"VALUES ('"+nameofperson.getText()+"','"+SurnameOfPersonTxt.getText()+"','"+Bday+"','EMPTY','"+DateOfDeathTogether+"','EMPTY','EMPTY','"+phone+"','"+genre+"','"+Country+"','"+FamilyTree.rowselected+"','"+Nicknametxt.getText()+"','"+Filename+"','"+BioFile+"','"+city+"','"+postal+"','EMPTY','empty','"+TimeOfBirth+"','EMPTY')");
setVisible(false);
System.out.println(Filename);
LINE 1155 that the error message says is line :str.executeUpdate("INSERT INTO Person " +
<<<PersonFrame.actionPerformed(PersonFrame.java:1155)>>>>>
also note that i didn't include a try statement here (int reccc=Integer.parseInt(recnumber) because recnumber since is created holds the value 5000 so there is no need
Also the output.. of
System.out.println("INSERT INTO Person " + "VALUES ('"+nameofperson.getText()+"','"+SurnameOfPersonTxt.getText()+"','"+Bday+"','EMPTY','"+DateOfDeathTogether+"','"+PlaceOfDeath+"','"+address+"','"+phone+"','"+genre+"','"+Country+"','"+FamilyTree.rowselected+"','"+Nicknametxt.getText()+"','"+Filename+"','"+BioFile+"','"+city+"','"+postal+"','"+Causeofdeath+"','"+PlaceBurried+"','"+TimeOfBirth+"','EMPTY')");
is:
INSERT INTO Person VALUES ('fgfgff','dfdgfd','2/1/1988','EMPTY','Person Is Alive','null','EMPTY','EMPTY','Male','EMPTY','0560','dasfds','EMPTY','EMPTY','EMPTY','EMPTY','null','null','EMPTY','EMPTY')
and my table gets only text values...
Any Help Will Be Greately Appreciated
Thanks
Nick .sYou cannot do two thing at the same time with the same statement (while your ResultSet is open you are making an insert), try using a separate Statement that the one you used for the query for the insert. If that doesn't work, make a new connection, that will do it.
If you were using a separate statement then I'm sorry, I couldn't tell from your code. I'd had a similar problem and that's the way I solved it. -
I am getting Error! java.sql.SQLException:General error
hi every body,
I struck with this error , can any one suggest in solving this.
I had a table in oracledatabase ,i have successfully created a table and inserted clob column with an attachment like xxx.txt.
table format----> id and text columns
Now my question is to retrieve that data and store it in local disk i am getting this error
import java.io.*;
import java.sql.*;
//import java.sql.SQLException;
public class Cread {
public static void main(String[] args) throws ClassNotFoundException,IOException,SQLException {
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn=DriverManager.getConnection("jdbc:odbc:sivadsn","scott","tiger");
Statement s = cn.createStatement();
ResultSet rs=s.executeQuery("Select text from ram where id=10");
if(rs.next()){
FileOutputStream file=new FileOutputStream("c:/store.txt");
InputStream fin=rs.getBinaryStream(1);
int c;
while((c=fin.read())!=-1){
file.write(c);
fin.close();
s.close();
rs.close();
catch(IOException e){
e.printStackTrace();
System.out.println("Err:"+e);
I am getting the error as
java.sql.SQLException: General error
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source)Error! java.sql.SQLException: General error
at attach.Clobread.main(Clobread.java:30)That usually means something is wrong with the syntax of your sql.
As a guess 'text' is probably a keyword and shouldn't be used as a field name. It is possible that the same is true for 'id' -
Java.sql.SQLException: Internal Error: Inconsistent catalog view
Hi all,
I have an Oracle procedure defined like:
pkgoms.p_oms_audit ( in_tab_oms_audit in tab_oms_audit,out_status out number)
tab_oms_audit is a collection of t_oms_audit
Here is the structure for the type (with 16 fileds)
create or replace type t_oms_audit as object(
Username_ VARCHAR2(101),
d_Date_ Date,
<other fields>) ;
In my Java code I have:
// conn is the connections to db
oracle.sql.StructDescriptor structDesc = oracle.sql.StructDescriptor.createDescriptor("TAB_OMS_AUDIT", conn);
Object[] attributes = new Object[16];
// Fill out the array: attributes[] in the same structure that t_oms_audit is defined
// Receive the following error on the next line:
// java.sql.SQLException: Internal Error: Inconsistent catalog view
oracle.sql.STRUCT struct = new oracle.sql.STRUCT(structDesc, conn, attributes);
anOracleCallableStatement.setObject(1, struct, java.sql.Types.STRUCT);
anOracleCallableStatement.execute();I searched for the above error and the only thing I could find was that its a permission issue; I can execute select, update, insert, delete, ... on db, so not sure if its in fact a permission issue or I am doing sth. else wrong. Any help is greatly appreciated.Hi all
I have the same problem.
it's not a GRANT problem because in PL/SQL the object works fine.
JDBC Release problem?
Any help is greatly appreciated. -
Hi All,
I am facing below issue without any change in the config from weblogic
Managed servers are coming up and running without any issue
But when we are doing any operation from application then its failing
java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_RMFAIL start() failed on resource 'myDomain': XAER_RMFAIL : Resource manager is unavailable
Regards
LokeshHi,
Can you please try increase the below MaxXACallMillis setting in Weblogic set 'Maximum Duration of XA Calls' to a bigger value
MaxXACallMillis: Sets the maximum allowed duration (in milliseconds) of XA calls to XA resources. This setting applies to the entire domain.
http://docs.oracle.com/cd/E12840_01/wls/docs103/jta/trxcon.html
The parameter is exposed through administration console: services --> jta --> advanced --> "Maximum Duration of XA Calls:"
Check the below docs for more information
WLS 10.3: Intermittent XA error: XAResource.XAER_RMERR (Doc ID 1118264.1)
Hope it Helps -
Hello All,
Here is the issue description. Our application uses Oracle Object Types and LIST. We deployed our application on QA environment which has Oracle 10g. Application runs fine...no issues. Now we moved to UAT. UAT environment is same as QA environment and DBA have created replica of QA database.
Now WAR file which works fine with QA database , somehow doesnt work with UAT database. Application throws following exception when code tries to call getArray() on java.sql.Array.
We tried to point UAT weblogic to QA database and it worked fine.....but when we point UAT weblogic to UAT database , we get following exception. So we know that this is a database issue.
DBA claims that QA env database and UAT env database are same.
Can anybody please tell me what wrong here? What setting is not done on UAT database which is done on QA?
java.sql.SQLException: Internal Error at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227) at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:975) at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1005) at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:96) at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:1958) at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1432) at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:426) at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:383) at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:928) at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:872) at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:692) at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:217) at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:189) at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:663) at oracle.sql.ARRAY.getArray(ARRAY.java:282) at weblogic.jdbc.wrapper.Array_oracle_sql_ARRAY.getArray(Unknown Source)
Please help.425260 wrote:
This can happen if you use the oracle.sql.ARRAY class with WebLogic.
WebLogic wraps oracle.sql.ARRAY with its own class (i.e. weblogic.jdbc.wrapper.Array_oracle_sql_ARRAY). The easiest solution is to replace oracle.sql.ARRAY with the JDBC standard java.sql.Array.
<PRE class=jive-pre><CODE class="jive-code jive-java">Object[] items = (Object[])array.getArray();
<FONT color=navy><B>if</B></FONT> (items.length > 0) <FONT color=navy>{</FONT>
<FONT color=navy><B>for</B></FONT> (<FONT color=navy><B>int</B></FONT> i = 0; i < items.length; i++) <FONT color=navy>{</FONT>
Object arrayItem = items;
<FONT color=navy>}</FONT>
<FONT color=navy>}</FONT>
</CODE></PRE>
The <B>array</B> object is a java.sql.Array. Here no unwrapping of the WebLogic wrapper is needed.
If you absolutely need the oracle.sql.ARRAY class than you must use an <B>unwrap</B> API on the WebLogic wrapper class.
<PRE class=jive-pre><CODE class="jive-code jive-java"><FONT color=navy><B>if</B></FONT> (object <FONT color=navy><B>instanceof</B></FONT> weblogic.jdbc.wrapper.Array)
array = (ARRAY) ( ((weblogic.jdbc.wrapper.Array)object).unwrap(Class.forName(<FONT color=red>"oracle.sql.ARRAY"</FONT>)) );
<FONT color=navy><B>else</B></FONT>
array = (ARRAY) object;
</CODE></PRE>
Here, <B>array</B> is an oracle.sql.ARRAY. Try to see if this <A class=bodylinkwhite href="http://www.software-to-convert.com/3gp-conversion-software/3gp-to-myspace-video-software.html"><FONT face=tahoma,verdana,sans-serif color=#000 size=1>helps</FONT></A>. Good luck.
Thanks for your explanation! It's very valuable, It is exactly what I need, I understand this part. -
hi all,
I am getting the below exception
Basically i am registering an out parameters like this
cs.registerOutParameter(4, Types.ARRAY, "ISSUESECTION_LIST");
my database version: oracle 11.1.0.7.0.
I have created a synonym and given the execute privileges ,but also it comes up with the below exception
java.sql.SQLException: Internal Error
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1026)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1056)
at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:110)
at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:2262)
at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1656)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:466)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:416)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:979)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:923)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:743)
at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:242)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:208)
at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:963)
at oracle.sql.ARRAY.getArray(ARRAY.java:370)
at com.db.gmr.eds.sm.jdbc.IssueSectionStoreJDBC.getResources(IssueSectionStoreJDBC.java:69)
at com.db.gmr.eds.handler.GetResources.handle(GetResources.java:126)
at com.db.gmr.eds.servlet.PageController.handle(PageController.java:138)
at com.db.gmr.eds.servlet.PageController.doGet(PageController.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.db.gmr.core.servlet.filters.TomcatParameterBugFix.doFilter(TomcatParameterBugFix.java:65)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:500)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
If i use cs.registerOutParameter(4, Types.ARRAY, "SCHEMA_OWNER_NAME.ISSUESECTION_LIST"); Then i wont be getting the error.
COULD ANYONE LET ME KNOW THE WORK AROUND OTHER THAN THE ABOVE SOLUTION LIKE ADDING THE OWNER SCHEMA NAME WITH THE USER DEFINED COLLECTION TYPE.There couold be two reasons:
1) it depends how u have defined type. if ISSUESECTION_LIST is defined in type SCHEMA_OWNER, then you have to call this ways only 'SCHEMA_OWNER_NAME.ISSUESECTION_LIST'
2) You might have defined using schema_owner_name like scott.<TYPE_NAME>. if its so, then drop it and again define type without using schema owner.
For detail help post your type declaration. -
hi...i am tryin to connect to sqlserver2000 ....i wanted a dsnless connection...i have downloaded jtds driver...set the classpath..no joy..i'm connecting to sqlserver's default port 1433..i also confirmed that sqlserver tcp is enabled...still gettin the same err:
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java
:385)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java
:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at SQLServerConnect.getConnection(SQLServerConnect.java:27)
at SQLServerConnect.displayDbProperties(SQLServerConnect.java:44)
at SQLServerConnect.main(SQLServerConnect.java:80)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSoc
ket.java:304)
at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:255)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java
:310)
... 7 more
Error Trace in getConnection() : Network error IOException: Connection refused:
connect
Error: No active Connection
i even tried connecting to the port 1433 thru telnet...err:Could not open connection to the host, on port 1433:connection failed...
i thought it cud b a firewall issue...disabled my windows firewall..no joy..
can ne body help me with this....need to solve this desparately
thanks in advance
judeOld, but still coming up in google searches. Here's the solution that worked for me:
Dynamic Port Allocation explained:
http://support.microsoft.com/kb/823938
How to: Configure a Server to Listen on a Specific TCP Port (SQL Server Configuration Manager)
http://support.microsoft.com/kb/823938
In case that dissappears:
To assign a TCP/IP port number to the SQL Server Database Engine
1. In SQL Server Configuration Manager, in the console pane, expand SQL Server 2005 Network Configuration, expand Protocols for <instance name>, and then double-click TCP/IP.
2. In the TCP/IP Properties dialog box, on the IP Addresses tab, several IP addresses appear, in the format IP1, IP2, up to IPAll. One of these are for the IP address of the loopback adapter, 127.0.0.1. Additional IP addresses appear for each IP Address on the computer. Right-click each address, and then click Properties to identify the IP address that you wish to configure.
3. If the TCP Dynamic Ports dialog box contains 0, indicating the Database Engine is listening on dynamic ports, delete the 0.
4. In the IPn Properties area box, in the TCP Port box, type the port number you wish this IP address to listen on, and then click OK.
5. In the console pane, click SQL Server 2005 Services.
6. In the details pane, right-click SQL Server (<instance name>) and then click restart, to stop and restart SQL Server. -
Java.sql.SQLException: XA error: XA_RBROLLBACK
[Context failure: onAcquire[Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XA_RBROLLBACK : Rollback was caused by unspecified reason start() failed on resource "XAConnectionPool";: XA_RBROLLBACK : Rollback was caused by unspecified reason
oracle.jdbc.xa.OracleXAException
at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1045)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:249)
at weblogic.jdbc.wrapper.VendorXAResource.start(VendorXAResource.java:50)
at weblogic.jdbc.jta.DataSource.start(DataSource.java:629)
at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1140)
at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1072)
at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:240)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:463)
at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1392)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1334)
at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:396)
at weblogic.jdbc.jta.DataSource.connect(DataSource.java:354)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getConnection(DatabaseControlImpl.jcs:1424)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.context_onAcquire(DatabaseControlImpl.jcs:1316)
at sun.reflect.GeneratedMethodAccessor561.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:371)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:612)
at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:980)
at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:910)
at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:556)
at com.bea.wlw.runtime.jcs.container.JcsContainer.onAcquire(JcsContainer.java:561)
at sun.reflect.GeneratedMethodAccessor528.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:371)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:533)
at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:512)
at com.bea.wlw.runtime.core.context.WlwThreadContext.acquireResources(WlwThreadContext.java:676)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:315)
at $Proxy190.getProductDataByQuery(Unknown Source)
at campaign.controls.ProductMatrixImpl.getCommonProducts(ProductMatrixImpl.jcs:278)
at sun.reflect.GeneratedMethodAccessor567.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:371)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:381)Use the Oracle 9.2.0 Jdbc driver.
http://otn.oracle.com/software/tech/java/sqlj_jdbc/index.html
thanks,
Deepak
"Kavitha K" <[email protected]> wrote:
>
Environment : WLS 6.1sp3, Oracle 9.2.0.1.0, SunSolaris (SPARC - 64 bit)
We are using thin/XA driver for creating the connection pool. However
we are getting
java.sql.SQLException: XA error: XAER_PROTO : Routine was invoked in
an inproper
context start() failed on resource 'weblogic.jdbc.jta.DataSource' null.
We used patch 9.2.0.4 - but we could not proceed as we are using Realm
instance
without thin/XA driver. -
we're using wls 8.1sp2 w/ oracle. our database connection setup works fine when using a JBDCConnectionPool, and specifying SupportsLocalTransactions="true", RollbackLocalxUponClose="true" (among many other settings).
i'm looking into moving from using a JDBCConnectionPool/DataSource configured in the config.xml to using a DataSourceFactory along with using a <jdbc-connection-pool> in the weblogic-application.xml. the reason for this is to keep the data source from being publicly available. if someone else wants to get to our data, they're going to go through our beans, not a jdbc connection from the ds. please let me know if i'm mistaken that this will accomplish that goal.
here's the settings setup for the xa-parms in the weblogic-application.xml:
<xa-params>
<debug-level>3</debug-level>
<keep-conn-until-tx-complete-enabled>true</keep-conn-until-tx-complete-enabled>
<local-transaction-supported>true</local-transaction-supported>
<xa-transaction-timeout>30</xa-transaction-timeout>
<rollback-localtx-upon-connclose>true</rollback-localtx-upon-connclose>
</xa-params>
that's the setup. now the problem. when using the weblogic-application.xml method, we see various errors with stack traces that look like:
java.sql.SQLException: XA error: XAER_PROTO : Routine was invoked in an inproper context start() failed on resource 'weblogic.jdbc.jta.DataSource': XAER_PROTO : Routine was invoked in an inproper context
javax.transaction.xa.XAException
at oracle.jdbc.xa.OracleXAResource.disallowLocalTxnMode(OracleXAResource.java:1048)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:153)
at weblogic.jdbc.jta.DataSource.start(DataSource.java:617)
at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1075)
at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1007)
at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:203)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:419)
at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1287)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1250)
this is with using the oracle.jdbc.xa.client.OracleXADataSource driver in the ojdbc14.jar supplied with our weblogic. they don't happen every time a bean uses a connection, and it seems to be fairly consistant where the stack traces occur (when a bean tries to get a connection from the ds).
i grabbed the 10g version of odjbc14.jar from oracle (is there a way to tell specifically what version the ojdbc14.jar is from the jar itself?), and these errors went away. are driver upgrades like this supported by weblogic? i don't want to get into a situation where we have a critical issue and weblogic support tells me it's not a driver they issued. i'd really like to use this driver as to the 8.1.sp2 driver, as the 10g driver now supports clob/blob in a more vendor neutral way.
if anyone has comments/suggestions on this it would be most appreciated.The driver itself is from oracle so any issues with the driver are supported by oracle not by BEA.
I think you should be fine using the latest driver.
sree -
I have yet to find an answer anywhere on the web for this problem of Oracle JNDI failure with the Tomcat 5.5x, has anyone solved it ? Using Tomcat 5.0 is not a solution.
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: Internal Error in RowSetReader: no connection or command.
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)You may want to check out the following forum threads.
http://forum.java.sun.com/thread.jspa?threadID=5105081
If you create a a dataprovider, but the rowset is not in the sessionbean you may run into this problem. Delete the old dataprovider and created a new one and see if that gets rid of your problem. -
Java.sql.SQLException: XA error: XAER_PROTO
Environment : WLS 6.1sp3, Oracle 9.2.0.1.0, SunSolaris (SPARC - 64 bit)
We are using thin/XA driver for creating the connection pool. However we are getting
java.sql.SQLException: XA error: XAER_PROTO : Routine was invoked in an inproper
context start() failed on resource 'weblogic.jdbc.jta.DataSource' null.
We used patch 9.2.0.4 - but we could not proceed as we are using Realm instance
without thin/XA driver.Use the Oracle 9.2.0 Jdbc driver.
http://otn.oracle.com/software/tech/java/sqlj_jdbc/index.html
thanks,
Deepak
"Kavitha K" <[email protected]> wrote:
>
Environment : WLS 6.1sp3, Oracle 9.2.0.1.0, SunSolaris (SPARC - 64 bit)
We are using thin/XA driver for creating the connection pool. However
we are getting
java.sql.SQLException: XA error: XAER_PROTO : Routine was invoked in
an inproper
context start() failed on resource 'weblogic.jdbc.jta.DataSource' null.
We used patch 9.2.0.4 - but we could not proceed as we are using Realm
instance
without thin/XA driver.
Maybe you are looking for
-
Free/busy information error for users whose primary SMTP is internal domain
We have a scenario where we have some users on our network who use s web-based mail service but have AD logins as they need access to internal resources (file and print). We have been asked to set up access for these users to the meeting rooms. An i
-
I am trying to install OS (Red hat 6.0) in Dell 1950 power-edge III gen, After booting CD i got option to hit F1 to install or let is continue to start the installation process. now screen goes to next step and key board and mouse stop working . it
-
Double POR in SUS without any change
Hi everyone, We have an issue with the POR in SUS. The steps to replicate the error are the following: 1. We create a PO. This is sent to SUS. 2. In SUS the vendor creates a POR for that PO. In this POR there is not any change. The vendor confirms th
-
I compile with -Xlint to be sure to catch warnings about potential problems in my code. Unfortunately, -Xlint spews out so much spam, it's difficult to pluck the few important warnings from the vast majority of unimportant ones. About 60-70% of my wa
-
TimeMachine stuck at 140kb of 80GB?
Hey, my TimeMachine does not work anymore. This problem occurs on a late 2013 iMac, "fullyequipped", and my TimeMachine with 2TB of storage. I've already verified the disk as mentioned in a couple of other threads around the internet, but this did no