JSP Exception Handler problem
I have set up an errorPage handler (ExceptionHandler.jsp) for my JSP page, Main.jsp. If the Main.jsp throws an exception from some of its early code, ExceptionHandler.jsp shows correctly.
But if Main.jsp throws an exception later on in its code, its previous ouput to the client isn't cleared and gets sent to the client along with the ExceptionHandler.jsp output - usually resulting in the user seeing a blank screen.
So how can I make it so that when ExceptionHandler.jsp is called, none of Main.jsp output is sent to the client?
Cheers,
James
Don't handle business logic in JSPs, but in Servlets. Use JSPs for presentation only. With other words: move all those scriptlets out of the JSP file to a real Java class.
Similar Messages
-
Exception Handling Problem In BPM
All
I am facing an exception handling problem I am using BPM and , I have caught exception in the transformation step but when there is any data problem in that mapping(mentioned in the transformation)
it is not throwing the exception . is there any option to collect these type of system exception in the bpm and give a alert thru mail
is there any way to collect these type of exception happened in the BPE and raise alert thru generic alert
Thanks
JayaramanHi Jayaraman,
When you say there is any data problem, does that fail the message mapping that you have defined?
If the message mapping used in the tranformation fails, it should raise an exception in the BPM.
Did you test the message mapping using the payload and see if it really fails or not?
Regards,
Ravi Kanth Talagana -
Pls help..Constructor,setter, getter and Exception Handling Problem
halo, im new in java who learning basic thing and java.awt basic...i face some problem about constructor, setter, and getter.
1. I created a constructor, setter and getter in a file, and create another test file which would like to get the value from the constructor file.
The problem is: when i compile the test file, it come out error msg:cannot find symbol.As i know that is because i miss declare something but i dont know what i miss.I post my code here and help me to solve this problem...thanks
my constructor file...i dont know whether is correct, pls tell me if i miss something...
public class Employee{
private int empNum;
private String empName;
private double empSalary;
Employee(){
empNum=0;
empName="";
empSalary=0;
public int getEmpNum(){
return empNum;
public String getName(){
return empName;
public double getSalary(){
return empSalary;
public void setEmpNum(int e){
empNum = e;
public void setName(String n){
empName = n;
public void setSalary(double sal){
empSalary = sal;
my test file....
public class TestEmployeeClass{
public static void main(String args[]){
Employee e = new Employee();
e.setEmpNum(100);
e.setName("abc");
e.setSalary(1000.00);
System.out.println(e.getEmpNum());
System.out.println(e.getName());
System.out.println(e.getSalary());
}**the program is work if i combine this 2 files coding inside one file(something like the last part of my coding of problem 2)...but i would like to separate them....*
2. Another problem is i am writing one simple program which is using java.awt interface....i would like to add a validation for user input (something like show error msg when user input character and negative number) inside public void actionPerformed(ActionEvent e) ...but i dont have any idea to solve this problem.here is my code and pls help me for some suggestion or coding about exception. thank a lots...
import java.awt.*;
import java.awt.event.*;
public class SnailTravel extends Frame implements ActionListener, WindowListener{
private Frame frame;
private Label lblDistance, lblSpeed, lblSpeed2, lblTime, lblTime2, lblComment, lblComment2 ;
private TextField tfDistance;
private Button btnCalculate, btnClear;
public void viewInterface(){
frame = new Frame("Snail Travel");
lblDistance = new Label("Distance");
lblSpeed = new Label("Speed");
lblSpeed2 = new Label("0.0099km/h");
lblTime = new Label("Time");
lblTime2 = new Label("");
lblComment = new Label("Comment");
lblComment2 = new Label("");
tfDistance = new TextField(20);
btnCalculate = new Button("Calculate");
btnClear = new Button("Clear");
frame.setLayout(new GridLayout(5,2));
frame.add(lblDistance);
frame.add(tfDistance);
frame.add(lblSpeed);
frame.add(lblSpeed2);
frame.add(lblTime);
frame.add(lblTime2);
frame.add(lblComment);
frame.add(lblComment2);
frame.add(btnCalculate);
frame.add(btnClear);
btnCalculate.addActionListener(this);
btnClear.addActionListener(this);
frame.addWindowListener(this);
frame.setSize(100,100);
frame.setVisible(true);
frame.pack();
public static void main(String [] args) {
SnailTravel st = new SnailTravel();
st.viewInterface();
public void actionPerformed(ActionEvent e) {
if (e.getSource() == btnCalculate){
SnailData sd = new SnailData();
double distance = Double.parseDouble(tfDistance.getText());
sd.setDistance(distance);
sd.setSpeed(0.0099);
sd.setTime(distance/sd.getSpeed());
String answer = Double.toString(sd.getTime());
lblTime2.setText(answer);
lblComment2.setText("But No Exception!!!");
else
if(e.getSource() == btnClear){
tfDistance.setText("");
lblTime2.setText("");
public void windowClosing(WindowEvent e){
System.exit(1);
public void windowClosed (WindowEvent e) { };
public void windowDeiconified (WindowEvent e) { };
public void windowIconified (WindowEvent e) { };
public void windowActivated (WindowEvent e) { };
public void windowDeactivated (WindowEvent e) { };
public void windowOpened(WindowEvent e) { };
class SnailData{
private double distance;
private double speed;
private double time;
public SnailData(){
distance = 0;
speed = 0;
time = 0;
public double getDistance(){
return distance;
public double getSpeed(){
return speed;
public double getTime(){
return time;
public void setDistance(double d){
distance = d;
public void setSpeed(double s){
speed = s;
public void setTime(double t){
time = t;
}Pls and thanks again for helps....What i actually want to do is SnailTravel, but i facing some problems, which is the
- Constructor,setter, getter, and
- Exception Handling.
So i create another simple contructor files which name Employee and TestEmployeeClass, to try find out the problem but i failed, it come out error msg "cannot find symbol".
What i want to say that is if i cut below code (SnailTravel) to its own file(SnailData), SnailTravel come out error msg "cannot find symbol".So i force to put them in a same file(SnailTravel) to run properly.
I need help to separate them. (I think i miss some syntax but i dont know what)
And can somebody help me about Exception handling too pls.
class SnailData{
private double distance;
private double speed;
private double time;
public SnailData(){
distance = 0;
speed = 0;
time = 0;
public double getDistance(){
return distance;
public double getSpeed(){
return speed;
public double getTime(){
return time;
public void setDistance(double d){
distance = d;
public void setSpeed(double s){
speed = s;
public void setTime(double t){
time = t;
} -
FORALL Exception handling problem
Hi All,
I have one doubt in forall exception handling. I have gone through the SAVE EXCEPTION for bulk collect but i have one more query
BEGIN
FORALL j IN l_tab.first .. l_tab.last
INSERT INTO exception_test
VALUES (l_tab(i));
EXCEPTION
END;
My requirement is when an exception occurs, i ant to print the values of the collection.
e.g. say l_tab (j).emp_number, l_tab (j).emp_id.
How is that possible?
Thanks
Samarth
Edited by: 950810 on Mar 12, 2013 7:28 PM>
I have one doubt in forall exception handling. I have gone through the SAVE EXCEPTION for bulk collect but i have one more query
BEGIN
FORALL j IN l_tab.first .. l_tab.last
INSERT INTO exception_test
VALUES (l_tab(i));
EXCEPTION
END;
My requirement is when an exception occurs, i ant to print the values of the collection.
e.g. say l_tab (j).emp_number, l_tab (j).emp_id.
How is that possible?
>
Post the code you are using. You didn't post the FORALL that is using SAVE EXCEPTIONS.
The SQL%BULK_EXCEPTIONS associative array that you get has the INDEX of the collection element that caused the exception.
So you need to use those indexes to index into the original collection to get whatever values are in it.
One index from the exception array is:
SQL%BULK_EXCEPTIONS(i).error_index So if your original collection is named 'myCollection' you would reference that collection value as:
myCollection(SQL%BULK_EXCEPTIONS(i).error_index); See 'Handling FORALL Exceptions (%BULK_EXCEPTIONS Attribute)' in the PL/SQL Language doc
http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/tuning.htm#i49099
>
All exceptions raised during the execution are saved in the cursor attribute %BULK_EXCEPTIONS, which stores a collection of records. Each record has two fields:
%BULK_EXCEPTIONS(i).ERROR_INDEX holds the iteration of the FORALL statement during which the exception was raised.
%BULK_EXCEPTIONS(i).ERROR_CODE holds the corresponding Oracle Database error code.
The values stored by %BULK_EXCEPTIONS always refer to the most recently executed FORALL statement. The number of exceptions is saved in %BULK_EXCEPTIONS.COUNT. Its subscripts range from 1 to COUNT.
The individual error messages, or any substitution arguments, are not saved, but the error message text can looked up using ERROR_CODE with SQLERRM as shown in Example 12-9.
You might need to work backward to determine which collection element was used in the iteration that caused an exception. For example, if you use the INDICES OF clause to process a sparse collection, you must step through the elements one by one to find the one corresponding to %BULK_EXCEPTIONS(i).ERROR_INDEX. If you use the VALUES OF clause to process a subset of elements, you must find the element in the index collection whose subscript matches %BULK_EXCEPTIONS(i).ERROR_INDEX, and then use that element's value as the subscript to find the erroneous element in the original collection. -
Flow Activity Exception Handling Problem
Hi,
I am using Flow Activity in my Bpel Process, i am getting some exception in one of flow, but other flows are working fine. Even i have included Catch block for other flow still i am getting fault response.
Please suggest me how to do exception handling in Flow Activity.
Thanks in advance.Hi,
just restructure your BPEL process. The 'Flow' activity contains several 'Sequence' activities. Simply ... put a 'Scope' activity inside of each 'Sequence' activity. Then put another 'Sequence' activity inside of each 'Scope' activity ... and put there required logic/activities.
After that you can create fault handling on these 'Scope' activities. In this way you can handle faults in each flow-sequence.
Regards,
Martin -
Hi, i have a database whereby people can look up customer records based on their order numbers. If the order number does not exist, an error should appear.
Code:
SET SERVEROUTPUT ON;
DECLARE
v_ordNum NUMBER(8) := &sv_odNum;
v_fname VARCHAR2 (30);
v_lname VARCHAR2 (30);
v_add VARCHAR2 (30);
v_num VARCHAR2 (10);
BEGIN
SELECT first, last, cadd, dphone
INTO v_fname, v_lname, v_add, v_num
FROM CUSTOMER c, ORDERS o
WHERE c.custid = o.custid
AND v_ordNum = o.orderid;
DBMS_OUTPUT.PUT_LINE(' The name, address and telephone number of the customer follow: '
||v_fname|| ' ' ||v_lname ||' ' ||v_add||' ' ||v_num);
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE(v_ordNum 'was not found. Please try again');
END;
When i enter a order number that does not exist i get this instead, y:
SQL> @q1.sql
Enter value for sv_odnum: 2331
old 2: v_ordNum NUMBER(8) := &sv_odNum;
new 2: v_ordNum NUMBER(8) := 2331;
DBMS_OUTPUT.PUT_LINE(v_ordNum 'was not found. Please try again');
ERROR at line 18:
ORA-06550: line 18, column 33:
PLS-00103: Encountered the symbol "was not found. Please try again" when
expecting one of the following:
. ( ) , * @ % & | = - + < / > at in mod not range rem => ..
<an exponent (**)> <> or != or ~= >= <= <> and or like as
between from using is null is not || is dangling
The symbol "." was substituted for "was not found. Please try again" to
continue.Hi,
you were careful in using "||" while writing the previous DBMS_OUTPUT.PUT_LINE statement.
do the same now aslo...
DBMS_OUTPUT.PUT_LINE(v_ordNum || ' was not found. Please try again');
Try now and tell me. Simple Errors you should be careful... you just have to read the error carefull and see what it says and why it is wrong.
Regards
Jagan -
hi folks,
i have developed one web service in which i have thrown a SoapFault
exception.i want it to see what happens on the client.i get an exception
thrown but ,theres some thing called SaxParseException that also appears on
the client console.also while running the web service i get a message on the
server console which is like this
Unable to deploy EJB: Hello from Hellodeepuu.jar:
Unable to bind a cluster-aware stateless session EJBObject to the name:
HelloHome_EO. Please ensure
that the jndi-name in the weblogic-ejb-jar.xml is correct. The error was:
javax.naming.NameAlreadyBoundException: Can't rebind anything but a
replica-aware stub to a name tha
t is currently bound to a replica-aware stub; remaining name ''
<<no stack trace available>>
what is this?
and on the cline side console the xml and the exception is like this
------------- RECEIVING XML -------------
<?xml version="1.0"?>
<definitions
targetNamespace="java:com.chase.ccs.webservice.transaction"
xmlns:tns="java:com.chase.ccs.webservice.transaction"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
<types>
<schema targetNamespace='java:com.chase.ccs.webservice.transaction'
xmlns='http://www.w3.org/1999/XMLSchema'>
</schema>
</types>
<message name="helloRequest">
</message>
<message name="helloResponse">
<part name="return" type="xsd:string" />
</message>
<portType name="HelloPortType">
<operation name="hello">
<input message="tns:helloRequest"/>
<output message="tns:helloResponse"/>
</operation>
</portType>
<binding name="HelloBinding" type="tns:HelloPortType"><soap:binding
style="rpc" transport="http://sc
hemas.xmlsoap.org/soap/http/"/>
<operation name="hello">
<soap:operation soapAction="urn:hello"/>
<input><soap:body use="encoded" namespace='urn:Hello'
encodingStyle="http://schemas.xmlsoap.org/soap
/encoding/"/></input>
<output><soap:body use="encoded" namespace='urn:Hello'
encodingStyle="http://schemas.xmlsoap.org/soa
p/encoding/"/></output>
</operation>
</binding>
<service name="Hello"><documentation>todo</documentation><port
name="HelloPort" binding="tns:HelloBi
nding"><soap:address
location="http://localhost:7001/Hello/Hellouri"/></port></service></definiti
ons
>
-------------- SENDING XML --------------
<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/
soap/envelope/' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:xsi='http://www.w3.
org/1999/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:hello
xmlns:ns0='urn:Hello'
SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'></ns0:hel
lo
</SOAP-ENV:Body></SOAP-ENV:Envelope>------------- RECEIVINGXML -------------
<?xml version="1.0" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>
Client
</faultcode>
<faultstring>
java.rmi.RemoteException
</faultstring>
<detail>
Application fault:
java.rmi.RemoteException: EJB Exception: ; nested exception is:
weblogic.soap.SoapFault: faultstring
------------- Remote Stack Trace ------------
detail------------- Local Stack Trace ------------
weblogic.soap.SoapFault: faultstring
<<no stack trace available>>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Scanner has tokens:
[CHARDATA] (detail------------- Local Stack
race ------------)
[SPACE] (
[CHARDATA] (weblogic.soap.SoapFault: faultstring)
[SPACE] (
lt: faultstring
<n <-- bad character
ur in exceptionclass org.xml.sax.SAXParseException
Error at line:18 col:4 '<' expected [?! -- [CDATA[ ]
at
weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseException(SAXE
lementFactory
.java:60)
at
weblogic.xml.babel.parsers.StreamParser.streamParseSome(StreamParser.java:13
0)
at
weblogic.xml.babel.parsers.BabelXMLEventStream.parseSome(BabelXMLEventStream
.java:46)
at
weblogicx.xml.stream.SubEventStream.parseSome(SubEventStream.java:48)
at
weblogicx.xml.stream.SubElementEventStream.parseSome(SubElementEventStream.j
ava:38)
at
weblogicx.xml.stream.SubEventStream.parseSome(SubEventStream.java:48)
at
weblogicx.xml.stream.SubElementEventStream.parseSome(SubElementEventStream.j
ava:38)
at
weblogicx.xml.stream.XMLEventStreamBase.hasNext(XMLEventStreamBase.java:135)
at
weblogicx.xml.stream.helpers.TextBuilder.process(TextBuilder.java:23)
at
weblogic.soap.codec.SoapEncodingCodec.decode(SoapEncodingCodec.java:194)
at
weblogic.soap.codec.SoapEncodingCodec.decode(SoapEncodingCodec.java:145)
at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:66)
at weblogic.soap.codec.Operation.read(Operation.java:97)
at
weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:480)
at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:431)
at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
at CountClient.main(CountClient.java:60)
i am using wl6.1 and rpc style message service.i would appreacite if anyone
would tell me why i am getting the SaxParse Exception even though i am not
parsing anything.
thanx in advance
deepuuhi manoj,
thanx for the instant reply.
but in my condition if i want it make it work ,is there any way that i can
do it.
deepuu
"manoj cheenath" <[email protected]> wrote in message
news:[email protected]...
In 6.1 the fault->details element in the response is not wrapped in
CDATA. In some situation (like the one you found) the serialization
of stack trace to fault->details produce invalid XML. Hence, the
parser failed.
This is a bug and i have filed a CR on WSL 6.1.
regards,
manoj
"deepuu" <[email protected]> wrote in message
news:[email protected]...
hi folks,
i have developed one web service in which i have thrown a SoapFault
exception.i want it to see what happens on the client.i get an
exception
thrown but ,theres some thing called SaxParseException that also appearson
the client console.also while running the web service i get a message onthe
server console which is like this
Unable to deploy EJB: Hello from Hellodeepuu.jar:
Unable to bind a cluster-aware stateless session EJBObject to the name:
HelloHome_EO. Please ensure
that the jndi-name in the weblogic-ejb-jar.xml is correct. The error
was:
javax.naming.NameAlreadyBoundException: Can't rebind anything but a
replica-aware stub to a name tha
t is currently bound to a replica-aware stub; remaining name ''
<<no stack trace available>>
what is this?
and on the cline side console the xml and the exception is like this
------------- RECEIVING XML -------------
<?xml version="1.0"?>
<definitions
targetNamespace="java:com.chase.ccs.webservice.transaction"
xmlns:tns="java:com.chase.ccs.webservice.transaction"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
<types>
<schema targetNamespace='java:com.chase.ccs.webservice.transaction'
xmlns='http://www.w3.org/1999/XMLSchema'>
</schema>
</types>
<message name="helloRequest">
</message>
<message name="helloResponse">
<part name="return" type="xsd:string" />
</message>
<portType name="HelloPortType">
<operation name="hello">
<input message="tns:helloRequest"/>
<output message="tns:helloResponse"/>
</operation>
</portType>
<binding name="HelloBinding" type="tns:HelloPortType"><soap:binding
style="rpc" transport="http://sc
hemas.xmlsoap.org/soap/http/"/>
<operation name="hello">
<soap:operation soapAction="urn:hello"/>
<input><soap:body use="encoded" namespace='urn:Hello'
encodingStyle="http://schemas.xmlsoap.org/soap
/encoding/"/></input>
<output><soap:body use="encoded" namespace='urn:Hello'
encodingStyle="http://schemas.xmlsoap.org/soa
p/encoding/"/></output>
</operation>
</binding>
<service name="Hello"><documentation>todo</documentation><port
name="HelloPort" binding="tns:HelloBi
nding"><soap:address
location="http://localhost:7001/Hello/Hellouri"/></port></service></definiti
ons
>
-------------- SENDING XML --------------
<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/
soap/envelope/'xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:xsi='http://www.w3.
org/1999/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:hello
xmlns:ns0='urn:Hello'
SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'></ns0:hel
lo
</SOAP-ENV:Body></SOAP-ENV:Envelope>------------- RECEIVINGXML -------------
<?xml version="1.0" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>
Client
</faultcode>
<faultstring>
java.rmi.RemoteException
</faultstring>
<detail>
Application fault:
java.rmi.RemoteException: EJB Exception: ; nested exception is:
weblogic.soap.SoapFault: faultstring
------------- Remote Stack Trace ------------
detail------------- Local Stack Trace ------------
weblogic.soap.SoapFault: faultstring
<<no stack trace available>>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Scanner has tokens:
[CHARDATA] (detail------------- Local Stack
race ------------)
[SPACE] (
[CHARDATA] (weblogic.soap.SoapFault: faultstring)
[SPACE] (
lt: faultstring
<n <-- bad character
ur in exceptionclass org.xml.sax.SAXParseException
Error at line:18 col:4 '<' expected [?! -- [CDATA[ ]
at
weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseException(SAXE
lementFactory
.java:60)
at
weblogic.xml.babel.parsers.StreamParser.streamParseSome(StreamParser.java:13
0)
at
weblogic.xml.babel.parsers.BabelXMLEventStream.parseSome(BabelXMLEventStream
.java:46)
at
weblogicx.xml.stream.SubEventStream.parseSome(SubEventStream.java:48)
at
weblogicx.xml.stream.SubElementEventStream.parseSome(SubElementEventStream.j
ava:38)
at
weblogicx.xml.stream.SubEventStream.parseSome(SubEventStream.java:48)
at
weblogicx.xml.stream.SubElementEventStream.parseSome(SubElementEventStream.j
ava:38)
at
weblogicx.xml.stream.XMLEventStreamBase.hasNext(XMLEventStreamBase.java:135)
at
weblogicx.xml.stream.helpers.TextBuilder.process(TextBuilder.java:23)
at
weblogic.soap.codec.SoapEncodingCodec.decode(SoapEncodingCodec.java:194)
at
weblogic.soap.codec.SoapEncodingCodec.decode(SoapEncodingCodec.java:145)
at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:66)
at weblogic.soap.codec.Operation.read(Operation.java:97)
at
weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
atweblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:480)
atweblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:431)
at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
at CountClient.main(CountClient.java:60)
i am using wl6.1 and rpc style message service.i would appreacite ifanyone
would tell me why i am getting the SaxParse Exception even though i am
not
parsing anything.
thanx in advance
deepuu -
Hi All,
1) created a class with "execute" method in ADF model project, and exposed it as a data control.
2) bind the "execute" method into a JSF page in ADF viewController project.
3) tried to run "execute" method from JSF page.
4) some exception thrown from "execute" method, but ADF application didn't show the real exception message but following, why?
<Utils><buildFacesMessage> ADF: Adding the following JSF error message: tried to access class oracle.j2ee.util.TraceLogger$TraceLoggerHandler from class oracle.j2ee.util.CustomerLogger
java.lang.IllegalAccessError: tried to access class oracle.j2ee.util.TraceLogger$TraceLoggerHandler from class oracle.j2ee.util.CustomerLogger
at oracle.j2ee.util.CustomerLogger.getCompatibleHandler(CustomerLogger.java:248)
at oracle.j2ee.util.CustomerLogger.getLogger(CustomerLogger.java:231)
at oracle.j2ee.rmi.RMIMessages.<clinit>(RMIMessages.java:21)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:571)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:515)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy3.getObject(Unknown Source)
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.agile.api.pc.EJBRemoteProxy$1.invoke(EJBRemoteProxy.java:40)
at $Proxy130.getObject(Unknown Source)
at com.agile.api.pc.Session$GetObjectAction.doSdkAction(Session.java:1452)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at com.agile.api.common.OracleAuthenticator.doAs(OracleAuthenticator.java:131)
at com.agile.api.common.Security.doAs(Security.java:54)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.Session.getObject(Session.java:448)
at model.Test.execute(Test.java:113)
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 oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:567)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2134)
at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3020)
at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:440)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:257)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1625)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:468)
at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
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.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
<Utils><buildFacesMessage> ADF: Adding the following JSF error message: tried to access class oracle.j2ee.util.TraceLogger$TraceLoggerHandler from class oracle.j2ee.util.CustomerLogger
java.lang.IllegalAccessError: tried to access class oracle.j2ee.util.TraceLogger$TraceLoggerHandler from class oracle.j2ee.util.CustomerLogger
at oracle.j2ee.util.CustomerLogger.getCompatibleHandler(CustomerLogger.java:248)
at oracle.j2ee.util.CustomerLogger.getLogger(CustomerLogger.java:231)
at oracle.j2ee.rmi.RMIMessages.<clinit>(RMIMessages.java:21)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:571)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:515)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy3.getObject(Unknown Source)
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.agile.api.pc.EJBRemoteProxy$1.invoke(EJBRemoteProxy.java:40)
at $Proxy130.getObject(Unknown Source)
at com.agile.api.pc.Session$GetObjectAction.doSdkAction(Session.java:1452)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at com.agile.api.common.OracleAuthenticator.doAs(OracleAuthenticator.java:131)
at com.agile.api.common.Security.doAs(Security.java:54)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.Session.getObject(Session.java:448)
at model.Test.execute(Test.java:113)
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 oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:567)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2134)
at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3020)
at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:440)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:257)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1625)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:468)
at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
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.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)Hi All,
if i called the "execute" method from a pure Java client application, i got the following exception message,
com.agile.util.exception.CMAppException: Invalid parameter.
at com.agile.apibean.Generic.createError(Generic.java:29)
at com.agile.apibean.Generic.checkParameter(Generic.java:41)
at com.agile.apibean.objects.DataObjectOperations.getObject(DataObjectOperations.java:264)
at com.agile.apibean.objects.DataObjectOperations.getObject(DataObjectOperations.java:294)
at com.agile.apibean.APISessionBean.getObject(APISessionBean.java:367)
at sun.reflect.GeneratedMethodAccessor309.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxSupportsInterceptor.invoke(TxSupportsInterceptor.java:37)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at com_agile_apibean_APISession_RemoteProxy_2fc2dp8.getObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
at com.evermind.server.rmi.RMICall.warningExceptionOriginatesFromTheRemoteServer(RMICall.java:109)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:129)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:571)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:515)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy3.getObject(Unknown Source)
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.agile.api.pc.EJBRemoteProxy$1.invoke(EJBRemoteProxy.java:40)
at $Proxy1.getObject(Unknown Source)
at com.agile.api.pc.Session$GetObjectAction.doSdkAction(Session.java:1452)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at com.agile.api.common.OracleAuthenticator.doAs(OracleAuthenticator.java:131)
at com.agile.api.common.Security.doAs(Security.java:54)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.Session.getObject(Session.java:448)
at model.Test.execute(Test.java:113)
at model.TestClient.main(TestClient.java:16)
com.agile.util.exception.CMAppException: Invalid parameter.
at com.agile.apibean.Generic.createError(Generic.java:29)
at com.agile.apibean.Generic.checkParameter(Generic.java:41)
at com.agile.apibean.objects.DataObjectOperations.getObject(DataObjectOperations.java:264)
at com.agile.apibean.objects.DataObjectOperations.getObject(DataObjectOperations.java:294)
at com.agile.apibean.APISessionBean.getObject(APISessionBean.java:367)
at sun.reflect.GeneratedMethodAccessor309.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxSupportsInterceptor.invoke(TxSupportsInterceptor.java:37)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at com_agile_apibean_APISession_RemoteProxy_2fc2dp8.getObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
at com.evermind.server.rmi.RMICall.warningExceptionOriginatesFromTheRemoteServer(RMICall.java:109)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:129)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:571)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:515)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
at __Proxy3.getObject(Unknown Source)
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.agile.api.pc.EJBRemoteProxy$1.invoke(EJBRemoteProxy.java:40)
at $Proxy1.getObject(Unknown Source)
at com.agile.api.pc.Session$GetObjectAction.doSdkAction(Session.java:1452)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at com.agile.api.common.OracleAuthenticator.doAs(OracleAuthenticator.java:131)
at com.agile.api.common.Security.doAs(Security.java:54)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.Session.getObject(Session.java:448)
at model.Test.execute(Test.java:113)
at model.TestClient.main(TestClient.java:16)
Error code : 60018
Error message : Invalid parameter.
Root Cause exception : com.agile.util.exception.CMAppException: Invalid parameter.
at com.agile.api.pc.Session.createError(Session.java:1723)
at com.agile.api.pc.Session$GetObjectAction.doSdkAction(Session.java:1457)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at com.agile.api.common.OracleAuthenticator.doAs(OracleAuthenticator.java:131)
at com.agile.api.common.Security.doAs(Security.java:54)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.Session.getObject(Session.java:448)
at model.Test.execute(Test.java:113)
at model.TestClient.main(TestClient.java:16)
Process exited with exit code 0. -
Exception handle problem.
I'd like to return a value in method doDelete(),but it saids that "finally block dose not complete normally",why? I use Ecplise3.0.1.
Any advice is highly appreciated!
Code:
public int doDelete(String a, String b)
int state = 0;
String filter = "num != 1"
OneDAO oneDAO = new OneDAO ( );
try
ArrayList list = oneDAO .query (filter);//get the record to be delete
oneDAO .deleteDS(list );//delete record from table A
oneDAO .deleteCom (a, b);//delete record from table B
state = 0; //success
catch (OPException e)
state = 6; //meet exception
throw new SystemException (e);
finally
return state;
}You can not both return a value and throw an excepton, which is what you are tring to do above. If a Throwable is throw, the method never "returns", and the calling blocks "trys" catch block is executed.
When you post code, please use [code] and [/code] tags as described in Formatting Tips on the message entry page. It makes it much easier to read. -
Problem in Exception Handling...URGENT
hi, actually i am trying to make a program using Lucene Api and Using NGramSpeller...
the information about NGramSpeller is here
http://www.marine-geo.org/services/oai/docs/javadoc/org/apache/lucene/spell/NGramSpeller.html#suggestUsingNGrams(org.apache.lucene.search.Searcher,%20java.lang.String,%20int,%20int,%20int,%20float,%20float,%20float,%20int,%20java.util.List,%20boolean)
and here is my code..
package org.apache.lucene.spell;
import java.io.IOException;
import java.io.File;
import java.io.*;
import java.io.FileInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.BufferedReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.TermQuery;
import org.apache.lucene.spell.NGramSpeller;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.analysis.*;
import org.apache.lucene.index.*;
import org.apache.lucene.store.*;
import org.apache.lucene.document.*;
import org.apache.lucene.search.*;
import org.apache.lucene.search.BooleanClause.Occur;
import java.lang.*;
public class spell1 {
public static void main(String args[]) throws IOException {
try{
System.out.println("enter the keyword");
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));//USER INPUT KEYWORDS
String the_query = in.readLine();
//String spellIndex = "C:/opt/lucene/didyoumean/indexes/spell";
String spellIndex1 = "C:/Documents and Settings/sumit-i/Desktop/ngramspell/ngramspell";
Searcher spellIndex = new IndexSearcher(spellIndex1);
NGramSpeller spellChecker = new NGramSpeller();
float a=2.0f, b=1.0f, c=0.0f;
try{
String[] similarWords = spellChecker.suggestUsingNGrams(spellIndex, "jva", 3, 3, 10, a, b, c, 0, null, true);
System.out.println("DO YOU MEAN.........");
for(int i=0;i<similarWords.length;i++)
System.out.println(similarWords);
catch (IOException e) {
throw e;
in.close();
catch (IOException ioe)
ioe.printStackTrace();
the error i am getting is due to some exception handling problem, which is as follows:package org.apache.lucene.spell;
import java.io.IOException;
import java.io.File;
import java.io.*;
import java.io.FileInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.BufferedReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.TermQuery;
import org.apache.lucene.spell.NGramSpeller;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.analysis.*;
import org.apache.lucene.index.*;
import org.apache.lucene.store.*;
import org.apache.lucene.document.*;
import org.apache.lucene.search.*;
import org.apache.lucene.search.BooleanClause.Occur;
import java.lang.*;
public class spell1 {
public static void main(String args[]) throws IOException {
try{
System.out.println("enter the keyword");
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));//USER INPUT KEYWORDS
String the_query = in.readLine();
//String spellIndex = "C:/opt/lucene/didyoumean/indexes/spell";
String spellIndex1 = "C:/Documents and Settings/sumit-i/Desktop/ngramspell/ngramspell";
Searcher spellIndex = new IndexSearcher(spellIndex1);
NGramSpeller spellChecker = new NGramSpeller();
float a=2.0f, b=1.0f, c=0.0f;
try{
String[] similarWords = spellChecker.suggestUsingNGrams(spellIndex, "jva", 3, 3, 10, a, b, c, 0, null, true);
System.out.println("DO YOU MEAN.........");
for(int i=0;i<similarWords.length;i++)
System.out.println(similarWords[i]);
catch (IOException e) {
throw e;
in.close();
catch (IOException ioe)
ioe.printStackTrace();
any idea....plzzzwhat about this??
try{
String[] similarWords = spellChecker.suggestUsingNGrams(spellIndex, "jva", 3, 3, 10, a, b, c, 0, null, true);
System.out.println("DO YOU MEAN.........");
for(int i=0;i<similarWords.length;i++)
System.out.println(similarWords);
catch (ArrayIndexOutOfBoundsException e) {
System.out.println("exception: " + e.getMessage());
e.printStackTrace(); -
Recommended Practice for Exception handling in JSP portlets
Hi,
This may be a redundant question, but hope to get some feedback on the generally used practice of catching exceptions in a JSP based Portal application.
Is it okay to just make use of the standard JSP errorpage directive in each of the JSP portlets to point to the same errorpage.jsp. If a problem occurs in any of the portlets, the userfriendly message in the errorpage.jsp would be rendered.
Of course there could be some kind of error logging done in the errorpage.jsp to track the error stack. This also means, that you would not want to catch any exceptions inside each of the portlet JSPs but rather let the errorpage directive, be the catch all?
regards
-AnanthMohana,
Pls ignore the voice mail,it was for something else and I was able to talk to Peter as well about this.
Regarding the error/exception handling -
If the errorPage.jsp is used in each of the JSP portlets with the help of the JPS errorPage directive, if a general system failure or major appln. error occurs, you will get the errorPage.jsp containing the user friendly message to show up in each of the half a dozen portlets on the page!!. Is that allright.
You cannot really redirect the entire page using the code inside the JSP portlet. It will only render inside the same portlet. The only way you can do this is to use Javascript.
-Ananth -
Exception Handling for many bean objects of a container class in a JSP page
Hello,
I have on container bean class. In this container class, there are several others class objects and the getter methods to get these objects out to the JSP pages.
I have one JSP page which will use different objects in the container class object through the getter methods of the container class.
My question is how to implement the exception handler for all the objects in the container so that the JSP page can handle all exceptions if occurrs in any object in the container?
Please give me some suggestions. Thanks
TuThanks for your reply.
Since the container is the accessor class, I have no other super class for this container class, I think I will try the try catch block in the getter methods. -
Exception Handling related problem
Can anybody tell me why it is not giving ArithmeticException.
package pckg1;
* @author anil_saini
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
import java.io.FileNotFoundException;
public class Average7 {
public static void main(String[] args) throws InterruptedException,FileNotFoundException {
try { // (1) System.out.println(printAverage(100, 0)); // (2)
} catch (ArithmeticException ae) { // (3)
Thread.sleep(1000);
ae.printStackTrace(); // (4)
System.out.println("Exception handled in " + // (5)
"main().");
finally {
System.out.println("Finally in main()."); // (6)
System.out.println("Exit main()."); // (7)
public static int printAverage(int totalSum, int totalNumber) {
int average=0;
try { // (8)
average = computeAverage(totalSum, totalNumber); // (9)
System.out.println("Average = " + // (10)
totalSum + " / " + totalNumber + " = " + average);
return average;
} catch (IllegalArgumentException iae) { // (11)
iae.printStackTrace(); // (12)
System.out.println("Exception handled in " + // (13)
"printAverage().");
} finally {
System.out.println("Finally in printAverage()."); // (14)
return average;
} // (15)
public static int computeAverage(int sum, int number) {
System.out.println("Computing average.");
if (number == 0) // (16)
throw new ArithmeticException("Integer division by 0");// (17)
return sum/number; // (18)
Output
=======================
Computing average.
Finally in printAverage().
0
Finally in main().
Exit main().Because return statements in finally blocks are evil!
int average = 0;
try
{ // (8)
average = computeAverage(totalSum, totalNumber); // (9)
System.out.println("Average = " + // (10)
totalSum + " / " + totalNumber + " = " + average);
return average;
catch (IllegalArgumentException iae)
{ // (11)
iae.printStackTrace(); // (12)
System.out.println("Exception handled in " + // (13)
"printAverage().");
throw new IllegalArgumentException();
finally
System.out.println("Finally in printAverage()."); // (14)
return average; // (15)
}You get an exception at (9), but finally is guaranteed to be executed, so the JVM executes it. Now you return in your finally block (15), and the JVM is left with the choice of executing your return statement or propagating the exception. Since, as said, finally is guaranteed to be executed, it returns and swallows the exception.
That's why IMHO return statements in finally blocks should not be allowed.
(Some compilers issue warnings)
If you move your return statement out of the finally block, it will work as you'd expect it. -
Problems with Custom Exception Handler
Hi,
I have defined a custom exception handler for my workflow (WebLogic Platform
7).
I have a workflow variable called 'count' , which gets incremented for every
time an exception occurs.
The exception handler checks if the count is less than 3(using evaluate
condition),
if yes then it executes the action "Exit Execption Handler and retry"
else
it executes the action "Exit Execption Handler and continue"
The Workflow simply hangs, nothing on the console , the worklist from which
i call it hangs too.
Has anyone managed to use this kind of exception handling?
Thanks in advance,
Asifbill0 wrote:
> Thanks for all the help but still no luck.
>
> The directory is d:\wSites\GBMain\html\CFMS> and I am
mapped to it as x:\CFMS.
> Most of the cfm files are in CFMS but Application.cfm is
1 directory up in
> html. I have tried misscfm.cfm in both html and CFMS but
had no luck having it
> find a non existant template referred to in a cfinclude
or a form's action
> attribute. The default ColdFusion error handler is what
shows. The missing
> template handler box says /misscfm.cfm. Misscfm.cfm is
text followed by a
> <cfabort>. We use ColdFusion MX6.1
>
> I hope that is enough information to figure what am I
missing and/or doing
> wrong.
>
>
Is the 'misscfm.cfm' file somewhere in the
'd:\wSites\GBMain\html\CFMS\'
directory. I will presume this is the 'web root' as defined
in your web
server (IIS or Apache or built-in or ???). The missing
template handler
file needs to be in the ColdFusion root. This is going to be
a
directory such as
'{drive}:\JRun4\servers\{server}\cfusion-ear\cfusion-war\misscfm.cfm'
for J2EE flavors OR '{drive}:\CFusionMX\wwwroot' for Standard
I think.
It has been a very long time since I have dealt with
Standard.
This is probably completely different from the above web
root. That is
the point I am trying to get across. ColdFusion has TWO roots
where it
will look for a CFML file. But the Missing and Sitewide
templates can
only be in the ColdFusion root listed above, they will not
work in the
web root.
HTH
Ian -
Exception Handling-rite way??
Hi Friends,
This Exception handling is really causing some problems for me.I run a query,return the resultset,cook the data from my other java class and display it thru my jsp and the last statement from my jsp is to call the close method(commented out).The problem is if some unknown Exception arises the close() method is not being called,causing open connections which later on are
creating some disasters.I tried to implement it now using the finally method,so that it always gets closed,but hte problem is when i call the ReturnResultSet() method and try to cook the data,it says "ResultSet Closed".Please tell me which is the right way to implement this:
public ResultSet ReturnResultSet(String Query) throws Exception
try{
if (datasource != null) {
connection = datasource.getConnection();
if (connection != null) {
statement = connection.createStatement( );
resultset = statement.executeQuery(Query);
return resultset;
} catch (SQLException sqle)
sqle.printStackTrace();
return null;
finally {
try {
if (resultset != null) resultset.close();
if (statement != null) statement.close();
if (connection != null) connection.close();
catch (SQLException sqle) {
sqle.printStackTrace();
public void close()
try { resultset.close(); } catch (Exception ex) {}
try { statement.close(); } catch (Exception ex) {}
try { connection.close(); } catch (Exception ex) {}
*/Any help would be appreciated and some duke dollars would be awarded too.ThanksOk I think i got your point and i should award you
the duke dollars too,but one last thing to ask.I call
the close() method after all my processing is over,I
just
wanna know should I have the connection.close() thing
inside it,becuase dont that contradicts the whole
connection pool thing,as i am closing a connection
and it has to open a new connection for every
request.Or should i just have resultset.close() and
statement.close() in it.
Thanks for all your helpAre you talking about a standard J2EE container-provided connection pool? If so, then yes, you still need to 'close' the connection. That doesn't actually close it, it just tells the pool it is available to be used again the next time someone asks it for a connection. Hopefully you're not writing your own home-grown "connection pool".
Maybe you are looking for
-
Can I connect to wifi using a dongle.
I have ipad 2 with wifi not 3G. Can I use a dongle to connect to wifi?
-
Condense music on ipod that is no longer in my computer's library
Hi. So, I have had a 60gig ipod for God-knows-how-long now....pre2006 I think. Anyway, I hadn't realized that music was meant to flow only one way (computer to ipod and not vice versa), so I deleted much of my music library from my computer after tr
-
Hi there! I am in the process of selling my old Windows 7 laptop and I'm very much considering to buy my very first MacBook Pro laptop. Now, I heard that one can install Windows 7 OS as a dual-boot to Mac OS X. Can I ask: 1. Will I need an actually
-
Thunderbolt to HDMI doesn't support youtube?
I bought a thunderbolt to HDMI cable it supports everything but youtube...I played netflix on it, my itunes library, and pretty much anything with sound/ video but for some reason when it comes to youtube it wont support the sound, the video will pla
-
Problem in login to Service Center
Hi All, I am new to CSC and I am using oracle ATG 10.1.1(migrating from 10.0 to 10.1). I am not able to login to CSC/Service Center. Whenever I am using url "http://localhost:8080/agent", it is redirecting to accessDenied.jsp. I have set the logDebug