Not able to catch the exception
Hi,
I'm trying to run an ADF page (Test.jspx) . The only page content I have is an embedded BI report.
I have used a report executable in my page definition.
A sample code snippet is:
<executables>
<biContent id="biExecBinding1" connectionId="TMBIPresentationServerConn" path="/shared/TMSharedFolders/MOT_SalesAccount" type="biReportContent" xmlns="http://xmlns.oracle.com/bi/report/bindings">
</executables>
Here TMBIPresentationServerConn is the name of the connection of the BI Server.
If BI Server is down, on running my page , an exception is being thrown by the framework.
I want to catch this exception and perform my own logic, but since i am using a binding context for report , i am not able to catch this exception.
Could you please let me know how can i catch the exception if BI is down?
Thanks
Nutan
(as I suspected from your first post)
You are using a version of JDeveloper that isn't available to the general public, and are asking about it on a public forum. You should use the internal Oracle forum - I don't know the URL, because I am one of the unwashed general public ;)
John
Similar Messages
-
Why am i not able to see the exception message?
i wrote an 'instead of insert' trigger on a view.
and there are some exception situations in which the insertion should be stopped. my trigger works correctly. i mean it implements its purpose. however, the message i am taking after the trigger execution is not satisfying. ( i am using iSQL*Plus as the editor.)
here is my trigger: (after trigger there is some extra explanation below.)
CREATE OR REPLACE TRIGGER DemandOfCourses_T1_II
INSTEAD OF INSERT ON DemandOfCourses
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
cpc NUMBER;
currentNum NUMBER;
stud1 NUMBER;
stud2 NUMBER;
prec NUMBER;
exc1 EXCEPTION;
exc2 EXCEPTION;
BEGIN
SELECT capacity
INTO cpc
FROM LimitedCourse
WHERE course = :NEW.course;
IF cpc IS NULL THEN
cpc := 1000;
END IF;
SELECT COUNT(course)
INTO currentNum
FROM Registered
WHERE course = :NEW.course;
SELECT COUNT(student)
INTO stud1
FROM Registered
WHERE student = :NEW.student
AND course = :NEW.course;
SELECT COUNT(student)
INTO stud2
FROM WaitingFor
WHERE student = :NEW.student
AND course = :NEW.course;
SELECT COUNT(hp.preCourse)
INTO prec
FROM HasPrereq hp
WHERE hp.course = :NEW.course
AND hp.preCourse NOT IN (SELECT course FROM CourseResult WHERE student = :NEW.student);
IF (prec = 0) THEN
IF (stud1 = 0) AND (stud2 = 0) THEN
IF (currentNum = cpc) THEN
INSERT INTO WaitingFor
VALUES (:NEW.student, :NEW.course, SYSDATE);
ELSE
INSERT INTO Registered
VALUES (:NEW.student, :NEW.course);
END IF;
ELSE
RAISE exc1;
END IF;
ELSE
RAISE exc2;
END IF;
EXCEPTION
WHEN exc1 THEN
RAISE_APPLICATION_ERROR (-20002, 'Already registered for this course.');
WHEN exc2 THEN
RAISE_APPLICATION_ERROR (-20003, 'First the prerequesite course(s) must be taken.');
WHEN NO_DATA_FOUND THEN
NULL;
END;
for eample, if i want to insert the row below:
INSERT INTO DemandOfCourses VALUES (100005, 'BAK127', 'REGISTERED');
-- 100005 : STUDENT ID
-- BAK127 : COURSE CODE
-- REGISTERED : SITUATION
when i run this insert comment, i receive this result:
1 row created.
Actually, it should not insert anything. and it is not inserting anything. i mean, it is working correctly. however, i want it to write my exception message: "-20003, 'First the prerequesite course(s) must be taken.'"
why cannot i see my expected exception message?
all the data and structure is certainly true. if you have a question about them, i can answer.
by the way, i will catch this exception from my java code. what should i do in this situation?
any help will be appreciated.
regardsHi,
i don't understand your logic.
See, I added output to trace the counters value :
SQL> drop table courses cascade constraints;
Table dropped.
SQL> CREATE TABLE Courses (
2 code VARCHAR2(15),
3 name VARCHAR2(40) NOT NULL,
4 credit NUMBER(2) CHECK (credit BETWEEN 1 AND 20),
5 PRIMARY KEY (code)
6 );
Table created.
SQL>
SQL> drop table LimitedCourse;
Table dropped.
SQL> CREATE TABLE LimitedCourse (
2 course VARCHAR2(15),
3 capacity NUMBER(3) NOT NULL,
4 PRIMARY KEY (course),
5 FOREIGN KEY (course) REFERENCES Courses(code)
6 );
Table created.
SQL>
SQL> drop table Registered;
Table dropped.
SQL> CREATE TABLE Registered (
2 student NUMBER(6),
3 course VARCHAR2(15),
4 PRIMARY KEY (student, course),
5 --FOREIGN KEY (student) REFERENCES Students(studentID),
6 FOREIGN KEY (course) REFERENCES Courses(code)
7 );
Table created.
SQL>
SQL> drop table WaitingFor;
Table dropped.
SQL> CREATE TABLE WaitingFor (
2 student NUMBER(6),
3 course VARCHAR2(15),
4 regisDate TIMESTAMP NOT NULL,
5 PRIMARY KEY (student, course),
6 --FOREIGN KEY (student) REFERENCES Students(studentID),
7 FOREIGN KEY (course) REFERENCES Courses(code)
8 );
Table created.
SQL>
SQL> drop table HasPrereq ;
Table dropped.
SQL> CREATE TABLE HasPrereq (
2 course VARCHAR2(15),
3 preCourse VARCHAR2(15),
4 PRIMARY KEY (course, preCourse),
5 FOREIGN KEY (course) REFERENCES Courses(code),
6 FOREIGN KEY (preCourse) REFERENCES Courses(code)
7 );
Table created.
SQL>
SQL>
SQL> drop table CourseResult;
Table dropped.
SQL> CREATE TABLE CourseResult (
2 student NUMBER(6),
3 course VARCHAR2(15));
Table created.
SQL>
SQL> CREATE OR REPLACE VIEW DemandOfCourses (student, course, situation) AS
2 (SELECT student, course, 'REGISTERED' FROM Registered)
3 UNION
4 (SELECT student, course, 'WAITING' FROM WaitingFor);
View created.
SQL>
SQL> INSERT INTO Courses VALUES ('EDA242', 'MATHEMATICS 1', 5);
1 row created.
SQL>
SQL> INSERT INTO LimitedCourse VALUES ('EDA242', 15);
1 row created.
SQL>
SQL>
SQL> CREATE OR REPLACE TRIGGER DemandOfCourses_T1_II
2 INSTEAD OF INSERT ON DemandOfCourses
3 REFERENCING NEW AS NEW OLD AS OLD
4 FOR EACH ROW
5 DECLARE
6 cpc NUMBER;
7 currentNum NUMBER;
8 stud1 NUMBER;
9 stud2 NUMBER;
10 prec NUMBER;
11 exc1 EXCEPTION;
12 exc2 EXCEPTION;
13
14 BEGIN
15
16 SELECT capacity
17 INTO cpc
18 FROM LimitedCourse
19 WHERE course = :NEW.course;
20 dbms_output.put_line('cpc '||cpc);
21
22 IF cpc IS NULL THEN
23 cpc := 1000;
24 END IF;
25
26
27 SELECT COUNT(*)
28 INTO currentNum
29 FROM Registered
30 WHERE course = :NEW.course;
31 dbms_output.put_line('currentNum '||currentNum);
32
33 SELECT COUNT(*)
34 INTO stud1
35 FROM Registered
36 WHERE student = :NEW.student
37 AND course = :NEW.course;
38 dbms_output.put_line('stud1 '||stud1);
39
40 SELECT COUNT(*)
41 INTO stud2
42 FROM WaitingFor
43 WHERE student = :NEW.student
44 AND course = :NEW.course;
45 dbms_output.put_line('stud2 '||stud2);
46
47
48 SELECT COUNT(*)
49 INTO prec
50 FROM HasPrereq hp
51 WHERE hp.course = :NEW.course
52 AND hp.preCourse NOT IN (SELECT course FROM CourseResult WHERE student = :NEW.student);
53 dbms_output.put_line('prec '||prec);
54
55
56 IF (prec = 0) THEN
57 IF (stud1 = 0) AND (stud2 = 0) THEN
58 IF (currentNum = cpc) THEN
59 dbms_output.put_line('IF_1');
60 INSERT INTO WaitingFor
61 VALUES (:NEW.student, :NEW.course, SYSTIMESTAMP);
62 ELSE
63 dbms_output.put_line('ELSE_1');
64 INSERT INTO Registered
65 VALUES (:NEW.student, :NEW.course);
66 END IF;
67 ELSE
68 dbms_output.put_line('ELSE_2');
69 RAISE exc1;
70 END IF;
71 ELSE
72 dbms_output.put_line('ELSE_3');
73 RAISE exc2;
74 END IF;
75
76 EXCEPTION
77 WHEN exc1 THEN RAISE_APPLICATION_ERROR (-20002, 'Already registered for this course.');
78 WHEN exc2 THEN RAISE_APPLICATION_ERROR (-20003, 'First the prerequesite course(s) must be taken
79 WHEN NO_DATA_FOUND THEN dbms_output.put_line('NO_DATA_FOUND');
80 END;
81 /
Trigger created.
SQL>
SQL> INSERT INTO DemandOfCourses VALUES (100005, 'EDA242', 'REGISTERED');
cpc 15
currentNum 0 --here all count are 0, also you insert...
stud1 0
stud2 0
prec 0
ELSE_1
1 row created.
SQL> INSERT INTO DemandOfCourses VALUES (100005, 'EDA242', 'REGISTERED');
INSERT INTO DemandOfCourses VALUES (100005, 'EDA242', 'REGISTERED')
ERROR at line 1:
ORA-20002: Already registered for this course. --For the second time, you have your excetion...
ORA-06512: at "SCOTT.DEMANDOFCOURSES_T1_II", line 73
ORA-04088: error during execution of trigger 'SCOTT.DEMANDOFCOURSES_T1_II'
SQL> Nicolas. -
Can't catch the exception when transaction rollback ,BPEL/SOA 11G,updated!
Hi Guys ,
I have two insert/update invoke actions through dbadpter in my BPEL process .
When I set the GetActiveUnitOfWork property of those two db adapters to true ,it successfully makes the global transaction work . any of them failed will cause the other rollback.
But the CatchAll brunch can't catch the exception in that case,
I can only see exception message from the system output :
02/11/2009 11:36:46 AM oracle.toplink.transaction.AbstractSynchronizationListener beforeCompletion
WARNING:
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.1.0) (Build 090527)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (Table1_PK) violated
from BPEL console , you can't even see the error , the process finished with no exception.
When I set GetActiveUnitOfWork to false, CatchAll brunch is able to catch the exception , but global rollback is not working .
I try all the other method like set the transaction property of BPEL to required , using checkpoint() in java embedding . it looks like only way is set GetActiveUnitOfWork to true, but can't catch exception.
Here are some updated:
Here is my process
Main Sequence
Invoke (dbadapter update)
Invoke (dbadapter insert)
Global CatchAll
Invoke(jmsAdapter sendjms)
if I disable the CatchAll branch , when insert failed , the insert will rollback as well, even GetActiveUnitOfWork set to false.
enable CatchAll branch , even doing nothing in this branch , the update won't rollback when insert failed. it looks like when catch the exception , bpel seems not rollback , I try to add throw rollback in catchall branch, no any effect.
any clue ?
Kevin
Edited by: kyi on Nov 5, 2009 10:10 AMHi All,
We are also facing a similar kind of issue.
We have a simple BPEL which will makes use of JAva embedding to call an end point to check its availibility.
The Java code for cheking the enpoint connectivity is below
try{
boolean endpointAvailable = false;
long start = System.currentTimeMillis();
int endpointTestURL_port = 8445 ;
int endpointTestURL_timeout = 500;
String endpointTestURL_queryString = "" ;
String endpointTestURL_protocol = (String)getVariableData ("endpointProtocol");
addAuditTrailEntry("endpointTestURL_protocol: " + endpointTestURL_protocol);
String endpointTestURL_host = (String)getVariableData ("endpointHost");
addAuditTrailEntry("endpointTestURL_hostl: " + endpointTestURL_host);
URL endpoint = new URL(endpointTestURL_protocol, endpointTestURL_host, 8445, endpointTestURL_queryString);
addAuditTrailEntry("endpoint object is created" );
String endpointTestURL = endpoint.toExternalForm();
addAuditTrailEntry("Checking availability of endpoint at URL: " + endpointTestURL);
// Configure connection
HttpURLConnection connection = (HttpURLConnection)endpoint.openConnection();
connection.setRequestMethod("GET");
addAuditTrailEntry("The Method is Get");
connection.setConnectTimeout(5000);
addAuditTrailEntry("Timeout is 500 ms");
// Open connection
connection.connect();
addAuditTrailEntry("Open Connection");
String responseMessage = connection.getResponseMessage();
addAuditTrailEntry("Recieved availability response from endpoint as: " + responseMessage);
// Close connection
connection.disconnect();
endpointAvailable = true;
if (endpointAvailable)
setVariableData("crmIsAvailable", "true");
else
setVariableData("crmIsAvailable", "false");
catch(Exception e)
System.out.println ("Error in checking endpoint availability " + e) ;
addAuditTrailEntry("error message is : " +e);
When we run the above as a seperate java program it runs fine i.e goes to the catch block and catches the exception.
But when we run it within the java embedding in BPEL(11G) it gives us the follwoing error.
The reason was The execution of this instance "490001" for process "default/GMDSSalesLeadsBackMediationInterface!1.0*soa_e1a6362f-c148-417c-819c-9327017ebfa4" is supposed to be in an active jta transaction, the current transaction status is "ROLLEDBACK" .
Consult the system administrator regarding this error.
at com.oracle.bpel.client.util.TransactionUtils.throwExceptionIfTxnNotActive(TransactionUtils.java:119)
at com.collaxa.cube.engine.CubeEngine.store(CubeEngine.java:4055)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4372)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4281)
at com.collaxa.cube.engine.CubeEngine._createAndInvoke(CubeEngine.java:713)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:545)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:654)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:355)
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:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:88)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
at oracle.security.jps.wls.JpsWeblogicEjbInterceptor.runJaasMode(JpsWeblogicEjbInterceptor.java:61)
at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:106)
at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:106)
at sun.reflect.GeneratedMethodAccessor960.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInte
we also get
BEA1-108EA2A88DAF381957FF
weblogic.transaction.internal.TimedOutException: Transaction timed out after 301 seconds
BEA1-108EA2A88DAF381957FF
at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransactionImpl.java:1733)
at weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTransactions(ServerTransactionManagerImpl.java:1578)
at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManagerImpl.java:1900)
at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTransactionManagerImpl.java:1488)
at weblogic.transaction.internal.WLSTimer.timerExpired(WLSTimer.java:35)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
javax.ejb.EJBException: Transaction Rolledback.: weblogic.transaction.internal.TimedOutException: Transaction timed out after 301 seconds
BEA1-108EA2A88DAF381957FF
We tried the following
Increase the JTA timeout in the EM console to a larger value like 600 secs.
The BPEL instance is not getting created.
Any help would be appreciated
Thanks
Lalit -
Catching the exception thrown in a java class on a JSP front end
I have a web service created in JAVA.. The modules throw certain exceptions and i am having auto generated JSP created from the WSDL's , which i can obviously edit. i want to catch these exceptions in this JSP page.. Any clue how to do this?
Thanks.Nee333 wrote:
I have a web service created in JAVA.. The modules throw certain exceptions and i am having auto generated JSP created from the WSDL's , which i can obviously edit. i want to catch these exceptions in this JSP page.. Any clue how to do this? It is not possible to catch the Exception in a JSP. You can however put any logging or even an if statement into your JSP to display the error or control the flow based on the error. -
Catch the exception thrown when database is not available in web.xml
Hi,
I have an app that uses a mysql database configured in the web.xml configuration file - a javax.servlet.jsp.jstl.sql.dataSource param
There have been occasions where that server has been down, and this causes the expected error stack trace to be dumped to the jsp page
Is there anywhere I can catch that exception in the jsp page, so the end user does not see that nasty error?
Thanks,
TomYou have answered your own question, catch the exception with a try catch block !!
try
// doing something stupid
catch (Exception exception)
out.println("sorry user, you did something really stupid");
// it is acceptable to do nothing here if you dont want to handle the
// error or output a message
} -
Problem Using HTTP Dispatcher -- Could Not able to get the data in JSP
Hi, I am using HTTP Dispatcher to send my events to particular URL which is a JSP page. I am trying to populate the received event through URL and populate to a oracle data base. But could not able to get the data in Oracle database.
Code is :
<h1>JSP Page</h1>
<%
long type = 0;
String tagId = null;
String timeStr = "0";
String deviceName = "";
// Get Event Parameters
// Available Parameters: id, siteName, deviceName, data, time, type, subtype, sourceName, correlationId
try
type = Long.parseLong(request.getParameter("type")); // Get type
tagId = request.getParameter("id"); // Get tagId
timeStr = request.getParameter("time"); // Get time
deviceName = request.getParameter("deviceName");
catch (Exception e)
out.println( "Error: "+e.getMessage() );
// Write into DB.
try {
if ((tagId == null) || (type != 200) ){
// Do Nothing
//return;
} else {
OracleDataSource ods = new OracleDataSource();
String URL = "jdbc:oracle:thin:@//3.235.173.16:1525/vislocal";
ods.setURL(URL);
ods.setUser("cus");
ods.setPassword("cus");
Connection myConn = ods.getConnection();
Statement stmt = myConn.createStatement();
String selectQuery =
"SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
"cus.rfid_raw_reads ";
ResultSet rs = stmt.executeQuery(selectQuery);
String maxId = "1";
if (rs.next()) {
maxId = rs.getString(1);
String selectMaxTagIDQuery =
"SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
"cus.rfid_raw_reads WHERE tag_id = '" + tagId + "'" ;
stmt = myConn.createStatement();
rs = stmt.executeQuery(selectMaxTagIDQuery);
String maxTagId = "1";
if (rs.next()) {
maxTagId = rs.getString(1);
long primaryKey = 1;
long tagKey = 1;
try {
primaryKey = Long.parseLong(maxId) + 1;
tagKey = Long.parseLong(maxTagId) + 1;
} catch (Exception e) {
long currentTime = System.currentTimeMillis();
long updateKey = (tagKey - 1);
String updateQuery = " UPDATE cus.rfid_raw_reads SET read_end_time = " + currentTime + " WHERE rfid_raw_reads_id = " + updateKey;
Statement updateStmt = myConn.createStatement();
updateStmt.execute(updateQuery);
String query =
"INSERT INTO cus.rfid_raw_reads (rfid_raw_reads_id, tag_id,device_name,read_start_time) VALUES ("+ primaryKey + ",'" + tagId + "'," + deviceName + "'," + System.currentTimeMillis() + " )" ;
Statement insertStmt = myConn.createStatement();
insertStmt.execute(query);
myConn.commit();
myConn.close();
} catch (Exception e) {
%>
<p>For browser debug:
<%
out.println( "Type="+type+" ID="+tagId +" time="+timeStr );
%>
Kindly suggest where is the problem...
Thanks and regards
Mohammad Nasim AkhtarHI Prabhat,
Thanx for your reply, I worked out and able to receive the data in oracle database, Actually there was some problem in insert Query. Now I have tested the same... and able to edit the same in the Database.....
But I am facing a new problem, Http Dispatcher in SES console is displaying all the Events generated as well as event in Que but there is no events in the Event Send. I guess it is not able to send the events.....?????
Event statical is showing like this
Events Received: 0 (0.00/sec)
Events Generated: 311 (0.19/sec)
Events Sent: 2 (0.19/sec)
Queued Events: 309 (0.19/sec)
Kindly suggest where is the problem, Is it a JSP problem or OSES end problem.....
Thanks and regards
Nasim -
I am not able to execute the transport.send(message)
I am not able to execute the transport.send(message) when trying for sending mail. I am getting error like this : -
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 10.175.80.50, port: 25; nested exception is: java.net.ConnectException: Connection timed out: connect
Please help me on this to resolve this issue asap. thanksHi Vinod,
public void SendMail( )
//@@begin SendMail()
// Specify the host name of the mail server
String host ="----
IWDMessageManager messageMgr = wdControllerAPI.getComponent().getMessageManager();
// Initialize Session
Properties props = System.getProperties();
props.put("mail.smtp.host", host);
props.put("mail.smtp.auth", "true");
Authenticator auth = new Auth();
Session session = Session.getInstance(props, auth);
// Create new MimeMessage
MimeMessage message = new MimeMessage(session);
try
// Set the From Address
String from = wdContext.currentContextElement().getCtx_From();
message.setFrom(new InternetAddress(from));
// Set the To Address
String to = wdContext.currentContextElement().getCtx_To();
Address ar[] = new Address[1];
ar[0] = new InternetAddress(to);
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
// Set the Subject
message.setSubject(wdContext.currentContextElement().getCtx_Subject());
// Set the Text
message.setText(wdContext.currentContextElement().getCtx_Text());
Transport tr = session.getTransport("smtp");
tr.connect("Put again here Host Name", Port Noumber, "userid", "password");
tr.sendMessage(message, ar);
}catch (AuthenticationFailedException e){
messageMgr.reportException(e.toString(),false);
}catch (AddressException e) {
messageMgr.reportException(e.toString(),false);
} catch (MessagingException e) {
messageMgr.reportException(e.toString(),false);
}catch (Exception e){
messageMgr.reportException(e.toString(),false);
//@@end
And also create the class Auth() like
public class Auth extends Authenticator {
public PasswordAuthentication getPasswordAuthentication()
String username = "userID";
String password = "Passwod";
return new PasswordAuthentication(username,password);
Please check it i think i will work. Also please use constant value for the to, from, subject and text. -
Not able to get the reference fot the new column added thru personalization
Hi,
I have added a new column in an advanced table of Message Text Input. ID for this is xxTemp.
Now i have extended controller and in processrequest(), i am trying to get the reference for this column as below:
OAAdvancedTableBean oaadvancedtablebean1 = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("ASNPrdtLstTb");
OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("xxTemp");
But oamessagetextinputbean is returning null value.
Can someone tell me why this is not able to get the reference for the newly added column.
This is very urgent. please post me ur ideas.Hi Shiv,
I have used as u said. Its throwing this exception:
oracle.apps.fnd.framework.OAException: java.lang.ClassCastException
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:603)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OASubTabLayoutHelper.processRequest(OASubTabLayoutHelper.java:430)
at oracle.apps.fnd.framework.webui.beans.layout.OASubTabLayoutBean.processRequest(OASubTabLayoutBean.java:465)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
at OA.jspService(OA.jsp:34)
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.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at OA.jspService(OA.jsp:39)
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.lang.ClassCastException
at dbdcustom.oracle.apps.asn.opportunity.webui.xxdbdPrdtTableCO.processRequest(xxdbdPrdtTableCO.java:76)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OASubTabLayoutHelper.processRequest(OASubTabLayoutHelper.java:430)
at oracle.apps.fnd.framework.webui.beans.layout.OASubTabLayoutBean.processRequest(OASubTabLayoutBean.java:465)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
at OA.jspService(OA.jsp:34)
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.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at OA.jspService(OA.jsp:39)
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.lang.ClassCastException
at dbdcustom.oracle.apps.asn.opportunity.webui.xxdbdPrdtTableCO.processRequest(xxdbdPrdtTableCO.java:76)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OASubTabLayoutHelper.processRequest(OASubTabLayoutHelper.java:430)
at oracle.apps.fnd.framework.webui.beans.layout.OASubTabLayoutBean.processRequest(OASubTabLayoutBean.java:465)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
at OA.jspService(OA.jsp:34)
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.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at OA.jspService(OA.jsp:39)
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) -
The problem here is i am not able to get the data from the list
hi all,
i have the following code
EnrichedProductCatalogue enrichedProductCatalogue1 = new EnrichedProductCatalogue();
enrichedProductCatalogue1.setAssetCount(2);
enrichedProductCatalogue1.setBlockingProduct("Weekend Freebee");
enrichedProductCatalogue1.setBlockingReason("Compatability");
ArrayList<String> availableActionsList = new ArrayList<String>();
availableActionsList.add(EnrichedProductConstants.ADD.toString());
availableActionsList.add(EnrichedProductConstants.REMOVE.toString());
enrichedProductCatalogue1.setAvailaibleActions((ArrayList<String>)availableActionsList);
BundleProduct bundleProduct = null;
Product product = new Product();
product = new Product();
product.setProductName("International");
product.setProductClassName("International");
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory);
bundleProduct = new BundleProduct();
bundleProduct.setCommercialProduct(product);
enrichedProductCatalogue1.setBundleProduct(bundleProduct);
listOfEnrichProducts.add(enrichedProductCatalogue1);
listOfEnrichProducts.add(enrichedProductCatalogue1);
here i have an list called listOfEnrichProducts.
here i am adding two objects of enrichedProductCatalogue.
which contains a object called BundleProduct.
which has a reference for Product class.
here this product class has a list which contains objects of another class called UiCategory.
the problem here is i am not able to get the data from the list which contains UiCategory objects .
the following is the UI
<af:table var="row" rowBandingInterval="0" id="t1"
value="#{pageFlowScope.sample1}"
binding="#{pageFlowScope.sampleManagedBean.dataTable}"
partialTriggers="apimethods ::apimethods">
<af:column sortable="false" headerText="ProductName" id="c2">
<af:outputText value="#{row.bundleProduct.commercialProduct.productName}" id="ot15"/>
</af:column>
<af:column sortable="false" headerText="ProductClass" id="c12">
<af:outputText value="#{row.bundleProduct.commercialProduct.productClassName}" id="ot19"/>
</af:column>
<!--
<af:column sortable="false" headerText="UICategoryName" id="c32">
<af:forEach var="item" items="#{row.bundleProduct.commercialProduct.uiCategory}" >
<af:outputText value="#{item.categoryName}" id="ot119"/>
</af:forEach>
</af:column>
-->
<af:column sortable="false" headerText="AssetCount" id="c22">
<af:outputText value="#{row.assetCount}" id="ot1"/>
</af:column>
<af:column sortable="false" headerText="blockingReason" id="c3">
<af:outputText value="#{row.blockingReason}" id="ot2"/>
</af:column>
<af:column sortable="false" headerText="blockingProduct" id="c4">
<af:outputText value="#{row.blockingProduct}" id="ot3"/>
</af:column>
<!--<af:column sortable="false" headerText="availaibleActions" id="c1">
<af:commandButton text="#{row.availaibleActions}" id="cb1"
actionListener="#{pageFlowScope.sampleManagedBean.callAction}"
partialSubmit="true">
<af:setPropertyListener from="#{row.availaibleActions}"
to="#{pageFlowScope.avalibleaction}" type="action"/>
</af:commandButton>
</af:column>-->
</af:table>
Can anyone pls give some solution ...Hi Frank,
value="#{pageFlowScope.sample1}"
here sample is
Map<String, Object> flowScope1 =
ADFContext.getCurrent().getPageFlowScope();
flowScope.put("sample1", listOfEnrichProducts);
this is not the problem . i am able to get all the values except the following .
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory); -
Not able to get the message from Queue using MQ adapter
HI
Using Mq adapter am able to put the message in a queue and am able to get the message if i select the schema type as opaque, but am not able to get the message if i specify any schema type and am getting timed out exception.
Kindly help to proceed with this issue.Hi,
Am also facing the same issue.
I would be thankful if anyone can provide the solution -
Not able to get the full screen in Youtube with latest firefox
Hi All,
I was using the FF 3.0.10 came with ArchLinux pacman. Recenty I downloaded the latest FF from mozilla website and put that in /opt/firefox. I am able to do all other things in it except watching the full screen flash video from Youtube. The browser stucks when I click on the full screen option. But that is working fine in the old browser ( Gran paradiso ). I am not able to find the root cause of it. An idea ?silvik wrote:launch firefox with: LD_PRELOAD=/usr/lib/libGL.so.1 firefox
Yes that helped, thanks.
But it only happened with youtube flash movies, others were able to go fullscreen.
I got the following error messages in the console after the crash (cut off):
LoadPlugin: failed to initialize shared library /home/andi/.mozilla/plugins/libmks.so [libexpat.so.0: cannot open shared object file: No such file or directory]
*** glibc detected *** firefox: munmap_chunk(): invalid pointer: 0xa8398020 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7cbd281]
/lib/libc.so.6[0xb7cbe4b5]
/usr/lib/libGL.so.1[0xaa912205]
======= Memory map: ========
08048000-0805a000 r-xp 00000000 08:02 136715 /usr/lib/firefox-3.5/firefox
0805a000-0805b000 rwxp 00011000 08:02 136715 /usr/lib/firefox-3.5/firefox
0805b000-0805c000 rwxp 00000000 00:00 0
a419b000-a4f06000 r-xp 00000000 08:02 176929 /usr/lib/libGLcore.so.185.18.14
a4f06000-a50f3000 rwxp 00d6a000 08:02 176929 /usr/lib/libGLcore.so.185.18.14 -
BI Publisher: not able to see the xml data after creating a data model
I am learning BI publisher and trying to create a report data model
I created a new data model from the report tab, use query builder, able to see the results. Then i save it and try to launch XML view from clicking View .
I am getting unexpected exception, not able to see the XML view .
in the server console i got servlet exception, here is one of the line
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303
Edited by: joysaha123 on Mar 17, 2010 6:07 PMHi karthik
Thanks for your response
Actually iam a beginner in java coding hence struggling to come up with the things
I tried putting your code and onserver side i see it is returning 09:12:17,234 INFO [STDOUT] [root: null]
actually the same program i wrote in java
and the same method i was calling from the main
and it is working fine and the xml document is getting displayed one important thing to be noted here is that the factory.newDocumentBuilder().parse(new File(filename));is returing XmlDocument
and the printing takes place
but the in same method public static Document parseXMLFile(String filename, boolean b) in servlet
the line factory.newDocumentBuilder().parse(new File(filename)); is returning DeferredDocumentImpl
and this creating problem , had it returned XmlDocument
i would have printed the elements one one
but as it is returning deferredimpl
iam unable to print the elements
could you please tell me why factory.newDocumentBuilder().parse(new File(filename)); is returning DeferredDocumentImpl
in servlets but in plain java pogram it is returing XmlDocument
Thanks
Bhanu -
Dear Experts,
I have enhanced the extract structure of 2lis_13_vdkon in R/3 with 5 fields which are exist in transfer structure.
I have replicated the data source in BI but unfortunately i have not deleted the data in the PSA.
After replication when i try to activate the data source the system is giving Dump and im not able to see the PSA also.
Please help me out.
When i manage on the data source to c PSA, its giving error like this
Invalid DataStore object name 2LIS_13_VDKON_BB: Reason: No valid entry in table RSTS
The Dump when activating the data source is :
Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC
Exception CX_SY_OPEN_SQL_DB
Date and Time 03.06.2009 09:46:55
How to correct the error
Use an ABAP/4 Open SQL array insert only if you are sure that none of
the records passed already exists in the database.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"SAPSQL_ARRAY_INSERT_DUPREC" "CX_SY_OPEN_SQL_DB"
"CL_RSAR_PSA===================CP" or "CL_RSAR_PSA===================CM006"
"_UPDATE_DIRECTORY_TABLES"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
Regards
venuHi Venu,
The issue I think is the PSA was not deleted cleanly. If you try and activate the PSA you will get the dump again.
..Probably if you go through the ABAP dump you will notice it is pointing to the following code;-
75 * Put the fields of PSA to database without check, otherwise error by
76 * activation of table
77
78 IF p_psa_exists EQ rs_c_false OR
79 i_new_version EQ rs_c_true.
>>>>> INSERT rstsodsfield FROM TABLE l_t_odsfield.
81 ELSE.
82 DELETE FROM rstsodsfield
83 WHERE odsname = l_s_odsfield-odsname
84 AND version = l_s_odsfield-version.
85 MODIFY rstsodsfield FROM TABLE l_t_odsfield.
Put a breakpoint in the code in line 78. and activate the DS..the program should stop in 78...change the value of variable rc_c_false so that line 82 gets executed. This will clean up the PSA entries in table rstsodsfield. Now activate the DS and delete the PSA entries in the PSA table.
We faced the same issue and resolved it this way.
Thanks
-Saif -
Am not able to run the java program - pls help
1. I installed java in the below path
c:\program files\java\jdk1.5.0
c:\program files\java\jre1.5.0
I set the path in
User variable i. variable name: path
ii. variable value: c:\program files\java\jdk1.5.0\bin
when I compile it in command prompt-applying javac ? it performed successfully-shows
options like ?g create all debug info, -g : new Generate no debug info etc.,
But am not able to run the file. It shows error msg.
2. I specified the same name for file name & class name.
3. Java <class name>
Exception in thread ?main?java.lang.NoclassDeffoundError: <class name>
4. Java ?cp <class name>
Unrecognized option: -cp.<classname>
Could not create the Java Virtual Machine
5. Java ?classpath . <classname>
Exception in thread ?main?.java.lang.unsupported classversionError: <classname>
<unsupported major.minor version 49.0
at java.lang.classloader.defineclass0<native method>
at java.lang.classloader.defineclass<unknown source>
--and many listed below?
6. Java ?classpath c:\program files\java\jdk1.5.0\bin <class name>
Exception in thread ?main?java.lang.NoclassDeffoundError: <class name>
7. I re-installed the java, but still the problem continuing.
pls help... its very urgentIs the java class you compiled/calling in the default package? If it is not, you will have to call it by the fully qualified name.
e.g.
package com.mycompany.myproject;
public class MyClass {
public static void main(String[] args) { }
}This would be called as "Java com.mycompany.myproject.MyClass" and must contain a main method with signature as above.
You would have to call this from folder where the compiled classes are located. If using package, you would call from directory at level of top most package so com folder in this example as Java will look at each package name in qualified name and try to traverse directories with those same names to get to .class file matching class name specified. To avoid this, your newly compiled .class files must also be in your classpath.
Hopefully that helps.
--Kevin -
Not able to start the weblogic server ....
Hi All,
I am using JDeveloper 11.1.1.6 .
I am not able to start the weblogic server .I am getting below Exception .I am not sure where I need to check,,
Error at line:2333 col:31 '' expected a valid beginning name character
at weblogic.xml.babel.scanner.Name.read(Name.java:33)
at weblogic.xml.babel.scanner.Name.read(Name.java:20)
at weblogic.xml.babel.scanner.OpenTag.read(OpenTag.java:58)
at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:251)
at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:178)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:533)
at weblogic.xml.babel.baseparser.Space.parse(Space.java:19)
at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:474)
at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:326)
at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)
at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)
at oracle.security.jps.internal.policystore.xml.StaxPolicyStoreParser.processFunctionParameters(StaxPolicyStoreParser.java:2207)
at oracle.security.jps.internal.policystore.xml.StaxPolicyStoreParser.processFunction(StaxPolicyStoreParser.java:2135)
at oracle.security.jps.internal.policystore.xml.StaxPolicyStoreParser.processFunctions(StaxPolicyStoreParser.java:2072)
at oracle.security.jps.internal.policystore.xml.StaxPolicyStoreParser.processAppPolicy(StaxPolicyStoreParser.java:796)
at oracle.security.jps.internal.policystore.xml.StaxPolicyStoreParser.processPolicyStore(StaxPolicyStoreParser.java:521)
at oracle.security.jps.internal.core.datastore.xml.XmlDataStoreParser.getDataStoreEntryStax(XmlDataStoreParser.java:120)
at oracle.security.jps.internal.core.datastore.xml.XmlDataStoreParser.getDataStoreEntry(XmlDataStoreParser.java:180)
at oracle.security.jps.internal.core.datastore.xml.XmlDataStoreParser.getDataStoreEntry(XmlDataStoreParser.java:187)
at oracle.security.jps.internal.core.datastore.xml.XmlDataStore.loadXmlDataStore(XmlDataStore.java:411)
at oracle.security.jps.internal.core.datastore.xml.XmlDataStore.<init>(XmlDataStore.java:276)
at oracle.security.jps.internal.core.datastore.xml.XmlDataStore.getInstance(XmlDataStore.java:209)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.buildFromFile(XmlPolicyStore.java:492)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.<init>(XmlPolicyStore.java:276)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider.getInstance(XmlPolicyStoreProvider.java:100)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider.getInstance(XmlPolicyStoreProvider.java:74)
at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)
at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:170)
at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:191)
at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:132)
at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:127)
at oracle.security.jps.internal.policystore.PolicyUtil$2.run(PolicyUtil.java:2827)
at oracle.security.jps.internal.policystore.PolicyUtil$2.run(PolicyUtil.java:2821)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPDPService(PolicyUtil.java:2821)
at oracle.security.jps.internal.policystore.PolicyUtil.getPDPService(PolicyUtil.java:3097)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:164)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:369)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1339)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1018)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
<Jul 19, 2013 11:11:09 AM IST> <Error> <Security> <BEA-090892> <The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: Cannot read from policy store. Reason is PolicyStore Error, javax.xml.stream.XMLStreamException: Error at line:2333 col:31 '
Thanks ...hi user,
did you check this.
diehn.net/blog &raquo; Blog Archive &raquo; Weblogic AdminServer refused to start &#8211; truncated syste…
Maybe you are looking for
-
Problem in creation of P.O.
Hi All, Currently I am working on 3.1i version. My query : When i was creating a P.O.refrence with P.R.in the item level the revision level is filling Basing upon P.R. released date . But my customer wants the P.O. Revision level should fill in mat
-
In Lion, can I hide the address book without the application closing?
In Snow Leopard, when I clicked the red circle in the upper left-hand corner of the address book, the application automatically hid without closing entirely. In Lion, the same action closes the application so every time I need to use it, the address
-
hello, I can see the Icon of my external hard on the mac os x 10.6.8 but I can not open it or view any file in the external hard your prompt reply will be appreciated thanks
-
'Photos' in iPhoto LIBRARY will not open.
I recently had to re-install iLife '11 because iPhoto was causing problems. Before the re-installation iPhoto.app had been put in the trash and all the receipts showing iPhoto in the pkg file deleted . The iPhoto software was duly updated and everyth
-
Dmstool sometimes does not show all metrics
Platform: HP-UX B.11.11 U 9000/800 9iAS: 9.0.3.1 Sometimes dmstool does not show all metrics. there are different output generated by dmstool in different time. Who can explain why this occurs? $ dmstool -t JVM FLEXMON ERROR: Unknown type: JVM prod1*