IPlanet WebServer fails to init Oracle Connection
Hi,
I've deployed a Servlet in iWS 6.0, that uses a connection to an Oracle Server 9i (classes12.jar).
When I try to access the database I receive an error like:
[08/Jul/2002:21:05:18] failure (12007): Internal error: Unexpected error condition thrown (unknown exception,no description), stack: java.lang.StackOverflowError
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClass(ClassLoader.java:423)
at com.iplanet.server.http.servlet.NSServletLoader.loadResource(NSServletLoader.java:387)
at com.iplanet.server.http.servlet.NSServletLoader.loadClass(NSServletLoader.java:429)
at com.iplanet.server.http.servlet.NSServletLoader.findClass(NSServletLoader.java:174)
at com.iplanet.server.http.servlet.NSServletLoader.loadClass(NSServletLoader.java:106)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClass(ClassLoader.java:423)
at com.iplanet.server.http.servlet.NSServletLoader.loadResource(NSServletLoader.java:387)
at com.iplanet.server.http.servlet.NSServletLoader.loadClass(NSServletLoader.java:429)
at com.iplanet.server.http.servlet.NSServletLoader.findClass(NSServletLoader.java:174)
at com.iplanet.server.http.servlet.NSServletLoader.loadClass(NSServletLoader.java:106)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClass(ClassLoader.java:423)
at com.iplanet.server.http.servlet.NSServletLoader.loadResource(NSServletLoader.java:387)
at com.iplanet.server.http.servlet.NSServletLoader.loadClass(NSServletLoader.java:429)
at com.iplanet.server.http.servlet.NSServletLoader.findClass(NSServletLoader.java:174)
at com.iplanet.server.http.servlet.NSServletLoader.loadClass(NSServletLoader.java:106)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at oracle.jdbc.driver.OracleConnection.privateCreateStatement(OracleConnection.java:763)
at oracle.jdbc.driver.OracleConnection.createStatement(OracleConnection.java:670)
I thought that the problem could be classpath configuration (classes12.jar is in the WEB-INF of my Web Application), so I put classes12.jar in the classpath of the application, the error changes and now I can see:
[08/Jul/2002:21:31:40] failure (12159): Internal error: Unexpected error conditi
on thrown (unknown exception,no description), stack: java.lang.StackOverflowErro
r
at java.net.URLClassLoader$1.run(URLClassLoader.java:187)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:332)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:141)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:150)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java)
Thanks a lot,
David.
put classes12.jar path in jvm12.conf file of web server. You can configure this through GUI also. try renaming classes12.jar to classes12.zip also
Ananda Rao
Similar Messages
-
JRun 4.0 initialization in iPlanet-WebServer fails
We are facing problem with JRun 4.0 initialization in iPlanet
Web Server 6.0SP9.
Recently sun patch was applied with details as follows:
NAME: Solaris 8 Recommended Patch Cluster
DATE: Oct/04/06
And after this we have observed the JRun 4.0 initialization
fails reporting the following error in iPlanet error log:
[16/Apr/2007:12:36:30] info (20514): successful server
startup
[16/Apr/2007:12:36:30] info (20514):
iPlanet-WebServer-Enterprise/6.0SP9 B11/04/2004 06:35
[16/Apr/2007:12:36:31] info (20514): jrNSAPI[init] reports:
JRun 4.0 (Build 54102) NSAPI Extension - Oct 23 2002 11:10:21
[16/Apr/2007:12:36:31] warning (20514): jrNSAPI[init]
reports: initProxy failed to fetch server properties
[16/Apr/2007:12:36:31] warning (20514): jrNSAPI[init]
reports: could not initialize Server_1:172.29.27.86:51002
[16/Apr/2007:12:36:31] warning (20514): jrNSAPI[init]
reports: Couldn't initialize from remote server, deferring init
till request time.
[16/Apr/2007:12:36:31] info (20514): pssFilter: Init
[16/Apr/2007:12:36:32] warning (20515): On group group1,
servername prbpluww32.bp.com does not match subject "MANTA.BP.COM"
of certificate Server-Cert.
[16/Apr/2007:12:36:32] warning (20515): In secure virtual
server https-prbpluww32.bp.com, urlhost prbpluww32.bp.com does not
match subject "MANTA.BP.COM" of certificate Server-Cert.
[16/Apr/2007:12:36:32] info (20515): Installing a new
configuration
[16/Apr/2007:12:36:32] info (20515): [LS ls1]
https://prbpluww32.bp.com, port 443 ready to accept requests
[16/Apr/2007:12:36:32] info (20515): A new configuration was
successfully installed
[16/Apr/2007:12:36:32] info (20515): Using the Solaris VM
v1.2.2 from Sun Microsystems Inc.
[16/Apr/2007:12:36:32] info (20515): Java VM classpath:
/asera/apps/iplanet/servers/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar:/ase ra/apps/iplanet/servers/bin/https/jar/NSServletLayer.jar:/asera/apps/iplanet/servers/bin/h ttps/jar/NSJavaUtil.jar:/asera/apps/iplanet/servers/bin/https/jar/NSJavaMiscUtil.jar:/aser a/apps/iplanet/servers/bin/https/jar/servlet.jar:/asera/apps/iplanet/servers/bin/https/jar /servlet-2.3-filters-api.jar:/asera/apps/iplanet/servers/bin/https/jar/jsp092.jar:/asera/a pps/iplanet/servers/bin/https/jar/jaxp.jar:/asera/apps/iplanet/servers/bin/https/jar/crims on.jar:/asera/apps/iplanet/servers/bin/https/jar/xalan.jar:/asera/apps/iplanet/servers/bin /https/jar/jspengine.jar:
[16/Apr/2007:12:36:32] info (20515): Loading
IWSSessionManager by default.
[16/Apr/2007:12:36:32] info (20515): IWSSessionManager:
Maximum number of sessions is 1000
[16/Apr/2007:12:36:32] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[1] reports: serverstore
/asera/apps/jrun4/lib/wsconfig/1/jrunserver.store
[16/Apr/2007:12:36:32] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[1] reports: bootstrap 172.29.27.86:51002
[16/Apr/2007:12:36:32] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[1] reports: initProxy failed to fetch
server properties
[16/Apr/2007:12:36:32] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[1] reports: could not initialize
Server_1:172.29.27.86:51002
[16/Apr/2007:12:36:32] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[1] reports: Couldn't initialize from
remote server, JRun server(s) probably down.
[16/Apr/2007:12:36:33] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[57984] reports: serverstore
/asera/apps/jrun4/lib/wsconfig/1/jrunserver.store
[16/Apr/2007:12:36:33] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[57984] reports: bootstrap
172.29.27.86:51002
[16/Apr/2007:12:36:33] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[57984] reports: initProxy failed to fetch
server properties
[16/Apr/2007:12:36:33] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[57984] reports: could not initialize
Server_1:172.29.27.86:51002
[16/Apr/2007:12:36:33] warning (20515): for host 0.0.0.0
trying to GET /, jrNSAPI[57984] reports: Couldn't initialize from
remote server, JRun server(s) probably down.
Finally we were forced to uninstall the sun patch and after
that we didn't come accross with error. Are there any identified
limitations with JRun on this sun patch? Can anybody help us in
resolving this problem.
Thanks,
Mohanput classes12.jar path in jvm12.conf file of web server. You can configure this through GUI also. try renaming classes12.jar to classes12.zip also
Ananda Rao -
Hi - I'm new to this group and wonders whether you guys can help me.
I'm trying to connect to my Oracle9i database via a Java servlet but
got the following error message in the web browser:
Internal error: exception thrown from the servlet service function
(uri=/servlet/HelloWWW6): java.lang.NullPointerException, Stack:
java.lang.NullPointerException
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1743)
at oracle.jdbc.oci8.OCIEnv.getEnvHandle(OCIEnv.java:69)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:452)
at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:287)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance
(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:172)
at HelloWWW6.doGet(HelloWWW6.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService
(NSServletRunner.java:897)
at com.iplanet.server.http.servlet.NSServletRunner.Service
(NSServletRunner.java:464)
My class path is:
Java VM
classpath: /u01/iplanet/servers/plugins/servlets/examples/legacy/beans
.10/SDKBeans10.jar:/usr/local/javamail-1.2/mail.jar:/usr/local/jaf-
1.0.1/activation.jar:/u02/app/oracle/product/9i/lib:/u02/app/oracle/pr
oduct/9i/jdbc/lib:/u02/app/oracle/product/9i/jdbc/lib/classes12.zip:/u
02/app/oracle/product/9i/jdbc/lib/nls_charset12.zip:/u01/iplanet/serve
rs/bin/https/jar/NSServletLayer.jar:/u01/iplanet/servers/bin/https/jar
/NSJavaUtil.jar:/u01/iplanet/servers/bin/https/jar/NSJavaMiscUtil.jar:
/u01/iplanet/servers/bin/https/jar/servlet.jar:/u01/iplanet/servers/bi
n/https/jar/servlet-2.3-filters-
api.jar:/u01/iplanet/servers/bin/https/jar/jsp092.jar:/u01/iplanet/ser
vers/bin/https/jar/jaxp.jar:/u01/iplanet/servers/bin/https/jar/crimson
.jar:/u01/iplanet/servers/bin/https/jar/xalan.jar:/u01/iplanet/servers
/bin/https/jar/jspengine.jar:
My LD_LIBRARY_PATH is:
/u02/app/oracle/product/9i/lib:/u02/app/oracle/product/9i/jdbc/lib:/u0
2/app/oracle/product/9i/jdbc/lib/classes12.zip:/u02/app/oracle/product
/9i/jdbc/lib/nls_charset12.zip
Can anyone help? This is currently driving me nuts. I was able to
connect when I changed it to an application.
I am using the Iplanet Webserver 6.0 on a Linux 7.2 platform. Like I
said, sqlplus works fine, standard java application works fine but
when I change it to a servlet (which means it now goes through the
webserver, I get this error message)
Does anyone know what the source code is trying to do at
OCIDBAccess.java:1743 ?
Thanks guys!Tony, could you please explain me better the procedure that you wrote?
What are the boxes? My situation is similar:
| ServerSocket (1) |
| (192.168.1.100, 5555) |
|
|
|
|
| Proxy |
| Someone wants to connect to the ServerSocket (1) |
That is not true. You CAN do it but you need a box
outside the firewall with proper IP address to help
you. I am not sure if Sergio still wants the answer
today after more than a year from the original post (I
did not see the post until today when I try to search
for something else). Anyway, if such a box is
available (I call it 2nd box), you could first
establish a socket between the two boxes by HTTP
tunneling (I assume it is a http proxy). You have to
initiate the socket from the 1st box. Then start
another server socket on the 2nd box, forwarding the
traffic it gets from outside back to the 1st box using
the established channel. That is it.
Tony -
CSV to Oracle - (Integration) fails on the target ORACLE connection
Hi,
I am trying to load data from a csv file into Oracle db via ODI.
Here are the steps i followed:
1- Created the FILE physical schema
1- Created the Oracle data server and physical schema in Physical Architecture
2- Created and linked to logical schemas
3- Created the correspondent data models and stores and a
ble to view the data contents of the CSV and of the target table in ODI.
4- Created interface, added csv as source and oracle table as target
5- Used "LKM File to SQL" and "IKM SQL Control Append" (FLOW_CONTROL is false)
When i execute the interface, the session starts then i receive the following wrror in Operator:
ODI-1228: Task ARIBA_G1 (Integration) fails on the target ORACLE connection DEV_DW.
Caused By: java.sql.SQLException: Non supported SQL92 token at position: 116
at oracle.jdbc.driver.OracleSql.handleODBC(OracleSql.java:1319)
at oracle.jdbc.driver.OracleSql.parse(OracleSql.java:1190)
at oracle.jdbc.driver.OracleSql.getSql(OracleSql.java:341)
at oracle.jdbc.driver.OracleSql.getSqlBytes(OracleSql.java:649)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1079)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3937)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)
This is the Code section:
BeanShell script error: Sourced file: inline evaluation of: ``if ( odiRef.getUserExit("FLOW_CONTROL").equals("1") ) { out.print(" \ninsert int . . . '' : Typed variable declaration : Error in method invocation: Method getDataSetMin() not found in class'com.sunopsis.dwg.snpreference.SnpReferenceInterne' : at Line: 25 : in file: inline evaluation of: ``if ( odiRef.getUserExit("FLOW_CONTROL").equals("1") ) { out.print(" \ninsert int . . . '' : odiRef .getDataSetMin ( )
BSF info: Insert new rows at line: 0 column: columnNo
if ( odiRef.getUserExit("FLOW_CONTROL").equals("1") ) { out.print(" \ninsert into\t") ;
out.print(odiRef.getTable("L","TARG_NAME","A")) ;
out.print(" \n( \n\t") ;
out.print(odiRef.getColList("", "[COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
out.print(" \n\t") ;
out.print(odiRef.getColList(",", "[COL_NAME]", ",\\n\\t", "", "((INS and TRG) and REW)")) ;
out.print(" \n) \nselect\t") ;
out.print(odiRef.getColList("", "[COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
out.print(" \n\t") ;
out.print(odiRef.getColList(",", "[EXPRESSION]", ",\\n\\t", "", "((INS and TRG) and REW)")) ;
out.print(" \nfrom\t") ;
out.print(odiRef.getTable("L","INT_NAME","A")) ;
out.print(" \n") ;
} else { out.print(" \ninsert into\t") ;
out.print(odiRef.getTable("L","TARG_NAME","A")) ;
out.print(" \n( \n\t") ;
out.print(odiRef.getColList("", "[COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
out.print(" \n\t") ;
out.print(odiRef.getColList(",", "[COL_NAME]", ",\\n\\t", "", "((INS and TRG) and REW)")) ;
out.print(" \n) \n\nselect\n ") ;
out.print(odiRef.getColList("", "[COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
out.print(" \n ") ;
out.print(odiRef.getColList(",", "[EXPRESSION]", ",\\n\\t", "", "((INS and TRG) and REW)")) ;
out.print(" \nFROM (\t\n") ;
for (int i=odiRef.getDataSetMin(); i <= odiRef.getDataSetMax(); i++){out.print("\n") ;
out.print(odiRef.getDataSet(i, "Operator")) ;
out.print("\nselect \t") ;
out.print(odiRef.getPop("DISTINCT_ROWS")) ;
out.print("\n\t") ;
out.print(odiRef.getColList(i,"", "[EXPRESSION] [COL_NAME]", ",\\n\\t", "", "((INS and !TRG) and REW)")) ;
out.print(" \nfrom\t") ;
out.print(odiRef.getFrom(i)) ;
out.print("\nwhere\t") ;
if (odiRef.getDataSet(i, "HAS_JRN").equals("1")) { out.print("\n\tJRN_FLAG <> 'D'\t") ;
} else {out.print("\t(1=1)\t") ;
} out.print("\n") ;
out.print(odiRef.getJoin(i)) ;
out.print("\n") ;
out.print(odiRef.getFilter(i)) ;
out.print("\n") ;
out.print(odiRef.getJrnFilter(i)) ;
out.print("\n") ;
out.print(odiRef.getGrpBy(i)) ;
out.print("\n") ;
out.print(odiRef.getHaving(i)) ;
out.print("\n") ;
}out.print("\n) ") ;
out.print(odiRef.getInfo("DEST_TAB_ALIAS_WORD")) ;
out.print(" ODI_GET_FROM\n\n") ;
} out.print("\n") ;
****** ORIGINAL TEXT ******
<%if ( odiRef.getUserExit("FLOW_CONTROL").equals("1") ) { %>
insert into <%=odiRef.getTable("L","TARG_NAME","A")%>
<%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>
<%=odiRef.getColList(",", "[COL_NAME]", ",\n\t", "", "((INS and TRG) and REW)")%>
select <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>
<%=odiRef.getColList(",", "[EXPRESSION]", ",\n\t", "", "((INS and TRG) and REW)")%>
from <%=odiRef.getTable("L","INT_NAME","A")%>
<% } else { %>
insert into <%=odiRef.getTable("L","TARG_NAME","A")%>
<%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>
<%=odiRef.getColList(",", "[COL_NAME]", ",\n\t", "", "((INS and TRG) and REW)")%>
select
<%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>
<%=odiRef.getColList(",", "[EXPRESSION]", ",\n\t", "", "((INS and TRG) and REW)")%>
FROM (
<%for (int i=odiRef.getDataSetMin(); i <= odiRef.getDataSetMax(); i++){%>
<%=odiRef.getDataSet(i, "Operator")%>
select <%=odiRef.getPop("DISTINCT_ROWS")%>
<%=odiRef.getColList(i,"", "[EXPRESSION] [COL_NAME]", ",\n\t", "", "((INS and !TRG) and REW)")%>
from <%=odiRef.getFrom(i)%>
where <% if (odiRef.getDataSet(i, "HAS_JRN").equals("1")) { %>
JRN_FLAG <> 'D' <%} else {%> (1=1) <% } %>
<%=odiRef.getJoin(i)%>
<%=odiRef.getFilter(i)%>
<%=odiRef.getJrnFilter(i)%>
<%=odiRef.getGrpBy(i)%>
<%=odiRef.getHaving(i)%>
<%}%>
) <%=odiRef.getInfo("DEST_TAB_ALIAS_WORD")%> ODI_GET_FROM
<% } %>
Any suggestions are highly appreciated.
MikeHi Santy,
No, no error or bad files.
Actually the data are moved correctly into the temp table created by ODI, but not from there to the final target table.
I found out the reason though, the knowledge modules imported were from another ODI installation!
I made sure to import the proper KM and it worked.
Thanks! -
ODI-1228: Task SrcSet0 (Loading) fails on the target ORACLE connection
Hi all. I am using ODI for the first time. Trying to import a flat file data into Oracle table.
Flat file has 4 columns Empno,Ename,Deptno,Salary [2 rows]
so is the Target Table in Oracle [All are VARCHAR2 data type] --Empty table
I am using these KMs: CKM Oracle , IKM SQL CONTROL APPEND, LKM FILE TO SQL.
When I execute this Interface, it fails with the following error message:
ODI-1228: Task SrcSet0 (Loading) fails on the target ORACLE connection [Connection_Name]
Caused By: java.sql.SQLSyntaxErrorException: ORA-00904: : invalid identifier
I checked the Code and Source Code is null , Target Code is: Create Table schema.Load_{table_name} ( )
With no columns in it.
Can anyone help? I am using Oracle ODI 11G (11.1.1)
Thanks in advanceHi,
if i remember well ( i haven't ODI opened) LKM FILE TO SQL. needs to have all mapping done into staging area. Click on a column, check Staging Area symbol (hammer), save and re-execute.
Remember to check that your mapping is enabled (just click on a column, first checkbox in property inspector)
If it doesn't work please make some screenshot or at least post your execution code.
Let us know -
ODI-1228: fails on the target ORACLE connection.
Hi,
I tried running an interface, and encountered the following error:
ODI-1228: Task Pop.ABC (Integration) fails on the target ORACLE connection Dev.
Caused By: java.sql.SQLException: ORA-12170: TNS:Connect timeout occurred
Kindly guide me what will be the reason of its failure.
Thanks.Hi,
It didnt work.
The same error exists.
The server is located at a remote location. So, what can be done to resolve this issue.
Which value should be appropriate for the parameter to make it work for me?
Thanks. -
ODI-1228: Task emp(Integration) fails on the target ORACLE connection Target
Hi all,
I am getting error while executing interface on error. Following error occurs when i am executing interface,
ODI-1228: Task emp(Integration) fails on the target ORACLE connection Target
Caused By: java.sql.SQLException: Non Supported SQL92 token at position: 138
Your help in this regard will be highly appreciated.
Regards
IrfanHi all,
I am getting error while executing interface on ODI. Following error occurs when i am executing interface,
ODI-1228: Task emp(Integration) fails on the target ORACLE connection Target
Caused By: java.sql.SQLException: Non Supported SQL92 token at position: 138
Your help in this regard will be highly appreciated.
Regards
Irfan -
Oracle connection failing..URGENT-PLS HELP
added these files in the classpath : using oracle 9i , jdk1.4.2
C:\Documents and Settings\Sampathkumar\Desktop>set CLASSPATH=c:\oracle\ora92\jdb
c\lib\ojdbc14.jar;c:\oracle\ora92\jdbc\lib\nls_charset12.jar;%CLASSPATH%;
submitted this code as a sample to test the conection
import java.sql.*;
public class test{
public static void main(String[] args) throws SQLException,ClassNotFoundException {
//load oracle driver
Class.forName("oracle.jdbc.OracleDriver");
System.out.println("Driver Loaded");
//connecTION to the sample database
String url = "jdbc.oracle:thin:@SEC_MEC-MS3:1521:global.oracle";
Connection conn=DriverManager.getConnection (url,"sam","aaj");
System.out.println("Database connection successful");
//create a statement
Statement stmt = conn.createStatement();
ResultSet rset =stmt.executeQuery("select sysdate from Dual");
while (rset.next())
System.out.println(rset.getString(1));
}//end of test DB class
give the error stack
C:\Documents and Settings\Sampathkumar\Desktop>java test
Driver Loaded
Exception in thread "main" java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at test.main(test.java:17)added these files in the classpath : using oracle 9i
, jdk1.4.2
C:\Documents and Settings\Sampathkumar\Desktop>set
CLASSPATH=c:\oracle\ora92\jdb
c\lib\ojdbc14.jar;c:\oracle\ora92\jdbc\lib\nls_charset
12.jar;%CLASSPATH%;
submitted this code as a sample to test the
conection
import java.sql.*;
public class test{
public static void main(String[] args) throws
SQLException,ClassNotFoundException {
//load oracle driver
Class.forName("oracle.jdbc.OracleDriver");
System.out.println("Driver Loaded");
//connecTION to the sample database
String url =
=
"jdbc.oracle:thin:@SEC_MEC-MS3:1521:global.oracle";
Connection conn=DriverManager.getConnection
tion (url,"sam","aaj");
System.out.println("Database connection
on successful");
//create a statement
Statement stmt = conn.createStatement();
ResultSet rset =stmt.executeQuery("select
ry("select sysdate from Dual");
while (rset.next())
System.out.println(rset.getString(1));
}//end of test DB class
give the error stack
C:\Documents and Settings\Sampathkumar\Desktop>java
test
Driver Loaded
Exception in thread "main" java.sql.SQLException: No
suitable driver
at
at java.sql.DriverManager.getConnection(Unknown
known Source)
at
at java.sql.DriverManager.getConnection(Unknown
known Source)
at test.main(test.java:17)__________________________________________________________
You are loading the driver classes ok. But is that the appropriate driver for youir database?
I know Oracle is phasing out the .zip version classes12.zip, but have tried them
here the possible drivers
ojdbc14.jar Oracle 9. and higher and jk1.4 and higher
ojdbc14_g-1.jar - include extentsion Oracle 9. and higher and jk1.4 and higher
classes12.zip - Primarily used with oralce 8.* and jk1.2.* - jtk1.3.* -
Hi,
I am trying to run servlets on iPlanet webserver fasttrach edition 4.1 on Windows NT,The web server starts ok as well, but when I try to connect to it I receive a server error and the following messages are in the error log:
for host 124.163.117.31 trying to GET /servlet/sample, func_exec reports: no handler function given for directive.
could you please give me some solution for this.
Thanks&Regards,
Anne.means there is an issue with the the Init Loadmodules line. Normally, check the syntax, make sure the shared objects are where the web server thinks they are.
If all is good, in unix, check to make sure the init line is all ONE LINE with no line breaks. -
Failed to start Oracle Net Listener
Hi ,
can any body help me regarding failing of listener.
Starting Oracle Database 10g Express Edition Instance.
Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
iam using Fedore core4 installing oracle10g Express editon ,on standalone system,Below are the logs
sqlplus system
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 31 13:21:39 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Enter user-name:
/etc/init.d/oracle-xe restart
Shutting down Oracle Database 10g Express Edition Instance.
Stopping Oracle Net Listener.
Starting Oracle Net Listener.
Starting Oracle Database 10g Express Edition Instance.
Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
[root@localhost ~]#
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 31-AUG-2009 13:26:27
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
Log messages written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
Linux Error: 11: Resource temporarily unavailable
Listener failed to start. See the error message(s) above...
Please helpI need help please:
I have installed Oracle 10g Express Edition without struggles ( Little curious about the fact
that the directory /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/log/ is empty).
% /etc/init.d/oracle-xe configure --> worked good without default settings.
% /etc/init.d/oracle-xe start --> is silent : No verbose or messages in term.
I can't connect to server http://localhost:8080/htmldb or http://localhost:8080/apex.
I uninstalled and re-installed Oracle 10g... Now the command:
% /etc/init.d/oracle-xe configure --> Oracle is already configured.
But the connection to the server always fails.
My environment has all the following:
% uname -r
2.6.30.5-43.fc11.i686.PAE
% echo $ORACLE_HOME
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
% echo $ORACLE_SID
XE
% echo $PATH
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin.....
BUT I also had the responses:
% /etc/init.d/oracle-xe restart
Shutting down Oracle Database 10g Express Edition Instance.
Stopping Oracle Net Listener.
Starting Oracle Net Listener.
Starting Oracle Database 10g Express Edition Instance.
Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
%sqlplus
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
% /etc/init.d/oracle-xe status
/bin/su: user oracle does not exist
% lsnrctl start { Messages below are my translations into english, sorry ;-) }
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 21-FEB.-2010 18:31:24
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Launch /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr: Please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
NL-00280: Erreur de création de la chaîne de journalisation /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
NL-00278: Impossible to open journalisation file
SNL-00016: snlfohd : File opening error
Listening process failure. Read error messages above...
I wish someone here gives some tips (with the commands, I am an apprentice); I dont know
where to begin my checks.
Thx. -
Hi, I have configured authentification against LDAP. User Administrator is defined at BI Server. When I create and run (as Administrator) an iBot it fails at init block - LDAP authentification. Can somebody help me what is wrong? I might have entered wrong password somewhere in configuration of Scheduler I try to reenter it everywhere where I found it.
Error Message:
+++ ThreadID: 506 : 2008-09-17 08:21:01.220 [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Odbc driver returned an error (SQLDriverConnectW). Error Codes: OPR4ONWY:U9IM8TAC State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused. *[nQSError: 13024] Successful completion of init block 'sib_Authentication LDAP' is required.* (08004) Error Codes: . Error Codes: AGEGTYVF
+++ ThreadID: 506 : 2008-09-17 08:21:01.254 iBotID: /users/administrator/_ibots/Test1 ...Trying iBot RunCR loop again.
+++ ThreadID: 506 : 2008-09-17 08:21:01.272 ... Sleeping for 8 seconds.
+++ ThreadID: 506 : 2008-09-17 08:21:09.799 [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Odbc driver returned an error (SQLDriverConnectW). Error Codes: OPR4ONWY:U9IM8TAC State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused. [nQSError: 13024] Successful completion of init block 'sib_Authentication LDAP' is required. (08004) Error Codes: . Error Codes: AGEGTYVF
+++ ThreadID: 506 : 2008-09-17 08:21:09.830 iBotID: /users/administrator/_ibots/Test1 ...Trying iBot RunCR loop again.
+++ ThreadID: 506 : 2008-09-17 08:21:09.845 ... Sleeping for 6 seconds.
+++ ThreadID: 506 : 2008-09-17 08:21:16.399 [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Odbc driver returned an error (SQLDriverConnectW). Error Codes: OPR4ONWY:U9IM8TAC State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused. [nQSError: 13024] Successful completion of init block 'sib_Authentication LDAP' is required. (08004) Error Codes: . Error Codes: AGEGTYVF
+++ ThreadID: 506 : 2008-09-17 08:21:16.419 iBotID: /users/administrator/_ibots/Test1 Exceeded number of request retries.
+++ ThreadID: 1376 : 2008-09-17 08:21:16.437 iBotID: /users/administrator/_ibots/Test1 No Content for user : AdministratorI don't think it is going to work unless you create the user in LDAP server. I am afraid this is the way your system is setup. If you want LDAP authentication then all your users need to exist there. Delivers runs iBots "on behalf" of users therefore the BI Server will try to authenticate them uding your defined LDAP authentication methods. I will suggest you don't use your OBIEE Administrator user to schedule iBots. Instead create a new user, which should exist in your LDAP server, and make this user part of the BI Server Administrator group. You should have the same priviledges as the Administrator.
-
Oracle Connection Pool failure in COM+
I am having some trouble trying to get a specific database to work with an application that makes use of a COM+ Application. When we point the application at the UAT database everything seems fine, but when we point it to the production database after a few successful calls it ends up failing at the COM+ application recycles. The event viewer provides the following information:
Event Type: Error
Event Source: COM+
Event Category: Unknown
Event ID: 4786
Date: 8/5/2007
Time: 12:54:46 PM
User: N/A
Computer: APPL_SERVER
Description:
The system has called a custom component and that component has failed and generated an exception. This indicates a problem with the custom component. Notify the developer of this component that a failure has occurred and provide them with the information below.
Component Prog ID: Oracle Connection Pool - tnsnames_alias
Method Name: IDispenserDriver::CreateResource
Server Application ID: {30A93CB3-25EB-4258-8C88-5AE103B7B86F}
Server Application Instance ID:
{A57C513E-519F-45BD-B46D-DC54B285F534}
Server Application Name: COM+ Application Name
The serious nature of this error has caused the process to terminate.
Exception: C0000005
Address: 0x7C8327F9
Call Stack:
+ 0x7c8327f9
ntdll!RtlFindActivationContextSectionGuid + 0x7d2
ntdll!RtlInitializeSListHead + 0x175
ntdll!RtlFindActivationContextSectionGuid + 0x1b7
msvcrt!malloc + 0x6c
oracommon9!sktsfMalloc + 0x14
orageneric9!kpummapg + 0x58
orageneric9!kghalo + 0xabb
orageneric9!kghalf + 0x102
orageneric9!kopo2cpc + 0x61
orageneric9!kopeini + 0x1d
orageneric9!kopo2cpc + 0xd2
orageneric9!kopopgi + 0x117
OraClient9!koudpnp + 0x712
OraClient9!koudpnp + 0x101
OraClient9!kpuinit0 + 0xb19
OraClient9!kpuinit + 0x38
OraClient9!OCIEnvInit + 0x1c
oramts!kpntsrvr::kpntsrvr(class kpntdbid *) + 0x80
oramts!kpntdbid::allocNewSrvr(struct SIDAND_ATTRIBUTES *) + 0x138
oramts!kpntdbid::GetSrvr(class kpntsvrl * *,unsigned long) + 0x7df
oramts!kpntdisp::getNet8conn(class kpntsvrl * *,unsigned long) + 0x41
oramts!kpntsess::initOCI(void) + 0xec
oramts!kpntsess::sessionBegin(void) + 0x17b
oramts!kpntdisp::CreateResource(unsigned long,unsigned long *,long *) + 0xc4
COMSVCS!DispManGetContext + 0xa3d
COMSVCS!DispManGetContext + 0x1fee
oramts!kpntdisp::allocateConnection(class kpntsess * *,unsigned long,class kpntrtyp *) + 0x3c4
oramts!_kpntsvcgetex + 0x183
oramts!_kpntsvcget + 0x25
oramts!kpntctra::getConnectionAndHandles(class kpntrtyp *,struct OCISvcCtx * *,struct OCITrans * *,struct OCIError * *) + 0x87
oramts!kpntctra::abortBranch(struct xid_t &,class kpntbrnch *,struct BOID *,int,struct BOID *) + 0x15a
oramts!kpntctra::doAbort(struct BOID *,int,struct BOID *) + 0x454
oramts!kpntajob::doJob(void) + 0x27
oramts!kpntjobq::serviceRequest(class kpntjob *) + 0x3e
oramts!workerThread(void *) + 0xd0
msvcrt!_endthreadex + 0xa3
kernel32!GetModuleFileNameA + 0xeb
Not being an expert in Oracle, I have been able to dig up a little bit of information that might be of use ...
a) Our tnsnames.ora indicates that the connections are to be DEDICATED and running Toad bares this out -- dllhost ends up with a single connection.
b) most of the database initial set of parameters seem to be very similar. The only difference I noticed was that the archive log mode and db_cache_advice are ON for production.
c) We have little control over how the connection strings are being created internally in this COM+ application, but however they are created it works for UAT and doesn't for PROD.
d) When we go into our web application and hit a page that makes use of the COM+ component to render, it will work the first time but when I do a simple browser refresh it will usually fail on the 2nd or 3rd time. Almost like it is trying to expand the connection pool size and the oracle server is throwing up.
If I didn't mention earlier the two database instances run on different servers but the application server is exactly the same. We only change the alias we are using for the database (both are defined in tnsnames) and the password used to make its connection.
Does anyone have any clues on this one? I am really spinning my wheels trying to figure out what could cause this type of situation. Anything at all would be very helpful.It appeared to us that the problem was with the Oracle server and that it might have been failing when we were trying to expand our application connection pool size or basically obtain more connections.
The biggest indicator of this is that we run the same application code against two different databases and one works and one does not work. Having said this, I suppose the problem could be rooted in a data error instead of an oracle server error ...
Is there a specific trace file on the oracle server that would help me point to any error that is truly an oracle server error? Sorry I am very new to Oracle. -
Infoviewer Error - Failed to open the connection.
Hi,
I get the below error when tring to view a report from infoviewer?
Failed to open the connection. Products.rpt Details: [Database Vendor Code: 12154 ]
Also where can i find the log files for CMC and infoviewer?
Thanks in advanceHi! I'm getting a similar error.
Re: 08004:oracleodbcoraora-12154: TNS: could not resolve the connect ....
Posted: Aug 22, 2011 5:56 PM in response to: John Fleming
Edit Reply
I am receiving a similar error.
Failed to open the connection.
Details: 08004:OracleODBCOraORA-12154: TNS:could not resolve the connect identifier specified Database Vendor Code: 12154
I've seen all sorts of discussion on the intertubes about possible fixes however, none stated are practical or they do not address my error specifically. I've exhausted resources on the net as well as those available to me.
I'm currently running SAP Crystal Reports 2011 on WIN7 64bit and using Oracle in OraClient 10g_home1.
Please let me know what insight you have. I cannot roll back to previous versions of Windows nor less encryption.
Thank you for your time.
Thank you, again, for your time.
Jeff Embree. -
Error"Failed to open the connection" - Named Instance of SQL Server 2005
"Failed to open the connection" error, when connecting to the Named Instance of SQL Server 2005
The report is throwing error, when changing the logon information dynamically through C#.
Code
string reportPath = @"D:\NET\TestReport\TestReport.rpt";
ReportDocument reportDocument = new ReportDocument();
reportDocument.Load(reportPath);
foreach(CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo.ServerName = @"TestServer\Instance1"; //Connnecting to Named instance of SQL Server 2005
tableLogonInfo.ConnectionInfo.UserID = "sa";
tableLogonInfo.ConnectionInfo.Password = "password";
tableLogonInfo.ConnectionInfo.DatabaseName = "TEST_DB";
table.ApplyLogOnInfo(tableLogonInfo);
crystalReportViewer1.ReportSource = reportDocument;
Error Message
Failed to open the connection.
Failed to open the connection.
C:\DOCUME1\PUGALE1\LOCALS~1\Temp\{DF9593A5-5C80-4CBC-ABC3-EC4EF204A7EB}.rpt
The error is occuring only whenever i am connecting to the Named Instance of SQL Server 2005.
Thanks in Advance
Edited by: pugalendran p on Feb 2, 2009 10:32 AM
Edited by: pugalendran p on Feb 2, 2009 10:43 AMHi,
Following solution might help you to resolve the issue.
Solution1:
Issue happens because universe connection to the Database is not responding and the Data Source Name is not configured to write SQL Server 2005 database.
Resolution
Created new DSN connection under SYSTEM DSN to SQL Server 2005 Database.
Import the universe from the designer.
Go to File->Parameters.
Edit Connection.
On the Database Middleware Page expand SQl Server 2005->Select SQL Server 2005 driver.
Change the DSN to new DSN connection
Test the connection.
Save the Universe and Export it to the repository.
Solution2:
I am taking Oracle as an example over here.
This can be caused when the SQLNET.ora is located in a remote location using mapped drives.
Resolution
To resolve,
check the registry [HKLM\SOFTWARE\ORACLE] you should see a folder called HOME0
look for any paths that contain a mapped drive partition
Change the mapped drive letter to a UNC path (
server\folder)
Open a command prompt and do a tnsping using the tnsname and verify the location of the SQLNET.ora or TNSNAMES.ora
If the path is not updated to the new path
Reboot the server
Regards,
Sarbhjeet Kaur -
Failed to open the connection. Details: [Database Vendor Code: 53 ]
I'm upgrading one of our applications from Visual Studio 2005 to 2010. In the process I'm also switching our reports to run using Stored Procedures instead of Tables/Views. Everything runs fine on development machines after all the migration work. On the server however, it does not work. And I am getting the error message ""
Server is Windows 2003 Server 32 bit. And yes, I have installed the latest runtimes version 13.0.2000.0 on the server. There have been no other changes on the server other than to switch the target framework on the website in question from .net 2 to .net 4, and then to modify the web.config file to remove references to the older Crystal Reports and replace with references to the newer version.
I've seen many other threads on this "failed to open the connection" errors but none of them are my problem except there is one post that remains unanswered where someone had the same Database Vendor Code 53. I don't know what that error means, spent a considerable amount of time researching that before asking this question.
Lastly, it appears that this error only happens when the report is pulling data from a Stored Procedure rather than Tables/Views. If I re-copy the previous reports, they still work.
The ODBC drivers haven't changed, nor should they. They are fully up to date on that server machine.
I can't think of anything else that would be indicative of anything other than this is a bug. Here is the error text as it shows up in the event log:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/7/2011 3:49:50 PM
Event time (UTC): 12/7/2011 11:49:50 PM
Event ID: 38ce5b5487984e8aa8d2b84493d859a8
Event sequence: 17
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/739252194/Root-1-129677751941252500
Trust level: Full
Application Virtual Path: /
Application Path: D:\Websites\ACE5\Clients\TST\
Machine name: ACE1
Process information:
Process ID: 5436
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: InternalException
Exception message: Failed to open the connection.
Failed to open the connection.
Details: [Database Vendor Code: 53 ]
Failed to open the connection.
Details: [Database Vendor Code: 53 ]
Failed to open the connection.
PackSlipTST0 {638463B4-2196-492A-BD6E-9D82CB1862D5}.rpt
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName)
at Distribution_PackingSlips_default.ExportPackingSlips(String CrystalReportPath, Boolean UseStoredProcedure)
at Distribution_PackingSlips_default.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Failed to open the connection.
Failed to open the connection.
Details: [Database Vendor Code: 53 ]
Failed to open the connection.
Details: [Database Vendor Code: 53 ]
Failed to open the connection.
PackSlipTST0 {638463B4-2196-492A-BD6E-9D82CB1862D5}.rpt
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)Lots of great info here, except for the database; MS SQL? Oracle? Etc?
Database Vendor Code 53 is an error code that the CR engine simply passes straight from the database it's self. E.g.; look at your database error code and you should be able to find a verbose description of the error.
As a test, what happens if you add the report to your project and run it in the CR design part of the .NET IDE?
- A quick google search of Error 53 (for MS SQL - an assumption) comes up with a number of good hits. E.g.;
http://social.msdn.microsoft.com/Forums/en-AU/sqlgetstarted/thread/27684811-1a59-4273-b7ed-3cc990b4f20a
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
Edited by: Ludek Uher on Dec 8, 2011 6:31 AM
Maybe you are looking for
-
Cannot view or print data in fillable form fields
I created a fillable form and users complete the form and email back to me. For some, but not all, users, when I get their form, the data in the fields is not visible unless I click on field. At first I thought they emailed me a blank form, but whe
-
How to use ABAP to load data to a DSO
I have a use case where we load data to a Direct Update DSO with an ABAP program. We do this by directly writing to the table /BIC/Atablename00. While this approach has been working for us so far, it has a few drawbacks: - no requests are generated (
-
I imported a bunch of video into an "event" in iMovie. I ended up only using a small amount for my movie. Can I trash all the un-used footage in an event? If so, how do I do that? Can it be done per event? Thanks
-
MacBook pro stopped connecting to wifi
It worked fine until cable company reset modem... All other laptops, iPads, etc. still work on wifi (home network)... What happened?
-
hi, I booted my newly built pc last night for the first time. It booted and made it to post with a good screen view of the bios.I began checking the bios to make any setting like changing from a pci to agp card etc. After saving the changes and re