Error in calling up function 'BAPI_APOATP_CHECK'
Dear Experts,
I'm encountering the error Error in calling up function 'BAPI_APOATP_CHECK' in APO server 'SXXCLNT100': Access via 'NULL'object reference not possible while performing the ATP check. However I'm getting this error for some materials. Has anyone of you encountered similar issue? Please suggest.
Thanks,
Krishna
Hi,
The FM AVAILABILITY_CHECK calls BAPI_APOATP_CHECK as APO side and many reasons are there to show this error while doing ATP Check or saving sales order.It may sometime for temporary reason due to CIF queue where sales order might got struck.
As in your case it says ""Access via 'NULL'object reference not possible"" for few materials.Please check the material master and product master in ECC and APO system respectively along with CIF stuff.
Thanks,
Dipankar
Similar Messages
-
Rule Based ATP- Error in calling up function 'BAPI_APOATP_CHECK' in APO ser
Hi Experts
I hae configured Rule Based ATP with Multi-Level ATP check. I have completed all configuration required for Rule Based ATP but still facing an error
" Error in calling up function 'BAPI_APOATP_CHECK' in APO server 'SC5CLNT001': Check instructions 30 / A does not exist for locat"
Have any of you ever encountered this error?
Regards,
Sushovan DattaDear Sushovan,
Most likely cause of the above error is a missing requirement class in R/3 and missing Check mode in APO for material and plant combination.
Please read the F1-Help for field check mode in APO:
"Together with the business event, the check mode derived from the product master defines the type and scope of the checks carried out. It also controls forecast consumption.
SD (R/3) uses the requirement class of the requirement as check mode. As of R/3 Plugin 2000.1, the requirement class is transferred (via the strategy group in the material master) to the location-specific APO product master (ATP tab page). In the process, no plausibility check is carried out. For this reason, you should not enter any other check mode in the product master. (The check mode in the product master must agree with the requirement class from the R/3 system.)"
So please create for your material in corresponding plant the requirement class ' 030' assigned to the strategy group in MRP3 in R/3 and the same in the check mode field in //mat1 in APO.
Afterwards the gatp check will find the check mode and business event (check instructions) and the error will be not appear again.
Regards,
Tibor -
I am getting error Error in calling up function 'BAPI_APOATP_CHECK' in APO server The current application triggered a termination
when triggering for gatp.Hi Virender,
This error can be experienced due to many reasons. based on my experience below reasons can cause this issue.
1) If you are using allocation check if allocation is correctly set.
2) In case you are using custom enhancements / user exits (in SD / GATP / CIF) check if any of them, causing this issue.
In my case correction of allocation setup could resolve this issue, so check what is the reason in your case.
Rgds
Sourabh -
Error while calling a function.
Hi,
below is my callable statement through which am calling a function which returns the service years of a person with personid as parameter.
But dont know why am getting an error which is returning the serviceyrs as 0.
when i try to debug, the problem is in this statement
System.out.println("the output1 is "+cs.getInt(1));
is there any problem with my code.
please look the code below
thanks
kumar
OADBTransaction txn=getOADBTransaction();
OracleCallableStatement cs = (OracleCallableStatement) txn.createCallableStatement("begin :1:=LMIG_UTILITY_PKG.GET_TOTAL_SERVICE(p_person_id => :2); end;",1);
try
cs.registerOutParameter(1,Types.INTEGER);
cs.setInt(2,Integer.parseInt(pid));
System.out.println("person id is "+pid);
System.out.println("the output1 is "+cs.getInt(1));
cs.execute();
serviceyrs= cs.getInt(1);
cs.close();
catch(SQLException sqle)
System.out.println("ERROR"+sqle.toString());
System.out.println("Service years are "+serviceyrs);Hi, Guess u are missing the connection to the JDBC call.
Try the following...it worked for me..
Connection conn = this.getOADBTransaction().getJdbcConnection();
OracleCallableStatement ocs = null;
String param = null;
try {
String stmt = "BEGIN :1 := <PkgName>.<FunctionName>(:2); end;";
ocs = (OracleCallableStatement)conn.prepareCall(stmt);
ocs.registerOutParameter(1, OracleTypes.CHAR);
ocs.setString(2, <param>);
ocs.execute();
param = ocs.getString(1);
} catch(SQLException se)
{ throw OAException.wrapperException(se);
finally
try {
ocs.close();
return(param);
} catch(Exception e)
throw OAException.wrapperException(e);
} -
Error when call RFC Function module in R/3
Dear All,
We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
we are facing the error "Error while lookup Exception during processing the payload. Error when calling an adapter by using the communication channel CC_PPPI_MES_RFC_Rcvr (Party: , Service: WCD_320, Object ID: 16563889b449328eac76caa6a3bc592e) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'. Cause Exception: 'com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.adapter.rfc.util.bapi.BapiException: Parameter with name RETURN not found.'."
This is the first time we are doing this configuration.
Could you please let me know what woulbe the reason.read the original message
We are trying to call RFC function module CBIF_GLM1_PROCESS_ORDER_READ (This is not a BAPI and also not released ) in R/3 from XI system.
I am talking about the above Receiver RFC channel which you guys are using to call R/3 from XI. That where you need to change the commit parameter -
ERROR:When calling a Function
Hi all,
i am trying to call a function from AM.and when i run the page i got this error. anbody please help me guys.
its very urgent.
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SQL_PLSQL_ERROR. Tokens: ROUTINE = AppsConnectionManager.appsInitialize(int,int,int,int,Connection):-1,-1,-1,0,oracle.jdbc.driver.OracleConnection@f7a4ba; REASON = java.sql.SQLException: No more data to read from socket; ERRNO = 17410; (Could not lookup message because there is no database connection)
at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:988)
at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:866)
at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:219)
at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
at runregion.jspService(runregion.jsp:96)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: No more data to read from socket; (Could not lookup message because there is no database connection)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980)
at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:866)
at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:219)
at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
at runregion.jspService(runregion.jsp:96)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:963)
at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
at oracle.jdbc.ttc7.Oopen.receive(Oopen.java:105)
at oracle.jdbc.ttc7.TTC7Protocol.open(TTC7Protocol.java:611)
at oracle.jdbc.driver.OracleStatement.open(OracleStatement.java:576)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2809)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:698)
at oracle.apps.fnd.security.AppsConnectionManager.appsInitialize(AppsConnectionManager.java:472)
at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:319)
at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1773)
at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2460)
at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2398)
at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2257)
at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2072)
at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1976)
at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1993)
at oracle.apps.fnd.common.Context.getJDBCConnection(Context.java:1541)
at oracle.apps.fnd.framework.CreateIcxSession.getConnection(CreateIcxSession.java:559)
at oracle.apps.fnd.framework.CreateIcxSession.getIntValue(CreateIcxSession.java:346)
at oracle.apps.fnd.framework.CreateIcxSession.getUserID(CreateIcxSession.java:323)
at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:148)
at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
at runregion.jspService(runregion.jsp:96)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: No more data to read from socket; (Could not lookup message because there is no database connection)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980)
at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:866)
at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:219)
at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
at runregion.jspService(runregion.jsp:96)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:963)
at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
at oracle.jdbc.ttc7.Oopen.receive(Oopen.java:105)
at oracle.jdbc.ttc7.TTC7Protocol.open(TTC7Protocol.java:611)
at oracle.jdbc.driver.OracleStatement.open(OracleStatement.java:576)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2809)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:698)
at oracle.apps.fnd.security.AppsConnectionManager.appsInitialize(AppsConnectionManager.java:472)
at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:319)
at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1773)
at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2460)
at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2398)
at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2257)
at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2072)
at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1976)
at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1993)
at oracle.apps.fnd.common.Context.getJDBCConnection(Context.java:1541)
at oracle.apps.fnd.framework.CreateIcxSession.getConnection(CreateIcxSession.java:559)
at oracle.apps.fnd.framework.CreateIcxSession.getIntValue(CreateIcxSession.java:346)
at oracle.apps.fnd.framework.CreateIcxSession.getUserID(CreateIcxSession.java:323)
at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:148)
at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
at runregion.jspService(runregion.jsp:96)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)its very urgent.Oh no! Sorry I couldn't respond sooner - I do hope the patient who was undergoing his critical surgery that obviously was held up because you couldn't call your function has survived!
Looks like the connection was dropped/terminated. What does your function do? You haven't really given any information whatsoever that would enable someone to help you (such as version, perhaps a code snippet, etc)
John -
ERROR when called TO_CHAR function from XMLQuery
when I tried to execute the followingin XMLQuery by calling TO_CHAR() whithin this query I am getting this error"ORA-19237: XP0017 - unable to resolve call to function - fn:TO_CHAR
any help/ideas on the follwing would be much appreciated.
Thanks
Abdul
select XMLQuery('<marketfeed id="f1" action="CREATE" source="marketfeed1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<competitions>
{for $f in ora:view("fixture")
for $c in ora:view("competition")
for $homes in ora:view("squad")
for $aways in ora:view("squad")
for $homet in ora:view("team")
for $awayt in ora:view("team")
where $f/ROW/GID = "g321667"
and $f/ROW/COMPETITIONID = $c/ROW/ID
and $f/ROW/HOMESQUADID = $homes/ROW/ID
and $f/ROW/AWAYSQUADID = $aways/ROW/ID
and $homes/ROW/TEAMID = $homet/ROW/ID
and $aways/ROW/TEAMID = $awayt/ROW/ID
return
<competition id="{$c/ROW/ID/text()}"
shortname="{$c/ROW/NAME/text()}"
name="{$c/ROW/NAME/text()}">
<teamlists>
<teamitam name="{$homet/ROW/NAME/text()}"
id = "{$homes/ROW/TID/text()}" />
<teamitem name="{$awayt/ROW/NAME/text()}"
id = "{$aways/ROW/TID/text()}" />
</teamlists>
<matches>
<match id="{$f/ROW/GID/text()}"
venue="{$f/ROW/VENUE/text()}"
matchdate="{TO_CHAR($f/ROW/STARTDATE/text(), "YY-MM-DD")}"
name="{concat($homet/ROW/NAME/text(), " v ", $awayt/ROW/NAME/text())}"
>
<teams>
<team home="H" id = "{$homes/ROW/TID/text()}" />
<team home="A" id = "{$aways/ROW/TID/text()}" />
</teams>
</match>
</matches>
</competition>
</competitions>
</marketfeed>'
returning content
from dual
Edited by: QAbdul on 26-Oct-2010 06:44Hi,
QAbdul wrote:
when I tried to execute the followingin XMLQuery by calling TO_CHAR() whithin this query I am getting this error"ORA-19237: XP0017 - unable to resolve call to function - fn:TO_CHARTO_CHAR is a SQL function, XQuery is unaware of it.
XPath 2.0 specifications define a fn:format-date function but Oracle has not included yet in its XQuery implementation.
Easiest way to go is A_Non's solution, but if you need to format at multiple places in the query, you can declare a local XQuery function.
For example, to format to "DD/MM/YYYY" from the canonical xs:date format "YYYY-MM-DD" :
{code}
declare function local:format-date($d as xs:date) as xs:string
let $s := xs:string($d)
return concat(
substring($s, 10, 2), "/",
substring($s, 7, 2), "/",
substring($s, 2, 4)
{code}
and an example of use :
{code}
SQL> CREATE TABLE test_xqdate AS SELECT sysdate dt FROM dual;
Table created
SQL> SELECT *
2 FROM XMLTable(
3 'declare function local:format-date($d as xs:date) as xs:string
4 {
5 let $s := xs:string($d)
6 return concat(
7 substring($s, 10, 2), "/",
8 substring($s, 7, 2), "/",
9 substring($s, 2, 4)
10 )
11 }; (: :)
12 for $i in ora:view("TEST_XQDATE")/ROW/DT
13 return element e {
14 attribute xs_date_format { $i/text() },
15 attribute local_format { local:format-date($i) }
16 }'
17 COLUMNS
18 xs_date_format VARCHAR2(10) PATH '@xs_date_format',
19 local_format VARCHAR2(10) PATH '@local_format'
20 )
21 ;
XS_DATE_FORMAT LOCAL_FORMAT
2010-10-28 28/10/2010
{code} -
Error while calling the function which returns SQL Query!!!
Hi,
I have a Function which returns SQL query. I am calling this function in my APEX report region source.
The query is dynamic SQL and its size varies based on the dynamic "where clause" condition.
But I am not able to execute this function.It gives me the following error in APEX region source.
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Even in SQL* Plus or SQL developer also same error .
The length of my query is more than 4000. I tried changing the variable size which holds my query in the function.
Earlier it was
l_query varchar2(4000)
Now I changed to
l_query varchar2(32767).
Still it is throwing the same error.
Can anybody help me to resolve this.???
Thanks
AlakaHi Varad,
I am already using 32k of varchar2. Then also it is not working.
It is giving the same error. I think there is something to do with buffer size.
My query size is not more than 4200. Even if i give 32k of varchar2 also buffer is able to hold only 3997 size of the query only.
Error is
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Tried CLOB also. It is not working.
Any other solution for this.
Thanks
Alaka -
I have created a simplee application that controls a piece of equipment with all control via a supplied dll. Hence, there are a number of Call Library Function Nodes within the code and a modicum of other LabVIEW code. Everything works fine as a LabVIEW application, but when converted to an executable, although the application runs and functions, as soon as any Call Library Function Node is executed, calling from the dll, I get the C++ debug error in the attachment.
Is this something that I can solve from within LabVIEW, or is the problem likely buried in the dll?
Damian
Attachments:
CLFN error.JPG 22 KBHi Wise,
Try building an executable from a very simple VI that makes one call to the dll. Have you also try using the Call Library Function node on other simple dlls that you know will work?
Regards,
Stanley Hu
National Instruments
Applications Engineering
http://www.ni.com/support -
Error while calling FM : Function parameter "PE_LFA1" is unknown
Dear Experts,
I am trying to call a FM in my code, but somehow I am getting the following error .Please help !
My code is :
DATA : VENDOR_NO TYPE WSRS_SHVDST_RES-VENDOR_NO,
PE_LFA2 TYPE LFA1,
PE_ADDR2 TYPE BAPIADDR1,
PE_ADRPRT2 TYPE WISO_ADRPRT,
PE_RETURN2 TYPE WSRS_RETURN,
PE_LFM2 TYPE LFM1,
PE_LFB2 TYPE LFB1.
DATA:
node_vendor TYPE REF TO if_wd_context_node,
elem_vendor TYPE REF TO if_wd_context_element,
stru_vendor TYPE if_vendor_view=>element_vendor ,
item_vendorinp LIKE stru_vendor-vendorinp.
navigate from <CONTEXT> to <VENDOR> via lead selection
node_vendor = wd_context->get_child_node( name = if_vendor_view=>wdctx_vendor ).
get element via lead selection
elem_vendor = node_vendor->get_element( ).
get single attribute
elem_vendor->get_attribute(
EXPORTING
name = `VENDORINP`
IMPORTING
value = item_vendorinp ).
VENDOR_NO = item_vendorinp.
CALL FUNCTION 'WSRS_O_VENDOR_GET_DETAIL'
EXPORTING
PE_LFA1 = PE_LFA2
PE_ADDR1 = PE_ADDR2
PE_ADRPRT = PE_ADRPRT2
PE_RETURN =PE_RETURN2
PE_LFM1 = PE_LFM2
PE_LFB1 = PE_LFB2
IMPORTING
PI_VENDOR_NO = VENDOR_NO.
My Error is :
Note
The following error text was processed in the system HE6 : Function parameter "PE_LFA1" is unknown.
The error occurred on the application server hsdnt24s11_HE6_00 and in the work process 5 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: ONACTIONFETCH_VENDOR_DETAILS of program /1BCWDY/A8XPPCRFM5I0CTSGLFDT==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/A8XPPCRFM5I0CTSGLFDT==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Please help.Hi,
I will ask this way, from where did you get list of parameters for this FM? Try using pattern to call this FM, than you will be proposed with correct interface.
EDIT:
After checking it in system you should switch IMPORTING and EXPORTING
CALL FUNCTION 'WSRS_O_VENDOR_GET_DETAIL'
EXPORTING
PI_VENDOR_NO = '99'
* PI_ACCEPT_NOTFOUND =
* PI_PURCH_ORG =
* PI_COMP_CODE =
IMPORTING
PE_LFA1 = lv
* PE_ADDR1 =
* PE_ADRPRT =
* PE_RETURN =
* PE_LFM1 =
* PE_LFB1 =
Best regards
Marcin Cholewczuk
Edited by: Marcin Cholewczuk on Apr 12, 2011 1:20 PM -
Getting Error while calling Flex function from JavaScript
Hi,
I have an aspx page, which shows charts as per dropdown selection,
I am using flex charts for flex.In aspx page, i am calling an mxml function using javascript.below is the code for javascript in aspx.
Javascript code in aspx page:
<script type="text/javascript">
function callApp(formid) {
try {
var objectChart = document.getElementById("statisticsChart");
alert(objectChart.id);
objectChart.myFlexFunction(formid,get('<%=HiddenDashboardWS.ClientID %>').value);
catch (e) {
alert(e.message);
function getDropDownListvalue() {
var IndexValue = $get('<%=FormDropDownList.ClientID %>').selectedIndex;
var SelectedVal = $get('<%=FormDropDownList.ClientID %>').options[IndexValue].value;
// alert(SelectedVal);
callApp(SelectedVal);
</script>
Html code where dropdown control is placed
<asp:DropDownList CssClass="combo" ID="FormDropDownList" runat="server" AutoPostBack="false"></asp:DropDownList>
<object id="statisticsChart" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
height="220" width="680">
<param name="src" value="../swf/DashboardStatisticChart.swf" />
<param name="flashVars" value="" />
<embed name="statisticsChart" src="../swf/DashboardStatisticChart.swf" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" height="220" width="680" flashvars=""></embed>
</object>
Mxml code:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="white" creationComplete="initApp();" >
<mx:script>
public function initApp():void {
ExternalInterface.addCallback("myFlexFunction",myFunc);
public function myFunc(s:String,wsurl:String):void {
Formid.text = s;
webService.wsdl = wsurl;
Alert.show("webservice");
//Getdata calls webservice and gets xml data
GetData();
//showchart() will draw chart
ShowChart();
</mx:script>
</mx:Application>
Above code works perfect in ie, but in firefox, it gives An error saying “chartObject.MyFlexFunction is not a function”.
I am getting the object in javascript in all the browsers, but not the functions!
Does anyone has worked with this?
Any help will be highly appreciated.
Regards,
Nirav PatelFound the solution from here... http://74.125.153.132/search?q=cache:4BC9BY04B5EJ:livedocs.adobe.com/flash/8/main/00002201 .html+externalinterface.addcallback+not+working&cd=1&hl=en&ct=clnk&gl=in
Hope it will help others...
Regards, -
Invalid column type error while calling db function.
We are getting an exception while calling the database function which returns a Varray of objects. We are using jpub to generate the wrapper method, ran sqlj to generate the JDBC code. The environment is weblogic 5.1 EJB container with ORacle 8.1.6.0.0 database. The JDBC driver is 8.1.7 thin, sqlj version is 8.1.7. I am giving below the exception.
When the sqlj option profile=false is not set, the error is Classcast exception. Appraently the weblogic connection object can not be used to do oracle specific calls. If somebody has done similar things(creating a bean which calls the stored function with weblogic which returns the oracle object types) or know what the issue is, please let me know.
Thanks,
Vijay.
stackTrace:
java.sql.SQLException: Invalid column type
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(SQLException.java:43)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:273)
at oracle.jdbc.driver.OracleStatement.get_internal_type(OracleStatement.java:4560)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:225)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:350)
at weblogic.jdbcbase.pool.Statement.registerOutParameter(Statement.java:438)
at sqlj.runtime.profile.ref.RTStatementJDBCCallable.registerOutParameter(RTStatementJDBCCallable.java:135)
at sqlj.runtime.profile.ref.ParamRegProfile$ParamRegCachedStatement.registerParameters(Compiled Code)
at sqlj.runtime.profile.ref.ParamRegProfile$ParamRegCachedStatement.getStatement(ParamRegProfile.java:101)
at sqlj.runtime.profile.ref.CachedStatementProfileWrapper.getStatement(CachedStatementProfileWrapper.java:134)
at sqlj.runtime.ExecutionContext$StatementStack.setStatement(ExecutionContext.java:995)
at sqlj.runtime.ExecutionContext.registerStatement(ExecutionContext.java:523)
at com.xpede.calculator.processor.jdbc.NewPrdGroupPkg.maincalculator(NewPrdGroupPkg.java:341)
----------------------Weblogic essentially wrappers the Oracle JDBC driver - as you can see from the stack trace, it does not just wrapper the connection object, but also the statement object.
The SQLJ runtime does not recognize the JDBC layer anymore as an Oracle JDBC driver.
What is happening at runtime may be the following:
(1) The invalid column type likely results from SQLJ attempting to register the type as Types.OTHER (code 1111). This typecode is not supported by Oracle JDBC.
(2) The class cast exception when using Oracle objects may result from a getObject() call which returns the value in default format (such as oracle.sql.ARRAY) rather than the JPublisher-generated wrapper object.
Are you using JDK 1.2 / runtime12.zip?
In that case you can try the standard (java.sql.)SQLData interface (in JPub: -usertypes=jdbc). However, this interface will not support wrappers for VARRAYs. -
Error when call a function in other scheme
Hi
I have a function in a scheme
OWNER1.FNOMEUSERi give grant from OWNER1 TO owner2
GRANT EXECUTE ON OWNER1.FNOMEUSER TO OWNER2;But when I call the funcion in Owner2, It show me error
select Owner1.FNOMEUSER('teste') from dual
ORA-00904: : invalid identifierSomebody Know Why ?
Edited by: muttleychess on Nov 30, 2009 3:42 PMOnly that after Grant in a Owner I connect in other owner for to execute SELECT return me errorClear as MUD!
Grant in a OwnerWhich GRANT?
Which Owner?
I connect in other ownerOther Owner?
as in ID10T?
Is CUT & PASTE broken for you?
Why do you describe using obsucre references & indefinite pronouns.
PLEASE use CUT & PASTE of whole session so we can see totally what you do & how Oracle responds.
SHOW us; do not tell us! -
Error on calling niScope_fetchComplex function with simulated Ni PCI-5105 device
On calling the niScope_fetchComplex function, I get the following error message:
"The requested fetch data type does not match the acquisition data type."
I was able to successfully execute the niScope_fetch function. I have attached the C-code I used to this post (Visual Studio 2012 project). I am using a simulated NI PCI-5105 device on NI-MAX.
Any information on why this error is generated and how to resolve the error would be helpful. Thank you for your help.
Attachments:
fetchComplexNiSc.zip 1514 KBYou can check out the example "niScope EX OSP Baseband Decimation.vi" to see how the fetch complex is used. For your particular error, you need to set the acqusition mode to "Complex", which is by default "Real".
This can be done using the niScope Property Node "Data Processing Mode", or since you are using the C API, you need to configure the Attribute "NISCOPE_ATTR_DDC_DATA_PROCESSING_MODE".
I hope this helps.
-Nathan
Product Support Engineer
National Instruments -
Using XML sequence Tag with updatexml() errors when called as function?
Hello,
I'm having a very difficult time with this error. I was hoping someone could shed some light onto why this is happening. It is 100% reproducible on my end. When I run the problematic code, I am given a "ORA-03113: end-of-file on communication channel" which is actually due to
"ORA-07445: exception encountered: core dump [kolasaRead()+66] [SIGSEGV] [ADDR:0x64] [PC:0x2250968] [Address not mapped to object] []"
Set up scripts:*
CREATE TABLE test (id NUMBER
,xml XMLTYPE);
CREATE OR REPLACE FUNCTION test_replace_metadata(p_metadata IN XMLTYPE)
RETURN XMLTYPE
IS
l_metadata_xml XMLTYPE;
BEGIN
l_metadata_xml := p_metadata;
SELECT UPDATEXML(l_metadata_xml
,'/DICOM_OBJECT/*[@tag="00100020"]/text()'
,'1010101010101010101'
,'xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0"')
INTO l_metadata_xml
FROM DUAL;
RETURN l_metadata_xml;
END test_replace_metadata;
To select the resulting rows:*
select rownum
,id
,xml
--,var
,TO_CHAR(EXTRACTVALUE(xml
,'/DICOM_OBJECT/*[@name="Patient ID"]'
,'xmlns=http://xmlns.oracle.com/ord/dicom/metadata_1_0')) "PatientID"
from test
order by rownum desc
The following code works:*
DECLARE
l_metadata VARCHAR2(32767)
:= '<?xml version="1.0"?>
<DICOM_OBJECT xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/ord/dicom/metadata_1_0 http://xmlns.oracle.com/ord/dicom/metadata_1_0">
<LONG_STRING tag="00100020" definer="DICOM" name="Patient ID" offset="816" length="6">#00100020#</LONG_STRING>
<SEQUENCE xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0" tag="00082218" definer="DICOM" name="Anatomic Region Sequence" offset="694" length="76">
<ITEM>
<SHORT_STRING tag="00080100" definer="DICOM" name="Code Value" offset="722" length="8">T-AA000</SHORT_STRING>
<SHORT_STRING tag="00080102" definer="DICOM" name="Coding Scheme Designator" offset="738" length="4">SRT</SHORT_STRING>
<LONG_STRING tag="00080104" definer="DICOM" name="Code Meaning" offset="750" length="4">Eye</LONG_STRING>
</ITEM>
</SEQUENCE>
</DICOM_OBJECT>';
l_metadata_xml XMLTYPE;
BEGIN
l_metadata_xml := xmltype(l_metadata, 'http://xmlns.oracle.com/ord/dicom/metadata_1_0');
SELECT UPDATEXML(l_metadata_xml
,'/DICOM_OBJECT/*[@name="Patient ID"]/text()'
,'dayodayodayo'
,'xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0"')
INTO l_metadata_xml
FROM DUAL;
INSERT INTO test(id
,xml)
VALUES (7
,l_metadata_xml);
END;
This code doesn't work, and gives the error mentioned:*
DECLARE
l_metadata VARCHAR2(32767)
:= '<?xml version="1.0"?>
<DICOM_OBJECT xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/ord/dicom/metadata_1_0 http://xmlns.oracle.com/ord/dicom/metadata_1_0">
<LONG_STRING tag="00100020" definer="DICOM" name="Patient ID" offset="816" length="6">#00100020#</LONG_STRING>
<SEQUENCE xmlns="http://xmlns.oracle.com/ord/dicom/metadata_1_0" tag="00082218" definer="DICOM" name="Anatomic Region Sequence" offset="694" length="76">
<ITEM>
<SHORT_STRING tag="00080100" definer="DICOM" name="Code Value" offset="722" length="8">T-AA000</SHORT_STRING>
<SHORT_STRING tag="00080102" definer="DICOM" name="Coding Scheme Designator" offset="738" length="4">SRT</SHORT_STRING>
<LONG_STRING tag="00080104" definer="DICOM" name="Code Meaning" offset="750" length="4">Eye</LONG_STRING>
</ITEM>
</SEQUENCE>
</DICOM_OBJECT>';
l_metadata_xml XMLTYPE;
BEGIN
l_metadata_xml := xmltype(l_metadata, 'http://xmlns.oracle.com/ord/dicom/metadata_1_0');
--This is the difference from the above code
l_metadata_xml := test_replace_metadata(l_metadata_xml);
INSERT INTO test(id
,xml)
VALUES (7
,l_metadata_xml);
END;
This is the full text of the error message:*
"ORA-03113: end-of-file on communication channel
Process ID: 10847
Session ID: 321 Serial number: 33192"Looking into the trace files, I saw this information (This is from a different occurance, but it has remained the same):
Trace file (omitted)
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /opt/app/oracle/product/11.1.0/db_1/
System name: Linux
Node name: (omitted)
Release: 2.6.18-92.el5
Version: #1 SMP Tue Apr 29 13:16:15 EDT 2008
Machine: x86_64
Instance name: (omitted)
Redo thread mounted by this instance: 1
Oracle process number: 53
Unix process pid: 22883, image: (omitted)
*** 2009-06-24 13:47:31.198
*** SESSION ID:(omitted)
*** CLIENT ID:(omitted)
*** SERVICE NAME:(omitted)
*** MODULE NAME:(omitted)
*** ACTION NAME:(omitted)
Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x64] [PC:0x2250968, kolasaRead()+66]
DDE: Problem Key 'ORA 7445 [kolasaRead()+66]' was flood controlled (0x6) (incident: 70951)
ORA-07445: exception encountered: core dump [kolasaRead()+66] [SIGSEGV] [ADDR:0x64] [PC:0x2250968] [Address not mapped to object] []
ssexhd: crashing the process...
Shadow_Core_Dump = PARTIAL Why is this happening? Also, When I remove the call to the function or if I remove the SEQUENCE element from the xml everything works fine.
Any ideas?
Edited by: rcdev on Jun 25, 2009 2:17 PM - Added code blocks for readability.
Edited by: rcdev on Jun 25, 2009 2:28 PMIn short, something inside Oracle is blowing up that shouldn't be, hence the ORA-7445. I did a search on MetaLink but it didn't turn up anything for your version and the internal function that is blowing up. Given you are on 11.1.0.7, I'm going to assume you have some service contract with Oracle and so can open a SR with them. That would be your best bet for getting it resolved given the internal Oracle error you are encountering.
The next best option would be to post this question on the {forum:id=34} forum given some of the people that watch that forum.
Maybe you are looking for
-
RSS Webpart no longer showing in the Content Rollup section
I have created several pages containing the RSS Feed webpart. I have one page that has about 8 of them working just fine. Up until Monday. I went to add another one and couldn't find the webpart. it was just gone. Actually, there were about 7 or
-
I'm unable to get a capital w when I use the left shift key. I am able to capitalize every other letter with the left shift key and I can get a capital W with the right shift key and the caps lock button. Anybody have a similar experience or have any
-
MacBook Pro w/Retina display
I bought a MacBook Pro from craigslist and it doesn't have an os. How can I install one?
-
How do I allocate more memory to Photoshop CS5?
I'm using a number of plugins with Photoshop, and Photoshop often closes automatically or freezes. The plugins use considerable memory (>1GB) and the problem may be that there's not enough memory allocated to Photoshop + plugins. Under preference
-
Itunes install problem - genre-jazz
Hi guys - hope you can help us out... Basically can't re-install itunes as it gets blocked at genre-jazz. Grrr It happened after we downloaded some music from Vuze and can't get back into itunes - always goes to windows installer. Yes - we do have ad