cfstoredproc call for Oracle - ORA-06550

Description

This worked with Lucee release 5.2.6.24:

<cfstoredproc procedure="contens_reset_sequence" datasource="contens5_unittests_oracle">
<cfprocparam cfsqltype="cf_sql_varchar" type="in" variable="seqname" value="seq_co_logsessions">
<cfprocparam cfsqltype="cf_sql_varchar" type="in" variable="tblname" value="co_logsessions">
<cfprocparam cfsqltype="cf_sql_varchar" type="in" variable="tblfield" value="logsession_ID">
</cfstoredproc>

But not with later releases, see attached image

"ERROR","http-nio-80-exec-7","04/26/2018","11:36:15","",";lucee.runtime.exp.DatabaseException
ORA-06550: Zeile 1, Spalte 7:
PLS-00306: Falsche Anzahl oder Typen von Argumenten in Aufruf von 'CONTENS_RESET_SEQUENCE'
ORA-06550: Zeile 1, Spalte 7:
PL/SQL: Statement ignored
;lucee.runtime.exp.DatabaseException:
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1059)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:587)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:220)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:48)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:938)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1150)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:4798)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:4901)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:5631)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1385)
at lucee.runtime.tag.StoredProc.doEndTag(StoredProc.java:585)
at test_oracle_sp_cfm$cf.call(/test_oracle_sp.cfm:5)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:933)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823)
at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:64)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:45)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2464)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2454)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2427)
at lucee.runtime.engine.Request.exe(Request.java:44)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1091)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1039)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

Environment

All

Attachments

4
  • 27 May 2018, 10:32 pm
  • 27 Apr 2018, 04:03 pm
  • 27 Apr 2018, 06:14 am
  • 26 Apr 2018, 01:58 pm

Activity

Show:

Igal Sapir 23 July 2019 at 03:58
Edited

Can users affected by this issue test Lucee 5.3.4.13-SNAPSHOT to ensure that there is no regression? Thank you!

Igal Sapir 4 July 2018 at 15:49

Great! Thank you for your help on this issue.

Harry Klein 4 July 2018 at 06:57

I tested in release Lucee 5.2.9.16-SNAPSHOT and can confirm that it works as expected again!
Thanks

Igal Sapir 3 July 2018 at 21:30

I was able to reproduce the issue, thank you.

I believe that the issue is now resolved as of version 5.2.9.15-SNAPSHOT.

In my testing I still get an error:

ORA-00942: table or view does not exist
ORA-06512: at "SYSTEM.CONTENS_RESET_SEQUENCE", line 12
ORA-06512: at line 1

But I am getting the same error in SQL Developer:

Error starting at line : 22 in command -
call contens_reset_sequence('seq_co_logsessions', 'co_logsessions', 'logsession_ID')
Error report -
ORA-00942: table or view does not exist
ORA-06512: at "SYSTEM.CONTENS_RESET_SEQUENCE", line 12
00942. 00000 - "table or view does not exist"
*Cause:
*Action:

I believe that the objects that I pass to the procedure do not exist in my system, and that's the reason for my errors.

Can you please test and confirm that the issue is resolved? I will keep the ticket open pending your feedback.

Thank you.

Igal Sapir 3 July 2018 at 17:54

Working on it today. Will post my findings soon.

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 26 April 2018 at 13:59
Updated 23 July 2019 at 22:43
Resolved 4 July 2018 at 15:50