Error in compiling an entity object
I am new to OAF. I am trying to create a page. I created a new workspace, two projects, In one project an entity object and in the 2nd project created a view object based on the entity object and an application module. I am getting some error when I rebuild the workspace. I have not followed the naming convention.
Name of the entity object:TlkApInvoicesHeaderTmp.
Please someone help. Thank you.
Error is
C:\OA\OAF\jdevhome\jdev\myprojects\apps\oracle\ak\prativa\testing\TlkApInvoicesHeaderTmpImpl.java
Error(12,8): class apps.oracle.ak.prativa.testing.TlkApInvoicesHeaderTmpImpl should be declared abstract; it does not define method setLastUpdateLogin(oracle.jbo.domain.Number) in class oracle.apps.fnd.framework.server.OAEntityImpl
Well, you need to add the WHO columns in the table upon which you are basing your EO. Otherwise you should define your EOImpl as abstract.
--Shiv
Similar Messages
-
Error while creating new entity object.
Hi all
I'm using Jdev 11.1.1.3. I want to create an entity object and Jdev issues an information error saying "Either this is not a valid name or an object with that name already exists."
I found that if the package I'm targeting for the new entity is called "com.test.model.whatever" I cannot create a EO called "Whatever".
I can't find any reference in the fusion developer guide that constraints the entity names to be allowed.
Is there a way to circumvent this issue or is this the way it should be?Sudipto and Suresh, thank you very much for your replies.
I know that changing the package or entity name would work, but was expecting some other kind of workaround, something like giving a full qualified name on some xml or something to avoid the name clash or whatever the problem is.
I do not like packing all the entities together as it goes against my best practice of packing things that change together on the same package. Also I don't like suffix or prefix class names as it goes against my best practice of short descriptive names.
So well, I will have to tinker the names some more and meet you guys half way.
I will now mark this thread as answered, thanks again. -
Error when running the entity object
Hi Experts,
I am learning OAF. I created Application Module, and entity object for table emp and shcema apps.
While running entity object, it's throwing the following error.
Error(17,14): class practice_test_prc1.oracle.apps.mfg.simplepg.schema.server.EmpImpl should be declared abstract; it does not define method setLastUpdateLogin(oracle.jbo.domain.Number) of class oracle.apps.fnd.framework.server.OAEntityImpl
I changed the EmpImpl class as abstract;error was rectified.
I wanted to know why it's is giving that error, Did i make any mistake while creating the entity object?
Awaiting your response.
Thanks in advance.Hi,
---The custom table should contain who columns in table structure.
CREATED_BY Number,
CREATION_DATE Date,
LAST_UPDATE_DATE Date,
LAST_UPDATED_BY Number,
LAST_UPDATE_LOGIN Number
Refer:
How to create a new EO in OAF?
Regards
Meher Irk -
Error when compiling invalid object XLA_00555_AAD_C_011117_PKG
Hello folks,
i am getting error when compiling the following object.
XLA_00555_AAD_C_011117_PKG
here i have mentioned below is what i have done for that invalid object.
SQL> select owner,object_name,object_type
2 from dba_objects
3 where status='INVALID';
OWNER
OBJECT_NAME
OBJECT_TYPE
APPS
XLA_00555_AAD_C_011117_PKG
PACKAGE BODY
SQL> connect apps/apps
Connected.
SQL> alter package XLA_00555_AAD_C_011117_PKG compile body;
Warning: Package Body altered with compilation errors.
SQL> show errors;
Errors for PACKAGE BODY XLA_00555_AAD_C_011117_PKG:
LINE/COL ERROR
32209/1 PLS-00103: Encountered the symbol "NVL" when expecting one of the
following:
* & - + / at mod remainder rem then <an exponent (**)> and or
|| multiset
The symbol "*" was substituted for "NVL" to continue.
32209/23 PLS-00103: Encountered the symbol "=" when expecting one of the
following:
. ( * % & - + / at mod remainder rem then <an exponent (**)>
and or ||
The symbol "* was inserted before "=" to continue.
LINE/COL ERROR
Please Provide me solution as soon as possible
Regards,
FarookNot exactly a custom object.
XLA%AAD%PKG packages will be built dynamically by the XLA's AAD compiler. This will be used while generating the accounting entries.
This error may occur due to two reasons:
a) missing source, which is used in the setup
SELECT *
FROM xla_conditions xc
WHERE application_id = &appl_id
AND xc.source_code IS NOT NULL
AND NOT EXISTS (SELECT 1
FROM xla_sources_b xsb
WHERE xc.source_application_id = xsb.application_id
AND xc.source_type_code = xsb.source_type_code
AND xc.source_code = xsb.source_code);
b) wrong conditions in setup
SELECT application_id,amb_context_code,entity_code,event_class_code
,accounting_line_type_code,accounting_line_code
,segment_rule_detail_id,description_prio_id
FROM xla_conditions xc
WHERE application_id = &appl_id
GROUP BY application_id,amb_context_code,entity_code,event_class_code
,accounting_line_type_code,accounting_line_code
,segment_rule_detail_id,description_prio_id
HAVING COUNT(*) > 1
AND SUM(NVL2(source_code,1,0)) <> SUM(NVL2(logical_operator_code,1,0)) + 1;
For (a) check any patch available for the missing source. Otherwise contact Oracle Support.
For (b) check the condition of the JLT / JED / ADR, whether anything is wrongly entered.
By
Vamsi -
Error while deleting a row from the Entity Object
Hi OAF Guys,
i am unable to delete the newly created row from the entity object.
let me explain my scenario.
1. i have a table of which some of the columns are mandatory.
2. I am writing the code in the validateEntity to check wether the user really enter anything into the fields.
3. My problem is, when the user creates row and wanted to delete the row without entering any details, the validate entity of the EO gets fired which will not allows to delete the row.
Is there any workaround for this problem.
Regards,
Nagesh Manda.Hi Tapash,
I am very sorry for not providing you the complete details of my scenario. Here i am explaining
1. what code you have placed while creating the row and in validation method on EOImpl.
while creating a new row i am initializing the primary key of the EO with the sequence value.
2.When you say, you are unable to delete the row, are you getting a error message ? if yes, custom message or fwk error ?
its not the fwk error, its the custom message which wrote in my validateEntity method of EO to check whether the user had entered all the necesary columns or not.
3.How are you trying to delete the row ?
while the user clicks on the delete switcher i am getting the primary key of the row and searching for the row in the vo and finally deleting it.
The problem arises when the user creates a row, and later doesnt want to enter the details and delete it. Here while deleting the row the validateEntity method of the EO gets fired and doesnt allow me to do so :(.
Any way appreciate your help tapash.
Regards,
Nagesh Manda. -
Error while saving data using two entity objects (EO)
Hi All,
i am using two entity objects for saving the date in two different tables.
on my page i am having two tables and two save buttons for saving the data in the respective tables.
if i am not entering any data on the first table and putting valid data on the second table and click on the save button.
it is going into error saying "Null Pointer Exception"..
i am using getTransaction.commit() in my AM.
so it is trying to save all the data in both the tables.
i want to commit data of the respective table for which the save button is clicked.
Waiting for ur replyHi,
i am using the following code for saving the data in the AM
// TO SAVE THE JOB ASSIGNMENT DETAILS
public void saveJobAssignmentDetails(String projectId)
EmpAssignmentVOImpl empAssignVO = getEmpAssignmentVO1();
getTransaction().commit(); // Line where i am getting the error
rowNumberCountJobAssign = 0; // IN JOB ASSIGNMENT
// EXECUTING THE DISPLAY FUNCTION AGAIN SO TAHT ALL SAVED FIELD ARE READONLY AS REQUIRED
displayJobAssign(projectId);
if(empAssignVO.getRowCount() != 0)
throw new OAException("Job assignment details have been saved successfully. ",OAException.CONFIRMATION);
Stack trace :
oracle.apps.fnd.framework.OAException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO pa_job_bill_rate_overrides(START_DATE_ACTIVE,LAST_UPDATE_DATE,LAST_UPDATED_BY,CREATION_DATE,CREATED_BY,LAST_UPDATE_LOGIN,BILL_RATE_UNIT,PROJECT_ID,RECORD_VERSION_NUMBER,JOB_BILL_RATE_OVERRIDE_ID,RATE_CURRENCY_CODE) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11) RETURNING JOB_BILL_RATE_OVERRIDE_ID, JOB_ID, START_DATE_ACTIVE, LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN, RATE, BILL_RATE_UNIT, PROJECT_ID, TASK_ID, END_DATE_ACTIVE, RECORD_VERSION_NUMBER, RATE_CURRENCY_CODE, DISCOUNT_PERCENTAGE, RATE_DISC_REASON_CODE INTO :12, :13, :14, :15, :16, :17, :18, :19, :20, :21, :22, :23, :24, :25, :26, :27, :28; END;".
at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:972)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:210)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.webui.jobBillRateAndAssignmentCO.processFormRequest(jobBillRateAndAssignmentCO.java:357)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
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: ORA-01400: cannot insert NULL into ("PA"."PA_JOB_BILL_RATE_OVERRIDES"."JOB_ID")
ORA-06512: at line 1
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2154)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2036)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2880)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:698)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:371)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5108)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.schema.server.JobBillRateEOImpl.doDML(JobBillRateEOImpl.java:124)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4015)
at oracle.apps.fnd.framework.server.OAEntityImpl.postChanges(OAEntityImpl.java:1676)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2694)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2540)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1783)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1976)
at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(OADBTransactionImpl.java:680)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.server.jobBillRateAndAssignmentAMImpl.saveJobAssignmentDetails(jobBillRateAndAssignmentAMImpl.java:772)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:189)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.webui.jobBillRateAndAssignmentCO.processFormRequest(jobBillRateAndAssignmentCO.java:357)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
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)
java.sql.SQLException: ORA-01400: cannot insert NULL into ("PA"."PA_JOB_BILL_RATE_OVERRIDES"."JOB_ID")
ORA-06512: at line 1
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2154)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2036)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2880)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:698)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:371)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5108)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.schema.server.JobBillRateEOImpl.doDML(JobBillRateEOImpl.java:124)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4015)
at oracle.apps.fnd.framework.server.OAEntityImpl.postChanges(OAEntityImpl.java:1676)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2694)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2540)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1783)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1976)
at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(OADBTransactionImpl.java:680)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.server.jobBillRateAndAssignmentAMImpl.saveJobAssignmentDetails(jobBillRateAndAssignmentAMImpl.java:772)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:189)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.webui.jobBillRateAndAssignmentCO.processFormRequest(jobBillRateAndAssignmentCO.java:357)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
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) -
Help: 'JBO-26080: Error while selecting entity object' on RefreshDataSource
Hi all,
The Problem:
My page throws out a JBO-26080 error on the RefreshDataSource Tag. This only happens the second time it needs to be refreshed, i.e. the second time the form is submitted to processRequest.jsp (see Background Info below). In my testing I have found that it is definately the RefreshDataSource tag.
Any help will be much appreciated.
Background Info:
I have 2 JSP's, 1 (report.jsp) that displays a table and 1 (processReport.jsp) that runs a stored procedure, implemented as a method in the Application Module, to select data for the table.
The method in the application module:
public void doCurrencyCalc()
CallableStatement st=null;
try // 1
String stmt = "BEGIN CONVERT_MONEY(?,?,?,?,?,?,?,?);END;";
int nParam = 3;
System.out.println("** SQL = " + stmt);
DBTransaction tr = getDBTransaction();
st=tr.createCallableStatement(stmt,DBTransaction.DEFAULT);
st.setString(1, getWB());
System.out.println(" > WB = " + getWB());
st.setLong(2, getKpi());
System.out.println(" > Kpi = " + getKpi());
for(int i=0; i<6; i++)
if(getWbSel(i+1)) st.setString(nParam,String.valueOf(getWbNo(i+1)));
else st.setString(nParam,null);
nParam++;
} // for i
st.executeUpdate();
System.out.println("** Calculation Complete");
} // try 1
catch(SQLException s)
throw new JboException(s);
} // catch SqlException
finally
try{if(st!=null)st.close();}
catch(SQLException s){ }
} // finally
} // end doCurrencyCalc
The processReport jsp:
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import="za.org.saawu.ibs.bc4j.common.IBSbc4jModule"%>
<jbo:ApplicationModule id="IBSbc4jModule" configname="za.org.saawu.ibs.bc4j.IBSbc4jModule.IBSbc4jModuleLocal" releasemode="Stateful" /><%
IBSbc4jModule app = (IBSbc4jModule)IBSbc4jModule.useApplicationModule(true);
String strDisplay = new String(request.getParameter("btnDisplay").toString());
if(request.getParameter("KPIGroup")!="-1") {
app.setKpiGroup(new Long(request.getParameter("KPIGroup")).longValue());
if(request.getParameter("Kpi")!="-1") app.setKpi(new Long(request.getParameter("Kpi")).longValue());
else app.setKpi(0l);
String strParams[] = request.getParameterValues("wbsel");
app.resetWBSel();
if(strParams.length>0) {
for(int nCount=0; nCount<strParams.length; nCount++) {
int nWBNo = app.findWB(strParams[nCount]);
if(nWBNo>-1) app.setWBSel(nWBNo+1,true);
} // for
app.doCurrencyCalc();
} else {
session.setAttribute("info","NO_WBSEL");
} // if strParams length is 0
if(strDisplay.compareToIgnoreCase("TABLE")==0) {
session.setAttribute("info","REFRESH_TABLE");
} else if(strDisplay.compareToIgnoreCase("GRAPH")==0){
session.setAttribute("info","REFRESH_GRAPH");
} // if the request btnDisplay is TABLE
} else {
session.setAttribute("info","NO_KPIGROUP");
} // if the KPIGroup was selected
%>
<jbo:DataSource id="srcOutput" appid="IBSbc4jModule" viewobject="OutputView" />
<jbo:RefreshDataSource datasource="srcOutput" />
<jsp:forward page="report.jsp" />
<jbo:ReleasePageResources />
The report jsp is a form that has some input selections and the DataTable tagMichael:
'JBO-26080' means that something was wrong with the SQL statement issued to get the data for an entity object.
You need the detail exception stack trace to see what went wrong at the JDBC level. Take a look to see if the exception reported on your browser has detail exception info on it.
If not, you should run your middle tier app with diagnostic turned on. This will output lots of diag info on console and you should get the detail exception in it. Please take a look at the detail exception. If you can't make sense out of the exception, post it to this thread.
To turn on diagnostic, you need to specify
-Djbo.debugoutput=console
as one of the JVM switches.
If you're invoking your app (middle-tier app) from command line,
include -Djbo.debugoutput=console as in
java.exe -Djbo.debugoutput=console ...
If you're running your app from within JDev:
1. Select the project.
2. Do right mouse click and select "Project Settings..."
3. On the Settings dialog, select Configurations/Runner.
4. In the righthand side pane, you should see a textbox for "Java
Options". Please add the following JVM switch:
-Djbo.debugoutput=console
Then, rerun. The run command should include
-Djbo.debugoutput=console as in
"D:\JDev9i\jdk\bin\javaw.exe" -Djbo.debugoutput=console -classpath ...
Thanks.
Sung -
'Link errors' while compiling Palm OS app using CodeWarrior
I tried to compile the the sample application given in Oracle 9i lite MDK (Mobile Development Kit) using Codewarrior demo version 8 and it gave me a lot of link errors. Further more the okapi used were being termed as undefined, probably because the librabry files were not found, even though the lib files were included in the project.
Please help...I've been stuck at this point for quite some time now.
Regards
RipuHi Rao,
As Timo said, it is difficult to say the exact solution to your problem but you can try below suggestions as well.
1. Schema check: the entity objects which you are referring might have got schema changes (lets say it is in XX_SCHMEA1 today and now they might be in XX_SCHEMA2, it happened for me in my earlier project where DBA team has moved the tables to a different schema totally). In that case, you need to edit your code to update the correct schema.
2. Alias check: Open any of the entity for which you got error and check in the editor if it got any wrong alias name infront of it "XX_SCHEMA1.XX_TABLE_1", you can remove this alias and try again ( this happens when you modify the Configuration in AM -> Connection Type, for e.g. you converted it to "JDBC URL" from "JDBC DataSource" and in that case, you can manually delete those alias names infront of all entities because all your VOs are referring to entities without that alias (unless you refresh your vos)
3. For entities, check the Tables as well as Synonym in case if these tables are synonym in the schema you used for your entities.
4. Username/Password check: To do a bulk change, right click on Model project->click on "ADF Business Components"->check the connection details and see if anything got changed (like username/password). You can edit and test the connection to see if that is working or not.
Regards,
Ravi Nuka. -
Error building/creating WD Callable Object
Hello guys,
Pardon for reposting - I did post on the WD Java thread - and I think this is the more appropriate area to ask this question since its GP Callable Objects related.
While creating a WD Callable Object: I
I added Used DC: caf/eu/gp/api/wd to the WD DC. And added IGPWebdynproCO on the Implemented Interface. Afterwards, after building the DC, I got the following errors:
This compilation unit indirectly references the missing type com.sap.caf.eu.gp.co.api.IGPTechnicalDescription (typically some required class file is referencing a type outside the classpath)
The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.caf.eu.gp.co.api.IGPTechnicalDescription. Fix the classpath then try rebuilding this project.
I tried repair and rebuild - and restared NWDS (and even restarted my PC).
Issue not resolved.
What else should I do?
Thanks!
Regards,
JanI solve this including DC from caf/eu/gp/api (external public part) as show
http://help.sap.com/saphelp_nw70/helpdata/en/43/e085d6421a4d9de10000000a155369/content.htm
Later the method getDescription throws error because not return anything, while I return null
Regards, -
Error in compiling flex compilation
Hi,
I recieve following log message after deploying my application:
Error in compiling Flex application:
Error: Branch between 8479 and 41869 around line 0 exceeds 32K span.
If possible, please refactor this component.
Failed to compile AAD8T3.mxml
The only thing I know is the iView that has code AAD8T3, so I suppose the error is in it.
But what is the error and what are the objects it relates to?
Thanks,
YuliaHi
This is solved for Flex2, the up comming version of VC does not have this problem, but release dates for it are not set.
Jarrod Williams -
Problem while setting new value to entity object attribute in doDML meathod
Hi all,
I am overriding the entity objects doDML method for generating the value of Sequence Number just before insert .
For this puropose i am using doDML method. I am fetching the maximum value for the sequence number feild from the table by a prepared statement
and then incrementing that value by one.
protected void doDML(int operation, TransactionEvent e) {
if (operation == DML_INSERT) {
// code for getting the max+1 of sequence number before insert
//command executes.
try {
System.out.println("Inside doDML Method");
String sql =
"select nvl(max(seq_no),0)+1 from WF_LEAVE_HDR where org_unit_code = " +
this.getOrgUnitCode();
PreparedStatement pstmt =
getDBTransaction().createPreparedStatement(sql, 0);
ResultSet rs = pstmt.executeQuery();
rs.next();
Integer newSeqNo =rs.getInt(1); //(Number)rs.getString(0);
//this.setSeqNo(new Number(newSeqNo));
setAttributeInternal("SeqNo",new Number(newSeqNo));
System.out.println("Value of new seq no is -->>"+getSeqNo());
} catch (Exception excpt) {
System.out.println("Inside catch block ");
excpt.printStackTrace();
super.doDML(operation, e);
}i am getting the value correct by using the sql statement but while i am using setAttributeInternal("SeqNo",new Number(newSeqNo));
it is giving an error and value for new sequence no is not passed to the seq no feild of the entity object. I have tried this.setSeqNo(new Number(newSeqNo))
but it is also not wotrking .
Any one please help , I am using Jdeveloper 10.1.3
Thanks all in advance.iloveoracle,
Sigh... in addition to doing this in doDML (which Dimitar points out is the wrong place to do this)... you are making a huge huge mistake.
select nvl(max(seq_no),0)+1 from WF_LEAVE_HDRWhat happens when two people do this at around the same time? You don't do any locking, so you will get two rows with the same SeqNo. This is absolutely the wrong way of doing sequence numbers. The best way of doing this would be to use real sequence numbers (an Oracle sequence) and ignore the fact that there will be gaps. If you insist on using your approach, you MUST LOCK THE ENTIRE TABLE before you try to do your little max() + 1 trick, otherwise you run the very real risk of getting duplicate SeqNos. OK, I see that you are trying to do sequences by org_unit_code, so you don't have to lock the whole table, but you do have to have some way of holding a lock. You must also write some code to be able to handle an "unable to get the lock because someone else already holds it" type of situation.
<rant>
I have seen so many people try to do this little max() + 1 trick. It DOES NOT, WILL NOT work until you handle locking properly. One question that I often ask when I interview database developers is about generating "gapless" sequences; unless the job is for a brand-new-with-absolutely-no-experience trainee, answering "select max() + 1" without any mention of concurrency issues would be grounds for an immediate rejection of the candidate. Seriously. Have a run over to http://asktom.oracle.com and search for "gapless" if you'd like to see a more strongly worded rant.
</rant>
Bottom line, just use an Oracle sequence if it's at all possible; otherwise, be prepared to write some bunches of code to deal with locking.
John -
Error while compiling java file using J2SE 1.5.0
Dear Sir,
I'm getting the following error while compiling the java file.The code is also given.
package test;
public class TestRowSet {
public TestRowSet() {
"TestRowSet.java": cannot access java.lang.Object,bad class file: D:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar\java\lang\Object.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 4, column 1
Please help me out.
--Suketu Naik.But I'm compiling within "Borland JBuilder 9.0". I've
set the JDK path of the current project to point to
the path of JDK 1.5.0 . I've also tried to compile at
command prompt with "javac". I'm getting the same
error of "Undefinedclassloader" with long StatckTrace.
I don't know anything about JBuilder either. If you use the command prompt and enter the full path to the 1.5 javac.exe then that will prove whether the issue is using an older javac or not. For example "c:\j2sdk1.5.0_01\bin\javac HelloWorld.java" -
Possible?Multi-Entity View Object with one Entity Object that is Read-only.
I know this sounds crazy, but I would like to create a multi-entity view object, where one entity object is based on a table in my application (we'll call it "Users", which basically stores the primary key for the person from the institutional people database), and the other table is a entity object based on a view of the institutional people database table (read only access), which we can call "People".
I know that since no updates will be done to the People table, it really should be a read-only View Object, but I would lose the ability to sort on attributes like Last Name, Hire date, etc, since those would be transient attributes in my ViewObject for the Users. By having People as an entity object, I can then create a multi entity view object and have the ability to join Users to People and be able to sort on the above mentioned fields (like Last Name).
The problem is that when I use the JDev (I'm currently using 10.1.2.1) AppModule BC4J tester, when I click on the multi-entity view object that I added to the AppModule it gives me an error:
oracle.jbo.RowCreateException) JBO-25017: Error while creating a new entity row for People.
----- LEVEL 1: DETAIL 0 -----
(java.lang.InstantiationException) null
I have tried to change all the attributes to updateable in my entity object, but no create method, and I have tried to make them all read-only, but no effect, I get the same error (probably because the People view is read-only in my schema).
Is there a way to change the entity object so that it will not try to create a new row when it runs the Tester? So that the multi entity view object behaves more like a view link, but gives me the added bonus of being able to sort on the Last Name column from the People table?
Thanks for any help on this subject...at worst, I will have to use the view link method to get the job accomplished, but it would be "cooler" if this would work!
Jeremy.Steve, thanks for your quick response to my question.
To answer your questions, I was trying to create the Multi-entity View Object to give me more flexibility when working with my User table, and my People view. The flexibility I desired was that I would be able to sort my Users based on attributes in the People view. This is not possible when the there is only one Entity in my VO, and the People view data are all transient attributes, because they are not in the SQL statement.
Ultimately, after working with one of my colleagues, we decided to use the approach that you mentioned by creating a read-only VO with the SQL query we want to display to the user (contains both User and People data fields), and then use a different ViewObject when performing other actions on the User Table (such as inserts/updates/deletes). By using the setWhereClauseParam() method in the handleLifeCycle() for the JSP page, we should be able to navigate between the different View Objects, so that the user does not see any difference.
Thanks! Oh, and by the way, I have read your article you included before, and I have used it many times before to tune my View Objects! Thanks! -
Error while compiling the form
Hi Everyone,
Im getting the following error, while trying to compile the form.
Compilation error on POST-QUERY trigger on XXX_CONTRACT_INFO data block:
PL/SQL ERROR 0 at line 0, column 0
ORA-12154: TNS:could not resolve service name.
The instance which Im using is UP and running fine.
I am using some database links to access data from a different schema, but even those db links are working fine.
I am completly strucked up with this issue. Please help me.
Thank you.
Rams.Thanks for the reply.
Im not running the form in local database and more over if the problem is with only tnsnames, then the form should completly through an error. But in this case, the form is compiling all its objects, but its unable to compile only one block.
-Rams -
Problem in compilation of EJBHome object
hi
I have created a remote interface,HOmeinterface ,a primary key class and a bean.
The package structure is as follows:
sampleEJB->remote interface
sampleEJB->Home interface
a similar directory structure for both bean as welas primary key class files.
Now the actual problem,
when I compile the Home inter face it gives an error stating that the remotr object cannot be found.
I checked the package structure and found everything to be proper
kindly help mecode of home interface:
package sampleEJB;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
public interface CabinHomeRemote extends javax.ejb.EJBHome {
public CabinRemote create(Integer id)
throws CreateException, RemoteException;
public CabinRemote findByPrimaryKey(Integer pk)
throws FinderException, RemoteException;
Error thrown when compiling :
C:\Data\sampleEJB>javac CabinHomeRemote.java
CabinHomeRemote.java:9: cannot resolve symbol
symbol : class CabinRemote
location: interface sampleEJB.CabinHomeRemote
public CabinRemote create(Integer id)
^
CabinHomeRemote.java:12: cannot resolve symbol
symbol : class CabinRemote
location: interface sampleEJB.CabinHomeRemote
public CabinRemote findByPrimaryKey(Integer pk)
^
2 errors
kindly help me . I am confounded totally
thank youbut as u said there is some problem in the packaage
structure.
I tried changing the name of the package and trird
.but still could not get
What else can i change the program.
This was working well , and all of a sudden it has
starte to throw these errors.How do your errors come all of a sudden? No forewarning!
Are you using an IDE? like Eclipse. It will solve your compilation problem :)
Maybe you are looking for
-
Copy owners with robocopy using powershell.
Hi Friends.. I have created script to copy folder from one location to another location in PS. using Robocopy.. but By this script cannot copy the owner of the source location folder to destination.. below is the script.. please help me to add some
-
Default certain fields in SRM PO, directly created by Purchaser without SC
Hi Experts, I am new to SRM. At my project most POs would get created via approved SCs. However some are likely to be directly created in SRM system and replicated in ECC. For such cases, I am asked to default the REQUESTOR & RECIPIENT fields with th
-
Oracle 8i EE Install problems on Windows 2000
Problem 1 - LENGTH OF INSTALL FILES PATH. The Oracle Universal Installer was coming up fine, but the "Next" button wouldn't do anything. After much trial and error, I discovered this to be related to the path of the install files. Rather than burning
-
Setting up views and colors.
I have been trying to set the view, background and colors of this view: http://3d.onlinestoragesolution.com/PDF_3D-Solid/FS-02-001_Flat.pdf into this 3D view: http://3d.onlinestoragesolution.com/PDF_3D-Solid/FS-02-001_3D.pdf But I can't get it done.
-
[x86_64] Let's fix grub issues - help wanted
We have some issues with our grub bootloader. Lilo is working well but need to be recalled for every kernel update. Grub2 is not ready for x86_64 and still under heavy developement. So we should get grub (legacy) working. Arch32 is not patching it at