EB-invalidate_delegate
Hi All,
I'm using iAS 6.0 SP3 TestDrive.
In my EJB, a Session bean, I threw an exception,
<isx.swordfish.frontoffice.control.exceptions.LoginFailedException>, but on
the client side, I'm catching the <RemoteException>. Is there a reason for
this to happen, shouldn't I be expecting to catch the Exception I threw on
the EJB side? How can I resolve this problem, please help. My Exception
class extends from Exception and implements Serializable.
Following is the trace log:
[19/Dec/2001 19:20:16:0] warning: EB-invalidate_delegate: instance
[email protected]65 threw an
unchecked or system exception, ex =
isx.swordfish.frontoffice.control.exceptions.LoginFailedException: User, ABC
is not found
[19/Dec/2001 19:20:16:0] error: Exception Stack Trace:
isx.swordfish.frontoffice.control.exceptions.LoginFailedException: User, ABC
is not found
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(IOException.java:47)
at java.rmi.RemoteException.<init>(RemoteException.java:56)
at
isx.swordfish.frontoffice.control.exceptions.IsxEventException.<init>(IsxEve
ntException.java:14)
at
isx.swordfish.frontoffice.control.exceptions.LoginFailedException.<init>(Log
inFailedException.java:12)
at
isx.swordfish.frontoffice.control.ejb.handlers.LoginHandler.perform(LoginHan
dler.java:48)
at
isx.swordfish.frontoffice.control.ejb.StateMachine.handleEvent(StateMachine.
java:84)
at
isx.swordfish.frontoffice.control.ejb.IsxClientControllerEJB.handleEvent(Isx
ClientControllerEJB.java:117)
at java.lang.reflect.Method.invoke(Native Method)
at
isx.swordfish.frontoffice.control.ejb.ejb_skel_isx_swordfish_frontoffice_con
trol_ejb_IsxClientControllerEJB.handleEvent(ejb_skel_isx_swordfish_frontoffi
ce_control_ejb_IsxClientControllerEJB.java:135)
at
isx.swordfish.frontoffice.control.ejb.ejb_kcp_skel_IsxClientController.handl
eEvent__java_util_Collection__isx_swordfish_frontoffice_control__242506100(e
jb_kcp_skel_IsxClientController.java:257)
at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
at com.kivasoft.ebfp.FPRequest.invokenative(Compiled Code)
at com.kivasoft.ebfp.FPRequest.invoke(Compiled Code)
at
isx.swordfish.frontoffice.control.ejb.ejb_kcp_stub_IsxClientController.handl
eEvent(ejb_kcp_stub_IsxClientController.java:395)
at
isx.swordfish.frontoffice.control.ejb.ejb_stub_IsxClientController.handleEve
nt(ejb_stub_IsxClientController.java:76)
at
isx.swordfish.frontoffice.control.web.IsxClientControllerWebImpl.handleEvent
(IsxClientControllerWebImpl.java:112)
at
isx.swordfish.frontoffice.control.web.RequestProcessor.processRequest(Compil
ed Code)
at
isx.swordfish.frontoffice.control.web.MainServlet.doProcess(Compiled Code)
at isx.swordfish.frontoffice.control.web.MainServlet.doGet(Compiled
Code)
at isx.swordfish.frontoffice.control.web.MainServlet.doPost(Compiled
Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Compiled Code)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
[IsxClientControllerWebImpl] RemoteException caught:
javax.transaction.TransactionRolledbackException
Thanks,
Christopher Lam
Hi Christopher,
This is a bug in iPlanet which is also still in SP4. You need a patch to get around this. The patch should already be available and has to do with ejbc which is used to generate iplanet stubs and skeletons.
Good luck,
Raymond Brandon
Similar Messages
-
Another EB-invalidate_delegate problem
Hi All,
I'm using iAS 6.0 SP3 TestDrive.
In my EJB, a Session bean, I threw an exception,
<isx.swordfish.frontoffice.control.exceptions.LoginFailedException>, but on
the client side, I'm catching the <RemoteException>. Is there a reason for
this to happen, shouldn't I be expecting to catch the Exception I threw on
the EJB side? My Exception class extends from Exception and implements
Serializable. Is it something to do with my transaction attributes specified
for the method in my EJB. How can I overcome this problem, please help?
Thanks,
Christopher Lam
Following is the trace log:
[19/Dec/2001 19:20:16:0] warning: EB-invalidate_delegate: instance
[email protected]65 threw an
unchecked or system exception, ex =
isx.swordfish.frontoffice.control.exceptions.LoginFailedException: User, ABC
is not found
[19/Dec/2001 19:20:16:0] error: Exception Stack Trace:
isx.swordfish.frontoffice.control.exceptions.LoginFailedException: User, ABC
is not found
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(IOException.java:47)
at java.rmi.RemoteException.<init>(RemoteException.java:56)
at
isx.swordfish.frontoffice.control.exceptions.IsxEventException.<init>(IsxEve
ntException.java:14)
at
isx.swordfish.frontoffice.control.exceptions.LoginFailedException.<init>(Log
inFailedException.java:12)
at
isx.swordfish.frontoffice.control.ejb.handlers.LoginHandler.perform(LoginHan
dler.java:48)
at
isx.swordfish.frontoffice.control.ejb.StateMachine.handleEvent(StateMachine.
java:84)
at
isx.swordfish.frontoffice.control.ejb.IsxClientControllerEJB.handleEvent(Isx
ClientControllerEJB.java:117)
at java.lang.reflect.Method.invoke(Native Method)
at
isx.swordfish.frontoffice.control.ejb.ejb_skel_isx_swordfish_frontoffice_con
trol_ejb_IsxClientControllerEJB.handleEvent(ejb_skel_isx_swordfish_frontoffi
ce_control_ejb_IsxClientControllerEJB.java:135)
at
isx.swordfish.frontoffice.control.ejb.ejb_kcp_skel_IsxClientController.handl
eEvent__java_util_Collection__isx_swordfish_frontoffice_control__242506100(e
jb_kcp_skel_IsxClientController.java:257)
at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
at com.kivasoft.ebfp.FPRequest.invokenative(Compiled Code)
at com.kivasoft.ebfp.FPRequest.invoke(Compiled Code)
at
isx.swordfish.frontoffice.control.ejb.ejb_kcp_stub_IsxClientController.handl
eEvent(ejb_kcp_stub_IsxClientController.java:395)
at
isx.swordfish.frontoffice.control.ejb.ejb_stub_IsxClientController.handleEve
nt(ejb_stub_IsxClientController.java:76)
at
isx.swordfish.frontoffice.control.web.IsxClientControllerWebImpl.handleEvent
(IsxClientControllerWebImpl.java:112)
at
isx.swordfish.frontoffice.control.web.RequestProcessor.processRequest(Compil
ed Code)
at
isx.swordfish.frontoffice.control.web.MainServlet.doProcess(Compiled Code)
at isx.swordfish.frontoffice.control.web.MainServlet.doGet(Compiled
Code)
at isx.swordfish.frontoffice.control.web.MainServlet.doPost(Compiled
Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Compiled Code)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
[IsxClientControllerWebImpl] RemoteException caught:
javax.transaction.TransactionRolledbackExceptionI was trying to find out the meaning of the various transaction attributes
found in the deployment tool, but couldn't find it anywhere in the
documentation:
1) Not Supported
2) Required
3) RequiresNew
4) Mandatory
5) Supports
6) Never
I'm currently using <required> (by default) for all the methods in my EJBs.
When do you use the others?
Christopher Lam
"Christopher Lam" <[email protected]> wrote in message
news:[email protected]...
Hi All,
I'm using iAS 6.0 SP3 TestDrive.
In my EJB, a Session bean, I threw an exception,
<isx.swordfish.frontoffice.control.exceptions.LoginFailedException>, buton
the client side, I'm catching the <RemoteException>. Is there a reason for
this to happen, shouldn't I be expecting to catch the Exception I threw on
the EJB side? My Exception class extends from Exception and implements
Serializable. Is it something to do with my transaction attributesspecified
for the method in my EJB. How can I overcome this problem, please help?
Thanks,
Christopher Lam
Following is the trace log:
[19/Dec/2001 19:20:16:0] warning: EB-invalidate_delegate: instance
[email protected]65 threwan
unchecked or system exception, ex =
isx.swordfish.frontoffice.control.exceptions.LoginFailedException: User,ABC
is not found
[19/Dec/2001 19:20:16:0] error: Exception Stack Trace:
isx.swordfish.frontoffice.control.exceptions.LoginFailedException: User,ABC
is not found
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(IOException.java:47)
at java.rmi.RemoteException.<init>(RemoteException.java:56)
at
isx.swordfish.frontoffice.control.exceptions.IsxEventException.<init>(IsxEve
ntException.java:14)
at
isx.swordfish.frontoffice.control.exceptions.LoginFailedException.<init>(Log
inFailedException.java:12)
at
isx.swordfish.frontoffice.control.ejb.handlers.LoginHandler.perform(LoginHan
dler.java:48)
at
isx.swordfish.frontoffice.control.ejb.StateMachine.handleEvent(StateMachine.
java:84)
at
isx.swordfish.frontoffice.control.ejb.IsxClientControllerEJB.handleEvent(Isx
ClientControllerEJB.java:117)
at java.lang.reflect.Method.invoke(Native Method)
at
isx.swordfish.frontoffice.control.ejb.ejb_skel_isx_swordfish_frontoffice_con
>
trol_ejb_IsxClientControllerEJB.handleEvent(ejb_skel_isx_swordfish_frontoffi
ce_control_ejb_IsxClientControllerEJB.java:135)
at
isx.swordfish.frontoffice.control.ejb.ejb_kcp_skel_IsxClientController.handl
>
eEvent__java_util_Collection__isx_swordfish_frontoffice_control__242506100(e
jb_kcp_skel_IsxClientController.java:257)
at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
at com.kivasoft.ebfp.FPRequest.invokenative(Compiled Code)
at com.kivasoft.ebfp.FPRequest.invoke(Compiled Code)
at
isx.swordfish.frontoffice.control.ejb.ejb_kcp_stub_IsxClientController.handl
eEvent(ejb_kcp_stub_IsxClientController.java:395)
at
isx.swordfish.frontoffice.control.ejb.ejb_stub_IsxClientController.handleEve
nt(ejb_stub_IsxClientController.java:76)
at
isx.swordfish.frontoffice.control.web.IsxClientControllerWebImpl.handleEvent
(IsxClientControllerWebImpl.java:112)
at
isx.swordfish.frontoffice.control.web.RequestProcessor.processRequest(Compil
ed Code)
at
isx.swordfish.frontoffice.control.web.MainServlet.doProcess(Compiled Code)
atisx.swordfish.frontoffice.control.web.MainServlet.doGet(Compiled
Code)
atisx.swordfish.frontoffice.control.web.MainServlet.doPost(Compiled
Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(CompiledCode)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Compiled
Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
[IsxClientControllerWebImpl] RemoteException caught:
javax.transaction.TransactionRolledbackException -
Java.io.NotSerializableException
I am running iplanet ias 6.0 sp3 with web server 6.0 sp1. I
successfully deployed an ear file that contains the war and the jar to
the APPS dir. The session ejbs and the entity ejbs are packed into the
jar file which are deployed with the ear.
I have two piece of testing code. One is a standalone java program.
The other one is a jsp page together with the jsp bean which are packed
into the war file in the ear. The jsp bean code and the standalone
program are doing the same thing. They call a session ejb which calls an
entity bean.
I have made 2 experiments
1> Start server, run the standalone test, got the correct result.
Then run the jsp from the browser, got the correct result.
2> Start server, run the jsp from the browser, fail to get the
result. run the standalone test, fail to get the result
The paten is very consistent. The code and the error msg for test 2 are
attached. Could any one tell me what might cause the problem in the
second test and how to resolve the it ?
Thank in advance
Xiao
When the test fails, I got the following error msg from the console.
[10/Nov/2001 12:08:08:3] info: --------------------------------------
[10/Nov/2001 12:08:11:0] error: EBFP-serialize: error during
serialization of me
thod, exception = java.io.NotSerializableException: java.util.Vector$1
java.io.NotSerializableException: java.util.Vector$1
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at
java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java:811)
at
java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(ObjectOut
putStream.java:432)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:337)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1567)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:453)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at com.kivasoft.ebfp.FPSerializable.serialize(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
[10/Nov/2001 12:08:11:0] warning: EB-invalidate_delegate: instance
com.plateausy
[email protected] threw
an unche
cked or system exception, ex = ElmsUncheckedException:
getHolidayProfileHolidays()
Nested stack traces:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exce
ption is:
java.rmi.ConnectIOException: <mapped>
java.rmi.ConnectIOException: <mapped>
<<no stack trace available>>
[10/Nov/2001 12:08:11:0] error: Exception Stack Trace:
ElmsUncheckedException:
getHolidayProfileHolidays()
Nested stack traces:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exce
ption is:
java.rmi.ConnectIOException: <mapped>
java.rmi.ConnectIOException: <mapped>
<<no stack trace available>>
at
com.plateausystems.elms.bo.holidayprofile.ejb.HolidayProfileManagerBe
an.getHolidayProfileHolidays(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at
com.plateausystems.elms.bo.holidayprofile.ejb.ejb_skel_com_plateausys
tems_elms_bo_holidayprofile_ejb_HolidayProfileManagerBean.getHolidayProfileHolid
ays(ejb_skel_com_plateausystems_elms_bo_holidayprofile_ejb_HolidayProfileManager
Bean.java:207)
at
com.plateausystems.elms.bo.holidayprofile.ejb.ejb_kcp_skel_HolidayPro
fileManager.getHolidayProfileHolidays__seq_com_plateausystems_elms_bo_holidaypro
__13918743(ejb_kcp_skel_HolidayProfileManager.java:326)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
ERROR [Thread-37] (?:?) - <HolidayProfileManagerJB:getHolidayVOs>Can't
get Holid
ayVOs by holiday profile id.java.rmi.ServerException: RemoteException
occurred i
n server thread; nested exception is:
javax.transaction.TransactionRolledbackException
*************************************************************end of
error msg
The attached is session and entity bean code segment.
In the entity bean:
public Enumeration ejbFindByHolidayProfileID(String id) {
Vector list = new Vector();
try {
Connection connection = DBUtil.getConnection();
try {
PreparedStatement s =
connection.prepareStatement(sqlFindByHolidayProfileID);
try {
s.setString(1, id);
ResultSet rs = s.executeQuery();
try {
while (rs.next()) {
HolidayProfileHolidayPK pk = new
HolidayProfileHolidayPK();
pk.holidayProfileID = rs.getString("hol_prfl_id");
pk.holidayID = rs.getString("hol_id");
list.add(pk);
} finally {
rs.close();
} finally {
s.close();
} finally {
connection.close();
} catch (Exception e) {
throw new EJBException(e);
return list.elements();
In the session bean:
public HolidayProfileHolidayVO[] getHolidayProfileHolidays(String
holidayProfileID) throws ElmsFinderException
HolidayProfileHolidayVO[] vos = null;
ArrayList alst = new ArrayList();
HolidayProfileHolidayHome hphHome =
this.getHolidayProfileHolidayHome();
try {
java.util.Enumeration enum =
hphHome.findByHolidayProfileID(holidayProfileID);
while (enum.hasMoreElements()) {
Object obj = enum.nextElement();
HolidayProfileHoliday bean =
(HolidayProfileHoliday)javax.rmi.PortableRemoteObject.narrow(obj,
HolidayProfileHoliday.class);
alst.add(bean.getVO());
} catch (FinderException e) {
// throw as new ElmsCheckedException subclass
throw new ElmsFinderException("getHolidayProfileHolidays(id):
Could not find HolidayProfileHolidays.", e);
} catch (RemoteException e) {
// throw as new ElmsUncheckedException
throw new ElmsUncheckedException(
"getHolidayProfileHolidays()", e);
} catch (RuntimeException e) {
throw new ElmsUncheckedException(e);
if (alst.size()>0) vos =
(HolidayProfileHolidayVO[])alst.toArray(new HolidayProfileHolidayVO[1]);
return vos;
}Xiao,
We have the same problem.
The reason why your stand alone works, but your browser based doesn't,
is because the iPlanet Application server requires that all EJBs, all
objects held in any EJB, all objects held in attributes in an
HttpSession, and all objects held in those objects MUST implement
java.io.Serializable.
The unfortunate reason why iPlanet does this is because iPlanet does not
preserve the state of objects in memory across hits to the server.
iPlanet serializes each and every object mentioned above when the HTML
is returned to the client, and then un-serializes all the objects again
when it receives another hit from the client. This is true even in the
case of no-dsync sticky load balancing.
This is ridiculous. We use sticky load balancing and we have many
objects stored in HttpSession attributes which we do not want to be
serialized every hit to the server, in the interest of speed. It takes
too long to serialize all the objects, and it would take way too long to
save them in a database every hit.
David Shade
xluo888 wrote:
>
I am running iplanet ias 6.0 sp3 with web server 6.0 sp1. I
successfully deployed an ear file that contains the war and the jar to
the APPS dir. The session ejbs and the entity ejbs are packed into the
jar file which are deployed with the ear.
I have two piece of testing code. One is a standalone java program.
The other one is a jsp page together with the jsp bean which are packed
into the war file in the ear. The jsp bean code and the standalone
program are doing the same thing. They call a session ejb which calls an
entity bean.
I have made 2 experiments
1> Start server, run the standalone test, got the correct result.
Then run the jsp from the browser, got the correct result.
2> Start server, run the jsp from the browser, fail to get the
result. run the standalone test, fail to get the result
The paten is very consistent. The code and the error msg for test 2 are
attached. Could any one tell me what might cause the problem in the
second test and how to resolve the it ?
Thank in advance
Xiao
When the test fails, I got the following error msg from the console.
[10/Nov/2001 12:08:08:3] info: --------------------------------------
[10/Nov/2001 12:08:11:0] error: EBFP-serialize: error during
serialization of me
thod, exception = java.io.NotSerializableException: java.util.Vector$1
java.io.NotSerializableException: java.util.Vector$1
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at
java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java:811)
at
java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(ObjectOut
putStream.java:432)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:337)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:
1567)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java
:453)
at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
at com.kivasoft.ebfp.FPSerializable.serialize(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
[10/Nov/2001 12:08:11:0] warning: EB-invalidate_delegate: instance
com.plateausy
[email protected] threw
an unche
cked or system exception, ex = ElmsUncheckedException:
getHolidayProfileHolidays()
Nested stack traces:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exce
ption is:
java.rmi.ConnectIOException: <mapped>
java.rmi.ConnectIOException: <mapped>
<<no stack trace available>>
[10/Nov/2001 12:08:11:0] error: Exception Stack Trace:
ElmsUncheckedException:
getHolidayProfileHolidays()
Nested stack traces:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exce
ption is:
java.rmi.ConnectIOException: <mapped>
java.rmi.ConnectIOException: <mapped>
<<no stack trace available>>
at
com.plateausystems.elms.bo.holidayprofile.ejb.HolidayProfileManagerBe
an.getHolidayProfileHolidays(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at
com.plateausystems.elms.bo.holidayprofile.ejb.ejb_skel_com_plateausys
tems_elms_bo_holidayprofile_ejb_HolidayProfileManagerBean.getHolidayProfileHolid
ays(ejb_skel_com_plateausystems_elms_bo_holidayprofile_ejb_HolidayProfileManager
Bean.java:207)
at
com.plateausystems.elms.bo.holidayprofile.ejb.ejb_kcp_skel_HolidayPro
fileManager.getHolidayProfileHolidays__seq_com_plateausystems_elms_bo_holidaypro
__13918743(ejb_kcp_skel_HolidayProfileManager.java:326)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
ERROR [Thread-37] (?:?) - <HolidayProfileManagerJB:getHolidayVOs>Can't
get Holid
ayVOs by holiday profile id.java.rmi.ServerException: RemoteException
occurred i
n server thread; nested exception is:
javax.transaction.TransactionRolledbackException
*************************************************************end of
error msg
The attached is session and entity bean code segment.
In the entity bean:
public Enumeration ejbFindByHolidayProfileID(String id) {
Vector list = new Vector();
try {
Connection connection = DBUtil.getConnection();
try {
PreparedStatement s =
connection.prepareStatement(sqlFindByHolidayProfileID);
try {
s.setString(1, id);
ResultSet rs = s.executeQuery();
try {
while (rs.next()) {
HolidayProfileHolidayPK pk = new
HolidayProfileHolidayPK();
pk.holidayProfileID = rs.getString("hol_prfl_id");
pk.holidayID = rs.getString("hol_id");
list.add(pk);
} finally {
rs.close();
} finally {
s.close();
} finally {
connection.close();
} catch (Exception e) {
throw new EJBException(e);
return list.elements();
In the session bean:
public HolidayProfileHolidayVO[] getHolidayProfileHolidays(String
holidayProfileID) throws ElmsFinderException
HolidayProfileHolidayVO[] vos = null;
ArrayList alst = new ArrayList();
HolidayProfileHolidayHome hphHome =
this.getHolidayProfileHolidayHome();
try {
java.util.Enumeration enum =
hphHome.findByHolidayProfileID(holidayProfileID);
while (enum.hasMoreElements()) {
Object obj = enum.nextElement();
HolidayProfileHoliday bean =
(HolidayProfileHoliday)javax.rmi.PortableRemoteObject.narrow(obj,
HolidayProfileHoliday.class);
alst.add(bean.getVO());
} catch (FinderException e) {
// throw as new ElmsCheckedException subclass
throw new ElmsFinderException("getHolidayProfileHolidays(id):
Could not find HolidayProfileHolidays.", e);
} catch (RemoteException e) {
// throw as new ElmsUncheckedException
throw new ElmsUncheckedException(
"getHolidayProfileHolidays()", e);
} catch (RuntimeException e) {
throw new ElmsUncheckedException(e);
if (alst.size()>0) vos =
(HolidayProfileHolidayVO[])alst.toArray(new HolidayProfileHolidayVO[1]);
return vos;
Maybe you are looking for
-
Withe the new photo upgrade, why can't I edit in Photoshop anymore?
I just upgraded to the new photo upgrade and I can't edit in Photoshop anymore!!! Help????
-
Windows Authentication and Zenworks Problem
I have Zenworks 6.5.1.0 on my desktop. I make my computer part of our win2k3 domain. When I try to connect to sql server through the client tools using windows authentication the domain name doesn't show up correctly. It will show up as the computer_
-
I signed up via email can i define a username?
Hi so A long time ago i signed up for skype via my email address. but now my name is live:c***** is there any chance i could define a custom username that i can sign into third party apps with, also so its easier to share my details with someone to a
-
Gnome Music 3.10 not working properly
Hi all, I'm having trouble getting the freshly installed Gnome Music application to work. When I start it from the console it outputs: (gnome-music:1746): Grilo-WARNING **: [upnp] grl-upnp.c:342: Failed to execute GetSearchCaps operation (gnome-music
-
HT3702 i use Visa Debit Card in Thailand. why i can't use it again
when i fill the infomation in itunes the error was "your payment method was declined. Please enter valid payment method infomation."