Launch Listener Problems in Server Side Backing Bean Code.
Hi All,
I am construcing an Table of Rich Command Links in the backing bean.
For each command Link i launch a dialog through the backing bean.
I have added a Launch Listener for each Command Link.However i see that although the dialog gets launched the launch Listener doesnt get invoked . The invocation of the launch listener is critical for me to pass information to the child dialog.
Here's the pseudo Code
tableConstructor ()
CommandLink.addActionListner (mylistener);
CommandLink.addLaunchListener (mylaunch);
CommandLink.setPartialSubmit (true);
CommandLink.setUseWindow (true);
richColumn.add (CommandLink)
// Actual Code of listener
mylistener (actionEvent) {
// Set the properties for the window to be launched.
Map winProps = new HashMap();
winProps.put ("height" , "1000");
winProps.put ("width" , "1000");
// End of setting properties for the window to be launched
FacesContext ctx = FacesContext.getCurrentInstance();
ViewHandler viewHandler = ctx.getApplication().getViewHandler();
UIViewRoot dialog = viewHandler.createView(ctx,
"/A.jspx");
Application app = ctx.getApplication();
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.launchDialog(dialog, null,
actionEvent.getComponent(), true, winProps);
myLaunch () {
System.out.println ("I Am here);
I am here is not getting printed.. Any idea how to make the launchListener work in this scenario...
Any help will be great.
Thanks
Karthik
Hi,
I can reproduce this. I am still not sure if this is supposed to work this way. However, since I don't know better, I filed a bug.
Frank
Similar Messages
-
How to handle Back button, Browser Refresh problem at server side.
Hi Friends,
How to handle Back button, Browser Refresh problem at server side in java?.
I am able to trace that,
request.getHeader("ACCEPT") is returning value- */*
when the browser was refreshed and returning different MIME types
for all other actions from browser.
I have doubt, will the above solution works always for all servers,browsers?.
Please also specify any solution to handle back button at server side?.
Thanks in Advance.
Venkat..I'm sorry I don't think tht's the right solution for
the above question....
We must be aware that whatever scripting methdologies
we either javascript/vbscript would executed @
client(browser) side not @ server side....
Dud If U get a good solution keep me updated.....
THANKS & REGARDS,
RAHULMy dear friend ...
the bad news is that u simply cant disable or add any listener to the back button of the browser.
When u hit the back button of ur browser the URL gets re-executed. So in case u have a JSP then the history.forward() is the best solution. [only if the page doesnt get expired similar to secure https sites]
Now dont say that user can have javascript disabled ...those users will have a pretty touch time browsing websites since javascripts r used extensively by almost all websites.
But in case u have an action.do or servlet call then u need to manage it using a session variable since the request will be sent to the server rather than client.
For multiple form submittion issues read the following article in javaworld...
Client vs. server solutions
Different solutions can solve this multiple form submission situation. Some transactional sites simply warn the user to wait for a response after submitting and not to submit twice. More sophisticated solutions involve either client scripting or server programming.
In the client-only strategy, a flag is set on the first submission, and, from then on, the submit button is disabled based on this flag. While appropriate in some situations, this strategy is more or less browser dependent and not as dependable as server solutions.
For a server-based solution, the Synchronizer Token pattern (from Core J2EE Patterns) can be applied, which requires minimal contribution from the client side. The basic idea is to set a token in a session variable before returning a transactional page to the client. This page carries the token inside a hidden field. Upon submission, request processing first tests for the presence of a valid token in the request parameter by comparing it with the one registered in the session. If the token is valid, processing can continue normally, otherwise an alternate course of action is taken. After testing, the token resets to null to prevent subsequent submissions until a new token is saved in the session, which must be done at the appropriate time based on the desired application flow of control.
for more details refer :
http://www.javaworld.com/javaworld/javatips/jw-javatip136.html
Hope u got the idea.
FYI I have been using both these ideas in my credit card payment gateway project. This concept has worked really well. -
Problem in Server side includes using Tomcat
Problem in Server side includes using Tomcat:
I am trying out small programs in servlet.
I get one example program for server side includes from net.
The code is:
<HTML>
<HEAD><TITLE>Times!</TITLE></HEAD>
<BODY>
<P>
The current time in London is!!! :
<SERVLET CODE="CurrentTime" codebase="../servlet">
<PARAM NAME="zone" VALUE="GMT">
</SERVLET>
</P>
</BODY>
</HTML>
I placed this test.shtml file in tomcat-home/webapps/ROOT folder and i kept the servlet in WEB-INF/classes folder.
I renamed the servlets-ssi.jar and i removed the comments for SSI in web.xml file.
When i run the servlet separately, i am getting the correct result. But if i run shtml file with the URL : http://localhost:8080/Test.shtml,
i am getting the result as:
The current time in London is!!! :
It is not invoking servlet program.
CAN ANYONE HELP ON THIS!
Thanks.Thanks...as u said I tried putting dir & found that
my file was saved as Ch1Servlet.java.txt instead for
Ch1Servlet.java......So that was a problem.Now I'm
able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
But on compiling I'm getting the following error
package java.servlet.* does not exist
package java.servlet.http.* does not exist
package java.io.* does not exist
Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation. -
How to show popup from backing bean code immediately?
Hi,
I'm using JDeveloper 11.1.2.1.0 and have problems with showing popups. I have a button with an action on my page and a method in backing bean.
I want to rise up few popups from this method in backing bean (for example just an anouncement that something will happen) or a dialog
(for example a question if you want to continue).
I understand how to get a dialog response to deal with it in code, but the problem is that the popup doesn't show up immediately, but only when
this method called on button finishes. I'd like to handle dialog responses in the middle of the action and then the code to continue with the execution.
Here is my backing bean code:
private RichPopup popup;
public String test() {
//Some code...
RichPopup.PopupHints hints = new RichPopup.PopupHints();
popup.show(hints);
//Here is the place for code which I want to be executed after popup closes,
//but is executed before the popup shows...
return null;
And here is part of my jssf:
<af:commandButton text="Test" id="cb1"
action="#{popupBean.test}"/>
<af:popup id="popup" binding="#{popupBean.popup}">
<af:dialog id="dialog" type="yesNo"
title="Dialog"
dialogListener="#{popupBean.onDialogAction}"
binding="#{popupBean.dialog}" clientComponent="true">
<af:outputText value="Do you want to continue?" id="ot1"/>
<af:clientListener method="onDialogCancel" type="dialog"/>
<af:serverListener type="DialogCancelHandlerEvent" method="#{popupBean.onDialogCancel}"/>
</af:dialog>
</af:popup>
Can someone give me some answer how to show the popup from backing bean code immediately?
Thanks in advance,
TinaIf you want to execute code after popup closes, then put this code in PopupCanceledListener or in DialogListener(you can't block method execution).
Dario -
Turning off automatic backing bean code generation
Hi,
When I created my JSP page using the wizard I selected to automatically expose UI components in a new managed bean. Is there any way I can now turn this off so that I can just enter the backing code that I want.
Thanks,
DaveHi Grant,
Sorry I don't think I explained my problem very well.
I've already created the JSP page and don't really want to create the whole thing again with the flag not set. I can remove any code that is already added that I don't want but I was wondering if there is a property I can change so it will no longer automatically add backing bean code whenever I add any new controls to the page.
Thanks for your help,
Dave -
Problem with server side state saving ,JSF 1.1.1
Hello,
In my web.xml the.STATE_SAVING_METHOD setting is s server
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
for measurement of application security isn't not allow to change this parameter to client , so the problem when i access for application and i open a new page via linker for print for example and i would access for my initial page to make change or modify my initial page it s no possible to make any modification because i have a empty bean , but if the state saving is a client i haven't a problem because a tree map is stored in client browser, so my version of JSF is 1.1.1 ,
So can you explain the cause for his problem
and what's the solution for my problem ?
NB:i can't change the parameter for STATE_SAVING_METHOD for a client
Thank youdid you search this form, there were lot of discussions in the past about server side cookies, you may find an answer to your problem.
alternate approache for sending a value from parent page to the pop up window.
1. when opening the pop up pass the values along with the url (if the size of variable is small)
alternatively you can store the value in a hidden form field in parent window and access the same from poup window using
you can simple access the page one form field value in page 2 (pop up) by using the following code.
window.opener.document.getElementById('hiddenformfieldid').value -
Problem with server side cookie
Hi, I have a problem with a server side cookie. I'm trying to store a cookie trough the cl_bsp_server_side_cookie=>set_server_cookie method in the OnInitialitation event handler of a bsp (my bsp application is non mvc) and then to retrieve this cookie trough the cl_bsp_server_side_cookie=>get_server_cookie method in the OnInputProcessing event handler of the same bsp. In this cookie i'm storing a internal table but i'm not getting it when i invoke the get_server_cookie method.
This is the source code that i'm implementing:
OnInitialitation:
wa_comunnication_data-mobile = wa-mobile.
wa_comunnication_data-telefono = wa-tel_number.
wa_comunnication_data-email = wa-email.
APPEND wa_comunnication_data to comunnication_data.
cl_bsp_server_side_cookie=>set_server_cookie(
EXPORTING
name = 'cook_comunnication_data'
application_namespace = 'NONE'
application_name = 'NONE'
username = 'NONE'
session_id = runtime->session_id
data_value = comunnication_data
data_name = 'comunnication_data'
expiry_time_rel = 720 ).
OnInputProcessing:
cl_bsp_server_side_cookie=>get_server_cookie(
EXPORTING
name = 'cook_comunnication_data'
application_namespace = 'NONE'
application_name = 'NONE'
username = 'NONE'
session_id = runtime->session_id
data_name = 'comunnication_data'
CHANGING
data_value = comunnication_data ).
READ TABLE comunnication_data INDEX 1 INTO wa_comunnication_data.
regards, marcel.Why do you need to use cookies in the same BSP Application?
Try to use below:
username = sy-uname
application_name = runtime->application_name
application_namespace = runtime->application_namespace
<i>*reward each useful answer</i>
Raja T
Message was edited by:
Raja Thangamani -
Problem populating selectOneMenu from backing bean
i want to populate my selectOneMenu with items from a backing bean, but items never show up.
jsf code
<h:selectOneMenu >
<c:forEach var="item" items="#{club.list}">
<f:selectItem itemLabel="#{item}" itemValue="#{item}"/>
</c:forEach>
</h:selectOneMenu>
faces-config.xml
<managed-bean>
<managed-bean-name>club</managed-bean-name>
<managed-bean-class>entities.ClubController</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>bean code. i have omitted the unnecessary code
public class ClubController {
public ClubController() {
private List<String> list;
public List<String> getList()
list=new ArrayList();
list.add("item 1");
list.add("item 2");
return list;
}This exception usually appears if your bean throws an exception in initializer/constructor. Try adding log statements top your constructor to see what's wrong.
I believe getServiceLocator() or getServiceLocator().getAdministracionVirtualService() or getServiceLocator().getAdministracionVirtualService().getAllCategorias() is null. -
Problem with Server-Side InitialContext
The Weblogic 5.1 documentation states that to create a context from within a
server-side object, all you need to do is issue the following statement:
Context ctx = new InitialContext();
That you do not need to specify a factory, or a provider URL; by default,
the context will be created as a WebLogic context and will connect to the
local naming service.
I only get this to work when I am running from within an EJB. When I try
this from a servlet, it doesn't work.
I am running Weblogic 5.1 SP9 with JDK 1.3.1_02. Any ideas about what I may
be doing wrong???Hi,
runtime->session_id indicates the browser session not a windows session so as such there is nothing to prevent that except from preventing to open the app in the same browser again by eg testing on the session id
Eddy -
Problem in moving the java beans code from computer to other
Hi,
I am working on building a webservice. I started building the EJB teir compnents like (Entity beans, Sessions beans, data base schemas) using the SUN ONE STUDIO 5 and SUN ONE App Server 7.0.
The problem, if I want to move the same entity beans code from one computer to other computer.
I am using same platform except the operating system (XP, and Windows 2000), apart from this every thing is same (Sun one studio 5, sun one app server 7.0). The Entity beans are working on the source computer and tested the beans. But When I moved the code to other computer, I compiled the entity beans code and it compiled perfectly. Then I tested the entity bean, I generated the test client, and deployed it. Till now no problem. When I tried to excute it and invoke the functions then it giving the following error:
Is there any solution, so that I can avoid coding from scrath again when I want to use same on other computer.
[22/Sep/2003:10:29:39] SEVERE ( 1616):
javax.ejb.EJBException: nested exception is: com.sun.jdo.api.persistence.support.JDOUserException: Object not found for this ObjectId.
NestedException: java.lang.ClassCastException: java.lang.String
com.sun.jdo.api.persistence.support.JDOUserException: Object not found for this ObjectId.
NestedException: java.lang.ClassCastException: java.lang.String
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:615)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper.getObjectById(PersistenceManagerWrapper.java:247)
at Data.AppNumInfoBean_535499553_ConcreteImpl.jdoGetInstance(AppNumInfoBean_535499553_ConcreteImpl.java:905)
at Data.AppNumInfoBean_535499553_ConcreteImpl.ejbLoad(AppNumInfoBean_535499553_ConcreteImpl.java:693)
at com.sun.ejb.containers.EntityContainer.callEJBLoad(EntityContainer.java:2372)
at com.sun.ejb.containers.EntityContainer.afterBegin(EntityContainer.java:1362)
at com.sun.ejb.containers.BaseContainer.startNewTx(BaseContainer.java:1405)
at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:1313)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:462)
at Data.AppNumInfoBean_535499553_ConcreteImpl_EJBObjectImpl.getDatelastapp(AppNumInfoBean_535499553_ConcreteImpl_EJBObjectImpl.java:113)
at Data._AppNumInfo_Stub.getDatelastapp(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:324)
at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:231)
at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:96)
at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:189)
at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:136)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
javax.ejb.EJBException: nested exception is: com.sun.jdo.api.persistence.support.JDOUserException: Object not found for this ObjectId.
NestedException: java.lang.ClassCastException: java.lang.String
at com.sun.ejb.containers.EntityContainer.afterBegin(EntityContainer.java:1378)
at com.sun.ejb.containers.BaseContainer.startNewTx(BaseContainer.java:1405)
at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:1313)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:462)
at Data.AppNumInfoBean_53
[22/Sep/2003:10:32:00] INFO ( 1616): Bean AppNumInfo method ejbLoad:
com.sun.jdo.api.persistence.support.JDOUserException: Object not found for this ObjectId.
NestedException: java.lang.ClassCastException: java.lang.String
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:615)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper.getObjectById(PersistenceManagerWrapper.java:247)
at Data.AppNumInfoBean_535499553_ConcreteImpl.jdoGetInstance(AppNumInfoBean_535499553_ConcreteImpl.java:905)
at Data.AppNumInfoBean_535499553_ConcreteImpl.ejbLoad(AppNumInfoBean_535499553_ConcreteImpl.java:693)
at com.sun.ejb.containers.EntityContainer.callEJBLoad(EntityContainer.java:2372)
at com.sun.ejb.containers.EntityContainer.afterBegin(EntityContainer.java:1362)
at com.sun.ejb.containers.BaseContainer.startNewTx(BaseContainer.java:1405)
at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:1313)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:462)
at Data.AppNumInfoBean_535499553_ConcreteImpl_EJBObjectImpl.setDatelastapp(AppNumInfoBean_535499553_ConcreteImpl_EJBObjectImpl.java:138)
at Data._AppNumInfo_Stub.setDatelastapp(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:324)
at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:231)
at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:96)
at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:189)
at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:136)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
[22/Sep/2003:10:32:00] SEVERE ( 1616): EJB5017: Exception while running preinvoke : ejbName = [AppNumInfo]
[22/Sep/2003:10:32:00] SEVERE ( 1616):
javax.ejb.EJBException: nested exception is: com.sun.jdo.api.persistence.support.JDOUserException: Object not found for this ObjectId.
NestedException: java.lang.ClassCastException: java.lang.String
com.sun.jdo.api.persistence.support.JDOUserException: Object not found for this ObjectId.
NestedException: java.lang.ClassCastException: java.lang.String
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:615)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper.getObjectById(PersistenceManagerWrapper.java:247)
at Data.AppNumInfoBean_535499553_ConcreteImpl.jdoGetInstance(AppNumInfoBean_535499553_ConcreteImpl.java:905)
at Data.AppNumInfoBean_535499553_ConcreteImpl.ejbLoad(AppNumInfoBean_535499553_ConcreteImpl.java:693)
at com.sun.ejb.containers.EntityContainer.callEJBLoad(EntityContainer.java:2372)
at com.sun.ejb.containers.EntityContainer.afterBegin(EntityContainer.java:1362)
at com.sun.ejb.containers.BaseContainer.startNewTx(BaseContainer.java:1405)
at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:1313)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:462)
at Data.AppNumInfoBean_535499553_ConcreteImpl_EJBObjectImpl.setDatelastapp(AppNumInfoBean_535499553_ConcreteImpl_EJBObjectImpl.java:138)
at Data._AppNumInfo_Stub.setDatelastapp(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:324)
at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:231)
at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:96)
at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:189)
at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:136)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
javax.ejb.EJBException: nested exception is: com.sun.jdo.api.persistence.support.JDOUserException: Object not found for this ObjectId.
NestedException: java.lang.ClassCastException: java.lang.String
at com.sun.ejb.containers.EntityContainer.afterBegin(EntityContainer.java:1378)
at com.sun.ejb.containers.BaseContainer.startNewTx(BaseContainer.java:1405)
at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:1313)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:462)
at Data.AppNumInfoBean_53There appears to be either a portion that didn't get recompiled, or perhaps a hard-coded GUID-type number within the application. Carefully go over the elements in the application that were hard-coded to run on the other machine -- were they have all been migrated?
-
Hi every body ,
I am creating one form , on that form I have created six tabs.On my entire application I have one backing bean .I have taken that backing bean in a session scope .
My question :
Can I create six different backing bean for each tab ?
A short example :
//MyBackingBean.java
//This is the main backing bean.
class MyBackingBean
//for first tab
private FirstTabBackingBean firstTabBackingBean ;
//for second tab
private SecondTabBackingBean secondTabBackingBean ;
//for third tab
private ThirdTabBackingBean thirdTabBackingBean ;
//for fourth tab
private FourthTabBackingBean fourthTabBackingBean ;
//for fifth tab
private FifthTabBackingBean fifthTabBackingBean ;
//for sixth tab
private SixTabBackingBean sixTabBackingBean ;
//Simple getter and setter for each backing bean , such as :
public FirstTabBackingBean getFirstTabBackingBean()
if(this.firstTabBackingBean ==null)
this.firstTabBackingBean = new FirstTabBackingBean();
return this.firstTabBackingBean;
public void setFirstTabBackingBean(FirstTabBackingBean firstTabBackingBean )
this.firstTabBackingBean = firstTabBackingBean ;
//Same for other remaining 5 beans.
//FirstTabBackingBean.java
class FirstTabBackingBean
//Here I am doing all actions related to button click & radio button click .........
} my faces-config.xml is :
<managed-bean>
<managed-bean-name>mainBackingBean</managed-bean-name>
<managed-bean-class>
com.myPkg.MyBackingBean
</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>my jsf is somthing like that :
<h:commandButton action="#{mainBackingBean.firstTabBackingBean.previousAction }" value="Previous"/>It is working fine for my application.For code maintain purpose I just separate each tabs actions into different beans.
Is it the proper way ?
or is there any different way to write code ?
Thanks,
SBHi thanks for your suggestion , but the problem is in my app there are more than 60 operations(Actions) are going on , in different tabs , for that reason I just separated all operations & putted in different backing bean .If I use one backing bean it will give a lot of pain to maintain the code , because then only I have to write all action specific codes in that one backing bean .
Is there any other way out ?
regards,
SB -
TFS work item store is not connecting in production server using server side event handler code
Server side plugin code to connect to work item store
tfs = new TfsTeamProjectCollection(new Uri(tfsUri));
store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));
I used the above code and accessed work item store in my TFS DEV server without username and password. But the same plugin code is not working for the TFS Production server.
Exception:
Account name:
domain\TFSService Detailed Message: : TF30063: You are
not authorized to access http://localhost:8080/tfs/xx. Exception Message: TF30063: You are not
authorized to access http://localhost:8080/tfs/xx
Please guideHi divya,
From the error message, you might not have the permissions to get the work item store in TFS production server. You can check the permissions on your production server by using
tfssecurity command in VS command line.
Please execute tfssecurity /imx “domain\username” /collection:url, for more information about tfssecurity /imx, please refer to:
http://msdn.microsoft.com/en-us/library/ms400806.aspx
If you have the permission, then you can also clean team foundation cache and try again.
Best regards, -
SSL reading problem in server-side
Hi guys,
I have a problem in my server implemetation with SSL Server Socket. I have created a server socket with a specfic port and bind address. Whenever a client connecfed, i grap its inputstream and starts to read as bytes. There is no problem to open server socket and certifacate authorization, and also a client successfully connects to server. But when client writes some data to its connected socket, server cannot read anything. Server throws no exception and there is no problem in writing. But the available bytes in inputstream is always 0. When i replace SSL socket with normal socket, everything is ok, server can read everything. I confused very much. since i have no concrete exception and stack trace, I know it is hard to explain and get help about my problem. I have added some parts from my code.
Could you make any suggestions?
Listening and connection part
ServerSocketFactory socketFactory = SSLServerSocketFactory.getDefault();
socket = socketFactory.createServerSocket(port,backLog,bindAddress);
Socket clientSocket = socket.accept();
in = new BufferedInputStream(clientSocket .getInputStream());Reading part
while (continueRunning){
try {
Thread.sleep(1);
if(in.available()<1){
System.err.println(in.available());
continue;
MessageDecoder decoder= new MessageDecoder();
Message msg = decoder.decode(in);
if(msg == null){
System.out.println("Decoded message is null");
continue;
handler.messageReceived(msg);
} catch (IOException e) {
e.printStackTrace();
continueRunning=false;
try {
clientSocket.close();
} catch (IOException e1) {
e1.printStackTrace();
} catch (InterruptedException e) {
continueRunning=false;
e.printStackTrace();
try {
clientSocket.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}I process bytes whenever they are available in the
stream, thus i use available() for checking wheter
there is any bytes to decode.You are looping and sleeping and calling available(). What's the point? As you have nothing else to do in the loop except sleep according to the above code, the whole sleep/available business is still a waste of time. Why not just read()? You are also burning a lot of CPU cycles for nothing.
The problem is there is no data in the stream althogh client seems write some data. The problem is that regardless of whether there is data in the stream or not, SSLSocket.getInputStream().available() always returns zero. It always does this, and so you cannot use it for the purpose you intend.
This is no loss, as the purpose you intend adds no value to just doing a read(). Try it and see.
I discover the debugging utilities of JSSE and make
some debugs. I find that client is blocked on its
socket when it tries to write stream. I am not using
nio, so my sockets are blocking but i cannot find any
reasonable explanation for this SSL write blocking on
socket.The 'reasonable explanation' is that the peer is never reading, so its socket receive buffer is full, so the writer's send buffer eventually fills too, at which point the writer is blocked.
When i change my implementation and used
non-SSL socket, everything is ok and there is no
blocking.That's because Socket.getInputStream().available() returns positive numbers whereas SSLSocket.getInputStream.available() always returns zero.
Is there anyone who knows something about some kind
of SSL blocking?There is. -
Problem with server side includes
Hi - I have a page with two php includes which no longer display properly. They were fine when I set them up, and I haven't changed anything. They don't display online - and also don't display on my local server (Apache). I have identical code on other sites which does display properly, both on my server and online. There's nothing wrong with the file paths as they display correctly on the DW display screen, and also on live display, so I'm completely baffled.
Can anyone shed any light?
Here's a sample page - http://www.lucidinsight.com/travelprev.shtml
The includes should both be displaying on the right side of the page (hence the two error messages)
Thanks!Hi...contrary to all logic and expectations, shtml pages DO process php includes. I appreciate that this seems very strange but I have several examples on my sites, with identical code to that already posted, and they work. I have to use a .php file extension rather than .asp as this is required for the file to be read by an online CMS site - rather than change the page to a php file and have to amend the site navigation, I have gone with just changing the file extension. This works for every single one of my sites except this one, and I can't see why, hence this question...
SW -
How to distinguish backing bean method invoker like struts *.do
I want to monitor request and response time of application via access log of httpd . But the urls are the same in one backing bean.
how should i do about this?Hello,
May know how to submit a button autoamtically on onload of page with clicking a welcome alert box. the submit button has managed button too to show a message on console using SOP.
the problem is.
1. before loading the page a javascript comes on which i clicked ok
2. the page gets loaded and the button is there which gets automatically clicked and the managed bean associated with prints a message on console using SOP.
I m trying to do this through server listener and click listener. the code is(adf jspx page)
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1" binding="#{backingBeanScope.backing_check4.d1}">
<af:form id="f1" binding="#{backingBeanScope.backing_check4.f1}">
<af:commandButton text="commandButton 1"
binding="#{backingBeanScope.backing_check4.cb1}"
id="cb1" action="#{beanCheck4.submit1}"/>
<af:clientListener type="click" method="delRow"/>
<af:serverListener type= "jsServerListener"
method="#{backingBeanScope.backing_check4.submit1}"/>
<f:facet name="metaContainer">
<af:resource type ="javascript">
x=confirm("hi");
// if(x){
delRow = function(event){
AdfCustomEvent.queue(event.getSource(), "jsServerListener", {}, false);
return true;
</af:resource>
</f:facet>
</af:form>
</af:document>
</f:view>
<!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_check4-->
</jsp:root>
the backing bean code is -----
public class classCheck4 {
public classCheck4() {
public String submit1() {
System.out.println("hello");
return null;
}
Maybe you are looking for
-
Getting error while trying to execute a external job using dbms_scheduler
Hello, I create a job using alpha account. begin dbms_scheduler.create_job( job_name => 'jps_test_executable', job_type => 'EXECUTABLE', job_action => '/usr/bin/ksh', number_of_arguments => 2 dbms_scheduler.set_job_argument_value ( job_name => 'jps_t
-
Idoc not gettind created when saving a sales order
Hello, In my system a sales orders has been created using ORDERS05 Idoc. We wanted a confirmation Idoc to be created automatically by this sales order but it didn't. The output type for EDI processing is in yellow for this sales order. I checked 'Dis
-
To get an Pop up message while creating sales order to refer
Hi All, We have requirement where in a POP UP screen is required to display while creating a Return Order. The message can be" Please refer this return order to sales order or to the Invoice if required" Please let me know is there any OSS note for
-
I have a Winform modal form with our home-made ComboBox on it, which functions well usually. My problem is - when this modal form is opened on top of a main form that has an AcroPDF control on it (Adobe's PDF ActiveX), whenever the combo's drop down
-
Applying brute force on a huge problem
hi guys , i m kinda stuck with this .. this is a project euler problem ... the problem is this The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) Using the rule above and starting w